I know the command to configure the proxy settings:
adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db "\"INSERT INTO system VALUES(99,'http_proxy','[HOST]:[PORT]');\""
But I want to configure this through the code.
Here is what I am doing
SQLiteDatabase db=SQLiteDatabase.openDatabase("/data/data/com.google.android.providers.settings/databases/settings.db", null, SQLiteDatabase.OPEN_READWRITE);
db.execSQL("INSERT INTO system VALUES(99,’http_proxy', 'host:port)");
But I am constantly getting the Exception cannot open the database.
Can anybody tell me where I am doing wrong.
Also I read somewhere that Android does not allow you to access settings.db outside the data/data/com.google.providers.settings package. Is that true??


