[Miscellaneous Android Development] rootdefyxt320:
Motorola Fire XT530/XT531 USB Tethering Fix not for XT532!

Ok, I have investigated how SUTLR patches ROM with the help of aweosomeabhjeet in December last year.

Apparently NvDefinition.XML has screwed up permissions for USB Tethering.

SUTLR patches your adbd to be insecure. That's why we have to reflash boot.img.

Sorry, I don't own a Motorola Fire XT530/XT531 so I can't try script.

This script is only for Windows :)

I've made a script to fix Motorola Fire XT530/531 USB Tethering Fix.

Only do this if you have problems with USB Tethering.

WARNING: I'M NOT RESPONSIBLE OR LIABLE IF YOUR GETS DAMAGED!!

Please read this sentence before continuing on!

You will lose all userdata!!!!!!!! BUT you WON'T lose root! (we're not flashing anything to system partition)

Please make a nandroid backup via CWM incase the process goes wrong.

This will flash boot.img to the boot partition, flash hidden.img to the hidden partition and flash flex.img to the flex partition.

The img files are from stock XT530/XT531 sbf.

You will also now have different Baseband.

All packages contain Froyo Kernel not Gingerbread Kernel therefore this script is not for Motorola XT532.

Method:

1. Download the packages you require: (You don't need to download all unless the problem still persists then download other packages to try.)

European XT530, Android 2.3.5, DMP-4480-0-4017-A01_RFM:http://www.mediafire.com/?wdvu83n07icl7dv

Entel XT531, Android 2.3.4, DMP-4410-0-2026-A03_RFM: http://www.mediafire.com/?tzdapqd9294qf9k

Entel XT531, Android 2.3.5, DMP-4540-0-2026-A02_RFM: http://www.mediafire.com/?119i7585kbto9cr

Claro XT531, Android 2.3.5, DMP-4480-0-2003-A07_RFM: http://www.mediafire.com/?hp742hajzqcp1ft

Claro XT531, Android 2.3.5, DMP-4480-0-2003-A08_RFM: http://www.mediafire.com/?ravhr4n2rwrj4rx

2. Extract zip file making sure all the files are in the same folder.

3. Make sure USB Debugging is enabled.

4. Make sure CWM is installed. If not, please go to here for CWM http://xdaforums.com/showthread.php?t=1997638

(If you are on XT530/XT531 custom ROMS, there is already CWM installed.)

5. Make nandroid backup before running this script.

6. Run the .bat file.

7. After the .bat file finishes, boot into CWM and fix permissions by going into Advanced then Fix Permissions.

8. Complete!

*Confirmed by aweosomeabhjeet that European stock ROM even unrooted and unpatched with SUTLR and sbf flashed twice the usb tethering problem still persists.

Please report to me the results. And don't blame me if you lose all your data as I have clearly stated to make a Nandroid Backup in step 5. :)

In case your phone gets bricked, please refer to aweosomeabhjeet's guide to unbrick your phone.

http://xdaforums.com/showthread.php?t=1920446

If your wondering how I have managed to extract the files this is the steps:

1. I used MotoAndroidDepacker.

2. I splitted the SBF

3. I then used CG2 Extractor and extracted CG2.smg

4. I found flex.img and hidden.img

5. I renamed bootsec.mbn to boot.img

Source: http://xdaforums.com/showpost.php?p=36404701&postcount=4

At the bottom I've also attached a double wipe edition if one wipe is not enough. Just extract the file out of the zip and put the .bat file in the same place as the other files are.

Thank You :)