yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] SubwayChamp:
No, of course that DualbootPatcher can`t do this; like its name byself refers to "patch a zip to boot in a dual rom (or more)" not about to made a flashable rom zip if the zip it´s not flashable itself. I guess that you couldn´t flash this rom through your recovery cause without an updater-script TWRP can´t know what must to do.

Where did you get this meta-inf? Stock roms don´t contain meta-inf. You can try first to know better how it works with a custom rom or finding a stock/ish rom flashable through custom recovery
[Galaxy S 4 i9505 Original Android Development] Exaskryz:
I linked where the stock rom came from. You can download it yourself, if the link still exists (it was December 7th of last year).

Anyway, I have flashed it -- like I said -- just this past Saturday (2 days ago). But it wasn't through TWRP. It was through adb on windows. I used fastboot. In fact, I used this .bat file in command prompt to do it

fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot

Is this not flashing? Is this a special type of flashing? Can I use this flashing to set up dualboot -- that is, can I dualboot by flashing through adb?
[Galaxy S 4 i9505 Original Android Development] SubwayChamp:
No, definitely DualBoot doesn´t work with rom stock flashable through fastboot, I noted that when I saw sparsechunk is a special thing to flash system images by parcels in Moto devices or took it from some backup.

Like I said before you need a rom flashable through custom recovery. your link no longer works anyway if you want further flashing a stock rom made it first flashable through recovery (normally zip containing META-INF, system.img and boot.img) must you need to made a lot of things about it to work. First better go to help forum thread about your device specific and search some rom based on stock or a custom; if your device is supported for DualBoot then you can patch and flash it. Maybe I can help you guiding about to made a flashable zip but this is other specific theme out of that.

You can backup your rom through dd and finding some meta-inf and adapt it to your files system, and zip it with your boot.img but this is a long way to learning how.
[Galaxy S 4 i9505 Original Android Development] Exaskryz:
Oooohhhkay, so Moto devices use a customized rom that is non-standard. Interesting.

I know I need a normal ROM that can pass Safety Net. (The whole purpose of dualbooting for me is so I can use apps that need SafetyNet on one ROM, and then use my other ROM for main use.)

I assume I could just install like Android Nougat or Oreo from a Google download? I'll start searching for a regular old Oreo download.

Edit: No downloads exist as far as I can tell. Every ROM Image available is someone backing it up from their phone and sharing it, so it will be in the "Sparsechunk" format. You allude to being able to create a flashable zip, but how is that done? if I have to convert my non-standard ROM into a standard format, I'll do that. Because ROMS like LineageOS do not appear to pass SafetyNet. (Though I guess ultimately I could convert all my normal usage to LineageOS and leave SafetyNet passing on the default ROM... But the definite ideal is to be able to boot into Stock+SafetyNet and Stock-SafetyNet for me.)

Edit 2: Could I download the Oreo OS for Nexus/Pixel and install that on a Moto phone? I imagine it's probably a bad idea, but can't find info on the possible cons.
[Galaxy S 4 i9505 Original Android Development] SubwayChamp:
Here you have a thread about Moto G4 development; https://xdaforums.com/moto-g4-plus go to 4th section about roms, any of these roms should work with DualBoot.
[Galaxy S 4 i9505 Original Android Development] edyny1:
Can someone look into this for me why data-slot rom fails to update ramdisk
[Galaxy S 4 i9505 Original Android Development] Aryamehr1366:
first of all

i really appreciate this amazing work

but i got a major problem ... the Rom that has installed on my data slot , doesn't recognize my sim :(

i have galaxy s7 (g930fd) my primary is TW based on 7.0 and my data slot 1 Rom is Resurrection Remix 5.8.3 (Based on 7.1.2)

i searched the whole thread about it and saw that some other people faced this issue ... but i can't find any solution. :rolleyes:

i would be grateful if someone can help me find a proper solution :highfive:
[Galaxy S 4 i9505 Original Android Development] monkteo:
com on guys it's so difficulty to read 2-3 page ?

you find an answer page 1282 post 12859
[Galaxy S 4 i9505 Original Android Development] t-76:
Hello. Can You add support for the device HOMTOM ZOJI Z7? Thank You.
[Galaxy S 4 i9505 Original Android Development] Arti42000:
I got permanent error when using secondary ROM installed to data-slot:

Failed to add asset path /data/app/<any user app>/base.apk

I face this error when I try to launch any of the apps installed on /data

Using Xiaomi Mi Max (hydrogen) and latest DBP snapshot
[Galaxy S 4 i9505 Original Android Development] fmotta:
Guys could you please add support for OnePlus 5t? regards
[Galaxy S 4 i9505 Original Android Development] yshalsager:
I added it, will test soon!
[Galaxy S 4 i9505 Original Android Development] fmotta:
Any link for helping in testing that?

Inviato dal mio ONEPLUS A5010 utilizzando Tapatalk
[Galaxy S 4 i9505 Original Android Development] Arti42000:
I have many bugs, while using DBP:

1. App FC when I switch app using taskswitcher while zip is flashing

2. Unpossible to create backups (it FCs and writes "failed to unmount chroot" in multiboot.log)

3. Bug I've mentioned before (with data-slot ROM)

4. After changing ROM's name it applies only after restarting the app

5. While in boot-ui, CPU's temprature is displaying like 3455465679786745

6. Oreo ROMs not booting

I can provide you any logs/screenshots/screencast, but are you interested in it? It is not just adding another device

Using latest build on Xiaomi Mi Max hydrogen
[Galaxy S 4 i9505 Original Android Development] cimrikonsoloyuncusu:
Thanks! It is really useful but i have a problem. When i install a rom as dual boot, obb directory is being unaccessible. Apps that using .obb files do not work. Only solution is wiping everything and installing the rom again. I can not use this app because of this problem. Can you solve that problem? [MENTION=4277844]chenxiaolong[/MENTION]
[Galaxy S 4 i9505 Original Android Development] yshalsager:
Oneplus 5T DBP testing build

Here you are

Apk: https://transfer.sh/dzhRq/Android_GUI-debug-091217-10h02m14s.apk

Utilities: https://transfer.sh/jjMB1/DualBootUtilities-9.3.0-091217-10h02m14s.zip

Linux Version: https://transfer.sh/orsSy/DualBootPatcher-9.3.0-091217-10h02m14s-Linux.tar.xz
[Galaxy S 4 i9505 Original Android Development] KaMyKaSii:
Install some terminal app (I recommend Termux) and try running the following commands:

su
restorecon -FR /data/media/obb
[Galaxy S 4 i9505 Original Android Development] Lightning~Bolt:
After I patch my zip file and I flash it from twrp, it says, this zip file is for titan_umts.......and some moto g2014 variants........Error:Your device is titan......But iam able to flash it normally through in app flasher.....but I need to flash it from twrp cuz aroma doesnt work on in app flashing.....pls fix this asap
[Galaxy S 4 i9505 Original Android Development] cimrikonsoloyuncusu:
Thanks,i will try it later.
[Galaxy S 4 i9505 Original Android Development] Russiamen:
[MENTION=4277844]chenxiaolong[/MENTION].Hi I have bootloop on ZF2

Logs ↓

https://drive.google.com/file/d/1Iz6JIPj9ZTeuBmAtKFX69QUZdV94VG11/view?usp=drivesdk
[Galaxy S 4 i9505 Original Android Development] kloosgj:
[MENTION=4277844]chenxiaolong[/MENTION] I sent you a private message about DBP on my S8+. If you find some spare time, I would appreciate it if you could take a look at it!

Besides of what I wrote above: I'm also having issues backing up my secondary rom's data. Everytime I try to backup my data, DBP stops backing up whenever the tar.lz4 file reaches 4,0GB. It's not a space issue, as I have 100GB free space. It's also not a faulty sd card, as I tried multiple sd cards.

If needed, I could provide a log through pm!

thanks in advance!

UPDATE: Forgive me for my stupidity!

The backup issue is solved. I wasn't aware that my external SD-card was formatted in FAT32, which only allows single files sized less than 4GB.

So if you have the same problem, and are trying to backup to your external sd-card, format the sd card to preferably exFAT, or NTFS if your device supports it (NTFS probably not)
[Galaxy S 4 i9505 Original Android Development] kloosgj:
Hi,

Are you backing up to your external sdcard?

If so, make sure your sdcard isn't formatted as FAT32, as it only allows file sizes of 4GB (which is probably not big enough for you to backup your rom)

Instead, format your sdcard to exFAT (ofcourse backup first, as it will wipe everything on the sdcard)
[Galaxy S 4 i9505 Original Android Development] Arti42000:
I'm backing up to external SD, which is formatted to exFAT
[Galaxy S 4 i9505 Original Android Development] alahkel:
Hello everyone,

before asking I searched but didn't find anything answered.

So I'm on a OnePlus 3t with Validus oreo (latest build) as primary. I wanted to install a Nougat more stable rom as secondary / data slot with DBP but I fail.

Kernel is successfully set up, ramdisk updated, I successfully patch the rom zip but when I install it:

1) via in-app it crashes (DBP fc)

2) via recovery I get an updater error 7, saying something like "it isn't able to retrive op3.modem version or something.

I read here and there to delete from updater script lines about assert getprop oneplus 3 and op3.modem something, so I did exactly what the comment adviced but now I'm getting error 1.

Here is a multiboot log attached
[Galaxy S 4 i9505 Original Android Development] rybens92:
Great app! Was using it on my Oneplus 3 with older versions, but now I am on Oneplus 5T and waiting for dual boot to support it ?

Will it support encryption on Oneplus 5T too, or we will have to decrypt our devices?

Best regards
[Galaxy S 4 i9505 Original Android Development] vivekchharia:
I am unable to flash the incremental update. When i try to flash app crashes. I am using miui 9 beta as a non secondary rom and want to install the weekly update.

Any help?
[Galaxy S 4 i9505 Original Android Development] Eleo:
Non-secondary ROM? So... it means it is either, primary, multislot, dataslot or extsdslot, right? Is it a riddle or you need help? I am confused...

Either way, every crash is recorded in multiboot.log file. So you have to provide the file so that we can understand what is messed up.
[Galaxy S 4 i9505 Original Android Development] yshalsager:
Xiaomi miui beta updates cannot be flashed from twrp! It can only flashed from stock recovery.

So I suggest you to use any miui based rom as secondary - not global/China beta - then update it regularly every week
[Galaxy S 4 i9505 Original Android Development] vivekchharia:
Sorry, my bad. Its a non primary rom, installed in the data slot.
[Galaxy S 4 i9505 Original Android Development] vivekchharia:
I tried to update regularly. The phone rebooted to twrp, when i restarted to system, it said update failed.
[Galaxy S 4 i9505 Original Android Development] alexanderq:
In my device redmi 3 I do bootui flickers just like an old crt tv
[Galaxy S 4 i9505 Original Android Development] cyprien T:
I have a problem with dual boot pather . Help me please !
[Galaxy S 4 i9505 Original Android Development] Mister sp:
Hello i have a problem with my Nexus 6p !

when I install the second Rom and I start it the phone vibrates and does not disagree.
[Galaxy S 4 i9505 Original Android Development] KaMyKaSii:
Is your data encrypted?
[Galaxy S 4 i9505 Original Android Development] Mister sp:
No my data is not encrypted
[Galaxy S 4 i9505 Original Android Development] marcdw:
When you installed the ROM did you do it via TWRP or in-app? If via TWRP do you know what the Result was?

I was sure I was not encrypted (on my Axon 7). Flashed second ROM with no (noticeable) errors but still got just vibrations and dropped to TWRP.

Finally checked MultiBoot.log and found that the ROM actually not fully installed. Something about a system image not being created due to no permissions to create it.

When flashing my Result was always "1" but since I was used to seeing errors in red I didn't think there was a problem. Result should've been "0" for success.

Using the in-app flasher the output is a bit more verbose.

I had previously formatted /data (ext4) to get rid of encryption and start clean.

After restoring my stock ROM, and amazed at how fast it boots up, I later find out that /data got converted to f2fs somehow. In the ROM it showed I was not encrypted though.

I don't know if any of the above applies to you.

For me I had to fix things this way...

Reformat /data to ext4.

Restore stock, which previously had SU 2.79.

Located and saved original boot image backed up by SU.

Flashed unSU script to remove SuperSU.

Restored boot image.

Flashed Chainfire's AROMA config utility to make sure encrypting does not happen.

Flashed SU 2.82-SR5.

After running stock ROM a bit and making sure there was no encryption or f2fs I tried installing a second ROM again, via in-app. Installation was good and second ROM boots up a-ok.

Two days of just getting the vibrations I almost gave up. Help from a user on the Axon side clued me in on the f2fs and making sure to flash SU on primary.

LG G3 D851, LiquidSmooth v4.1 ROM, MultiROM, Tapatalk 4.9.5

---------- Post added at 10:33 AM ---------- Previous post was at 10:29 AM ----------

Not sure if above made sense but battery was about to run out so I rushed it.

LG G3 D851, LiquidSmooth v4.1 ROM, MultiROM, Tapatalk 4.9.5
[Galaxy S 4 i9505 Original Android Development] Raskardpoupout:
His walk now! I reinstall the rom stock and it works but against I can not root the rom 2 (neither magisk nor SU)
[Galaxy S 4 i9505 Original Android Development] cyberkid369:
Error while installing secondary rom

Hi all

I Have Lineage 14.1 as primary rom on moto z play. Installed dual boot patcher however getting attached error while installing secondary rom to secondary or multi slot partitions..need help
[Galaxy S 4 i9505 Original Android Development] Mister sp:
you have to create a folder in your internal storage or install your ROM thanks to the option data slot
[Galaxy S 4 i9505 Original Android Development] cyberkid369:
Tried that too.. Still gives the same error
[Galaxy S 4 i9505 Original Android Development] clewis.it:
Does anyone know a command that works to switch ROMs from ADB or in a terminal app? I have been trying to get this to work, but I keep getting segfaults. The closest I have to a working command is this:

am broadcast -a "com.github.chenxiaolong.dualbootpatcher.SWITCH_ROM" -es "rom_id primary" --user 0

This results in:

Broadcasting: Intent { act=com.github.chenxiaolong.dualbootpatcher.SWITCH_ROM (has extras) }

Broadcast completed: result=0

But nothing happens. Am I missing something to make this work?
[Galaxy S 4 i9505 Original Android Development] tecnicopascoal:
I have problem with my ASUS Zenfone 3 Deluxe (ZS570KL) my data is encrypited and later flash dual my device is not booting on secundary rom, only on primary. Anyone know how can I fix it?
[Galaxy S 4 i9505 Original Android Development] dj.rock007:
Hi,

I'm facing a problem in flashing lineage is 15 through in-app flashing.

My primary ROM is Miui 8.
[Galaxy S 4 i9505 Original Android Development] cyprien T:
Hi I wanted to inform you about the bug on Android 8.0 and 8.1.

1: Can not connect to the mt boot.

2: they have a download problem (yalp store, chrome ...)

If you have the solution to one of his problems, I would like you to tell me .
[Galaxy S 4 i9505 Original Android Development] ProGamer02224:
Can someone tell me if there is a way to install Ubuntu touch os or the sailfish os as secondary os using dual boot patcher
[Galaxy S 4 i9505 Original Android Development] cyprien T:
Hello . I have a problem with the mbtool under Android 8.1 and I can not download file. can help me please !!!!!
[Galaxy S 4 i9505 Original Android Development] tecnicopascoal:
In aimrom 8.0 on Asus Zenfone 2 Laser just can put multirom like oreo on primary
[Galaxy S 4 i9505 Original Android Development] cyprien T:
OK . But I made a dual boot 7.1 and 8.1 but 8.1 I can not download file on any application.
[Galaxy S 4 i9505 Original Android Development] yshalsager:
DualBootPatcher builders and developers!

I updated docker images to Latest release 9.3.0-4

https://hub.docker.com/r/yshalsager/dualbootpatcher/

Also my Travis build script

https://github.com/yshalsager/DualBootPatcher/blob/9.3.0-4/.travis.yml

Enjoy.
[Galaxy S 4 i9505 Original Android Development] alon7786:
how to question

How to migrate from MultiROM TWRP to Dual boot patcher?

I've MultiRom v33e with LineageOS for microG as primary ROM and Clean ROM v2.8 (stock) as secondary.
[Galaxy S 4 i9505 Original Android Development] cyprien T:
Have you a solution for "error to conect mbtool " ?
[Galaxy S 4 i9505 Original Android Development] wuzdat:
I'm about to use the patcher for 1st time & need to know if I'm supposed to "set the kernel for current rom" , the apps giving me this msg when it lists my primary rom, I haven't yet flashed the 2nd rom
[Galaxy S 4 i9505 Original Android Development] Otaku-San:
Yes, you should set kernel before you flash another ROM.
[Galaxy S 4 i9505 Original Android Development] chandr1000:
Didn't work with latest Magisk (v15.2)

When i read magisk's debug log, i found some bug that Magisk linked the wrong path

01-02 20:01:56.808 4997 5070 D Magisk : resetprop: getprop [ro.crypto.state]: [unsupported]
01-02 20:01:56.808 4997 5070 D Magisk : resetprop: getprop [init.svc.vold]: [running]
01-02 20:01:56.809 4997 5070 I Magisk : ** post-fs-data mode running
01-02 20:01:56.810 4997 5070 I Magisk : * Creating /sbin overlay
01-02 20:01:56.812 4997 5070 I Magisk : * Mounting mirrors
01-02 20:01:56.813 4997 5070 E Magisk : mount /dev/block/loop1->/sbin/.core/mirror/system failed with 16: Device or resource busy
01-02 20:01:56.813 4997 5070 I Magisk : mount: /dev/block/loop1 -> /sbin/.core/mirror/system
01-02 20:01:56.813 4997 5070 I Magisk : link: /sbin/.core/mirror/system/vendor -> /sbin/.core/mirror/vendor
01-02 20:01:56.813 4997 5070 I Magisk : bind_mount: /sbin/.core/mirror/bin <- /data/adb/magisk
01-02 20:01:56.813 4997 5070 I Magisk : * Setting up internal busybox
01-02 20:01:56.834 4997 5070 I Magisk : * Mounting /data/adb/magisk.img

It should be like this

01-02 20:08:16.107 3610 3610 D Magisk : resetprop: getprop [ro.crypto.state]: [unencrypted]
01-02 20:08:16.117 3610 3610 I Magisk : * Creating /sbin overlay
01-02 20:08:16.118 3610 3610 I Magisk : * Mounting mirrors
01-02 20:08:16.119 3610 3610 I Magisk : mount: /dev/block/platform/12200000.dwmmc0/by-name/SYSTEM -> /sbin/.core/mirror/system
01-02 20:08:16.119 3610 3610 I Magisk : link: /sbin/.core/mirror/system/vendor -> /sbin/.core/mirror/vendor
01-02 20:08:16.119 3610 3610 I Magisk : bind_mount: /sbin/.core/mirror/bin <- /data/adb/magisk
01-02 20:08:16.119 3610 3610 I Magisk : * Setting up internal busybox
01-02 20:08:16.141 3610 3610 I Magisk : Magisk v15.2(1520) daemon started
01-02 20:08:16.141 3610 3613 D Magisk : log_monitor: logger start
01-02 20:08:16.141 3610 3612 D Magisk : log_monitor: magisk log dumper start
01-02 20:08:16.144 3610 3616 I Magisk : ** post-fs mode running
01-02 20:08:16.193 3617 3617 I : debuggerd: starting

Tested on SM-G900H (k3gxx)
[Galaxy S 4 i9505 Original Android Development] delpiero74:
Any way to install lineageos 15 as secondary rom?
[Galaxy S 4 i9505 Original Android Development] youur:
Don't work for my phone (exynos) 910h tre3gxx ?

Anybody help me plz

I'm now in air rom 2.1 final and I want to install erobot rom as secondary.

(Sorry for my bad english)
[Galaxy S 4 i9505 Original Android Development] HasanBy2207:
why fail Mulu install custom Rom 8.1 on secondary?

---------- Post added at 10:38 AM ---------- Previous post was at 10:30 AM ----------

Why I always fail to install many rom based Oreo on my Xiaomi phone?

I'm using Xiaomi varians redmi 3s/pro / 3x (land)
[Galaxy S 4 i9505 Original Android Development] shashwat1234:
Unable to dual boot. Error is coming everytime.
[Galaxy S 4 i9505 Original Android Development] edyny1:
Why a patched magisk zip cannot be flashed? I get error when trying to flash it to either primary, data slot, etc
[Galaxy S 4 i9505 Original Android Development] Eleo:
It was already answered in this thread. You need to edit script. Search in thread to find
[Galaxy S 4 i9505 Original Android Development] edyny1:
Also i have read few pages back and i see people asked about this issue but no one have reply.

and i flashed minotaurus oreo beta5 v10 into data-slot...everything is good and boot up fine but when i patched any other kernel for oreo and flash it, it does not change...when i look in settings "about device" still on stock kernel that came with rom.
[Galaxy S 4 i9505 Original Android Development] weigeloveu:
Failed to update mbtools
[Galaxy S 4 i9505 Original Android Development] HasanBy2207:
The same problem as I experienced
[Galaxy S 4 i9505 Original Android Development] weigeloveu:
Couldn't update mbtools on omni 8.1
[Galaxy S 4 i9505 Original Android Development] weigeloveu:
Couldn't update mbtools on omni 8.1 as a primary rom
[Galaxy S 4 i9505 Original Android Development] weigeloveu:
Sorry to my bad network,flooded the post
[Galaxy S 4 i9505 Original Android Development] monkteo:
for all user who have problem with update mbtools,

check you first rom , if it's a port-rom you must modify in build.prop (ro.product.name and ro.product.device) to match with you original name (chek on internet your phone product name)

[MENTION=4251232]edyny1[/MENTION] , minotaurus oreo in S7E ? link ?
[Galaxy S 4 i9505 Original Android Development] tomaasz:
I have the same on my S8 with Oreo beta5

Wysłane z mojego SM-G950F przy użyciu Tapatalka
[Galaxy S 4 i9505 Original Android Development] asislife20:
[MENTION=4277844]chenxiaolong[/MENTION] if possible could you please add tmobile note 5 support? It already mostly works, but I get issues installing some roms because it's not officially supported. Also, primary rom set kernel works, bootui a orks, but can't set kernel on secondary roms.
[Galaxy S 4 i9505 Original Android Development] edyny1:
Its minotaurus oreo in S8+.....

Also i did those modifications in build prop and still same thing.
[Galaxy S 4 i9505 Original Android Development] monkteo:
Bought name must be the same. (delete 2 XX and try again)

And reboot.
[Galaxy S 4 i9505 Original Android Development] tecnicopascoal:
anyone can help me? Asus zenfone 3 deluxe not working
[Galaxy S 4 i9505 Original Android Development] edyny1:
I did that and same thing, but i did found out that no matter what we do or modify it will still give that issue. It's an Oreo issue and in order to fix that we have to wait until samsung releases the source codes "thats what i read on the s8 forum"
[Galaxy S 4 i9505 Original Android Development] edyny1:
I get this error with dualboot utilities r319 when trying to flash it. Also with latest r321