Dual boot roms on your Moto C and a short tutorial

Dual boot patcher

 Have you ever thought about dual booting roms on your android device?

Dual boot can be of a great use for roms geeks; people who love to try and test a new rom from time to time, but it is really painful when you have to backup your data every time, and backup every single app, like whatsapp and similar apps using titanium backup and move to a new rom then you restore everything back... ops! but you didn't like the new rom after using it for a short while.
In another scenario you have two favorite roms and want to switch between them, you love to use different features on different roms, or you love to keep your stable stock rom, and play with a secondary rom.. your solution is dual boot patcher app.

For me, and other developers/porters who are working on roms this app is very useful; can you imagine how many attempts we made to bring a stable rom to the users? how many time I test a single rom on my device after doing modofications? I will leave this to your imagination :P In that time I wasn't able to use my phone and I might miss an important call or a text message, here dual boot patcher becomes handy and useful.

So, when I found this app is very useful, back on 7th August 2017 I  started a project to bring dual boot patcher to mediatek devices, mainly focusing on MT6580 chipset, but I added support to other chipsets too and snapdragon devices. you can view my XDA thread here → Dual boot patcher for MT6580 , I used to receive a pm on XDA or a request on the thread itself and I build for them. 

Adding support is actually very simple, it might be difficult for noobs though :P if you passed by this page and would like to add support for your device, I'm going to explain that briefly without talking about details:

1. Visit github and fork dual boot patcher source code
2. Browse in data/devices , if your device brand is not there you will have to create example.yml , if it is there you will have to edit it, to add your device model.
3. Then you will have to create something which looks like this:

If you are good in observing you will understand what you will have to do, and that's what I did, I taught myself; in the beginning you have to type your device name, ID, then codenames, do I need to explain that? easy huh? then define your CPU architecture mine is arm 32 bit, so I wrote armabi-v7a, and for arm 64 bit you will have to write arm64-v8a
For the "block_devs" part you have to find your device mount points, an easy way is to use an app like disk info pro
And now you have everything ready.
4. Next you have to edit CMakelists.txt and type your device.yml there in alphabetical order, if it is already there, skip this step.
5. Now it is time to build, the easiest way for you is to make a pull request and wait for the developer to merge your device, sometimes he merge it after a month and you will have an official release.
But if you don't like to wait and want to have it now, why not try to learn Travis? just read and understand the docs, then build and deploy without downloading anything on your computer, if you want to try, use my travis configuration from here → travis configuration it will help you a lot.

Ah.. That was a long introduction, probably Moto C users just want the dual boot patcher, I made a pull request to support the device officially, and it is already merged.
So just go to the official web page and download the latest release.

Enjoy :D
 

No comments:

Post a Comment

[INDEX] Roms. recoveries, & apps for Moto C

Here is a collection of all my work for Motorola Moto C 4G model XT1754 codenamed namath Roms: LineAge 14.1 ViperOS Dot OS Resurrectio...