开发者

'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 *
* da开发者_运维百科emon started successfully *
failed to copy '/home/sinu/programs/SimpleCube.apk' to '/data/local/tmp/SimpleCube.apk': Permission denied


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.


Okay solved it.. it apparently occurs because adb daemon can't run as root- http://groups.google.com/group/android-platform/browse_thread/thread/a8d9f57ecb631689 So change

ro.secure=1 

to:

ro.secure=0 

in /default.prop
It solved this problem. But i got several others following it and I suppose it has got something to do with the ROM

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