1
votes

Getting error as : unable to open database "/data/data/com.android.providers.settings/databases/settings.db": unable to open database file

when i try to change the mobile network via adb using command
adb shell sqlite3 /data/data/com.android.providers.settings/databases/settings.db "update global SET value = 1 WHERE name = 'preferred_network_mode'"

1

1 Answers

0
votes
    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/