@Prakyy created a script that'll ease Custom ROM installation on A/B devices. The script is generic and will work with any rom, device.
This script is modified for Latest TWRP & PBRP based on Android 11 older script no longer work on android 11 throws error
General flash instructions:
-Flash OxygenOS 11
-Flash your Custom ROM of choice
-Flash Finalize.zip
-Boot to System
Download finalize script from here or download from attach file
#######################################
For the intellectuals: This script copies firmware to both slots, clears dalvik-cache and deletes the useless India partition.
Hope this saved you guys some headache while flashing ROMs.
Do we have to format data too, after flashing finalize.zip?
Related
I would like to install CM7 alpha9 MTD from this thread http://forum.xda-developers.com/showthread.php?t=2309390
The process I imagine is as following:
- backup things (I'm not sure how exactly this part works, if you know how to backup application data please help)
- flash the https://cm7-i5800.googlecode.com/files/CM7_Kernel_MTD_OC1Ghz.tar kernel with ODIN without repartitioning (as PDA I'm guessing, unless there's an option for "kernel" in which case it's kernel, which one is it? )
- boot to recovery
- format /system, /data, /preload
- install the ZIP of the ROM: https://cm7-i5800.googlecode.com/files/CM7.2.0-GT-I5800_Alpha9_MTD_CWM.zip
- install the ZIP of the google apps for 2.3.7: http://www.devfiles.co/download/wBDwQIzb/gapps-gb-20110828-newtalk-signed.zip
- install SuperSU ? is this necessary with CM? Although I have doubts, as it was never mentioned unlike for Omni, so I guess not for this one
- reboot phone
- enjoy CM7
So basically I'm asking, am I missing out on anything basic but important that would result in bricking? And
- how to backup application data to be retrieved after flashing
- is the kernel a "PDA" or is there another thingy for it in Odin that needs be done?
- do you need to install any previous versions of CM7 for this MTD thing to work?
- does the kernel provide a recovery with which this ROM can be installed?
If you managed to get to the end, thank you - And thanks in advance for the help
Installing a rom
Zhuinden said:
I would like to install CM7 alpha9 MTD from this thread http://forum.xda-developers.com/showthread.php?t=2309390
The process I imagine is as following:
- backup things (I'm not sure how exactly this part works, if you know how to backup application data please help)
- flash the https://cm7-i5800.googlecode.com/files/CM7_Kernel_MTD_OC1Ghz.tar kernel with ODIN without repartitioning (as PDA I'm guessing, unless there's an option for "kernel" in which case it's kernel, which one is it? )
- boot to recovery
- format /system, /data, /preload
- install the ZIP of the ROM: https://cm7-i5800.googlecode.com/files/CM7.2.0-GT-I5800_Alpha9_MTD_CWM.zip
- install the ZIP of the google apps for 2.3.7: http://www.devfiles.co/download/wBDwQIzb/gapps-gb-20110828-newtalk-signed.zip
- install SuperSU ? is this necessary with CM? Although I have doubts, as it was never mentioned unlike for Omni, so I guess not for this one
- reboot phone
- enjoy CM7
So basically I'm asking, am I missing out on anything basic but important that would result in bricking? And
- how to backup application data to be retrieved after flashing
- is the kernel a "PDA" or is there another thingy for it in Odin that needs be done?
- do you need to install any previous versions of CM7 for this MTD thing to work?
- does the kernel provide a recovery with which this ROM can be installed?
If you managed to get to the end, thank you - And thanks in advance for the help
Click to expand...
Click to collapse
Reboot to recovery, make a backup (you'll find in the menu)
Make a full wipe(in recovery)
- install the ZIP of the ROM: https://cm7-i5800.googlecode.com/files/CM7.2.0-GT-I5800_Alpha9_MTD_CWM.zip
- install the ZIP of the google apps for 2.3.7: http://www.devfiles.co/download/wBDwQIzb/gapps-gb-20110828-newtalk-signed.zip
- flash the https://cm7-i5800.googlecode.com/files/CM7_Kernel_MTD_OC1Ghz.tar
Install all these 3 zip with One Package ticked
Reboot and enjoy
Good luck
to install CM7 alpha 9 MTD you first need to be running CM7 alpha 9, which you flash with ODIN http://forum.xda-developers.com/showpost.php?p=14240212&postcount=1
then follow the instructions in the previous reply from sakenas to update to CM7 alpha 9 MTD using clockwork mod recovery.
only flash the 1ghz kernel after you have updated to CM7 alpha9 MTD.
you flash the kernel with ODIN using the one package method, exactly the same way you will have flashed CM7 alpha 9.
Instead of rooting, installing CWM and then installing the ROM, it’s better to just:
• Copy the downloaded ROM to Internal Memory or SDCard (modem file also for L/S versions)
• Download universal fastboot/adb drivers (link provided)
• Turn Off the phone, Press VolUp+VolDown and press power until you are in the bootloader
• From there select Fastboot
• Browse for drivers when prompted and install them (you may have to forcefully install them)
• Download recovery (link provided) and run CWM 6.0.4.8.bat (recommended) or TWRP 2.8.6.0 (may not work well with stock based roms) and the phone should boot straight into recovery
• Factory Reset, Wipe Cache and Dalvik
• Formatting System, Data and Cache is up to you
• Install ZIP and when you are about to reboot it’ll ask to disable flash recovery, select NO to keep the stock recovery as you can boot into custom recovery directly anyways
• Stock recovery is a better option for factors resets and adds a little more security of data in case phone is lost/stolen
• Doesn’t matter if you are coming from AOSP or any other ROM. This ROM also installs Modem, Stock Recovery etc…
Enjoy the stock KitKat sweetness
NOTE: You may also try installing the ROM on L/S versions but make sure to install Modem file right after installing the ROM. Links for modem files are also provided here for convenience
Here are links to download:
1. Fastboot/ADB Drivers
http://forum.xda-developers.com/attachment.php?attachmentid=3446458&stc=1&d=1440144523
2. Recovery
https://drive.google.com/file/d/0B8_wtN-YXTxndkhkZ2QwcTR1d2c/view?usp=sharing
3. ROM
https://drive.google.com/file/d/0B8_wtN-YXTxnTGRBWnpyZmlzd1E/view?usp=sharing
4. Link Modem: 850L
https://drive.google.com/file/d/0BxveGwot73rCYmZlem5JbXJDQkE/view?usp=sharing
5. Link Modem: 850S
https://drive.google.com/file/d/0BxveGwot73rCTkV1amFpVHVJR1k/view?usp=sharing
Hey everyone,
During the initial versions of LineageOS, I wasn't been able to install it due to error:7 (Baseband error).
Now, I have tried a method that worked on my yu Yunique device.
This method can be used for any other device also but you have to find corresponding ROM file and other stuffs for your device only.
**Remember to take a full backup before experimenting with your device**
Procedure:
You need following things before you start-
1. LineageOS rom file: https://download.lineageos.org/jalebi
2. Open Gapps: http://opengapps.org (choose platform=ARM, android=7.1 and variant of your choice)
3.Caesium kernel: https://transfer.sh/Yqhm8/Caesium-jalebi-20170701-140319-v2.1.zip
4:LineageOS root file:https://download.lineageos.org/extras (Name: su(arm), version:14.1)
5. Firmware File: https://www.androidfilehost.com/?fid=673368273298934200
NOTE **There are some times that this method won't work in the latest TWRP i.e 3.0.3-0. So, revert back to TWRP 2.8.7.0 and then try the given method.**
Method:
1. After taking a backup of your previous working ROM, wipe off the Dalvik cache + system + cache + data in the recovery.
2. Flash the firmware image.( This solves the baseband error problem)
3. Flash the lineageOS rom file.
4. Now flash the caesium kernel( prevents bootloop)
5. after flashing all 3 files, reboot into system.
The first bootup will take about 2-3 minute(can go upto 5-7 min also). so have patience.
This worked for me. If it also works for you too, then please tell.
Also, you can watch my youtube video for the same:https://youtu.be/nYOsDeG5Kfs
Thank you
NOTE**All the file provided above belongs to their corresponding developers. I am just sharing it for help**
helpful guide
You can also solve this prob by delete baseband line in updater script
Helpful !!!!
I'm proud to present the first dual boot project for the all Exynos7870 and Exynos7880-based Samsung devices. This project started off as a feature in my ROM, but not anymore. 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
Donators
A huge thanks goes out to all of the donators for supporting this project! I if forgot to add you (and you want to be added), please send me a quick PM.
See all of our supporters here
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
NOTE: If you want to dualboot a TouchWiz ROM, I highly recommend installing TW as the primary ROM. Otherwise, any mods will need to be patched before flashing.
How to use the patcher
Android
Download the patcher apk and run it. Tap "Patch Zip File" from the navigation drawer and choose the file you want to patch.
After patching the zip file, a new file, like some_rom_dual.zip file will be created. For example, patching ktoonsez's
KT-SGS4-JB4.3-AOSP-TMO-08.28.2013.zip
would create a new
KT-SGS4-JB4.3-AOSP-TMO-08.28.2013_dual.zip
Instructions for dual booting
Before doing anything, download the Dual Boot Patcher app and the DualBootUtilities.zip from the download section below.
The patcher offers several locations for installing ROMs:
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.
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.
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.
With that said, let's get to the "how to"!
First, boot into your primary ROM and install the Dual Boot Patcher app
Open the app and go to "Roms" in the navigation drawer. It will ask if you want to set the kernel. Make sure that you do.
Go to "Patch zip file" in the navigation drawer and patch the ROM or zip you want to install. You can select one of the installation locations described above.
Well, Just flash the patched zip file via recovery (Custom Recovery, like TWRP of course)
A normal backup from recovery will backup every ROM. If you would like to back up ROMs individually, please see @rlorange's awesome tool: http://forum.xda-developers.com/showthread.php?t=2491299
How do I...?
Switch the ROM if something doesn't work properly?
You can flash the DualBootUtilities zip from recovery. It will provide a menu interface that allows switching to the various ROMs.
If you have TWRP, you can also switch manually by tapping Install -> Images (bottom right) -> Go to /sdcard/MultiBoot/[Your ROM]/ -> flash boot.img.
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".
Alternatively, flash the DualBootUtilities zip from recovery, which will also allow you to wipe a ROM.
NOTE: Don't use the recovery's built-in wiping abilities as that may delete non-primary ROMs!
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
Here is the latest build : https://www.androidfilehost.com/?fid=962021903579496224
XDA:DevDB Information
DualBoot Patcher APP, Device Specific App for the Samsung Galaxy J7 (2017)
Contributors
lzzy12
Source Code: https://github.com/Mysteryagr/DualBootPatcher
Version Information
Status: Beta
Created 2017-12-03
Last Updated 2017-12-03
Thanks for this MOD
will definitely use this when/ if we get los for our phone thanks
How can I flash GApps ??
is this mod still alive ?
Here is Simple guide for Flashing Every Android Pie or 10 on Decrypted Device..
Here I Prefer to Make Guide On Decrypted Device only Because Decrypted Device Giv's more flexibility while Switching ROM's.
Reasons are simple.. Flashing ROM over Encrypted device might Loose data if anything goes wrong..
For Decryption, Follow @HatRiGt Guide..
https://forum.xda-developers.com/oneplus-6/how-to/tutorial-decrypt-flash-rom-pie-oreo-roms-t3838643
Now Here is Steps to follow
When Flashing New ROM
Download OOS(Beta), TWRP 3.3, ROM, Gapps, Magisk 20, No-Verity-Treble zip & Copy them into Device
Reboot Into Recovery
Wipe > Advanced Wipe > Select Cache, System & Data & Swipe to wipe it
Flash OOS, TWRP & Reboot to Recovery
Flash OOS, TWRP Again & Reboot to Recovery
Flash ROM, TWRP & Reboot to Recovery
Flash Gapps, Magisk, No-Verity-Treble & Reboot to System
Done
When installing New Update
Download ROM Update ZIP, TWRP 3.3,, Gapps, Magisk, No-Verity-Treble zip & Copy them into Device
Reboot Into Recovery
Flash ROM, TWRP & Reboot to Recovery
Flash Gapps, Magisk, No-Verity-Treble & Reboot to System
Done
Few Point's to highlight
1. This Guide is Strictly for Decrypted Devices..
2. Follow Exactly Same Steps & Flash Exactly same ZIP's for avoid Potential data loss..
3. Flashing Magisk is totally upto you. Flash it if you want to keep rooted(You migh need it if you pay Google Pay as SafetyNet not passing on Android 10 & need module to fix it)..
4. Use No-Verity-Treble zip only from this Post as One Given in @HatRiGt Guide is only for Pie Based ROM's.. Attached ZIP is Working on Both Android 9 & 10.. Don't complain/Blame me if you did something wrong..
<Mod edit - removed>