Pre-define System Settings Before Flashing and/or integrate DroidWall

redplate

Senior Member
Feb 8, 2009
858
244
73
Hi, i want to know if it is possible to pre-define settings like mobile data (off) or account sync (off) or any other before flashing? Is there a file which i could edit?

Oor if this isn't possible, whats about to integrate DroidWall into system? Status should be enabled(requires root permission). Rules aren't important since DW blocks every activity from the start.

The thing is, every time i flash a ROM and type in my PIN, android activates mobile data automaticly and sends some bytes. I simply want to stop android from doing this.

Actually i am using the latest ICS build.

I appreciate any suggestions.

Edit: You also can find the thread here:

http://forum.xda-developers.com/showthread.php?t=1490782

Sent from my HTC HD2
 
Last edited:

kylew1212

Senior Member
Dec 1, 2011
485
281
0
Alabama
www.memoryx2.com
Hi, i want to know if it is possible to pre-define settings like mobile data (off) or account sync (off) or any other before flashing? Is there a file which i could edit?

Oor if this isn't possible, whats about to integrate DroidWall into system? Status should be enabled(requires root permission). Rules aren't important since DW blocks every activity from the start.

The thing is, every time i flash a ROM and type in my PIN, android activates mobile data automaticly and sends some bytes. I simply want to stop android from doing this.

Actually i am using the latest ICS build.

I appreciate any suggestions.

Edit: You also can find the thread here:

http://forum.xda-developers.com/showthread.php?t=1490782

Sent from my HTC HD2
Are you wanting to completely turn off mobile data?
 

redplate

Senior Member
Feb 8, 2009
858
244
73
Are you wanting to completely turn off mobile data?
For example I want to prevent android activating mobile data by typing in my pin after fresh rom install, if you know what i mean. So ofc i should be still able to switch it on if needed.

I just want to set a few system settings before flashing. Like Accounts & Sync off and GPS Satellites off.

Xylograph told me he hasnt seen any option for it yet, but if there is any it might could be stored in /data/data or /data/misc



Sent from my HTC HD2
 
Last edited:

redplate

Senior Member
Feb 8, 2009
858
244
73
i did a little research and found following:

for predefining Systemsettings:

/data/data/com.android.providers.settings/databases

there is a settings.db which changes in realtime if i change any systemsettings like bluetooth or wifi or gps. if you open it there are some sub entries. the systemsettings are in settings.db/secure and /system

i ll try to set up my rom now like i want, copy then the file and paste it in a romfile with the same dir location. lets see if this works after flashing. the settings.db file can also be edited.

for DroidWall integration:

also for DroidWall i will create folder for

/data/app/com.googlecode.droidwall.free-1.apk
/data/dalvik-cache/[email protected]@[email protected]
/data/data/com.googlecode.droidwall.free/and all files/folders in it
/data/user/0/com.googlecode.droidwall.free/and all files/folders in it

the only problem i think i will have is the root persmission per superuser. i need a config file for superuser but i havent found any.

i hope the dalvik-cache file will help

[email protected]@[email protected]

EDIT:

Doesnt work. None of the two.

Android just ignores the settings.db after first start and therefore all predefined settings like GPS and so on.
I am thinking about to set the permission for settings.db readonlny, before flashing.

And DroidWall have no Rootpermission. And superuser doesnt ask me for root if i restart DroidWall.
I think to get DW working i need to predefine Superuser. But i dont know how.
 
Last edited: