FORUMS
Remove All Ads from XDA

[PATCHER][APP][OFFICIAL] Dualboot/Multiboot For Nokia X/XL

1,176 posts
Thanks Meter: 1,369
 
Post Reply Email Thread
Logo
I am proud to present the first dual boot project for the Nokia X/XL/X+ (normandy) .This will allow any number of ROMs to be installed at the same time. It works by patching the secondary ROM's installation scripts and boot image to load the ROM files from an alternate location (/system/multiboot, /cache/multiboot, and /data/multiboot). Because of the way this is implemented, no changes to the primary ROM are necessary

What is DualBootPatcher?
DualBootPatcher is an open-source app that allows multiple ROMs to be installed on a single Android device. It does its best to work with existing code and does not require explicit support from ROMs. There are currently 198 supported devices and their variations.

Information:
I have managed to support for Nokia X/XL/X+ to the DualBootPatcher App, I am not the creator, just the supporter.
It's awesome and useful for testing out roms or if you want, switching ROMS.

Disclaimer:
Code:
Your warranty is now void.
I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in this ROM before flashing it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
Requirements:
1. A Custom Recovery (Tested using TWRP 3.1)
2. A ROM
3. Dual Boot Patcher app and the DualBootUtilities.zip from the download section below.

What does the app do ?:
It patches...
  • Custom kernels for dual boot support
  • ROMs so that they can be installed as secondary
  • Google Apps packages for AOSP-based ROMs
  • SuperSU so that it can be used in the secondary ROM

What's supported ?
Quote:

Except Toaster and Alarm clocks pretty much everything is supported.

How to use the App?
Before you start using the app, take note of these:
1- You must have re-partitioned storage (1gb system + 2gb data), we are taking about Dualboot on 4gb emmc
2- Before you start, it's important to change ro.product.device value to "normandy" without quotes in your build.prop, if you don't do this, you can't use the app.
3- You must be on KK ROM or higher to use this app (primary ROM), but you can use any ROM (JB/KK/LP/MM) as secondary ROM.
Now, you can use the app:
1- Download, install and open the app.
2- Swipe to the right to open the menu. Click "ROMS". Now if this is the first time you use it, it will ask you if you want to set kernel. Do so!
3- After it has finished go to ROM Settings (primary ROM 3 dot menu) and select Update Ramdisk. It will update it and will ask you to reboot. Press Reboot Now.
4- Now Download any ROM you like and open the app again and open the menu and open Patch Zip File from the menu. Ensure that your Device is set to "normandy" and under Partition configuration select secondary (will install 2nd ROM in /system) or data slot.
- I did't test booting from ext-sd card, so if you will do it I'M NOT RESPONSIBLE of any possible BRICKS!
5- Click continue and select where to save the patched file.
6- You should see the file is being put in "Queue". Just click the confirm button to the upper right.
Note: If you want to go back, just swipe the ROM in queue to right and start over.
7- The app will patch the zip. When done, go back to "ROMs".
8- Click "Flash zip files" (the big pink button on the lower right). Click the pink plus button to add your previously patched zip file.
9- Locate the file you have patched in step 7. Unless you have changed the name there, it should be something like ROM_name_partition_config_ID.zip (like AOSPA_4.4.4_NOKIA_XL_UNOFFICIAL_BY_YSH_dual).
10-Click on that file and choose "Keep location". Now confirm the flash with the button on the upper right side.
Note: You can also install the patched zip files in recovery.
11- It will now open the terminal and begin flashing the file. This requires some patience. After it has flashed the file you'll see success message in green.
11- Now click back and you should see your newly installed ROM along with the Primary ROM.
Note: You can find more options by clicking on the three buttons on each ROM.
12- Now reboot and wait till finishing 2nd ROM first boot. if ROM was 4.4+ install DualBootPatcher apk so you can easily switch ROMs, if not there is another way to change ROMs: flash DualBootUtilities.zip and switch ROM manually.
13- return back to your primary ROM, open app then select settings and press install (update) bootui. then Swipe to the right to open the menu. Click "ROMS" again and open secondary ROM Settings) and select Update Ramdisk.
14- Now you can change ROMs simply using boot ui (some thing like grub bootloader but it works like twrp)

