question

Wobbles avatar image
Wobbles asked

adb install gives "permission denied"

Hello, I'm trying to run a simple hello world program on my Kindle Fire HD (2nd Gen). However, whenever I try the "adb install " command I get a "permission denied". For example, running: adb install HelloNDK.apk returns... failed to copy 'HelloNDK.apk' to '/data/local/tmp/HelloNDK.apk': Permission denied rm failed for /data/local/tmp/HelloNDK.apk, No such file or directory It also fails when trying to use Eclipse to run it: [2015-01-05 23:37:43 - HelloNDK] Failed to install HelloNDK.apk on device 'D025A0A0239201RW': Permission denied [2015-01-05 23:37:43 - HelloNDK] com.android.ddmlib.SyncException: Permission denied [2015-01-05 23:37:43 - HelloNDK] Launch canceled! The directory exists and I can copy the APK to the directory using Windows explorer with no issues. I can also browse to it using the Kindle Fire file explorer and tap on it to install it. The app then works. Why can't I install using adb? Thanks for any help you can give.
fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Nick Gardner avatar image
Nick Gardner answered
Hi, Is your tablet rooted by any chance? That could be one possible cause of the error. I'd also double check by using adb devices that the device is seen by adb as online.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Wobbles avatar image
Wobbles answered
Hi Nick, Thanks for your reply. Running adb devices shows the device as online, I just can't install anything. It's possible the tablet has been rooted in the past., is there anyway to check this? Also, if it has been rooted, is there anyway to reset the device to get rid of rooting? Thanks for your help. Colin
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

DougM@Amazon avatar image
DougM@Amazon answered
Hello Colin, Generally the easiest way to check as to whether your device has been rooted would be to check for the 'su' and 'sudo' commands after you execute adb shell. Although, StackOverflow actually has a post specifically speaking to the issue that you are experiencing. Have you tried the default.propchange that are recommended at : http://stackoverflow.com/questions/7469785/permission-denied-error-while-installing-apk-on-device As of yet? While we don't support rooting devices directly, unfortunately doing so doesn't leave a lot of options for us to give you guidance. I would suggest attempting this change on your device or try reading the original Google Groups thread at https://groups.google.com/forum/#!topic/android-platform/qNn1fstjFok for guidance as to how to restore permissions on your device.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Wobbles avatar image
Wobbles answered
Hello Doug, Thanks for this information. I've tried using su and sudo but neither command is recognised: C:\Windows\system32>adb devices List of devices attached D025A0A0239201RW device C:\Windows\system32>adb shell shell@android:/ $ su su /system/bin/sh: su: not found 127|shell@android:/ $ sudo sudo /system/bin/sh: sudo: not found 127|shell@android:/ $ I'm not sure if this means the device isn't rooted or if these commands just aren't available. I suppose without root access I can't change anything. Does this mean I'm stuck with the device as it is? Thanks for your help.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

DougM@Amazon avatar image
DougM@Amazon answered
Unfortunately, this issue will most likely require the assistance of Amazon Customer Service to assist you. Here is a link for your convenience. http://www.amazon.com/customerservice
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.