简体   繁体   English

如何在未root用户的Android手机上“删除” sqlite数据库?

[英]How do I 'drop' an sqlite DB on an unrooted Android phone?

Before I found out about that adb shell doesn't have the permission to do much with /data/data I was using my unrooted Verizon Droid for development of a content provider. 在我发现adb shell没有权限处理/ data / data之前,我曾使用我的无根Verizon Droid开发内容提供商。 How do I get rid of the database I created there? 如何摆脱在此创建的数据库? Is my best option writing a small app that drops the database? 我最好的选择是编写一个可删除数据库的小型应用程序吗?

Any content in /data/data (or wherever else the permissions specify) can only be accessed by the application that owns those files (unless you specifically made something world writeable). / data / data(或权限指定的其他任何地方)中的任何内容都只能由拥有这些文件的应用程序访问(除非您明确地将其设为世界可写状态)。

I'm not sure about the situation you have here. 我不确定你在这里的情况。 You have a file in /data/data? 您在/ data / data中有一个文件? How was that created? 那是怎么产生的? Using an app you wrote? 使用您编写的应用程序? If you uninstall that app (adb uninstall com.package.app), all data in /data/data that belongs to this app will be destroyed as well. 如果您卸载该应用程序(adb卸载com.package.app),则/ data / data中属于该应用程序的所有数据也将被销毁。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM