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

解决方案

I figured it out.

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

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