yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Redclient:
Perhaps someone could assist me with this: I'm on a very old ROM (OmniROM KK 4.4.4) with old recovery (TWRP 2.8.1.0 I believe). I want to move to CM13 (or a 6.0 based ROM) and so I will be required to re-partition if I want to use gapps (I do). This tool looks great since I've had a flaky experience with Odin in the past (I understand that I will have to resort to Odin as a last resort if something goes badly). From what I understand of the docs, the version of TWRP that is currently installed will not work with REPIT (even from /tmp). With all of this in mind, what is the best course of action? I am contemplating installing CM13 without gapps, repartitioning with this tool and then reflashing CM13 and gapps. Does that sound roughly workable? I also read something about the latest CM13 recovery being unable to flash zips directly from the recovery.

Since flashing a new ROM is very much outside the scope of this thread (and the above is just context), I'm basically asking how you would recommend that I repartion using REPIT in this situation. I'm not familiar with IsoRec, and the docs recommend getting IsoRec TWRP 2.8.7.0 running on the device so I have what I think are two options:

Option 1:

Install a 6.0 ROM with IsoRec patch or install IsoRec patched kernel directly (which will leave the current system unbootable for now)

Install IsoRec TWRP 2.8.7.0

Use REPIT

Reflash ROM (I assume this is only required if I wipe /system ?)

Flash gapps

Option 2:

Flash the latest TWRP directly

Use REPIT

Continue with normal procedure

Apologies if this isn't entirely relevant. I guess the core question is relevant and the rest is context. I've read a lot of the docs, but it's been a long time since I messed around with this device and the current tools are all unfamiliar to me. Only looking for general advice since I can do reading before I commit to any actions.
[Android Software/Hacking General [Developers Only]] JJSJJS:
Worked great! Thanks very much. Always had Google Services stopping notification. So TWRP 3.0.2.1 was already on my device. After Repit(this takes a while) Cyanogenmod was hanging while booting up, even showed updating apps for a while. So then i removed the battery and rebooten into recovery. Swiped the Dalvik and cache, then installed kernel-Lanchon-20160406-cm-13.0-i9100.zip + the latest nightly Cyanogenmod i9100 + OpenGapps pico in one go, swiped the caches again and rebooted. Waited a while and all is working wonderful well ! Google play store and services run good. Thanks again.
[Android Software/Hacking General [Developers Only]] samarium:
smart move is external back before repit, in which case you may as well wipe all partitions with repit and restore sdcard after flash ROM.
[Android Software/Hacking General [Developers Only]] Rendering:
Months ago I used Lanchon REPIT tool to resize partitions of a S2.

Now I have to use it on another Galaxy S2, but I had no success. Here my procedure:

Downloaded https://codeload.github.com/Lanchon/REPIT/zip/2016-04-15

Renamed the zip file to REPIT-2016-04-15-system=1-data=6-sdcard=max-preload=min+wipe.zip

Copy it into phone SD Card

Start TWRP recovery

copy the file into /tmp

click on Install and install the file

immediately after I tell the phone to install such zip file, I get the error message

Installing zip file '/tmp/REPIT-2016-04-15-system=1-data=6-sdcard=max-preload=min+wipe.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
Could not find 'META-INF/com/google/android/update-binary' in the zip file.
Error installing zip file '/tmp/REPIT-2016-04-15-system=1-data=6-sdcard=max-preload=min+wipe.zip'
Updating partitions details....
...done

What should I do?
[Android Software/Hacking General [Developers Only]] the.gangster:
[MENTION=4095549]Rendering[/MENTION]

As I answered you already in the cm13-thread there : is that really still not solved??

Read post #1 and find the link to current releases in post #4
[Android Software/Hacking General [Developers Only]] Rendering:
If you bothered to read the message, you will see that is different from the previous one, because I downloaded the stable release
[Android Software/Hacking General [Developers Only]] the.gangster:
Sorry, just wanted to help.

But you are obviously not able or not willing to read.

If you follow my advice you'll make it. I give up explaining now...
[Android Software/Hacking General [Developers Only]] fireburner-de:
[MENTION=4095549]Rendering[/MENTION] One last hint, have you visited the download section?
[Android Software/Hacking General [Developers Only]] Rendering:
Thank you now it's okay
[Android Software/Hacking General [Developers Only]] MayuraDeSilva:
2016-07-23: Changelog

I was wondering is there any changelog for 2016-07-23 releases.

Thanks.
[Android Software/Hacking General [Developers Only]] the.gangster:
As [MENTION=4141005]Lanchon[/MENTION] is still travelling across Europe and started to release by creating new versions already but without updating the "Releases" on his GitHub yet, you could take the following as kind of

"Inofficial" Changelog:

New:

Add Samsung Galaxy S5 G900F (klte)

Add Samsung Galaxy J500F Duos (j5lte)

Added HUAWEI Honor 4X Che1-CL20 (cherry)

Improvements:

Add unsigned version of repit-dump (workaround for error "flashize-ext: unable to extract package contents" for Dump only -not for the repit itself! )

Fix broken readlink

Better retry-if-locked message

Fix quoting

Always log to /tmp/lanchon-repit.log

Other:

(Update README.md)

(Update default parameters for janice (just for the zip-naming! new repit-versions for janice will be named ...system=1.0-data=3.0-cache=0.03125+wipe-preload=min+wipe-fota=min+wipe+ext4-sdcard=max...))

For the official one you would have to wait for him to update his GitHub...

Regards

the.gangster
[Android Software/Hacking General [Developers Only]] MayuraDeSilva:
Oh... Didn't know he's travelling right now :)

Cool! This will do. Thanks for the compilation, [MENTION=6560258]the.gangster[/MENTION] :) Much appreciated! :good:
[Android Software/Hacking General [Developers Only]] Lanchon:
just a bunch of backlogged changes that i put out because i added a couple of devices. like gangster says, i forgot about the github thing lol sorry
[Android Software/Hacking General [Developers Only]] Lanchon:
i got my OPO stolen the other day. i dont mind the hardware but, jeez, all the data lost!! :(
[Android Software/Hacking General [Developers Only]] MayuraDeSilva:
No worries, at all :) Thanks for the clarification, Lanchon. Latest addition works great and unlike 04/15 zip, never had to use it once more throughout ROM updates, after flashing it the first time. Thank you! :good:

Gosh... Sorry to hear about that though. No way gonna see it again?
[Android Software/Hacking General [Developers Only]] the.gangster:
[MENTION=6892913]darrendude1[/MENTION]

yes.

If you want to install CM13 from scratch anyway and/or have made a backup already anyway, adjusting the zip-name to wipe partitions (instead of default behavior to keep content) would speed up the process to some few seconds. Otherwise (even if you had wiped already before) it would try to preserve data by copying bit by bit of the partitions data (yes also empty on ext4). So choose wise.

Syntax is explained in detail in the readme.md on GitHub.
[Android Software/Hacking General [Developers Only]] verma.arun833:
Hey I want to repartition my device xperia s 32GB cm12.1 to install aosp6.0 how would I use this mod

Help needed :)
[Android Software/Hacking General [Developers Only]] the.gangster:
[MENTION=5812383]verma.arun833[/MENTION]

as that device is not yet supported you would have to read here what to do exactly for requesting a new port.

Never mind, it's not very complicated, just running a tool in the right recovery and providing some information on the device itself.
[Android Software/Hacking General [Developers Only]] ThePhoenixII:
Hello all,

I would like to understand the partitions stuff and see if I need to repartition my storage.

I read many threads that help to repartition but none really explain the structure.

I got my hand on this page : /mobile/android-partitions-explained-boot-system-recovery-data-cache-misc from addictivetips.com

On my phone, if I run a df command, I can see :

/dev -> 384.9Mo (free 384.8Mo)

/sys/fs/cgroup -> 384.9Mo (free 384.9Mo)

/mnt/asec -> 384.9Mo (free 384.9Mo)

/mnt/obb -> 384.9Mo (free 384.9Mo)

/system -> 1007.9Mo (free 304.8Mo)

/cache -> 98.4Mo (free 94.3Mo)

/efs -> 19.7Mo (free 11.4Mo)

/preload -> 503.9Mo (free 420.3Mo)

/data -> 2.0Go (free 328.4Mo)

/storage/sdcard0 -> 11.0Go (free 5.1Go)

/storage/sdcard1 -> 29.8Go (free 19.5Go)

As I can read it, '/system' is nearly at 1Go. Does that mean that I already have enough space to install CM13 ?

Moreover, I see /storage/sdcard0 is at 11Go. Does that mean that if I specify 'data=6' in the name of the REPIT zip file, I will loose space ?

Do you have any documentation that can help me to understand that ?

My phone is a Galaxy S2 I9100G, currently run CM12.1 from adxamg, with stock partitions (I never repartition anything).

Thanks a lot for your help,
[Android Software/Hacking General [Developers Only]] rewrew:
Hi all!!

Great tool. i have a galaxy S2 with stock ROM that my father is using, and I would like to read a fool-proof tutorial from the very beginning (steps / way to prepare everything / reccomended values / etc...).

I was through the documentation in github, but I am really afraid to do any mistake. Even more, I am not sure if I understand the instructions about renaming the script, or which version of TWRP install.

At the end, I would like to have the phone as stock as possible.

Thanks for your help,

Best regards,
[Android Software/Hacking General [Developers Only]] MiruGad:
hi .. i used this lanchon-repit-20160415-system=1-data=6+wipe-sdcard=max-preload=min+wipe-i9100

and worked perfectly but the storagewas reduced from 12 to 7 giga .. now i want to restore the stock original storage ,can you post it forme plz
[Android Software/Hacking General [Developers Only]] vakkah:
damned good utility!!!

the instructions for reparttion using the utility is in the name of the zip file, damned easy and straightforward to use.

i made a pit file with the following name:

lanchon-repit-20160723-system=2.0-data=8.0+wipe-sdcard=max-preload=0.5+wipe

this translates to the following:

2.0 GB_system partition(ext4)

8.0 GB_data partition(ext4)

4.0 GB_sdCard partition(vfat)

0.5 GB_preload data partition (ext4).

i've been running cm13 latest nightly + open gApps full (aroma)

no problems and sgs2-gt-i9100 is still a capable performer.

thanks again to the OP..
[Android Software/Hacking General [Developers Only]] vakkah:
additional repit file

for users who are interested, i've uploaded the repit file that i've used on my sgs2 gt-i9100

it creates the following:-

2.0 GB /system partition (ext4)

8.0 GB /data partition (ext4)

4.0 GB /sdcard partition (vfat)

0.5 GB /preload data partition (ext4)

i'm running cm13 latest nightly with openGapps full (aroma) with no performance issues.

just for good measure i've slipped in a 16Gb external sdcard in my phone to store movies, music, documents etc.
[Android Software/Hacking General [Developers Only]] vakkah:
no problem dude, that's what XDA is all about.

we learn and we share.

now, if only the rest of the world could be like this[emoji12] [emoji6]
[Android Software/Hacking General [Developers Only]] Lanchon:
it's easy to rename the file, you just need to read the instructions, and especially the i9100 section that has many examples. REPIT is free software and you are welcome to do anything with it according to the GPL license, but i recommend people not to post nor use non-official versions because they grow old and can have bugs that have been already fixed. always download the latest version and configure to your needs instead of downloading a preconfigured possibly old file.
[Android Software/Hacking General [Developers Only]] antarix:
[MENTION=4141005]Lanchon[/MENTION] may you update falcon's link? It shows 'No mirrors find'.
[Android Software/Hacking General [Developers Only]] Lanchon:
all links from yesterday are showing the same issue. it seems all the files i uploaded yesterday were lost to a AFH glitch. i'll delete them all and reupload.

WARINING: FALCON

the falcon builds won't work on official TWRP due to this TWRP kernel bug:

https://github.com/TeamWin/Team-Win-Recovery-Project/issues/763

also, these builds are untested; use at your own risk.
[Android Software/Hacking General [Developers Only]] Lanchon:
i deleted and reuploaded everything, and still the same issue. i guess AFH has to fix its issues.

in the meantime, i'll attach here...
[Android Software/Hacking General [Developers Only]] antarix:
Thanks for the info.

I'm not a dev but I'll request a developer for falcon to try and fix it. Downloaded the build uploaded here.
[Android Software/Hacking General [Developers Only]] Lister Of Smeg:
Hi [MENTION=4141005]Lanchon[/MENTION],

I've used your re-pit on one of my i9100's and it was super easy, THANK YOU!!! :)

Gonna try it on one of my other i9100P's now... but just seen your post here, as I was trying to get the latest re-pit for the i9100 and N7000.

Is the re-pit tool, OS dependent? On my Note (N7000) it keeps crashing when I try to run it, even from the /tmp location.

My Note is running Android 4.4.4 (KK), however I feel it maybe my TWRP. I notice your "readme" says it supports TWRP 2 and TWRP 3, but then go onto say TWRP 2.8.7.x, where as my build of TWRP is only 2.8.1.0 Could this be the problem do you think??

There appears to be a TWRP 3.0.2.x build for my N7000, but it never shows up after rebooting recovery... and says for CM12.1 - CM13

Do you think its possible to flash this TWRP 3.0.2.x on KitKat, maybe if its just a case of changing something like the SDK / API to a lower version of Android? As I want to try and re-pit the note, but I don't want to change the build/setup of my current Android on it just yet...

Many thanks, Lister
[Android Software/Hacking General [Developers Only]] Lanchon:
> On my Note (N7000) it keeps crashing when I try to run it

no log, can't help you!

> My Note is running Android 4.4.4 (KK), however I feel it maybe my TWRP

definitely! if it crashes then it's your TWRP for sure.

> There appears to be a TWRP 3.0.2.x build for my N7000, but it never shows up after rebooting recovery

independently flashable recoveries are a "relatively new" development. this happens because your kernel is not isorec compliant. google what isorec means! you need an isorec compatible kernel. whatever you are using on your N7000, it's pretty old. probably doesn't even have TRIM.

> Do you think its possible to flash this TWRP 3.0.2.x on KitKat

yes, but your KK kernel must be isorec compliant
[Android Software/Hacking General [Developers Only]] kiodo1981:
[MENTION=4141005]Lanchon[/MENTION] Thanks for the Falcon support.

I'm waiting a stable version for official TWRP and support for F2FS.
[Android Software/Hacking General [Developers Only]] paludi06:
[MENTION=4141005]Lanchon[/MENTION] Could you please attach the file for the I9100 too?
[Android Software/Hacking General [Developers Only]] Lanchon:
in repit? forget it! ive done what can be done for f2fs. no f2fs partition resizing tool exists in our solar system so you'll have to be patient and wait for aliens to bring it to our planet some day. thats the thing with using weird FSes: no tools. but you can always resize+wipe in repit.
[Android Software/Hacking General [Developers Only]] Lanchon:
is it still down?? jeez! whats up with these AFH guys! no i cant, not home now
[Android Software/Hacking General [Developers Only]] the.gangster:
AFH currently still runs the banner to inform:

SYSTEM NOTICE: Devs: We discovered the new web uploader does not properly handle uploading of multiple files at the same time. The newly uploaded files will show no mirror found due to this bug. We are working on a fix.

[MENTION=5169084]paludi06[/MENTION] and other i9100 users.

I attached the i9100 version that I got for the german thread in advance.

### EDIT: ###

attachment "lanchon-repit-20160923-system=1G-data=same-sdcard=max-preload=min+wipe-i9100.zip" removed again.

As problems on AFH are solved, please download from there again.
[Android Software/Hacking General [Developers Only]] kiodo1981:
It's ok for me to format the smartphone if I get other 600mb
[Android Software/Hacking General [Developers Only]] rivasol:
Where is that /tmp-file?

Hello,

Need help!

How and where can I find that /tmp-file on my phone? :(

S2 i9100

Best regards,

rivasol
[Android Software/Hacking General [Developers Only]] Lanchon:
it's a directory.

in /tmp???

seriously, if you can't locate a directory maybe you shouldn't repartition a device.
[Android Software/Hacking General [Developers Only]] rivasol:
Oh, I,m sorry. Of course it is a directory not a file. :angel: I fear, my mind slowly rusting up. Thank you for that information.

But nevertheless, I searched with "DiscInfo" and "ES File Explorer" and the only temp-directories I found in sdcard0 are in ".estrongs" and "com.estrongs.android". And with phils-recovery, I found no access to these

directories

.

rivasol
[Android Software/Hacking General [Developers Only]] rivasol:
Thank you! I've just installed "kernel-Lanchon-TRIM-IsoRec-20160206-cm-12.1-i9100.zip" and Lanchon-Repit-Script "lanchon-repit-20160927-system=2-data=5-sdcard=max+wipe-preload=min+wipe-i9100.zip" from ext. SDCard. This attempt ended with an error message, as per discription. But the program created a copy of the script in the tmp-

directory

;) and the installation from there worked.

Meanwhile, CM13 is installed and is a source of pleasure.

Thank you, the.ganster! Your script is really great :good:

It is also suitable, with a little help, for fools, who mistake file and directory.

rivasol
[Android Software/Hacking General [Developers Only]] the.gangster:
You're welcome, if you thank me for reposting it here due to problems on AFH.

But for the script (repit) you have to direct your thanks to Lanchon.

It is 100% his work only. I only mirrored his file as I had received it for the German thread (and as he wrote he was not able to post it as he wasn't at home)
[Android Software/Hacking General [Developers Only]] rivasol:
Hallo the.gangster,

ok, bei Lanchon werde ich mich auch noch bedanken, das Script ist einfach genial. Aber dir gilt mein Dank trotzdem.

Wenn ich sehe, was du dir nur hier für Arbeit gemacht hast, das ist gewaltig. Mein Respekt und mein Dank dafür. Die Diskussionen hier haben mir viel geholfen.

Gruß, rivasol
[Android Software/Hacking General [Developers Only]] the.gangster:
Thank you so much! Such a feedback is highly appreciated.

(But nevertheless, please also respect that this is an international forum that asks you to post in English)
[Android Software/Hacking General [Developers Only]] Lanchon:
UPDATE: AFH hosting is back up and i've reuploaded the latest release.

hopefully now the downloads work. thanks [MENTION=6560258]the.gangster[/MENTION]!!!

linky...

https://www.androidfilehost.com/?w=files&flid=119974
[Android Software/Hacking General [Developers Only]] sirozan:
So, i wanted to use this tool on someones s2, because he wanted more storage for installing apps again, but without loosing his data.

Now my problem is, that this s2 is still completely on stock, and

- i need twrp, at least v2.8.7.0, when i read the instructions right

- i can't install twpr without an isorec-compatible kernel (is this also true for the old twrp v2.8.7.0?)

- i can't find any isorec-compatible kernel that supports stock android 4.1.2

So is it correct that i would have to flash some newer custom rom first to use this tool, or can someone show me a way how i can get this tool working on stock 4.1.2?
[Android Software/Hacking General [Developers Only]] Lanchon:
why do you need a rom? just flash TWRP 3 isorec zip, then flash my newest kernel, reboot recovery, upgrade to latest TWRP img. who cares that you can't boot system? you are going to kill it anyway.

but yeah, you can flash CM too, why not? after all you will have to wipe /data if you are on stock. make sure you backup efs ASAP and when you finish, flash a recent radio too.
[Android Software/Hacking General [Developers Only]] the.gangster:
If you or your friend want to stick to 4.1.2 the only kernel I am aware of would be this one.

It's a DorimanX-kernel for JB with IsoRec-Support.

And, for flashing TWRP-3.0.2-1 as a zip directly you could get the zip there:
[Android Software/Hacking General [Developers Only]] macio525:
someone can do a REPIT for my phone? https://github.com/Lanchon/REPIT/issues/51
[Android Software/Hacking General [Developers Only]] the.gangster:
[MENTION=7242134]macio525[/MENTION]

Just for info:

Lanchon will.

He'll already be informed about your post on GitHub. So no need to post here for that.

But please show a little patience and wait for a response there. He's doing all that in his spare time.

Thx.
[Android Software/Hacking General [Developers Only]] tiagosantos88:
[MENTION=4141005]Lanchon[/MENTION] This "falcon" build is the moto g from 2013? Cause i have one 8gb model and want to know what i can do to get some more space
[Android Software/Hacking General [Developers Only]] Lanchon:
falcon:

https://wiki.cyanogenmod.org/w/Falcon_Info
[Android Software/Hacking General [Developers Only]] tiagosantos88:
What does your zip to the moto g 8gb? Im talking this one lanchon-repit-20160923-cache=32M+wipe-system=same-data=max++ext4-falcon.zip
[Android Software/Hacking General [Developers Only]] the.gangster:
[MENTION=6497467]tiagosantos88[/MENTION]

Did you look at the README.md ?

The syntax is explained there in detail.

So above named file will reduce /cache to 32MB (and format it) and enlarge /data with the gained ~630MB while turning it's filesystem to ext4. (F2FS cannot be resized without wiping)
[Android Software/Hacking General [Developers Only]] tiagosantos88:
Im using cm13 on my moto g and all partitions is formated in ext4.... On moto g emulated SD card and data is shared so i have 5.55gb on total, wich 1gb is meant for system apps if i flash that zip on my moto g 8gb i get 6.35gb on total right?

---------- Post added at 01:59 AM ---------- Previous post was at 01:46 AM ----------

And if i want to go to stock partition sizes is enough to flash stock ROM??
[Android Software/Hacking General [Developers Only]] the.gangster:
[MENTION=6497467]tiagosantos88[/MENTION]

System partition size will not be changed with that zip name.

Yes, you'll probably get ~6.15Gb. The sizes I am looking at are taken from its device-specific configfile falcon.sh, assuming those sizes to be stock sizes. If you are on ext4 (already) on data partition, your current data should be preserved. (according to the configfile data has f2fs per default)

And you could also use repit again to get back to stock sizes if you used the stock values in your repit.zip's filename.
[Android Software/Hacking General [Developers Only]] tiagosantos88:
[MENTION=6560258]the.gangster[/MENTION] it stays on "rereading partition tables" I think the zip don't work on moto g xt1032

---------- Post added at 03:47 AM ---------- Previous post was at 03:02 AM ----------

I have moto g all partitions formated in ext4 but your zip just stop on rereading partitions table
[Android Software/Hacking General [Developers Only]] Lanchon:
yes!!!

if you guys read the thread it'd be simpler! :)

http://xdaforums.com/showpost.php?p=68844701&postcount=88

sorry about that, not in my power to fix
[Android Software/Hacking General [Developers Only]] dexter9:
nice update