Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot adb pull database even after chmod 777 on my device

Tags:

android

adb

I am unable to pull a the database from the device even after changing the permission. I have a rooted phone. It used to work. I could pull before. For some unknown reason now I cannot.

The error I receive is remote object '/data/data/com.thuptencho.transitbus/databases/ttc.db' does not exist

Does anybody know why this is happening? Below is what I did in command window.

C:\users\thupten>adb shell
shell@android:/ $ su
su
root@android:/ # cd /data/data/com.thuptencho.transitbus/databases/
cd /data/data/com.thuptencho.transitbus/databases/
root@android:/data/data/com.thuptencho.transitbus/databases # ls
ls
ttc.db
ttc.db-journal
webview.db
webview.db-journal
webviewCookiesChromium.db
webviewCookiesChromiumPrivate.db
root@android:/data/data/com.thuptencho.transitbus/databases # chmod 755 ttc.db
5 ttc.db                                                                      <
root@android:/data/data/com.thuptencho.transitbus/databases # chmod 777 ttc.db
7 ttc.db                                                                      <
root@android:/data/data/com.thuptencho.transitbus/databases # exit
exit
shell@android:/ $ exit
exit

C:\users\thupten>adb pull /data/data/com.thuptencho.transitbus/databases/ttc.db
remote object '/data/data/com.thuptencho.transitbus/databases/ttc.db' does not exist
like image 296
Thupten Avatar asked Jul 24 '13 23:07

Thupten


2 Answers

I using these commands to get data from /data/data folders, no changing permission required

adb kill-server
adb root
like image 154
ar-g Avatar answered Sep 20 '22 16:09

ar-g


I figured it out. I had to chmod the databases folder as well and then the file.

like image 39
Thupten Avatar answered Sep 21 '22 16:09

Thupten