/xt720opt

Optimizations for Motorola XT720

Primary LanguageShell

Motorola Milestone XT720 optimization script

Purpose

This project provides some scripts and replacement files to optimize the Motorola Milestone XT720. This was based on the Apps2SD, Link2SD modifications.

The boot up script is not intended to get your previously installed apps working again, the main purpose of the change was to make sure if you change your SD card you don't have to do a recover.

Please note that unlike the apps2sd code, this is an ALL OR NOTHING script. It was meant to do a quick fix in case I made a mistake and had to RSD Lite my phone from scratch again. Thankfully with OpenRecovery the amount of times I had to do that since was reduced to zero so the install script is not really well tested now.

Purpose

The main problem I had with the Apps2SD code which was fixed with other tools such as Link2SD and App2Card is that removing or changing the SD card may cause the phone to go on a boot loop. I have since made fixes to prevent that.

The changes are in the following file pkg/system/etc/install-recovery.sh This gets put into /system/etc/

Also the mot_boot_mode has to be reverted back to the orignal file. If you used the apps2sd script that would be the mot_boot_mode.bin

I am also using ext3 as the file system. However, I am adding some detection to make sure that if the ext3.ko and jbd.ko files are not present in the proper folder, but the ext2.ko file is that I would still boot the ext2.ko as needed.

Other methods of moving apps to SD.

After trying out Link2D and Apps2Card, I decided the best way in terms of stability and usability for me was the Apps2SD approach where the data is just moved to the card and soflinks are provided. It's main problem was stability when the card was removed, but since apps2sd was a pretty simple solution to begin with and understand I just used a bit of shell scripting to fix that gap.

Warnings

  • This is designed primarily for WIND Mobile users of the XT720 [currently only I am the only one I personally know who is insane enough to have one]
  • I have not merged apns-config.xml which only contains WIND with other providers.
  • You must remove Apps2Card or Link2SD. This is only meant for Apps2SD users or base firmware users only.
  • If you don't have OpenRecovery installed, I don't suggest you do this.
  • Please note that this may brick your phone. In which case you need to reflash it using an SBF.

Usage

  1. Before you use this, install OpenRecovery first.
  2. Although this would be running in adb shell mode while the phone is running, I would recommend any setup scripts be run in OpenRecovery mode. Otherwise you may get weird reboots when you least expect it.
  3. Run 'update.sh' this will set everything up for you.

[[TODO]]