Friday, March 4, 2016

Custom ROM starter template - Honor 5X KIW-L21 B130

Let's get some custom ROM tweaking going on for our 5Xs! :)

Ahead of my own MoDaCo Custom ROM for the 5X, which is coming soon, I've created a custom ROM starter template for anyone who wants to have a go. It's a bit different.

Basically, this ROM template will let you create your own custom ROM VERY easily. Easier than ever before. All you have to do is...
  • download my ROM template zip
  • make the changes to the system of your phone just as you'd like them for your custom ROM
  • run 2 commands on your device via ADB
  • add the 2 resulting files to the template zip
That's it! No messaging around with install scripts, no rebuilding anything complex, just mod - and go! ;)

Preparation

ONLY if you are completing the process for the first time, you need to set up a file on your microSD card - so launch and ADB shell and type the following commands...

Code:

touch /sdcard/exclude
echo app > /sdcard/exclude
echo priv-app >> /sdcard/exclude

ROM build

Once you have your system up and running how you want it, and you're ready to distribute it (just the system dir mind, it won't pull the data dir), launch an ADB shell and type the following commands:

Code:

tar -X /sdcard/exclude -zcvpf /sdcard/system.therest.tar.gz /system/
tar -zcvpf /sdcard/system.apps.tar.gz /system/app /system/priv-app

You'll then end up with 2 new files on your SD card - system.apps.tar.gz (which is apps and priv-apps from system) and system.therest.tar.gz (which, as the name suggests, is the rest!)

Update the template zip with these 2 files and that's it. It's ready to distribute for people to flash via TWRP! If you have updated the boot image, you'll need to replace that too, the easiest way is to do a TWRP backup then pull that file from the SD card and drop it into the template zip as boot.img. That's really it!

I hope this inspires a few people to start playing around with custom ROMs for the 5X... more cool things coming soon! :)

Oh and the all important template file...
P


from xda-developers http://ift.tt/1QSenNG
via IFTTT

No comments:

Post a Comment