install google map.jar to Moto Phone - android

I tried to install an app using com.google.android.maps library on Moto XT681 Phone. Eclipse failed, reporting :
Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
By examining the Logcat, it states as following
Package com.xxxx.xxxx requires unavailable shared library com.google.android.maps; failing!
I tried to push the maps.jar file into the phone using ddms. However, it said: transfer eror: Permission denied. I guess it is because the ddms didn't connect the phone as root. I also tried using adb command, however, there was something wierd, when I tried the command adb devices, it always reboot the adb server, and could not get the device in the list?
So anyone can suggest a way out?

Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
The ROM you have installed on that device -- whether from the manufacturer or a ROM mod that you put on it -- lacks the Google Maps add-on for Android.
I tried to push the maps.jar file into the phone using ddms. However, it said: transfer eror: Permission denied. I guess it is because the ddms didn't connect the phone as root. I also tried using adb command, however, there was something wierd, when I tried the command adb devices, it always reboot the adb server, and could not get the device in the list?
The Google Maps add-on for Android comes with the firmware (a.k.a., device ROM). If your device lacks this add-on, buy a device that has it.

Related

How can I get SU permission on an android device after I whiped all data?

I followed along with a guide on installing lineageOS on my OnePlus 5. I had the phone set up, with OEM and debugger permissions. I also installed TWRP. After the initial setup I was prompted to wipe the phone system and cache to clear some errors I was having as that seemed the solution. In doing so I fixed my errors, however, I also lost the lineageOS I had on my phone previously and everything else.
I still have TWRP installed interestingly enough, however, I can't go into fastboot mode to flash a new lineageOS from my computer. I want to upload the lineageOS to the phone with the "ADB push" command however that does not work as it seems to lack privileges and the error it gives is "could not create file: No such file found" when I try to push the lineageOS .zip file onto the /sdcard.
When I try to go into "ADB shell" and change the permissions to the /sdcard, I get an error saying SU is not present or something to that degree.

Track Logs of installed apk in android

Im new to android development. I want to track logs in the testing devices, i googled it and i'm confused pls guide which is the correct way.
1. Can Log4j be used and save the logs in device sd card?
2. Firebase Analytics can be used? Is that free to use or paid?
3. Or any other tracking solution?
Guide me which is the correct way to track the logs. Since my app is based on notifications it behaves abnormal randomly in different versions and im not able to track the log
For that, you can use Logcat Extreame app. You can view per-app logs in it.
setup:
if your device is rooted you don't need to do anything special to get logs.
For unrooted devices, grant read_logs permission by following these
steps:
1) install ADB (Android Debug Bridge) on your computer
2) connect your Android device to the computer
3) open shell (Linux,Mac) or command prompt (Windows) and run the following command "adb
shell pm grant scd.lcex android.permission.READ_LOGS"
Logcat Extreme is free and even free of ads
You can use this command:
adb shell logcat YOURLOGTAG:I *:S
you can use Log from android.util, example Log.i (YOURTAG, "Hello")

Android .apk installation - Application not installed

I've installed the appropriate .apk file, however when trying to install it the app it gives me the error 'Application not installed'. I've tried to put a simple Hello World .apk file on there and I receive the same message.
Here's what I have tried:
1. Adding the following to Application Manifest
android:debuggable="true"
2. I have installed multiple File Managers including Astro, Android File Manager and ES File Explorer
3. I have enabled all of the correct settings on the Sony Xperia U (running Android 2.3.7)
4. Tried installation whilst the device is plugged in, and whilst it isn't
I'm using a Unsigned Android Application. Everything runs accordingly on the Eclipse emulator
Logcat is reporting the following:
This is displayed even when my device is connected via USB.
Locate your myapp.apk file on your hard drive:
Install it via command line:
C:\android\android-sdk\platform-tools\adb.exe install myapp.apk
List of connected devices:
adb devices
Connecting a device (if its number is 5554):
adb connect 127.0.0.1:5554
Restarting ADB:
adb kill-server
adb start-server
Your APK is having an expired or mis-configured certificate.
You need to resign the apk using the following tools.
https://play.google.com/store/apps/details?id=kellinwood.zipsigner2&hl=en
or
https://code.google.com/p/apk-signer/
Sign the APK with output filename as HelloWorld_signed.apk
Then go to my files you Will see your signed apk.
Install HelloWorld_signed.apk.
The app Will install successfully..
I believe there is a constraint of permission to prevent you to do so, I have worked around and find a simple solution for my Sony Xperia 1, OS version 5.1.1
Go through these steps:
Settings
Apps
Download Tab
Scroll down to find your app there
Press the menu and select Uninstall for all users

