[TOOL][7870] Universal repartition script for vendor support

Search This thread

Astrako

Recognized Developer
Sep 1, 2015
926
7,658
Badajoz
UNIVERSAL REPARTITION SCRIPT FOR THE 7870

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 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.
  • Flashing this script will delete system, vendor, cache and data partitions (including internal storage) so make a good backup first!

FEATURES
  • Supported devices: A3 2017, A6 2018, J6 2018, J5 2017, J7 2016, J7 2017, J7 Nxt and J7 Prime
  • It can be flashed being in stock or modded partitions
  • It will set 4096Mb for SYSTEM, 512Mb for VENDOR, 64Mb for CACHE and 128Mb for ODM in devices that support it. You can mod these values in repartition.sh script, and set the values you want.
  • CAUTION: FLASHING IT WILL DELETE SYSTEM, VENDOR, CACHE AND ALSO DATA PARTITION, so internal storage will be wiped too!
  • To revert, best way is to flash your device PIT file in ODIN
  • Remember: FLASH AT YOUR OWN RISK!

INSTRUCTIONS
  • Remember, your internal storage will be wiped flashing this!
  • Highly recommended to use an updated recovery
  • Flash the attached zip file. The script itself will reboot the phone in recovery once done
  • Now in recovery again, wipe system, cache and vendor and format data
  • That's all!

SUPPORT

CREDITS
 

Attachments

  • universal7870_repartitioner_V1.0.zip
    553.2 KB · Views: 26,851
Last edited:

Astrako

Recognized Developer
Sep 1, 2015
926
7,658
Badajoz
How to set different partition sizes?

Open universal7870_repartitioner_V1.0.zip, and extract repartition.sh file. Then open it with a text editor and locate these lines:

SYSTEMSIZE=4096
VENDORSIZE=512
CACHESIZE=64

If you wan to change, for example, SYSTEM partition size, then mod SYSTEMSIZE and set a value in Mb. If you want 2gb, then put SYSTEMSIZE=2048

Once modded, add again repartition.sh to universal7870_repartitioner_V1.0.zip and flash it in recovery. Remember that every time you flash it, your internal stogare will be deleted.
 
Last edited:

neel0210

Senior Member
Mar 26, 2019
379
683
22
Ahmedabad
I am seeing butter s20 experience now!!!!!!!

UNIVERSAL REPARTITION SCRIPT FOR THE 7870

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 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.
  • Flashing this script will delete system, vendor, cache and partitions (including internal storage) so make a good backup first!

FEATURES
  • Supported devices: A3 2017, A6 2018, J6 2018, J5 2017, J7 2016, J7 2017, J7 Nxt and J7 Prime
  • It can be flashed being in stock or modded partitions
  • It will set 4096Mb for SYSTEM, 512Mb for VENDOR, 64Mb for CACHE and 128Mb for ODM in devices that support it. You can mod these values in repartition.sh script, and set the values you want.
  • CAUTION: FLASHING IT WILL DELETE SYSTEM, VENDOR, CACHE AND ALSO DATA PARTITION, so internal storage will be wiped too!
  • To revert, best way is to flash your device PIT file in ODIN
  • Remember: FLASH AT YOUR OWN RISK!

INSTRUCTIONS
  • Remember, your internal storage will be wiped flashing this!
  • Highly recommended to use an updated recovery
  • Flash the attached zip file. The script itself will reboot the phone in recovery once done
  • Now in recovery again, wipe system, cache and vendor and format data
  • That's all!

SUPPORT

CREDITS
  • @Davinash97 for ideas and tips




KEEP IT SAR, YOU'RE THE GUARDIAN ANGEL OF EXYNOS 7870:cool:
 

Marshall5558

Member
Jan 16, 2020
19
6
UNIVERSAL REPARTITION SCRIPT FOR THE 7870

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 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.
  • Flashing this script will delete system, vendor, cache and partitions (including internal storage) so make a good backup first!

FEATURES
  • Supported devices: A3 2017, A6 2018, J6 2018, J5 2017, J7 2016, J7 2017, J7 Nxt and J7 Prime
  • It can be flashed being in stock or modded partitions
  • It will set 4096Mb for SYSTEM, 512Mb for VENDOR, 64Mb for CACHE and 128Mb for ODM in devices that support it. You can mod these values in repartition.sh script, and set the values you want.
  • CAUTION: FLASHING IT WILL DELETE SYSTEM, VENDOR, CACHE AND ALSO DATA PARTITION, so internal storage will be wiped too!
  • To revert, best way is to flash your device PIT file in ODIN
  • Remember: FLASH AT YOUR OWN RISK!

INSTRUCTIONS
  • Remember, your internal storage will be wiped flashing this!
  • Highly recommended to use an updated recovery
  • Flash the attached zip file. The script itself will reboot the phone in recovery once done
  • Now in recovery again, wipe system, cache and vendor and format data
  • That's all!

SUPPORT

CREDITS
  • @Davinash97 for ideas and tips

How will I know if this transaction has been successful?
 
  • Like
Reactions: hacker812c
  • Like
Reactions: hacker812c

Ant4rez

Member
Aug 24, 2018
42
10
There is a way i can expand the internal storage? Because i used this script to flash H-ROM on my SM-G610M but now i just have 9.63GB, thank you:)
 
  • Like
Reactions: hacker812c

perope

New member
Jan 12, 2021
3
2
After trying this, I reverted it using odin and the PIT file, but when connecting my phone to my computer when my phone is on TWRP it shows as a galaxy a7 instead of j6, also installing orange fox from TWRP, it tells me "this package is for j6lte. This device (a7y17lte) is not supported". The weirdest part is that it does show up as J6 outside TWRP
How do I make it get recognized as j6lte again?
 
Last edited:

H MOUD

Senior Member
Dec 12, 2020
147
16
تحتاج 3.6 جيجا بايت ل g610f
Rom radical quack 4.2 port note9
How i can change partition
How do I divide System size and vendor . size and cach . size
 

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    UNIVERSAL REPARTITION SCRIPT FOR THE 7870

    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 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.
    • Flashing this script will delete system, vendor, cache and data partitions (including internal storage) so make a good backup first!

    FEATURES
    • Supported devices: A3 2017, A6 2018, J6 2018, J5 2017, J7 2016, J7 2017, J7 Nxt and J7 Prime
    • It can be flashed being in stock or modded partitions
    • It will set 4096Mb for SYSTEM, 512Mb for VENDOR, 64Mb for CACHE and 128Mb for ODM in devices that support it. You can mod these values in repartition.sh script, and set the values you want.
    • CAUTION: FLASHING IT WILL DELETE SYSTEM, VENDOR, CACHE AND ALSO DATA PARTITION, so internal storage will be wiped too!
    • To revert, best way is to flash your device PIT file in ODIN
    • Remember: FLASH AT YOUR OWN RISK!

    INSTRUCTIONS
    • Remember, your internal storage will be wiped flashing this!
    • Highly recommended to use an updated recovery
    • Flash the attached zip file. The script itself will reboot the phone in recovery once done
    • Now in recovery again, wipe system, cache and vendor and format data
    • That's all!

    SUPPORT

    CREDITS
    18
    How to set different partition sizes?

    Open universal7870_repartitioner_V1.0.zip, and extract repartition.sh file. Then open it with a text editor and locate these lines:

    SYSTEMSIZE=4096
    VENDORSIZE=512
    CACHESIZE=64

    If you wan to change, for example, SYSTEM partition size, then mod SYSTEMSIZE and set a value in Mb. If you want 2gb, then put SYSTEMSIZE=2048

    Once modded, add again repartition.sh to universal7870_repartitioner_V1.0.zip and flash it in recovery. Remember that every time you flash it, your internal stogare will be deleted.
    6
    I am seeing butter s20 experience now!!!!!!!

    UNIVERSAL REPARTITION SCRIPT FOR THE 7870

    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 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.
    • Flashing this script will delete system, vendor, cache and partitions (including internal storage) so make a good backup first!

    FEATURES
    • Supported devices: A3 2017, A6 2018, J6 2018, J5 2017, J7 2016, J7 2017, J7 Nxt and J7 Prime
    • It can be flashed being in stock or modded partitions
    • It will set 4096Mb for SYSTEM, 512Mb for VENDOR, 64Mb for CACHE and 128Mb for ODM in devices that support it. You can mod these values in repartition.sh script, and set the values you want.
    • CAUTION: FLASHING IT WILL DELETE SYSTEM, VENDOR, CACHE AND ALSO DATA PARTITION, so internal storage will be wiped too!
    • To revert, best way is to flash your device PIT file in ODIN
    • Remember: FLASH AT YOUR OWN RISK!

    INSTRUCTIONS
    • Remember, your internal storage will be wiped flashing this!
    • Highly recommended to use an updated recovery
    • Flash the attached zip file. The script itself will reboot the phone in recovery once done
    • Now in recovery again, wipe system, cache and vendor and format data
    • That's all!

    SUPPORT

    CREDITS
    • @Davinash97 for ideas and tips




    KEEP IT SAR, YOU'RE THE GUARDIAN ANGEL OF EXYNOS 7870:cool:
    2
    After trying this, I reverted it using odin and the PIT file, but when connecting my phone to my computer when my phone is on TWRP it shows as a galaxy a7 instead of j6, also installing orange fox from TWRP, it tells me "this package is for j6lte. This device (a7y17lte) is not supported". The weirdest part is that it does show up as J6 outside TWRP
    How do I make it get recognized as j6lte again?