[TWRP][AROMA][WT88047] Resize System partition Easily - Xiaomi Redmi 2 Themes, Apps, and Mods

With this tool is possible resize the system partition.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Precautions and warnings:
This procedure will erase your ROM. Internal storage will also be erased, including photos, videos, music and backups.
Increasing the size of the system will decrease the internal storage in the same proportion, when using previous backup consider this, if the backup is too large it may not fit in the new partitioning.
To prevent bootloop, use a permanent installation of TWRP, do not use temporary boot.
I am not responsible for bricked devices or dead SD cards.
Use at your own risk
Instructions:
Part 1
1- Copy zip installer to external SD card, otherwise installation will be canceled. do not forget to also copy the custom rom and the gapps.
2- The installer uses Aroma ui, it is possible to choose several size for the system partition: 1GB, 1.25GB, 1.5GB, 1.75GB, 2GB, 2.25GB and 2.5GB.
3- Optionally it is possible to create a new partition, the vendor partition, it is required in the project treble and only used with treble roms and vendor partition compatible with Redmi 2.
4- The installer also creates a backup of some changed partitions and restores them automatically, a copy(110MB) is sent to the external SD card if an emergency restore is required.
5- After choosing all the options select Start, if all the requirements have been fulfilled the repartitioning will happen, otherwise it will be interrupted before any alteration. Then press the Reboot button to end.
Part 2
The most recent rom installer comes with the system inside an image file, it has the default size, and after installing the rom it is necessary to expand the file system so that it can see the new size.
This can be done with Twrp in the wipe advaced menu, but to make it easier I did an additional installer to do this task.
So summarizing:
1- Install 1Resize-System-Redmi2.zip (only when changing system size partition).
2- install your Custom-Rom.zip
3- install 3Expand-filesystem-Redmi2.zip (always required after installing custom rom and before gapps, this releases new size to use).
4- install gapps.zip
5- done !
Thanks the creators of content, for sharing knowledge:
@jsidney96 thread, @freeshared thread, @mirfatif thread, @osm0sis thread, @amarullz thread
.
Sorry my English.
.
[update]
v1.01: added reboot(recovery) after installation.
v1.03: (experimental) added option to create vendor partition and auxiliary zip installer.

Looks very cool! Have you heard of @Lanchon's RePIT? Similar idea but without the GUI. Perhaps you guys could collaborate? https://forum.xda-developers.com/android/software-hacking/tool-lanchon-repit-data-sparing-t3358036

Edit: sorry it did not work. only the internal storage got reduced but the system partition remained the same.
log file attached below.

interesting

athish said:
Edit: sorry it did not work. only the internal storage got reduced but the system partition remained the same.
log file attached below.
Click to expand...
Click to collapse
Edit 2: So i was able to re-partition the system using the above script (i mean the script works). But after i installed lineageos 15.1 the system partition returned back to 1gb. Can anyone give me a solution for this? i tried the resize system after rom install but it failed. :crying:
screenshots below:

athish said:
Edit 2: So i was able to re-partition the system using the above script (i mean the script works). But after i installed lineageos 15.1 the system partition returned back to 1gb. Can anyone give me a solution for this? i tried the resize system after rom install but it failed. :crying:
screenshots below:
Click to expand...
Click to collapse
With me it works, but twrp only displays new size after exiting the wipe menu.
Then return to the main menu and enter the wipe menu again.
Error message appears if you press the "resize file system" button twice in a row.

Cecell3000 said:
With me it works, but twrp only displays new size after exiting the wipe menu.
Then return to the main menu and enter the wipe menu again.
Error message appears if you press the "resize file system" button twice in a row.
Click to expand...
Click to collapse
nope i press the "resize file system" only once and still gives the error.
can please explain what to do after installing a ROM (to get back the full size). And thank you for the making a zip installer:good:
Edit:
So after re-partiton of system to 2gb, i restored twrp backup and system remained 2gb :victory: :highfive:

@Cecell3000 Flash EDL mode rom miui, restores partition size?????????

xander21 said:
@Cecell3000 Flash EDL mode rom miui, restores partition size?????????
Click to expand...
Click to collapse
yes, edl / fastboot restore partition size.
But prefer reinstall the zip file by selecting (default) option.

Cecell3000 said:
yes, edl / fastboot restore partition size.
But prefer reinstall the zip file by selecting (default) option.
Click to expand...
Click to collapse
Im reinstall partition zip file and flash fastboot Rom. It can be like this?

xander21 said:
Im reinstall partition zip file and flash fastboot Rom. It can be like this?
Click to expand...
Click to collapse
yes, it's safer.

[update]
v1.01: added reboot(recovery) after installation.
v1.03: (experimental) added option to create vendor partition for project treble and auxiliary zip installer.
summary installation instructions:
1- Install 1Resize-System-Redmi2.zip (only when changing system size partition).
2- install your Custom-Rom.zip
3- install 3Expand-filesystem-Redmi2.zip (always required after installing custom rom and before gapps, this releases new size to use).
4- install gapps.zip
5- done !

Cecell3000 said:
With this tool is possible resize the system partition.
The installer uses Aroma ui
Click to expand...
Click to collapse
Is it possible to use this to only use Aroma's Remove stock apps functionality, without having to download and install the full Aroma? Can it be done without reinstalling/wiping the rom?

