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.
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
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.