Partitions Configurations:
The patcher offers several locations for installing ROMs -but i recommend only /system and /data-:
  • Primary: This is normally used for installing a zip to the primary ROM. It is not required, but is strongly recommended because it has code to prevent the zip from inadvertently affecting other ROMs.
  • Dual: Dual/Secondary is the first multiboot installation location. It installs to the system partition. This is a good spot for installing a second ROM because it doesn't take any space away from the internal storage. (The best choice for normandy)
  • Multi-slots: There are 3 multislots: multi-slot-1, multi-slot-2, multi-slot-3. These install to the cache partition. This is specifically for devices, like the Galaxy S4, that have a massive cache partition. Our normandy's cache partition is about 100MB which is not enough to install a ROM on.
  • Data-slots: There can be an unlimited number of data slots. These install to the data partition and eat up space on the internal storage. This is useful for devices where the system partition is nearly full and the cache partition is tiny. These slots are named "data-slot-[id]", where "id" is something you provide in the app.
  • Extsd-slots: There can be an unlimited number of extsd slots. These install to the external SD card, which is useful as it keeps the ROMs off of the internal storage. Note that the ROM's data files are still stored on the data partition.

How to boot to another ROM ?
This is simple ... There is no reboot to primary, secondary or whatever. So all you have to do is:
1) Go to ROMs section of the App.
2) Click on the ROM you want to boot to. You should see "Switching ROM" message. After few seconds, you should see a report message saying that "ROM successfully switched".
3) Now just do a normal reboot of your device. See the magic! It should boot to the ROM you have switched on step 2.
Note: You can find more options by selecting the three buttons on each ROMs (like creating reboot widgets for directly rebooting to specific rom).
You also need to install the App to all of the ROMs you install. Otherwise, you want be able to boot to other ROMs!

Apps and Data sharing:
Quote:

DualBootPatcher very recently got support for sharing apps and their data across ROMs. Maybe sharing is somewhat of a misleading term. The feature actually makes Android load the shared apps and data from a centralized location, /data/multiboot/_appsharing. So you're not sharing apps from one ROM to another per se. The ROMs are just loading the apps from one shared location. Let me make this clearer with an analogy.

Think of the people in a company office as ROMs. You want to share with your coworkers some documents (apps). Instead of telling them to come over to your desk to see those documents (sharing apps from one ROM to another), everyone goes to the conference room to look at the documents together (loading apps from a shared location). That's how app and data sharing is implemented.

To use app sharing, follow these steps in every ROM that you want to use app sharing: (doesn't work with JB ROMs)
  • Install the app you want to share
  • Open DualBootPatcher and go to "App Sharing" in the navigation drawer
  • Enable individual app sharing
  • Tap "Manage shared applications" and enable APK/data sharing for the app
  • Reboot
Quote:

When you uninstall an app that's shared, it simply become unshared for the current ROM. That way, other ROMs are not affected. To continue the analogy above, if you quit your job, you won't shred the documents that everybody else was looking at.

If you unshare an app's data, it will go back to using the data it had before it was shared. In other words, you leave the conference room and go back to work on your own documents at your desk.

Other How to ?
Wipe /cache, /data, /system, or dalvik-cache?
The easiest way is to do it from the app while booted in another ROM. Just go to "Roms" in the navigation drawer, tap the 3 dots options menu for the ROM you want to wipe, and tap "Wipe ROM".
Update the primary ROM?
Patch the zip for primary and flash it. The "primary" installation target is designed so that other ROMs won't be affected when you want to flash something for the primary ROM.
Update a non-primary ROM?
Patch and flash the zip exactly like how you did it the first time.
Flash a mod or custom kernel for the primary ROM?
Patch it for primary before flashing. If the zip does not wipe /cache, it is also safe to flash it directly.
Flash a mod or custom kernel for a non-primary ROM?
Just patch and flash it

Downloads:

Cheers ! we are officially supported

Note: You can download any version since "9.2.0.r86.gfc253e2"

Screenshots:
Sources:
DualBootPatcher: https://github.com/chenxiaolong/DualBootPatcher
DualBootUtilities: https://github.com/chenxiaolong/DualBootZips
Build instructions: https://github.com/chenxiaolong/Dual...ee/master/docs

Known issues:
- Can't use any LP ROM as primary on XL.
- Data sharing won't work if you are using JB ROM.

Credits:
@chenxiaolong for the awesome DualBootPatcher.
@androidlover5842 for helping me always
@veez21 for testing on Nokia X and Bootui screens

XDA:DevDB Information
[PATCHER][APP][OFFICIAL] Dualboot/Multiboot For Nokia X/XL, Tool/Utility for the Nokia X

Contributors
yshalsager, androidlover5842, chenxiaolong
Source Code: https://github.com/chenxiaolong/DualBootPatcher


Version Information
Status: Snapshot
Current Beta Version: 9.2.0.r86.gfc253e2
Beta Release Date: 2017-04-30

Created 2017-05-02
Last Updated 2017-05-02
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	2418
Size:	44.9 KB
ID:	4135964   Click image for larger version

Name:	2.png
Views:	2330
Size:	38.5 KB
ID:	4135965   Click image for larger version

Name:	3.png
Views:	2208
Size:	45.8 KB
ID:	4135966   Click image for larger version

Name:	4.png
Views:	2158
Size:	41.9 KB
ID:	4135967   Click image for larger version

Name:	5.png
Views:	2158
Size:	52.2 KB
ID:	4135969   Click image for larger version

Name:	6.png
Views:	2106
Size:	56.0 KB
ID:	4135970   Click image for larger version

Name:	7.png
Views:	2050
Size:	77.6 KB
ID:	4135971   Click image for larger version

Name:	8.png
Views:	1968
Size:	45.3 KB
ID:	4135972   Click image for larger version

Name:	9.jpg
Views:	2074
Size:	119.1 KB
ID:	4135974   Click image for larger version

Name:	852117452_157063.jpg
Views:	2104
Size:	119.4 KB
ID:	4135975  
The Following 11 Users Say Thank You to yshalsager For This Useful Post: [ View ]
 
 
3rd May 2017, 05:01 AM |#3  
Senior Member
Thanks Meter: 24
 
More
Created 2017-05-02
Last Updated 2017-05-02[/QUOTE]

hello dualboot😝
hey, i literally have no space in data and system partitions...so if i install rom on ext sd and do app sharing on data

does that mean i will have a secondary rom with the same data?
The Following User Says Thank You to ani00 For This Useful Post: [ View ] Gift ani00 Ad-Free
3rd May 2017, 05:23 AM |#4  
abhijit1998's Avatar
Senior Member
Flag City- UNKNOWN!!!!
Thanks Meter: 13
 
Donate to Me
More
If i want to use JB ROM as secondery rom, I needed a zip file. Right?

---------- Post added at 04:23 AM ---------- Previous post was at 04:21 AM ----------

Quote:
Originally Posted by ani00

Created 2017-05-02
Last Updated 2017-05-02

hello dualboot😝
hey, i literally have no space in data and system partitions...so if i install rom on ext sd and do app sharing on data

does that mean i will have a secondary rom with the same data?

I have nearly same question. I want to know if I install a app in primery one and data sharing on and does the app will show on secondery one or just data of it will be share between roms? If we have to install same app in both of roms then we will have very limited space for installing.
3rd May 2017, 08:10 AM |#5  
yshalsager's Avatar
OP Recognized Developer
Flag Cairo
Thanks Meter: 1,369
 
Donate to Me
More
Quote:
Originally Posted by ani00


hello dualboot
hey, i literally have no space in data and system partitions...so if i install rom on ext sd and do app sharing on data

does that mean i will have a secondary rom with the same data?

I think you didn't read this :
Quote:

The feature actually makes Android load the shared apps and data from a centralized location, /data/multiboot/_appsharing. So you're not sharing apps from one ROM to another per se. The ROMs are just loading the apps from one shared location

Quote:
Originally Posted by abhijit1998

If i want to use JB ROM as secondery rom, I needed a zip file. Right?
Yes, or you can simply switch using boot ui like screenshots
---------- Post added at 04:23 AM ---------- Previous post was at 04:21 AM ----------


I have nearly same question. I want to know if I install a app in primery one and data sharing on and does the app will show on secondery one or just data of it will be share between roms? If we have to install same app in both of roms then we will have very limited space for installing.

Just data sharing - storing in same location -
The Following 3 Users Say Thank You to yshalsager For This Useful Post: [ View ]
3rd May 2017, 01:35 PM |#6  
Senior Member
Thanks Meter: 24
 
More
how can i flash rom patch zip in secondary or primary rom?
3rd May 2017, 02:11 PM |#7  
yshalsager's Avatar
OP Recognized Developer
Flag Cairo
Thanks Meter: 1,369
 
Donate to Me
More
Quote:
Originally Posted by ani00

how can i flash rom patch zip in secondary or primary rom?

Please read the guide carefully. I've answered all possible questions
To install zip to primary
Patch zip file to primary. Flash it using recovery or inapp flasher through second rom.
To install zip to secondary
Patch zip file and flash using app
The Following User Says Thank You to yshalsager For This Useful Post: [ View ]
4th May 2017, 03:55 PM |#8  
Senior Member
Flag New Delhi
Thanks Meter: 97
 
More
Awesome!!
4th May 2017, 06:43 PM |#9  
yshalsager's Avatar
OP Recognized Developer
Flag Cairo
Thanks Meter: 1,369
 
Donate to Me
More
Thumbs up We are on XDA news!
I was checking xda as I always do and I surprised for seeing our project on homepage. Thanks XDA 👍
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2017-05-04-14-56-59.png
Views:	154
Size:	116.0 KB
ID:	4138156   Click image for larger version

Name:	Screenshot_2017-05-04-14-24-59.png
Views:	152
Size:	101.4 KB
ID:	4138157  
The Following User Says Thank You to yshalsager For This Useful Post: [ View ]
5th May 2017, 01:46 AM |#10  
Kurajmo's Avatar
Senior Member
Flag Radomsko
Thanks Meter: 55
 
More
Awesome. Just awesome. I dont own this device now. But i remember. I flashed this device twice. CM and stock Nokia OS. Nice phone but lack of ram.
6th May 2017, 02:22 PM |#11  
abhijit1998's Avatar
Senior Member
Flag City- UNKNOWN!!!!
Thanks Meter: 13
 
Donate to Me
More
I tried to use as you told in description. First I was using Nexus X ROM as primary. When I update ram disk and pressed reboot. But while starting phone vibrates five time in a raw. Then stuck at Nokia logo. Did not started. Later I tried one more without updating ram disk and installed stock Nokia ROM. I booted to stock ROM. Later I tried to go back to primary one by the zip file. but when trying it shows some error like. But I rebooted and it booted to stock JB ROM. Don't know why this happened.
Secondly I installed nameless ROM. I tried all procedure and updated ram disk too. For this ROM my phone booted. But I saw some thing which I did not expected. The ROM is not showing SD card. No storage details in settings menu. I rebooted and saw same thing. Tried to unmount but nothing happens. But SD card is working fine.
I go back to Nexus X ROM by flashing it by TWRP recovery. I used TWRP 3.0.0-0.
I tried all Installation of ROM by the app in build flasher.
Anyway, Good thing that it is not hard. I will try another ROM for my device. Don't know what ROM veez21 used. But thanks. Tell me if you fount anything about this.
Post Reply Subscribe to Thread

Tags
dualboot nokia x, dualboot nokia xl, dualbootpatcher

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread