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

Astrako

Recognized Developer
Sep 1, 2015
908
7,297
133
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

Last edited:

Astrako

Recognized Developer
Sep 1, 2015
908
7,297
133
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
149
260
83
20
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
4
3
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?
 

Ant4rez

Member
Aug 24, 2018
42
9
8
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:)
 

perope

New member
Jan 12, 2021
3
0
1
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:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone