Nexus 7 (2013) Repartition
No one is responsible for your actions except yourself. Everything written further may potentially brick your device, although risk is reduced to minimum.
This repartition package offers 1.5G /system; a /vendor partition and it is fully backward compatible with any ROM (including stock system.img).
- If repartition pack says that device isn't correct, than, if partition table wasn't modified before, congrats! your device has different memory chip that those I worked with. No worry, PM me and I'll add support for it.
DO THE BACKUPs. Repartition will erase all your data
USB connection to PC is MANDATORY else you will not have opportunity to push ROM to your device
# Before processing further we highly recommend you backup persist and EFS using adb
# Or you might lose your IMEI/WIFI + BT mac addresses
adb root adb shell dd if=/dev/block/mmcblk0p2 of=/sdcard/modemst1.img dd if=/dev/block/mmcblk0p3 of=/sdcard/modemst2.img dd if=/dev/block/mmcblk0p4 of=/sdcard/persist.img
Now you can find 3 *.img files at path /sdcard. Copy them to your PC since internal memory will be erased.
# This mod is backwards compatible with any ROM so we highly recommend NOT to reverse it if repartition went well. # You should use ONLY recovery from this thread since other don't support all benefits of this mod. # When installing ROM just after you flashed zip and before installing GAPPs you MUST make a resize in TWRP since all roms are build for ~800M system. # Package is unified for flo and deb. To restore stock layout use same zip and steps as for repartition. 1. Boot into recovery (You need to allow system partition modification to be able resize /system in recovery). 2. Backup your data & Move your files from flash to your PC. 3. Flash repartition pack zip. 4. Do the actions asked by repartition pack (go to Terminal in ordinary recovery and input word that pack will tell you. Everything else will be done automatically). 5. Phone will reboot into recovery. 6. Install TWRP from below (it is build with support of new partitions layout and sizes. It can be differed from official TWRP by next format 3.x.x-1 UA). 7. Format everything. (mount errors will not affect formatting!) - In TWRP: Wipe > Format data - Type yes - Once this completes go to: Wipe > Advanced Wipe - Tick all the boxes and wipe. There should be no further mount errors. (Thanks [user=7694808]@mr_rubbish[/user] for corrections in formatting). 8. Install ROM which you like. 9. Enjoy better flash partition layout.
If something gone wrong - we recommend you NOT to do anything by yourself. Write here for help, else you may do only worse.
Repartitioning package: GitHub
Special thanks to
- Unlegacy-Android team;
- rlw6534 for Kingston MMC layout;
- surfrock66 for his gide for Nexus 5;
As usual, feedback is appreciated
Nexus 7 (2013) Repartition, Tool/Utility for the Nexus 7 (2013)
Source Code: https://github.com/clamor95/android_device_unlegacy_recovery
Last Updated 2019-01-18