Download the original firmware, extract AP file, search for the pitplease someone give me original pit file for samsung j7 2016 j710F
You need to revert vendor or flash piti install custom rom android 10, but now i cannot install original firmware, please help me,
some roms need more system space than others and fail to install, this script give more system space so you can try bigger roms.sorry, i'm new to this thing. What is the purpose of doing this? Can we get more space?
36c36
< VENDOR=`$SGDISK --print $DISK | grep VENDOR | awk '{printf $1}'`
---
> VENDOR=`$SGDISK --print $DISK | grep VENDOR | head -1 | awk '{printf $1}'`
53,54c55,56
< if [ ! -z $VENDOR ]; then
< VENDORPART=`$SGDISK --print $DISK | grep VENDOR | awk '{printf $1}'`
---
> while [ ! -z $VENDOR ]; do
> VENDORPART=`$SGDISK --print $DISK | grep VENDOR | head -1 | awk '{printf $1}'`
56c58,59
< fi
---
> VENDOR=`$SGDISK --print $DISK | grep VENDOR | head -1 | awk '{printf $1}'`
> done
i got it from the CSC file, no need to search a lotDownload the original firmware, extract AP file, search for the pit
yes, I found it one day accidentally but forgot exactly where it was.
Did you test your script? Then I would suggest to upload the new file as @Astrako is not active here. (Your usecase might be also solved with theSo I would like to suggest the following changes to the repartition.sh script...
Yes, I have tested this, it's how I got rid of my duplicate vendor partitions.Did you test your script? Then I would suggest to upload the new file as @Astrako is not active here. (Your usecase might be also solved with the newer repartition script from Astrako)
Just something to be aware of: For me the script didnt reduce the size of the vendor partition.I could upload a version with my changes, it might help some people. I'll see about it when I get time.
The script with or without my changes? I'm asking because a lack of ability to change the vendor partition size was my symptom from having multiple vendor partitions. The recovery tool only saw the first partition which was never changed, and every run I just added a new partition which ate more and more of my usable space. You could check this by booting to recovery, opening a terminal (Under advanced in TWRP) and typingJust something to be aware of: For me the script didnt reduce the size of the vendor partition.
I was using the script from this thread with slightly different values
SYSTEMSIZE=2500
VENDORSIZE=160
CACHESIZE=32
ODMSIZE=16 # New ODM partition size for those devices having it. Mod this value at your own risk
(Original are 4096, 512, 64, 128.
As is used in the flashing process several scripts, i can't tell, if this or the older one created the vendor partition, But when trying to shrink i made sure the partitions were all mountable and with size of non-zero)
sgdisk --print --pretend /dev/block/mmcblk0
Well, i didn't use your addition. And I have 4 vendor partitions... thanks...EDIT: I have 24 partitions, you might have more or less, I don't know. There should only be one VENDOR though.
Hey, that's not too bad. I had 19 or something.Well, i didn't use your addition. And I have 4 vendor partitions... thanks...
Please be clear about what you mean by "doesn't work" - it should not work as the main post says: "Supported devices" - your device is not included. Add screenshots and error messages. Do you have a custom recovery installed? If not, start with that and check the forum for your device: https://forum.xda-developers.com/c/samsung-galaxy-m20.8714/Hi I have Samsung m20 but its system partition size is 3.4 gband this zip also doesn't work on my device please someone can help? I need 4 GB system
Deleting worked, and shrinking too, thanks. Here the script I used first (and later one with smaller sizes for shrinking). Yeah, nice!!I will probably upload a patched version tonight when I'm off from work and the kids are asleep.
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
36c36
< VENDOR=`$SGDISK --print $DISK | grep VENDOR | awk '{printf $1}'`
---
> VENDOR=`$SGDISK --print $DISK | grep VENDOR | head -1 | awk '{printf $1}'`
53,54c55,56
< if [ ! -z $VENDOR ]; then
< VENDORPART=`$SGDISK --print $DISK | grep VENDOR | awk '{printf $1}'`
---
> while [ ! -z $VENDOR ]; do
> VENDORPART=`$SGDISK --print $DISK | grep VENDOR | head -1 | awk '{printf $1}'`
56c58,59
< fi
---
> VENDOR=`$SGDISK --print $DISK | grep VENDOR | head -1 | awk '{printf $1}'`
> done