android - changing the system settings of a rooted device from inside the app

前端 未结 3 1490
我寻月下人不归
我寻月下人不归 2020-12-13 22:51

I am trying to change the sms limit described here from inside the app. The app is assumed to be running on a rooted device. I\'m using the RootTools to check if the device

3条回答
  •  春和景丽
    2020-12-13 23:27

    I got this solved by doing this:

    • copy the /data/data/com.android.providers.settings/databases/settings.db to my application folder /data/data/my_app_directory/.
    • update the table in the database using the SQLiteDatabase class.
    • copy back the database from /data/data/my_app_directory/settings.db to /data/data/com.android.providers.settings/databases/

    The copy operations were done by using RootTools.sendShell

提交回复
热议问题