android 中permission denied

来源:互联网 发布:淘宝儿童女装女模 编辑:程序博客网 时间:2024/05/02 12:59
Hi all--in need of some help here--have been crusing the forums for three days and still hitting a brick wall...

Have a rooted (and minimally modded) Atrix 4g in serious need of a hard reset and all the pain that comes with as nearly every app force closes on startup.

Hoping to backup some of my data (contacts, SMS, etc), but unable to do so my usual way (an app, root explorer, or the like), so I'm attempting to use ADB pull to grab the .db files. I'm relatively comfortable with linux, but running into a problem with ro/rw permissions (I think).

have tried the following:
adb pull /data/...../mmssms.db (yields Permission Denied)
# cp /data/....mmssms.db (appears to copy, but no file in destination, and can't copy out of shell)

have been able to remount /system as rw, but not /data where the files are located.

Anybody have suggestions? I'd be most apprecative!


————————————————————

You should be able to use su without superuser.apk's permission in that case - however, theoretically, you should not need to use su in recovery anyway.

you can try running

Code:
adb shell ls -l /data/data/*tele*/databases/mmssms.db
and see what you get permissions wise, maybe a chmod could fix it?

Otherwise you could try
Code:
adb shell mount -o remount,rw /data
Another alternative to cp and adb pull is cat

Code:
adb shell cat /path/to/mmssms.db > /path/to/destination-file.db
might copy remote mmssms.db to a local file, while
Code:
adb shellcat /path/to/mmssms.db > /path/to/destination-file.dbexit
would copy remote to remote

Is /data mounted at all?

This is strange, you should have read access to everything, especially in recovery.

What phone and what recovery?

Its not something as simple as geting the URIs the wrong war round ('cmd local remote' vs 'cmd remote local')?



原创粉丝点击