[TOOL][UNOFFICIAL][PORT] REPIT: for Nexus 7 (2013) [deb][flo]

Search This thread

ipdev

Recognized Contributor
Feb 14, 2016
2,319
1
4,635
Google Nexus 10
Nexus 7 (2013)
This is a port of Lanchon REPIT.
- Nexus 7 (2013) Deb (LTE) and Flo (WiFi) -

Disclaimer:
I am not responsible for your actions or consequences, directly or indirectly, related to the files and/or advice offered.
It is your choice to proceed.

What is REPIT?
REPIT is a simple, safe, device-only, data-sparing, and easily portable repartitioning tool for Android devices.

See the GitHub README for more on What REPIT is. GitHub - Link

Limitations:
  • Requires TWRP (or TWRP based) recovery.
  • Does not support encrypted devices.
  • Will cause data loss if the repartitioning process is externally interrupted.

See the GitHub README for more on Limitations. GitHub - Link

---

Notes:
A few years ago (September 2018), I made a port of REPIT for deb,flo and manta that was spread out between multiple threads.
Some comments and instructions were lost in thread chatter or just in a different thread altogether.
  • The file name actually configures the repit script.
  • Noted that you may have to toggle MTP Disable, Enable, Disable.
  • Noted that you may have to reboot into TWRP after disabling MTP.
    • Remember /tmp is wiped after a reboot. Copy repit to /sdcard and after rebooting back into TWRP, copy it from /sdcard to /tmp using TWRP File manager.
  • Noted that you may have to unmount cache and data.
  • Do NOT flash repit from USB/OTG.
  • This is designed for a stock partition layout. If your device has been modified and a vendor partition was created, REPIT will not work.

Side note:
Lanchon added Nexus 7 (2013) to the official list. (November 2019)
Lanchon REPIT GitHub - Port Request - Commit

---

Be Careful.
There are always risks involved when you start messing around with a device.
If something goes wrong, you may end up with a non-working "bricked" device.
This is especially true when you start modifying partitions.

Backup what you want to save and store it off device.
Copy it to your computer, cloud storage, USB, ...

Instructions:

This operation might take a long time and must not be interrupted.
- Depending on the device and REPIT configuration, this might take a few hours.

Make sure your battery is fully charged or mostly charged.
- You can connect to a charger while the REPIT script is running. May or may not charge depending on the recovery.

How To:

If you already have a ROM installed, repit will backup, change the partition, restore and resize.
- You can just reboot once the script finishes.
  1. Boot into TWRP
    • Swipe to Allow Modifications
  2. Copy the repit zip to /tmp
  3. Disconnect from computer
  4. Disable MTP
    • Disable MTP TWRP -> Mount
  5. Install repit
    • TWRP -> Install -> navigate to /tmp and flash the repit zip
  6. Reboot to system

If you are doing a clean install, add the +wipe option to system in the zip file name. This will speed up the partitioning since system will not be backed up and restored.
lanchon-repit-20210220-system=max+wipe-cache=16M+wipe-flo.zip
- Reboot back into TWRP after the script finishes.
- Then follow the instructions from the rom thread to install the rom you are going to use.
  1. Boot into TWRP
    • Swipe to Allow Modifications
  2. Copy the repit zip to /tmp
  3. Disconnect from computer
  4. Disable MTP
    • Disable MTP TWRP -> Mount
  5. Install repit
    • TWRP -> Install -> navigate to /tmp and flash the repit zip
  6. Reboot to recovery
  7. Follow the instructions from the rom thread to install the rom you are going to use.
---

Changes:
Nexus 7 (2013) [Deb][Flo]
  • Pushed a bit pass the safe zone and claimed a bit more unallocated space.
  • Updated to the current REPIT scripts.
  • Separate zip files for deb and flo.
Nexus 7 (2013) GitHub - Commit

Download Links:
MediaFire - Link
SourceForge - Link
GoogleDrive - Link

Direct Download from MediaFire:
lanchon-repit-20210221-system=max-cache=16M+wipe-deb.zip MediaFire - Download
lanchon-repit-20210221-system=max-cache=16M+wipe-flo.zip MediaFire - Download

REPIT Links:
Lanchon REPIT GitHub - Link
- My fork GitHub - Link

Credits:
Lanchon for his excellent REPIT project.
The Android Community and everyone who has helped me learn through the years.

Cheers all. :cowboy:
 

ipdev

Recognized Contributor
Feb 14, 2016
2,319
1
4,635
Google Nexus 10
Nexus 7 (2013)
Note about configuration.

The user configuration is done by renaming the zip file before flashing it.

Not much room to change on deb/flo.
The modifiable partitions are only system and cache (22 and 23).
The actual partitioning is done by a sector range. This is declared inside the script along with a default configuration.
Code:
    # the set of partitions that can be modified by REPIT:
    #     <gpt-number>  <gpt-name>  <friendly-name> <conf-defaults>     <crypto-footer>
    initPartition   22  system      system          "same keep ext4"    0
    initPartition   23  cache       cache           "same keep ext4"    0
    initPartition   24  misc        misc            "same keep raw"     0

    # the set of modifiable partitions that can be configured by the user (overriding <conf-defaults>):
    configurablePartitions="$(seq 22 23)"

...

    # the set of contiguous partitions that form this heap, in order of ascending partition start address:
    heapPartitions="$(seq 22 24)"

    # the disk area (as a sector range) to use for the heap partitions:
    heapStart=$(parOldEnd 21)        # one sector past the end of tzb.
    heapEnd=$(parOldStart 25)        # the start of recovery.

By default, REPIT will back up, restore, compress and/or expand a partition.
The +wipe option will wipe the partition.
The max option is an easy way to allocate the remaining space for a partition.

The misc partition is not part of the user-config but, it is in the sector range.
It will be moved to the the end of the sector range without alteration.

The default zip name lanchon-repit-20210221-system=max-cache=16M+wipe-flo.zip
Creates a 16M clean cache partition. (Wiped)
Uses the rest of the unallocated space in the range for system.
System is backed up and restored since the +wipe option was NOT added to system.

Since only system and cache can be configured, this only allows a few options for deb and flo.

Default zip name. -system=max-cache=16M+wipe-
Include wipe system. -system=max+wipe-cache=16M+wipe-

See the GitHub README for more on how to configure. GitHub - Link

Cheers all. :cowboy:
 
Last edited:

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,326
34,685
Halifax
GT-i9250
Google Nexus 4
I think this deserves a bump, because, this is some great work right here for those wanting to stick with a stock-like partition layout! 😁
 
Last edited:
  • Like
Reactions: ipdev

greenleaves

Senior Member
Dec 15, 2010
195
26
Philadelphia
LG V30
This is a port of Lanchon REPIT.
- Nexus 7 (2013) Deb (LTE) and Flo (WiFi) -

Disclaimer:
I am not responsible for your actions or consequences, directly or indirectly, related to the files and/or advice offered.
It is your choice to proceed.

What is REPIT?
REPIT is a simple, safe, device-only, data-sparing, and easily portable repartitioning tool for Android devices.

See the GitHub README for more on What REPIT is. GitHub - Link

Limitations:
  • Requires TWRP (or TWRP based) recovery.
  • Does not support encrypted devices.
  • Will cause data loss if the repartitioning process is externally interrupted.

See the GitHub README for more on Limitations. GitHub - Link

---

Notes:
A few years ago (September 2018), I made a port of REPIT for deb,flo and manta that was spread out between multiple threads.
Some comments and instructions were lost in thread chatter or just in a different thread altogether.
  • The file name actually configures the repit script.
  • Noted that you may have to toggle MTP Disable, Enable, Disable.
  • Noted that you may have to reboot into TWRP after disabling MTP.
    • Remember /tmp is wiped after a reboot. Copy repit to /sdcard and after rebooting back into TWRP, copy it from /sdcard to /tmp using TWRP File manager.
  • Noted that you may have to unmount cache and data.
  • Do NOT flash repit from USB/OTG.
  • This is designed for a stock partition layout. If your device has been modified and a vendor partition was created, REPIT will not work.

Side note:
Lanchon added Nexus 7 (2013) to the official list. (November 2019)
Lanchon REPIT GitHub - Port Request - Commit

---

Be Careful.
There are always risks involved when you start messing around with a device.
If something goes wrong, you may end up with a non-working "bricked" device.
This is especially true when you start modifying partitions.

Backup what you want to save and store it off device.
Copy it to your computer, cloud storage, USB, ...

Instructions:

This operation might take a long time and must not be interrupted.
- Depending on the device and REPIT configuration, this might take a few hours.

Make sure your battery is fully charged or mostly charged.
- You can connect to a charger while the REPIT script is running. May or may not charge depending on the recovery.

How To:

If you already have a ROM installed, repit will backup, change the partition, restore and resize.
- You can just reboot once the script finishes.
  1. Boot into TWRP
    • Swipe to Allow Modifications
  2. Copy the repit zip to /tmp
  3. Disconnect from computer
  4. Disable MTP
    • Disable MTP TWRP -> Mount
  5. Install repit
    • TWRP -> Install -> navigate to /tmp and flash the repit zip
  6. Reboot to system

If you are doing a clean install, add the +wipe option to system in the zip file name. This will speed up the partitioning since system will not be backed up and restored.
lanchon-repit-20210220-system=max+wipe-cache=16M+wipe-flo.zip
- Reboot back into TWRP after the script finishes.
- Then follow the instructions from the rom thread to install the rom you are going to use.
  1. Boot into TWRP
    • Swipe to Allow Modifications
  2. Copy the repit zip to /tmp
  3. Disconnect from computer
  4. Disable MTP
    • Disable MTP TWRP -> Mount
  5. Install repit
    • TWRP -> Install -> navigate to /tmp and flash the repit zip
  6. Reboot to recovery
  7. Follow the instructions from the rom thread to install the rom you are going to use.
---

Changes:
Nexus 7 (2013) [Deb][Flo]
  • Pushed a bit pass the safe zone and claimed a bit more unallocated space.
  • Updated to the current REPIT scripts.
  • Separate zip files for deb and flo.
Nexus 7 (2013) GitHub - Commit

Download Links:
MediaFire - Link
SourceForge - Link
GoogleDrive - Link

Direct Download from MediaFire:
lanchon-repit-20210221-system=max-cache=16M+wipe-deb.zip MediaFire - Download
lanchon-repit-20210221-system=max-cache=16M+wipe-flo.zip MediaFire - Download

REPIT Links:
Lanchon REPIT GitHub - Link
- My fork GitHub - Link

Credits:
Lanchon for his excellent REPIT project.
The Android Community and everyone who has helped me learn through the years.

Cheers all. :cowboy:
I have been trying to repartition Nexus flo 2013 following the steps outlined above with lanchon-repit-20210221-system=max+wipe-cache=16M+wipe-deb.zip for 19.1 version but keep getting Error 1, see photo. Any help will be much appreciated. Thank you
 

Attachments

  • Nexus 7.jpg
    Nexus 7.jpg
    4.9 MB · Views: 186

greenleaves

Senior Member
Dec 15, 2010
195
26
Philadelphia
LG V30
I have been trying to repartition Nexus flo 2013 following the steps outlined above with lanchon-repit-20210221-system=max+wipe-cache=16M+wipe-deb.zip for 19.1 version but keep getting Error 1, see photo. Any help will be much appreciated. Thank you
Problem fixed. Now 19.1, pico gapps and Magisk 25.0 were flashed in success. The problem was that I didn't follow through the steps carefully described on the OP to increase the partition sizes as follows:

  • The file name actually configures the repit script.
  • Noted that you may have to toggle MTP Disable, Enable, Disable.
  • Noted that you may have to reboot into TWRP after disabling MTP.
    • Remember /tmp is wiped after a reboot. Copy repit to /sdcard and after rebooting back into TWRP, copy it from /sdcard to /tmp using TWRP File manager.
  • Noted that you may have to unmount cache and data.
  • Do NOT flash repit from USB/OTG.
  • This is designed for a stock partition layout. If your device has been modified and a vendor partition was created, REPIT will not work.
 

