I want to detect any change (insert/update/delete) in a 3rd party SQLite table of my device and communicate these changes to an external Rest API.
My device is rooted and I'm trying to implement a Sync Adapter for sending those changes to the API.
These are my questions:
- If I ask for android.permission.ACCESS_SUPERUSER permission in the manifest, can I load any database of my device?
-
Can I create a Content Provider for this table using an URI like this one:
URI_MY_TABLE = Uri.parse("sqlite:/data/data/com.my_package/my_db/db.db");
Aucun commentaire:
Enregistrer un commentaire