intresting

Where can I download this apps for other mobiles?
I need it for the Xiaomi Mi8.
Is it compatible?
Can I flash other ROMs such as Xiaom.eu if I have resized the partitions ?
Thanks
---------- Post added at 01:05 AM ---------- Previous post was at 12:58 AM ----------
What about resizing the data and cache partitions?
What partition is the culprit of the error of insuficient size when installing new apps?

Once resized will it remain 2gb forever or will it revert back to 1 gb as soon as I flash a custom rom?
I want to flash treble rom and then android p gsi files. So I need the vendor partition right?

thanks, it works for me

Which twrp to use to flash this installer?

hengkidermawan said:
thanks, it works for me
Click to expand...
Click to collapse
you can record on video? pleasee!!

Christian - Cuba said:
you can record on video? pleasee!!
Click to expand...
Click to collapse
the OP says clearly, bro..
1- Install 1Resize-System-Redmi2.zip (only when changing system size partition).
2- install your Custom-Rom.zip
3- install 3Expand-filesystem-Redmi2.zip (always required after installing custom rom and before gapps, this releases new size to use).
4- install gapps.zip
5- done !
---------- Post added at 03:27 PM ---------- Previous post was at 03:24 PM ----------
Paleskin said:
Which twrp to use to flash this installer?
Click to expand...
Click to collapse
the latest twrp, and the important thing is permanent twrp that OP said

Related

need help regarding CWM functionality

hi all,
i juz wana know bout the functionality of all the programs in CWM 4.0.0.9.i had it installed but dun know much bout the stuff inside.juz knw bout back up n storage and applying updates from zip..and what is dalvik cache means...
Need info on dalvik cache? www.google.com will help u.
Sent from Galaxy Ace GT-S5830 using Grif's Cyanogenmod & allinone script.
Dont jus say thanks, use d 'THANKS' button. [XDA RULE]
Yes, just google everything. This factual stuff can easily be found through search.
There you go.... not from v4.0.0.9 but its of a old version but will give you and idea or to anyone else .. will not post a link to some other site so just posting the explaination here
Options explained
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1.reboot system now
This one is self-explanatory.
2.apply update from sdcard
This can be used for installation of any official or unofficial update, ROM, kernel, theme etc. that is in a zip format installable from recovery, as long as the file is named update.zip and it has been placed on the root of your SD card (i.e. not in any sub-folder). Selecting this option (and most of the options featured below) will bring up a rather annoying confirmation prompt but this has saved us on multiple occasions from a lot of trouble we would have been into due to accidental key presses.
3.wipe data/factory reset
This option wipes all user data on the device as well as cache. Doing this will leave your phone in the state it was in when you bought it or when any custom ROM was first installed. It will also wipe any sd-ext partition that you might have setup
4.wipe cache partition
Wipes the cache partition of the device to clear all the data accumulated there over use. This is often used before installing a new ROM, app, kernel or any similar mod via recovery.
5. install zip from sdcard
This option brings up the following sub-menu:
A. apply /sdcard/update.zip
This one is essentially the same as the ‘apply update from sdcard’ option of the main menu.
B. choose zip from sdcard
Lets you install any zip file (with any name) from any location on your SD card. The file can be for a ROM, a kernel, an application, a theme or any mod as long as it is in recovery-flashable zip format. This is the most widely used option for installing a ROM that you have downloaded and copied to your SD card. Entering this option will bring up a screen that will allow you to browse your SD card for the zip file and select it for installation
C.toggle signature verification
Turns the signature verification on and off. When signature verification is on, you will not be able to install any custom ROMs that haven’t been signed by the developers (most custom ROMs aren’t signed). Switching it off skips the signature verification check and proceeds with the installation.
D. toggle script asserts
Seldom-used option for a vast majority of users. It simply turns script asserts on or off. If you don’t know about these (i don’t), it’s best not to change this option.
E. +++++Go Back+++++
Takes you back to the main recovery menu, obviously!
6.backup and restore
Undoubtedly one of the most important features provided by a custom recovery, the backup and restore feature – also known as Nandroid backup – allows you to take a snapshot of your phone’s entire internal memory including all partitions, and save it on the SD card.
A.Backup
Takes a Nandroid backup, as explained above.
B.Restore
Lets you restore a previously taken backup. Entering this option presents you with a list of existing backups from the SD card that you can choose from for restoration.
C.Advanced Restore
This option is similar to the Restore option but once a backup has been selected to be restored, this option allows you to choose what parts of it to restore. You can choose to restore the boot, system, data, cache and sd-ext partitions
7.mounts and storage
Allows you to perform maintenance tasks on all the internal and external partitions of your android device
A. mount/unmount /system, /data, /cache, /sdcard or /sd-ext
These options let you toggle between mounting or unmounting these respective partitions. Most users don’t need to change these options.
B.format boot, system, data, cache, sdcard or sd-ext
These let you directly format any of these partitions. Take extreme care with this option as formatting any of these partitions will result in losing all data on them, especially the boot and system partitions. Formatting the system partition will remove your ROM and leave your phone without an operating system while wiping the boot partition may brick your phone unless you restore or flash another one before rebooting your device. To learn more about the contents of all these partitions, see our guide to Android partitions.
C.mount USB storage
Lets you enable USB mass storage mode for your SD card right from recovery so that you can connect it to your computer via USB and transfer any files to/from it without having to leave recovery.
8.advanced
This section contains a few options most users will not require, though these can come handy quite often, especially wiping Dalvik cache, which is required before most ROM installations. Here are the options from this section:
A.Reboot Recovery
Lets you directly and very conveniently reboot from recovery right back into recovery. This is useful option for certain back-to-back installations that require the device to at least boot once between them.
B.Wipe Dalvik Cache
Allows you to wipe the cache for the Dalvik virtual machine (the custom-built Java virtual machine for Android).This is required before most ROM installations and at other occasions too, for fixing some problems.
C.Wipe Battery Stats
Wipes the saved battery usage statistics and effectively recalibrates the battery. Useful in various scenarios when Android isn’t showing correct battery levels.
D.Report Error
In case of errors, this feature can be used to save a log of recent ClockworkMod recovery operations on the SD card that you can later report from Android using ROM Manager.
E.Key Test
Lets you press any of the hardware keys to see if they are properly functioning, and to see their key codes.
F.Partition SD Card
This option gives you a no-frills way to partition your SD card properly for use with ROMs that support data2ext (a very handy hack for low internal memory devices that enables an /sd-ext partition on the SD card to be used as the internal user data storage i.e. as the /data partition). Once this option is selected, you will be given options to choose the sizes for the /sd-ext partition as well as an optional /swap partition on the SD card, and will then automatically format it for you, leaving the remaining space for normal SD card usage. This option will wipe all data from your SD card so use it with caution!
G.Fix Permissions
Fixes the file permissions for the internal memory partitions back to default. This is very useful as a fix for several errors and Force-Closes that start appearing after you or an application you installed and provided root access end up messing up the permissions of important files.
Hope it helps :d
@devilcode , permission to add into the newbie guide please
Sent from my GT-S5830 using XDA App
EmoBoiix3 said:
@devilcode , permission to add into the newbie guide please
Sent from my GT-S5830 using XDA App
Click to expand...
Click to collapse
Yea sure bro if you want i can insert screenshots also...before every point
EmoBoiix3 said:
@devilcode , permission to add into the newbie guide please
Sent from my GT-S5830 using XDA App
Click to expand...
Click to collapse
Just quoted one of the sentence there to google and it shows that THIS is the actual source. Dont know if the poster is the author though.
QNBT said:
Just quoted one of the sentence there to google and it shows that THIS is the actual source. Dont know if the poster is the author though.
Click to expand...
Click to collapse
yea i mentioned ill not post an outside link in the begging so just pasted it here i dont have permission to post links yet
devilcode said:
yea i mentioned ill not post an outside link in the begging so just pasted it here i dont have permission to post links yet
Click to expand...
Click to collapse
ah, sorry. My bad.
devilcode said:
Yea sure bro if you want i can insert screenshots also...before every point
Click to expand...
Click to collapse
Do it .
I'd be grateful
devilcode- ur explanation is much appreciated..thank you...
all your guidance are very useful..especially devilcode..thanks man...now i can know the functions well....
EmoBoiix3 said:
Do it .
I'd be grateful
Click to expand...
Click to collapse
Their Edited My post With screen shots ...You can post in Newbie Guide now
ravin_jr said:
all your guidance are very useful..especially devilcode..thanks man...now i can know the functions well....
Click to expand...
Click to collapse
Ur welcome Glad to help ... N Click Thanks if you are really thankfull

[ROM]ICS[4.0.4] Baidu REPACK v28

What`s so special about this rom?
Well it is like Google made a rom for G300, only this one is the chinese "Google" company.
Original UI, ICS 4.0.4, good memory management, great 2g/3g use,
low consumption - you can leave wifi and gps on permanently - you`ll see
Butchered:
-Removed chinese apps, well ~99% is exorcised.
-Removed chinese cwm (you get that one in the original release )
-Corrected installation scrip
Download Link:
Baidu.zip - 156.19 MB
GAPPS_20132904.zip - 50.20 MB
boot.img - 3.77 MB
Installation instructions
- You have rooted, unlocked bootloader and a recovery (cwm, maybe twrp)
- Download zip file (rom), gapps for ICS and kernel (boot.img). And transfer that to SDcard
- Do a Nandroid Backup!
- Flash boot.img via FASTBOOT(with command fastboot flash boot boot.img)
- Delete this folders .android_secure, Android and LOST.DIR
- Boot directly into CwM Recovery
- Wipe data/factory reset
- Wipe cache partition
- Advanced: Wipe Dalvik cache, battery stats if you have them
- Mounts: Format System
- Install zip from SDcard -> choose zip -> your rom (zip)
- Install zip from SDcard -> choose zip -> gapps (zip)
- Reboot to system
- while installation you`ll get "random offset" message. It is normal - google that.
Leave your phone now for 5 minutes, let it take a breath.
Warning: updating kernel, ROM, recovery, risk potential damage. and I cannot be held responsible for any damage to your machine. Please read and study ways to ensure before you begin.
Thanx for RequeLine, Cherlis, Magnat.mg, Tajson78, Saschamvd, Master3161 and Grizzlу​
Baidu v.27
Baidu.zip - 155.06 MB
boot.img - 3.77 MB
Themes pack for Baidu
BaiduTheme.rar - 116.86 MB
For install themes, just copy .BaiduTheme folder from *.rar to your SD card
Previews
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Rom is working great. But in some apps like music, and setup guide chinese language was there. Overall rom is working great.
Thanks for this
AKA_noodle said:
What`s so special about this rom?
Well it is like Google made a rom for G300, only this one is the chinese "Google" company.
Original UI, ICS 4.0.4, good memory management, great 2g/3g use,
low consumption - you can leave wifi and gps on permanently - you`ll see
Butchered:
-Removed chinese apps, well ~99% is exorcised.
-Removed chinese cwm (you get that one in the original release )
-Corrected installation scrip
Download Link:
Baidu.zip - 155.06 MB
GAPPS_20132904.zip - 50.20 MB
boot.img - 3.77 MB
Installation instructions
- You have rooted, unlocked bootloader and a recovery (cwm, maybe twrp)
- Download zip file (rom), gapps for ICS and kernel (boot.img). And transfer that to SDcard
- Do a Nandroid Backup!
- Flash boot.img via FASTBOOT(with command fastboot flash boot boot.img)
- Boot directly into CwM Recovery
- Wipe data/factory reset
- Wipe cache partition
- Mounts: Format System
- Advanced: Wipe Dalvik cache, battery stats if you have them
- Install zip from SDcard -> choose zip -> your rom (zip)
- Install zip from SDcard -> choose zip -> gapps for ICS (zip)
- Reboot to system
- while installation you`ll get "random offset" message. It is normal - google that.
Leave your phone now for 5 minutes, let it take a breath.
Warning: updating kernel, ROM, recovery, risk potential damage. and I cannot be held responsible for any damage to your machine. Please read and study ways to ensure before you begin.
Click to expand...
Click to collapse
Many Thanx Aka_Noodle for your Work on new ROMS :good:
I will test it asap ...
rockhardy said:
Rom is working great. But in some apps like music, and setup guide chinese language was there. Overall rom is working great.
Thanks for this
Click to expand...
Click to collapse
Tomorrow I'll upload new version with fixes.
send from my Nexus
tomcatz666 said:
Many Thanx Aka_Noodle for your Work on new ROMS :good:
I will test it asap ...
Click to expand...
Click to collapse
Thanks - will give this a go ...
PLAY Store does not work ... BTW
charmainelooi said:
Thanks - will give this a go ...
PLAY Store does not work ... BTW
Click to expand...
Click to collapse
ROM works fine ... some smaller FC´s but overall a really nice and smooth running ROM - Great Job !!
BTW: Playstore works on my device without problems
tomcatz666 said:
ROM works fine ... some smaller FC´s but overall a really nice and smooth running ROM - Great Job !!
BTW: Playstore works on my device without problems
Click to expand...
Click to collapse
CRap ... wonder what's wrong with my device
charmainelooi said:
CRap ... wonder what's wrong with my device
Click to expand...
Click to collapse
Do u clean install ROM or dirty flash it ?
send from my Nexus
I followed your instructions to the letter:
- You have rooted, unlocked bootloader and a recovery (cwm, maybe twrp)
- Download zip file (rom), gapps for ICS and kernel (boot.img). And transfer that to SDcard
- Do a Nandroid Backup!
- Flash boot.img via FASTBOOT(with command fastboot flash boot boot.img)
- Boot directly into CwM Recovery
- Wipe data/factory reset
- Wipe cache partition
- Mounts: Format System
- Advanced: Wipe Dalvik cache, battery stats if you have them
Will do it again ... Thanks
charmainelooi said:
I followed your instructions to the letter:
- You have rooted, unlocked bootloader and a recovery (cwm, maybe twrp)
- Download zip file (rom), gapps for ICS and kernel (boot.img). And transfer that to SDcard
- Do a Nandroid Backup!
- Flash boot.img via FASTBOOT(with command fastboot flash boot boot.img)
- Boot directly into CwM Recovery
- Wipe data/factory reset
- Wipe cache partition
- Mounts: Format System
- Advanced: Wipe Dalvik cache, battery stats if you have them
Will do it again ... Thanks
Click to expand...
Click to collapse
Try to delete this folders .android_secure, Android, LOST.DIR and do clean install ROM
AKA_noodle said:
Try to delete this folders .android_secure, Android, LOST.DIR and do clean install ROM
Click to expand...
Click to collapse
Thanks for the info. Will be you be releasing another version of Baidu as per your previous posting ? Thanks
charmainelooi said:
Thanks for the info. Will be you be releasing another version of Baidu as per your previous posting ? Thanks
Click to expand...
Click to collapse
yes, wait for hour.
UPD: uploaded v.28 check OP
.........................
It seems that if I don't have any SIM card installed, Play Store would crash. BTW, AKA_Noodle, do you intend to refine/upgrade Baidu further ? Any chance you can install AOSP browser ...
BTW, my Russian is bad ... how can I reconfigure the Baidu browser to English language ?
Thanks
charmainelooi said:
It seems that if I don't have any SIM card installed, Play Store would crash. BTW, AKA_Noodle, do you intend to refine/upgrade Baidu further ? Any chance you can install AOSP browser ...
BTW, my Russian is bad ... how can I reconfigure the Baidu browser to English language ?
Thanks
Click to expand...
Click to collapse
Install Baidu browser manual from here https://play.google.com/store/apps/...wsMSwxLDEsImNvbS5iYWlkdS5icm93c2VyLmludGVyIl0.
And what abt the music player? Can we change its language?
I found another minor bug.... the internal memory is not getting detected on my PC
Sent from my HTC T328w using xda premium
After messing around with this for the whole day, I have to declare that I am pretty impressed with its battery life and its smoothness on a pretty slim hardware ... please do keep upgrading it ... Thanks again
Any updates coming soon ?
Sent from my HTC T328w using xda premium

[Repartition][Flashable zip]More Memory For Your S2

FIrst things first...
Code:
Disclaimer:
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 the tool you find here before flashing it! YOU are choosing to make these modifications, and if you point the finger at us for messing up your device, we will laugh at you. Your warranty will be void if you tamper with any part of your device / software.
Now that we have that done...
Repartition guide for
The GT-i9100​
Introduction:​
This script came a long way before landing here. It originally came from @forumber2 with his guide for the GT-i9300. It then went on to the Note 2 by @ninekaw9 and @smeet.somaiya before I decided to port it over to this lovely device.
Click to expand...
Click to collapse
What does the script do?
It basically removes the partitions present from your device and creates partitions with modified sizes.
TLDR: A flashable .pit file
Images
Result
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Features​
Adds more space for more apps.
Reduced cache partition for even more space for apps.
No need for a computer, fully flashable in CWM.
How To Install?​WARNING: From this point onwards, this guide requires your fullest attention so that it will not brick your device. I tested this on my own i9100, and it is working perfectly.
Links will be provided at the end of the post.
This will wipe everything from your device! Please make a backup before proceeding. Don't say I didn't warn you.
There are two methods to flashing this script. Both works perfectly fine.
Method 1 If you're using 1.1 and above, steps 6-9 are not needed!
Download the two recoveries provided in the Download post below.
Reboot into recovery (CWM or TWRP needed)
Flash philz_touch_6.07.9-i9100.zip and reboot into recovery.
Flash the repartition-apps<xxx>-data<xxx>.zip (Note: It will hang at rebooting to recovery in 5 seconds. Just take out the battery and boot it to recovery.)
Flash kk-kernel-05-01-TWRP.zip and reboot into recovery.
Click on Wipe, then Advanced Wipe.
Tick Internal Data, then click on Repair or Change File System.
Click on Change File System, click on EXT4, then swipe to confirm.
Click on Change File System again, click on exFAT, then swipe to confirm.
Go back to Advanced Wipe, tick on
Dalvik Cache
Cache
System
Data
emmc
Then swipe to wipe the 5 partitions.
Next, click on Install and install your preferred ROM.
Reboot and enjoy!
Method 2 If you're using 1.1 and above, steps 5-8 are not needed!
Download TWRP and the "parted" file from the bottom of the post.
Using a root browser (Root Browser recommended), place the parted file you have downloaded into /system/bin and set its permissions to "RWXR-XR-X".
Reboot into recovery and flash kk-kernel-05-01-TWRP.zip and reboot into recovery.
Flash the repartition-apps<xxx>-data<xxx>.zip
Click on Wipe, then Advanced Wipe.
Tick Internal Data, then click on Repair or Change File System.
Click on Change File System, click on EXT4, then swipe to confirm.
Click on Change File System again, click on exFAT, then swipe to confirm.
Go back to Advanced Wipe, tick on
Dalvik Cache
Cache
System
Data
emmc
Then swipe to wipe the 5 partitions.
Next, click on Install and install your preferred ROM.
Reboot and enjoy!
XDA:DevDB Information
Flashable zip to repartition the S2, Tool/Utility for the i9100
Contributors
Irwenzhao, smeet.somaiya
Version Information
Status: Stable
Current Stable Version: 1.1
Stable Release Date: 2015-02-01
Beta Release Date: 2015-02-07
Created 2015-02-01
Last Updated 2015-06-26
Reserved
Changelog​
1/2/2015
First release!
7/2/2015
Beta 1.01 released!
Changelogs:
Edited the script to not reboot into recovery. Not sure if it works, not an experienced Edify coder.
Click to expand...
Click to collapse
8/2/2015
Mirrors added. Mirrors for beta build will be added at a later date. Thanks for all the support!
20/3/2015
Untested bugfix for 1.0 is out! Please report the results. If it works I'll label it as stable.
28/3/2015
I have tested the fix and it works perfectly. it has been labeled as stable. Enjoy even more memory now! Sorry for the long wait!
Updated steps!
Method 2 added and necessary files uploaded!
25/6/2015
Update 1.1 is here! Major update MUST READ!
This update eliminates steps 6-9. After using the script, you can install a ROM DIRECTLY, how cool is that?
Downloads:​
Repartition .zip files
1.1
reparitition1.1apps4.5gb-data9gb.zip
reparitition1.1apps7.3gb-data6gb.zip
1.0
repartition1.0-apps4.5gb_data9gb.zip (Mirror)
repartition1.0-apps7.3gb_data6gb.zip (Mirror)
Recoveries
TWRP (Mirror)
Philz (Mirror)
BETA/MISC
parted (Mirror) (for Method 2)
Reserved
Notes, Warnings and some Random Stuff (MUST READ)​
Do you need a zip file with a custom partition size? Post a feature request and I'll attend to it ASAP!
I will be updating this thread (probably) weekly, but I will provide support through my mobile device.
DO NOT use this on stock ROMs. You will brick your device.
Follow the guide CAREFULLY. Please.
Hey there,
First response it seems. I'll have to try this later as I haven't had to repartition my S2 and it sounds a lot quicker than using say ODIN for the job. Anyone had any issues yet?
omallz said:
Hey there,
First response it seems. I'll have to try this later as I haven't had to repartition my S2 and it sounds a lot quicker than using say ODIN for the job. Anyone had any issues yet?
Click to expand...
Click to collapse
No issues on my device so far.
Do you need a zip file with a custom partition size? Post a feature request and I'll attend to it ASAP!
Yeah, it's would be great to have a zip-file for coming back to stock partition also!
Thanks.
Sergey2510 said:
Do you need a zip file with a custom partition size? Post a feature request and I'll attend to it ASAP!
Yeah, it's would be great to have a zip-file for coming back to stock partition also!
Thanks.
Click to expand...
Click to collapse
You'll have to do that using a .pit file. I think it's required to flash stock ROMs.
Repartition sizes
@Irwenzhao Could you please explain the attached files of Repartition sizes ?
I mean.. what will be the configuration and new sizes category wise ..
and Kindly share/upload another way to download the attached files too.. getting this error from Dropbox
"Error (509)
This account's public links are generating too much traffic and have been temporarily disabled! "
Thanks
adnan7khan said:
@Irwenzhao Could you please explain the attached files of Repartition sizes ?
I mean.. what will be the configuration and new sizes category wise ..
and Kindly share/upload another way to download the attached files too.. getting this error from Dropbox
"Error (509)
This account's public links are generating too much traffic and have been temporarily disabled! "
Thanks
Click to expand...
Click to collapse
Apps<xxgb> means that there'll be xxgb of space available to install apps and Data<xxgb> simply means that there'll be xxgb of space available for your music/documents/files.
Too much traffic? I wasn't expecting this many people! Shall provide a mirror ASAP.
Irwenzhao said:
Apps<xxgb> means that there'll be xxgb of space available to install apps and Data<xxgb> simply means that there'll be xxgb of space available for your music/documents/files.
Too much traffic? I wasn't expecting this many people! Shall provide a mirror ASAP.
Click to expand...
Click to collapse
Thanks already waiting
Mirrors up. Mirrors for beta build will be provided at a later date.
I am sorry if this is a stupid question, but what happens to the space between 12.4 GB and 15.2 GB? In the original partitioning there is 1.94+11.5 = 13.44 GB of space, while this setup has only 4.48+6.33 = 10.81 GB. Thank you for you time.
jeffrey2121 said:
I am sorry if this is a stupid question, but what happens to the space between 12.4 GB and 15.2 GB? In the original partitioning there is 1.94+11.5 = 13.44 GB of space, while this setup has only 4.48+6.33 = 10.81 GB. Thank you for you time.
Click to expand...
Click to collapse
Must be another typo I did while writing the script on my phone. Will correct it when I have the time.
Stock or Samy Based ROM *Custom Partitions*
@Irwenzhao is it possible to flash stock ROM or OMEGA v61 etc on the customized partitions ???
adnan7khan said:
@Irwenzhao is it possible to flash stock ROM or OMEGA v61 etc on the customized partitions ???
Click to expand...
Click to collapse
Stock ROM NO. Third Party Touchwiz ROM is a yes.
when I perform the last step for the 5 options on advanced wipe, I get wipe failed. What does that mean?
Irwenzhao said:
jeffrey2121 said:
I am sorry if this is a stupid question, but what happens to the space between 12.4 GB and 15.2 GB? In the original partitioning there is 1.94+11.5 = 13.44 GB of space, while this setup has only 4.48+6.33 = 10.81 GB. Thank you for you time.
Click to expand...
Click to collapse
Must be another typo I did while writing the script on my phone. Will correct it when I have the time.
Click to expand...
Click to collapse
can you please upload screenshot of storage after you update or correct the script
Dropbox had locked the files
It will work with the stock rom 4.1.2?
Thank you. After following your steps, my storage now changed. for device and USB. awesome work..

[SM-G530x/fortunaxx][OFFICIAL] DualbootPatcher - a much simpler dual boot solution

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Informations
Hey guys, today i will show DualBootPatcher one of the best apps for multi ROMs (i think this is the unique app for this ).
I have managed to support Samsung Galaxy Prime ( G530x )
I am not the creator, just the supporter
Disclaimer
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.
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?
Except Toaster and Alarm clocks pretty much everything is supported.
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.
Windows (GUI)
Double click DualBootPatcher.exe 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.
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.
There are two ways of flashing the patched zip file. You can either flash it normally from recovery or flash it using the in-app flashing feature. Both methods are explained below.
Flashing from recovery
To flash from recovery, just flash the patched zip file like you would for any other zip. Nice and simple.
In-app flashing
To use in-app flashing, go to "Roms" in the navigation drawer, tap the floating button on the bottom right, and add the zips you want to install. You can queue multiple zips and they will all be flashed in one go. Once you've added all the zips you want to flash, click the check mark in the action bar and they will be flashed right away.
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
App and data sharing
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:
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
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.
(Hope my analogy didn't suck too much )
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:
I recommend against using the stable version of the patcher right now. So many changes have been made in regards to device support, ROM support, and general bug fixes that it's better to use the unstable snapshot builds until the next stable release is made.
[LINK] Dual Boot Patcher (Snapshots) and DualBootUtilities recovery zip
Source code:
DualBootPatcher: https://github.com/chenxiaolong/DualBootPatcher
DualBootUtilities: https://github.com/chenxiaolong/DualBootZips
Build instructions: https://github.com/chenxiaolong/DualBootPatcher/tree/master/docs
Know Issues
- The ROMs section sometimes bug and get a infinite refresh, close the app and open app again.
- Simple Anouncement : Please refrain from using /system and /cache partitions for secondary rom install
Special Thanks
@chenxiaolong for the awesome DualBootPatcher.
XDA:DevDB Information
Dualboot Patcher G530x, Tool/Utility for the Samsung Galaxy Grand Prime
Contributors
faizauthar12
Source Code: https://github.com/chenxiaolong/DualBootPatcher
Version Information
Status: Stable
Created 2017-03-26
Last Updated 2017-03-26
Reserved
Reserved
Here we go, the screenshots!
Can i use the stock rom as primary and other rom as secondary? Need help to this, haha
DexIdiotGT said:
Can i use the stock rom as primary and other rom as secondary? Need help to this, haha
Click to expand...
Click to collapse
Yes, that's the main reason why i port this tools
It means 2 different roms???
Dehieu2003 said:
It means 2 different roms???
Click to expand...
Click to collapse
Yes it is...
3, 4 or even 10 roms at once installed
Just like a dualboot or triple boot at desktop
faizauthar12 said:
Yes it is...
3, 4 or even 10 roms at once installed
Just like a dualboot or triple boot at desktop
Click to expand...
Click to collapse
Did you have a tutorial about this? I don't understand
Dehieu2003 said:
Did you have a tutorial about this? I don't understand
Click to expand...
Click to collapse
go to ROMs tabs to patch your current kernel with mbtool
then:
prepare your ROM that will be patched
open DualBoot Patcher app
go to Path Zips File
press the "+" icon
and press "Add flashable zip"
allow the permission...
choose the zip file ( rom )
now choose the partition configuration
Code:
Primary rom is the current rom..., use this option to update the rom..
Secondary till multi slot 3 will use system partition
Data slot will eat the internal storage..
Extsd slot will eat the external storage, Sdcard
after that give an ID for your rom
( this will give a dedicated folder for it)
if you give pacman rom with ID "1" , slot 1 will be reserved for pacman, if you want to upgrade it
go back to partition configuration then give the same ID..
patched?
flash it via recovery
faizauthar12 said:
Here we go, the screenshots!
Click to expand...
Click to collapse
Hey there,
I have tried this on my fortunave3g. My primary rom is stock 5.0 TouchWiz and I am trying to install AEX 4.6. But I am facing issues installing it. I followed the instructions given on the apps GitHub page.
Patched the ROM using the app and flashing it from the app, everything okay but stuck at "Patching system image unconditionally". I sat there for 1 hrs but nothing happen. So I closed that and tried installing it with TWRP. From there, it was able to create system.img and other images but it fails to run updater-script.
Have any idea why this happens?
Sent from my fortunave3g using XDA Labs

[Xiaomi Mi Pad 4] Android Generic System Image installation Guide

I started a little Android Generic System Image installation Guide on my Github :
https://github.com/GBouerat/xiaomi_mi_pad_4
(work in progress)
https://github.com/GBouerat/xiaomi_mi_pad_4/tree/master/TWRP
Code:
fastboot oem device-infov
Is it really device-infov or is it typo.
P.Kosunen said:
https://github.com/GBouerat/xiaomi_mi_pad_4/tree/master/TWRP
Code:
fastboot oem device-infov
Is it really device-infov or is it typo.
Click to expand...
Click to collapse
It's a typo, thanks
Code:
fastboot oem device-info
Thank you very much, mate! Can we expect to see an official TWRP release as well as LineageOS 15.1?
PS: Does Android P GIS work well? Are there any known issues so far?
Please do include the build.prop tweaks mentioned here - those are quite necessary for the device to function as a tablet.
cRaZy-bisCuiT said:
PS: Does Android P GIS work well? Are there any known issues so far?
Click to expand...
Click to collapse
None of those P GSIs boot.
Anyone able to root using Magisk on v9.6.23 boot.img (http://en.miui.com/thread-3538488-1-1.html)? Magisk patched boot.img doesn't seems to boot for me and I have to revert to stock boot.img.
Edit: hah, never mind. I forgot to disable forceencrypt when i flashed the new stock kernel and it encrypted data. Had to wipe data and unencrypt to root again.
Magisk on GSI is incompatible with adb usb debug mode, no ?
GBouerat said:
Magisk on GSI is incompatible with adb usb debug mode, no ?
Click to expand...
Click to collapse
works fine for me
Hi
Could You please write with recovery version is this? There are 2 recovery versions as of 2018.7.13 and 2018.7.11 with description like bellow:
2018.7.13 update
1. Fix the problem of not recognizing the external memory card.
2. After brushing in twrp, the first time you enter twrp, it may restart once. This is normal. If you restart repeatedly, or you cannot decrypt the data, please give me feedback in time.
2018.7.11 update:
1. Update the attempt to repair the decrypted data, and expect whether the follow-up can reach the expected.
2. After brushing in twrp, the first time you enter twrp, it may restart once. This is normal. If you restart repeatedly, or you cannot decrypt the data, please give me feedback in time.
---------- Post added at 11:42 AM ---------- Previous post was at 11:12 AM ----------
I booted my pad with Your recovery and I can't see external SD card, so I expect that is the 2018.7.11 version. Am I right?
Hi again.
I found on another forum recovery that supports external sd-card. It's: recovery-TWRP-3.2.2-0713-MIPAD4-RuEn-Kirhe.img and it's working fine on my mi pad 4
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
bartekm01 said:
Hi again.
I found on another forum recovery that supports external sd-card. It's: recovery-TWRP-3.2.2-0713-MIPAD4-RuEn-Kirhe.img and it's working fine on my mi pad 4
Click to expand...
Click to collapse
Hallo
Where did you find this TWRP?
I found it on 4pda. Link to download
https://drive.google.com/file/d/1CaX9pkdBcOZFMlxwQdOC2TPeknQGJHNZ/view?usp=drivesdk
bartekm01 said:
I found it on 4pda. Link to download
https://drive.google.com/file/d/1CaX9pkdBcOZFMlxwQdOC2TPeknQGJHNZ/view?usp=drivesdk
Click to expand...
Click to collapse
Tanks!!
Encryption
bartekm01 said:
Hi
Could You please write with recovery version is this? There are 2 recovery versions as of 2018.7.13 and 2018.7.11 with description like bellow:
2018.7.13 update
1. Fix the problem of not recognizing the external memory card.
2. After brushing in twrp, the first time you enter twrp, it may restart once. This is normal. If you restart repeatedly, or you cannot decrypt the data, please give me feedback in time.
2018.7.11 update:
1. Update the attempt to repair the decrypted data, and expect whether the follow-up can reach the expected.
2. After brushing in twrp, the first time you enter twrp, it may restart once. This is normal. If you restart repeatedly, or you cannot decrypt the data, please give me feedback in time.
---------- Post added at 11:42 AM ---------- Previous post was at 11:12 AM ----------
I booted my pad with Your recovery and I can't see external SD card, so I expect that is the 2018.7.11 version. Am I right?
Click to expand...
Click to collapse
Hi,
Were you able to encrypt your Mi Pad after flashing the GSI?
jonklinger said:
Hi,
Were you able to encrypt your Mi Pad after flashing the GSI?
Click to expand...
Click to collapse
I didn't install gsi
Hi !
What's the difference between ab version and aonly version ?
EDIT: I flash today Android Pie GSI version.
After flashing GSI, you can found Open GAPPS unofficial here: https://builds.nezorfla.me/?dir=opengapps/pie/arm64
For no error 70, before flashing Open GAPPS, you must do that: Wipe -> Advanced Wipe -> Select System -> Repair or Change File System -> Resize File System -> Swipe to Resize
After, you can flash Open GAPPS, Magisk (for root) and Dm-Verity, and finally reboot
bartekm01 said:
I found it on 4pda. Link to download
https://drive.google.com/file/d/1CaX9pkdBcOZFMlxwQdOC2TPeknQGJHNZ/view?usp=drivesdk
Click to expand...
Click to collapse
Have you also flashed the misc file together with the TWRP? Or in this version there is no need?
snke said:
Have you also flashed the misc file together with the TWRP? Or in this version there is no need?
Click to expand...
Click to collapse
No only TWRP. I didn't flash misc - I think that misc changing region but I did not found any information about it.
---------- Post added at 04:56 AM ---------- Previous post was at 04:51 AM ----------
arkansis said:
Hi !
What's the difference between ab version and aonly version ?
EDIT: I flash today Android Pie GSI version.
After flashing GSI, you can found Open GAPPS unofficial here: https://builds.nezorfla.me/?dir=opengapps/pie/arm64
For no error 70, before flashing Open GAPPS, you must do that: Wipe -> Advanced Wipe -> Select System -> Repair or Change File System -> Resize File System -> Swipe to Resize
After, you can flash Open GAPPS, Magisk (for root) and Dm-Verity, and finally reboot
Click to expand...
Click to collapse
MiPad4 is only a partition. There is no b partition for seamless updates.
So far I didn't install any GSI but I've have installed China stable, developer and xiaomi.eu roms and I didn't have to resize system partitions. An ROMs are bigger maybe that's why You need to extend partitions but installation should end with error because of lack "b" partition
AICP 8.1 GSI works fine.
https://forum.xda-developers.com/project-treble/trebleenabled-device-development/8-1-0-t3839168
dzidexx said:
AICP 8.1 GSI works fine.
https://forum.xda-developers.com/project-treble/trebleenabled-device-development/8-1-0-t3839168
Click to expand...
Click to collapse
I'm agree, in my opinion It's the best GSI rom for MP4.

Categories

Resources