theistus

Senior Member
Mar 27, 2010
370
123
Problem fixed. Now 19.1, pico gapps and Magisk 25.0 were flashed in success. The problem was that I didn't follow through the steps carefully described on the OP to increase the partition sizes as follows:

  • The file name actually configures the repit script.
  • Noted that you may have to toggle MTP Disable, Enable, Disable.
  • Noted that you may have to reboot into TWRP after disabling MTP.
    • Remember /tmp is wiped after a reboot. Copy repit to /sdcard and after rebooting back into TWRP, copy it from /sdcard to /tmp using TWRP File manager.
  • Noted that you may have to unmount cache and data.
  • Do NOT flash repit from USB/OTG.
  • This is designed for a stock partition layout. If your device has been modified and a vendor partition was created, REPIT will not work.
Edit: NVM, i used restock to start fresh, and it all went fine. I've had this table kicking around long enough that I'm sure something was done that sysrepartundo couldn;'t undo.

How did you actually fix it? I ran sysrepartundo, am running it from the tmp folder with mtp disabled and nothing mounted, and still getting error 1. I've double check, all my partition sizes are stock.. I've been at this a few hours now and am getting frustrated.
 
Last edited:

MikiGry

Senior Member
Oct 2, 2013
1,598
386
Nexus 7 (2013)
Samsung Gear S3
Thank you for the script. I was able to repartion my flo and make it compatible with android 12L. Everything went smooth after realising (and correcting this mistake) that i"ve been putting the .zip inside /sdcard/tmp instead of /tmp (I was getting error 1 in TWRP).

During instalation process i"ve connected flo to charger and it indeed charged during repartition process

Things i"ve noticed

- TWRP appeared to be very laggy during repit process and took several seconds to reconginse the charger (to show to + sign next to the battery % to be precise)

- after device rebooted to stock 6.0.1, MTP didn"t work correctly. It appeared in my computer as "Nexus 7", but was completely empty. One more reboot (this time got short loading toast of "android is updating") and internal memory was visible from computer again
 
  • Like
Reactions: ipdev

curiousde2002

Senior Member
Aug 3, 2009
214
45
Hi,

I had used @followmsi's sysrepart_1280_120.zip some time ago.
Now I'm interested in @followmsi's lineage 19.1 and want to use your lanchon-repit-20210221 script for increasing the system partition again.

Would you still consider the partition layout as stock, so I could use your script ? (See attachments)
And do I need a PC as the USB port is inoperative, so no way to connect to a PC?

Thank you very much in advance!
 

Attachments

  • 20221014_132345.jpg
    20221014_132345.jpg
    2.3 MB · Views: 45
  • 20221014_132140.jpg
    20221014_132140.jpg
    828.9 KB · Views: 43

ipdev

Recognized Contributor
Feb 14, 2016
2,319
1
4,635
Google Nexus 10
Nexus 7 (2013)
Hi,

I had used @followmsi's sysrepart_1280_120.zip some time ago.
Now I'm interested in @followmsi's lineage 19.1 and want to use your lanchon-repit-20210221 script for increasing the system partition again.

Would you still consider the partition layout as stock, so I could use your script ? (See attachments)
And do I need a PC as the USB port is inoperative, so no way to connect to a PC?

Thank you very much in advance!
You should be good to go. 👍
Using one of the older (re)partitioning methods did not affect the partition table too much.

The note about a stock partition layout is mainly for users who used a (re)partition script that adds a separate vendor partition. 🙃

Cheers. :cowboy:
 

curiousde2002

Senior Member
Aug 3, 2009
214
45
You should be good to go. 👍
Using one of the older (re)partitioning methods did not affect the partition table too much.

