Skip to content

Tools for putting custom ROMs on a Motorola Droid 4 (XT894)

Notifications You must be signed in to change notification settings

timangus/droid4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Various hacks for the Motorola Droid 4 (XT894)

factory-flash

A simple script that will restore to factory state given the relevant firmware zip file.

root

A script to root a factory flashed device.

altpart-safestrap

This is an alternative SafeStrap that makes use of the unused /webtop partition and repurposes it as the /system partition. This alleviates the issue where the original /system is not large enough to contain a more modern ROM with a gapps package.

After installing the replacement recovery you will find an extra option on the slot selection UI; Webtop -> System. Selecting this will use /webtop as the /system partition when installing. Please note that all the other partitions stay the same and are not altered from their stock configuration. This is a key point because it means that the new slot is not a slot in the usual sense in that except for /system, all other partitions are shared with the stock slot. In order words, attempting to use the stock slot and the Webtop -> System slot at the same time is highly unlikely to work and should be avoided.

In order for a ROM to boot from the /webtop partition, it must first be patched so that it recognises the new slot configuration. A script is provided patch-rom.sh which when invoked with a zip file such as lineage-14.1-20170405-UNOFFICIAL-maserati.zip, will produce an altpart-patch file in the same directory. This much be flashed immediately after the main ROM zip, or the ROM will not boot.

Many thanks to Mentor.37 for the unused partitions recovery that served as a great reference as to how to make use of the webtop partition.

Please note this recovery should be considered highly experimental and may brick your phone and/or eat your dog etc.. Having said that I've been using it for the past few days and it seems to be working fine. All the scripts have been developed on Linux to run on Linux, but there is no intrinsic reason why they shouldn't work fine under cygwin/git bash/Ubuntu for windows etc., but I have not tested any of this. Patches welcome :).

Finally, contained in this repository are a build of the modified SafeStrap and a patch for the latest Lineage ROM mentioned above. I'm not 100% on the intricacies of the legal position over distribution of these so if anybody thinks it's an issue let me know and I'll take them down. Don't see why though, really. In any case, the scripts can be used to rebuild the recovery and the patch as required.

About

Tools for putting custom ROMs on a Motorola Droid 4 (XT894)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages