[Atrix 4G Android Development] crnkoj:
Hey, guys after hours of thinkering it seems i devised a fix (at least a temporary, i guess it can be better implemented), but still wifi works with turned on radio.

I will not be doing any scripts or whatever.

DISCLAIMER

THIS IS ALL ON A BASIS OF INFORMING PEOPLE

I AM NOT RESPONSIBLE FOR ANY DAMAGE, LOSS OF DATA, OR BRICKED DEVICES IN CONJUNCTION OF TRYING OUT THESE STEPS

DO IT ON YOUR OWN RISK.

K now the requirements:

1. nonworking sim card (or att sim card)

2. RSD lite 5.0

3. stock 4.1.2.6 SBF flash file

4. Installed drivers on the computer for rsd

5. GladRoot http://xdaforums.com/showthread.php?t=1016060 than you very much Ririal

6. OTA update

7. Working adb shell (there are other ways too but i prefer this one so ill write how i did it)

8. SQL editor, i used SQLite database browser (get it online its freeware)

9. titanium backup (if you wish to backup things, YOU MUST NOT RESTORE the [SETTINGS/BLUETOOTH] Settings Storage 2.2.1 however.

10. turned debug mode on when using adb

The process:

1. backup your data

2. Flash the stock image with RSD lite as its written here http://xdaforums.com/showthread.php?t=991072 thank you kennethpen

3. put in the nonworking/att sim turn on the phone use wifi to configure motoblur

4. do not download the update yet

5. obtain root as described here, use the 1.5.7 method tho since we will be updating the ota http://xdaforums.com/showthread.php?t=1016060

thanks again ririal

6. download and install ota update

7. do the afterupdate with the GladRoot

8. still on wifi, set up google account, update market gmail etc.

9. use adb/root explorer to copy the /data/data/com.android.providers.settings/databases/settings.db file to your sdcard into a directory you made before (name doesnt matter) example:

adb shell
su
cp /data/data/com.android.providers.settings/databases/settings.db /sdcard-ext/test

10. put phone into airplane mode, turn off phone

11. put in your sim card, turn on

12. let it boot and wait a min or two

13. before sliding press and hold the off button and choose airplane mode (it is IMPERATIVE that airplane mode is turned on)

14. sign into motoblur again (wifi should still work - turn it on tho since your in airplane mode)

15. repeat step 9 but copy to a second directory (lets say test1)

16. turn airplane mode off - you will loose wifi and sign into motoblur again

17. repeat step 9/15 but copy to a third directory (lets say test2)

18. copy the files from test2 and test1 to your computer - obviously to two different folders (use mass storage setting or adb pull)

19. open up the settings.db with sqlite from the not working config (in our case the one in test2) go to browse data and table secure

20. find the entry wifi_country_code and the value will be the one of your country (at least so it was with me), change that value by double clicking on it to US

21. Save the file

22. copy to your sdcard via usb to a directory lets name it "works"

23.turn off your phone, and put in the nonworking/att sim card, power it up

24. register motoblur again blah blah (ye its annoying there are ways around but that comes later and we needed it for the ota update)

25. turn the airplane mode off (its imperative to do so)

26. now we use adb again:

adb shell
su
cd /data/data/com.android.providers.settings/databases
rm settings.db
cp /sdcard-ext/works/settings.db .
chown system settings.db
chgrp settings.db
chmod 440 settings.db
cd ..
chmod 555 databases

exit adb shell with ctrl+d (in linux dont know about windows)

27. turn off phone, put in your sim card, turn on phone, register motoblur

28. most probably wifi will work for a moment than it will stop working and youll get a notifiaction lost data connection and something on (at least so it was for me)

29. use the wifi toggle on/of button to turn off and on the wifi a few times, than at the third or fourth time turn it off than on than immediately go into the browser and click on refresh as soon as you see the wifi icon in the notification tab. WiFi should work now, you can even turn it off and on with the wifi toggle button and it still works.

30. ANOTHER WARNING THO, THERE ARE QUITE SOME DRAWBACKS TO THIS METHOD (WHICH I HAVENT DISCOVERED ALL YET, TO BE HONEST BUT IM SURE THERE ARE QUITE SOME - SINCE WE DO NOT ALLOW THE SYSTEM TO EDIT THE SETTINGS.DB ANYMORE - BY CHMODDING THE PERMISSIONS), AN ISSUE I SAW IS THAT YOU CANNOT GO INTO AIRPLANE MODE ANYMORE - that is because the airplane mode state is saved in the same settings.db as the setting that blocks wifi, and if you just change that one and dont write protect the file and the databases folder the system just overwrites it again, so for now this is it.

AGAIN this is all on your own RISK, i cannot bi liable for anything out of the ordinary that happens, damages or whatsoever your phone or even you.

So now im awaiting responses if it works for you guys.

Oh and a few of the steps are just for backup purposes :)

Many thanks goes to Azuzu aswell, he was of great help all the time.