Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Permission Denied' error while installing apk on device

When I use Eclipse to deploy an Opengl ES app to device I get following error

[2011-09-19 15:56:40 - SimpleCube] Failed to install SimpleCube.apk on device 'S5830bfcc8426': Permission denied
[2011-09-19 15:56:40 - SimpleCube] com.android.ddmlib.SyncException: Permission denied
[2011-09-19 15:56:40 - SimpleCube] Launch canceled!

It used to work before. But now I flashed my phone with GingerReal 1.2 ROM and when I try to run the app it gives out this error.
I have enabled 'Unknown Sources' and 'USB Debugging'.

EDIT: Dunno whether this helps.. but i tried using "adb install" directly. But still it failed. I got the following:

sinu@ubuntu:~$ ./adb install /home/sinu/programs/SimpleCube.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
failed to copy '/home/sinu/programs/SimpleCube.apk' to '/data/local/tmp/SimpleCube.apk': Permission denied
like image 962
sinujohn Avatar asked Feb 03 '23 13:02

sinujohn


1 Answers

I had the same problem so i checked this folder /data/local/tmp and discovered it didn't have r/w permissions for everyone:
drwxrwx--x shell shell 1970-01-02 03:21 tmp
A simple 'chmod 777 tmp' fixed it, so now i can freely debug from eclipse.
I'm not sure if this relevant for other people because i was working on a beta release of some vendor's device.

like image 121
thedawn Avatar answered Feb 12 '23 09:02

thedawn