Android-SDK Error Device Not Found

I have been onto something in Android and it requires me to push some files in the adb. At first I pushed a file in the adb which worked fine but then after that as I tried to push other files in the adb it started to give me a device not found error. I tried killing the process both from the cmd and the Task Manager but it was of no help though after killing the server and again starting it the daemon is successfully loaded in port 5037. Though till now the project of mine works fine and the sdcard is read as I expect but I am hanged because no other files could be uploaded in the sdcard. :/
Thanks in Advance.
I had this happen with my Nexus 4.
I was following
http://developer.android.com/training/basics/firstapp/running-app.html
And I noticed that
C:\trythisworkspace>adb install bin\MyApp-debug.apk
error: device not found
error: device not found
error: device not found
- waiting for device -
^C
C:\trythisworkspace>
and
C:\trythisworkspace>adb devices
List of devices attached
C:\trythisworkspace>
So those are some symptoms for you
Go to device manager and see if like me you had a yellow exclamation mark
Download the google driver here and extract it
http://developer.android.com/sdk/win-usb.html
then go to the device with yellow exclamation mark and properties and update driver and...browse.. and point it to google_usb_driver\usb_driver
.
then it detected it and my device manager showed "Android composite ADB interface".
BTW, Android SDK manager has an option to install google usb drivers. it's possible it puts them in %userprofile%\AppData\Local\Android\android-sdk\extras\google\usb_driver
you could try pointing device manager to that if you find you have that directory.

Problem installing an app on a device - NO PERMISSIONS

I'm trying to install my test app on my device, but I does not go there.
I've also prepared my phones as described here: here
1 - In eclipse I see the device with '??????????' as ID.
2 - with adb device, I get:
List of devices attached
???????????? no permissions
I edited the /etc/udev/rules.d/51-android.rules....not sure what else to do?
3 - I copies the app to my SD card and tried to installed it from there ... but at a point the installation stopped and the message was 'Application not installed'
Also! The app gets intalled on my friends phone via eclipse?
Can anybody give me a hand with this???
Thanks!
Ensure your machine is connected to the Phone device correctly..
If the error persists, you can try restarting the adb server, using following commands:
adb kill-server
adb start-server
adb devices
If the error still persists, try restarting both your development machine and phone device.
I've seen that before when the user you are running as did not have permissions. If you're using Ubuntu try running adb via sudo:
sudo adb devices
If you're using another distro either try as root, or use sudo, accordingly. (Assuming you're using Linux, and probably Ubuntu, if you're in that part of the instructions on the page you linked -- but that info in the question would help too.)
Also make sure you're using the correct vendor ID for the device you're trying to use. The instructions show 0bb4 as an example only (that will only work for certain HTC devices). You can use the lsusb command to check to make sure you're device is detected by the OS, and get the correct ID.
lsusb
Bus 002 Device 100: ID 18d1:4e12 Google Inc. Nexus One Phone (Debug)
absolutely beyond my comprehension - the device got found (recognized) after deselecting the Settings > Applications > Development > USB debugging....
:) I signed with relief ...
Thank you very much for the enthusiasm and help!

Categories

Resources