简体   繁体   English

可以清除其他应用程序数据库的Android应用程序

[英]Android Application that can clear another applications database

I have a suite of apps and would like a master application that can clear the data of the other applications and reset them back to factory state. 我有一套应用程序,想要一个主应用程序,它可以清除其他应用程序的数据并将其重置为出厂状态。

I have investigated online, and many solutions mention that a device should be rooted to be able to do this. 我已经在网上进行了调查,许多解决方案都提到应该扎根设备才能做到这一点。 But unfortunately, in my case, this is not possible. 但不幸的是,在我看来,这是不可能的。

Is it possible for an Android application to be able to clear another applications database without running on a rooted device? Android应用程序是否可以清除另一个应用程序数据库而无需在有根设备上运行?

No need to root a phone/tablet. 无需扎根手机/平板电脑。 Basically, all you need is to send intent from your master application to any of your other application, which would "ask" to clear a database, and handle those intent, and clear the database obviously. 基本上,您所需要做的就是将意图从主应用程序发送到其他任何应用程序,这将“询问”以清除数据库,并处理这些意图并明显地清除数据库。 Here's a link to android docs how to do this link (I assume that you're developer of both the master application and the "suite of applications" too.) 这是一个指向android docs的链接,该链接如何执行(我假设您同时也是主应用程序和“应用程序套件”的开发人员。)

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

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