The note about a stock partition layout is mainly for users who used a (re)partition script that adds a separate vendor partition. 🙃

Cheers. :cowboy:

Would you recommend any precautions like putting files like restock on my device before running your script as I cannot connect to PC?

Thanks a lot for your help!
 

hfmls

Senior Member
Aug 12, 2009
578
77
Vila Nova de Famalicão
hi, i need some help, after using this script i can't seem to install any rom, i just can't format or mount any of my partitions, and sideload stops at some random %, anything i can do to restore? i backed up all files advised.
 

septchy

New member
Feb 21, 2023
1
0
Hello, i'm having trouble installing Android 12L on my Nexus 7. I simply cannot get lanchon-repit to flash. It wont work, no matter how often I follow the steps and how thorougly I follow the guide. I tried everything. Already restored to "fabric-partitions" so on and so forth.

I'm constantly getting Error 1. I'm slowly losing my mind here.

Kind regards hoping for an answer
septchy

edit: also constantly says partition #30 not found.
 

Attachments

  • PXL_20230221_011519728.jpg
    PXL_20230221_011519728.jpg
    662 KB · Views: 20
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    This is a port of Lanchon REPIT.
    - Nexus 7 (2013) Deb (LTE) and Flo (WiFi) -

    Disclaimer:
    I am not responsible for your actions or consequences, directly or indirectly, related to the files and/or advice offered.
    It is your choice to proceed.

    What is REPIT?
    REPIT is a simple, safe, device-only, data-sparing, and easily portable repartitioning tool for Android devices.

    See the GitHub README for more on What REPIT is. GitHub - Link

    Limitations:
    • Requires TWRP (or TWRP based) recovery.
    • Does not support encrypted devices.
    • Will cause data loss if the repartitioning process is externally interrupted.

    See the GitHub README for more on Limitations. GitHub - Link

    ---

    Notes:
    A few years ago (September 2018), I made a port of REPIT for deb,flo and manta that was spread out between multiple threads.
    Some comments and instructions were lost in thread chatter or just in a different thread altogether.
    • The file name actually configures the repit script.
    • Noted that you may have to toggle MTP Disable, Enable, Disable.
    • Noted that you may have to reboot into TWRP after disabling MTP.
      • Remember /tmp is wiped after a reboot. Copy repit to /sdcard and after rebooting back into TWRP, copy it from /sdcard to /tmp using TWRP File manager.
    • Noted that you may have to unmount cache and data.
    • Do NOT flash repit from USB/OTG.
    • This is designed for a stock partition layout. If your device has been modified and a vendor partition was created, REPIT will not work.

    Side note:
    Lanchon added Nexus 7 (2013) to the official list. (November 2019)
    Lanchon REPIT GitHub - Port Request - Commit

    ---

    Be Careful.
    There are always risks involved when you start messing around with a device.
    If something goes wrong, you may end up with a non-working "bricked" device.
    This is especially true when you start modifying partitions.

    Backup what you want to save and store it off device.
    Copy it to your computer, cloud storage, USB, ...

    Instructions:

    This operation might take a long time and must not be interrupted.
    - Depending on the device and REPIT configuration, this might take a few hours.

    Make sure your battery is fully charged or mostly charged.
    - You can connect to a charger while the REPIT script is running. May or may not charge depending on the recovery.

    How To:

    If you already have a ROM installed, repit will backup, change the partition, restore and resize.
    - You can just reboot once the script finishes.
    1. Boot into TWRP
      • Swipe to Allow Modifications
    2. Copy the repit zip to /tmp
    3. Disconnect from computer
    4. Disable MTP
      • Disable MTP TWRP -> Mount
    5. Install repit
      • TWRP -> Install -> navigate to /tmp and flash the repit zip
    6. Reboot to system

    If you are doing a clean install, add the +wipe option to system in the zip file name. This will speed up the partitioning since system will not be backed up and restored.
    lanchon-repit-20210220-system=max+wipe-cache=16M+wipe-flo.zip
    - Reboot back into TWRP after the script finishes.
    - Then follow the instructions from the rom thread to install the rom you are going to use.
    1. Boot into TWRP
      • Swipe to Allow Modifications
    2. Copy the repit zip to /tmp
    3. Disconnect from computer
    4. Disable MTP
      • Disable MTP TWRP -> Mount
    5. Install repit
      • TWRP -> Install -> navigate to /tmp and flash the repit zip
    6. Reboot to recovery
    7. Follow the instructions from the rom thread to install the rom you are going to use.
    ---

    Changes:
    Nexus 7 (2013) [Deb][Flo]
    • Pushed a bit pass the safe zone and claimed a bit more unallocated space.
    • Updated to the current REPIT scripts.
    • Separate zip files for deb and flo.
    Nexus 7 (2013) GitHub - Commit

    Download Links:
    MediaFire - Link
    SourceForge - Link
    GoogleDrive - Link

    Direct Download from MediaFire:
    lanchon-repit-20210221-system=max-cache=16M+wipe-deb.zip MediaFire - Download
    lanchon-repit-20210221-system=max-cache=16M+wipe-flo.zip MediaFire - Download

    REPIT Links:
    Lanchon REPIT GitHub - Link
    - My fork GitHub - Link

    Credits:
    Lanchon for his excellent REPIT project.
    The Android Community and everyone who has helped me learn through the years.

    Cheers all. :cowboy:
    3
    Note about configuration.

    The user configuration is done by renaming the zip file before flashing it.

    Not much room to change on deb/flo.
    The modifiable partitions are only system and cache (22 and 23).
    The actual partitioning is done by a sector range. This is declared inside the script along with a default configuration.
    Code:
        # the set of partitions that can be modified by REPIT:
        #     <gpt-number>  <gpt-name>  <friendly-name> <conf-defaults>     <crypto-footer>
        initPartition   22  system      system          "same keep ext4"    0
        initPartition   23  cache       cache           "same keep ext4"    0
        initPartition   24  misc        misc            "same keep raw"     0
    
        # the set of modifiable partitions that can be configured by the user (overriding <conf-defaults>):
        configurablePartitions="$(seq 22 23)"
    
    ...
    
        # the set of contiguous partitions that form this heap, in order of ascending partition start address:
        heapPartitions="$(seq 22 24)"
    
        # the disk area (as a sector range) to use for the heap partitions:
        heapStart=$(parOldEnd 21)        # one sector past the end of tzb.
        heapEnd=$(parOldStart 25)        # the start of recovery.

    By default, REPIT will back up, restore, compress and/or expand a partition.
    The +wipe option will wipe the partition.
    The max option is an easy way to allocate the remaining space for a partition.

    The misc partition is not part of the user-config but, it is in the sector range.
    It will be moved to the the end of the sector range without alteration.

    The default zip name lanchon-repit-20210221-system=max-cache=16M+wipe-flo.zip
    Creates a 16M clean cache partition. (Wiped)
    Uses the rest of the unallocated space in the range for system.
    System is backed up and restored since the +wipe option was NOT added to system.

    Since only system and cache can be configured, this only allows a few options for deb and flo.

    Default zip name. -system=max-cache=16M+wipe-
    Include wipe system. -system=max+wipe-cache=16M+wipe-

    See the GitHub README for more on how to configure. GitHub - Link

    Cheers all. :cowboy:
    2
    Hi,

    I had used @followmsi's sysrepart_1280_120.zip some time ago.
    Now I'm interested in @followmsi's lineage 19.1 and want to use your lanchon-repit-20210221 script for increasing the system partition again.

    Would you still consider the partition layout as stock, so I could use your script ? (See attachments)
    And do I need a PC as the USB port is inoperative, so no way to connect to a PC?

    Thank you very much in advance!
    You should be good to go. 👍
    Using one of the older (re)partitioning methods did not affect the partition table too much.

    The note about a stock partition layout is mainly for users who used a (re)partition script that adds a separate vendor partition. 🙃

    Cheers. :cowboy:
    1
    1