yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] Genmaizen:
Thank you very much lanchon for this! I used your repit ZIP from post no. 30 on the last nightly cm12.1 version with IsoRec TWRP recovery. I needed 3 restarts to let the script fix all partition errors. Forth start ended successfully. I think your tool makes a big difference for the costum ROM community :)
[Galaxy S II Original Android Development] Traace:
Amazing work. Thanks for this. 1st run succeed fine.

I keep'd system, wiped all other, resized them, set sdcard to ext4.
[Galaxy S II Original Android Development] Lanchon:
guys, thank you very much for your support. really appreciate it!!
[Galaxy S II Original Android Development] Acid0057:
You didn't unmount all partitions in twrp. Try unmounting everything and running from tmp
[Galaxy S II Original Android Development] jer194:
Thanks for your advice, Acid0057!

I thought I did; I tried to indicate it here (running from /tmp already):

/tmp # df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 402512 52 402460 0% /dev
tmpfs 402512 548 401964 0% /tmp

Also, I have this:

~ # mount
rootfs on / type rootfs (rw,seclabel)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,seclabel,relatime)

No indication of any mount left.

In this state I get:

~ # blockdev --rereadpt /dev/block/mmcblk0
blockdev: /dev/block/mmcblk0: Device or resource busy

Not sure whether that's expected .. (I'm not too familiar with 'blockdev')
[Galaxy S II Original Android Development] Acid0057:
Might leave it to Lanchon to answer. Not to familiar with block dev too
[Galaxy S II Original Android Development] Lanchon:
don't know why you did sideload, or what you mean by "shell". you just have to follow the the steps in the OP!

your problem is that something is locking your emmc. maybe because of stuff you did before on your recovery. try with a clean reboot of TWRP and only do what the OP says.

if busy: copy zip to /tmp, unmount all, flash again

if still busy: unmount all again, flash 3rd time
[Galaxy S II Original Android Development] JanJabko:
Perfect

Just to prevent any errors I copied the zip to /tmp and manually unmounted all partitions in TWRP. The script ran about 5-10 minutes with success. Thanks so much for this noob friendly work.

The only downside I see is that people do not understand what they are doing (I myself have a rooted, re-pitted phone without using Odin or any other stuff). But it will hopefully reduce the stupid questions in CM13 threads.

Thanks again, well done!
[Galaxy S II Original Android Development] CHEF-KOCH:
Wow, calling me a thief but not giving proper credits yourself is wonderful and makes me easier to report this. Instead of contacting me first (which I could then provider the code on my github which is almost 2 years old an an forum entry which is 2 days newer as your's).
[Galaxy S II Original Android Development] jer194:
I did follow the steps in the OP, it just didn't work that way, that's why I tried various other options.

I did all that, nothing worked.

Meanwhile I think I know what the problem is: encryption.

I had enabled it in CM 13 (and couldn't get rid of it easily anymore).

Somehow it seems to lock mmcblk0, even if everything is unmounted.

When mounting /data I saw something like this:

~ # df -hP
Filesystem Size Used Available Capacity Mounted on
/dev/block/dm-0 5.9G 348.7M 5.6G 6% /data

I ended up with flashing stock rom, then latest CM13 plus TWRP (your arnab version).

It seems to have removed encryption, it gives me

~ # df -hP
Filesystem Size Used Available Capacity Mounted on
/dev/block/mmcblk0p10 5.9G 348.7M 5.6G 6% /data

Your repit script works now, and I have

Number Start (sector) End (sector) Size Code Name
9 344064 3489791 1536M 0700 FACTORYFS
10 3489792 16072703 6144M 0700 DATAFS
11 16072704 30752767 7168M 0700 UMS
12 30752768 30769151 8192K 0700 HIDDEN

Thanks again!
[Galaxy S II Original Android Development] roomanus:
Hey Lanchon,

thanks a lot for this wonderful work.

One thing i recognized: If you download the standard file, its name will be "lanchon-repit-20160212-system_1-i9100.zip" instead of "lanchon-repit-20160212-system=1-i9100.zip".

I just renamed it and everything ran smooth...

Thanks a lot again.

roomanus
[Galaxy S II Original Android Development] Lanchon:
UPDATE: new 20160213 release !!

NOTE THAT DEFAULTS CHANGED, for safety.

other than that, changes are very minor. see changelog in the OP.

hopefully this is the final release.

i don't feel like doing more on this anyway, you can thank the idiot for that.

which, btw, is not going to troll me :)

enjoy!

NOTE: just to be clear on something: the 800 or so lines of ash code that make up REPIT and Flashize were written by me entirely from scratch in the past few days. i own the copyright to every single character of it.
[Galaxy S II Original Android Development] Lanchon:
thanks for noticing that!

'=' is legal part of filenames in both windows and linux.

this is an xda forum bug. i don't know whether to report it or use a different file hoster.

thanks again!

EDIT: changed download server!
[Galaxy S II Original Android Development] Lanchon:
thanks, great detective work!!

i'll add this info to the OP

EDIT: added!
[Galaxy S II Original Android Development] jer194:
Thanks! (also for the honour ... :o )
[Galaxy S II Original Android Development] Drhedphuk:
Do you recommend for users who have already flashed with a previous version to flash again with the latest update [MENTION=4141005]Lanchon[/MENTION]?
[Galaxy S II Original Android Development] Lanchon:
only the ones that used the very first v0.1 crap, just like the OP says. if they dont, they are still NOT at risk of loosing data, but they might have less free space than they should under some conditions.
[Galaxy S II Original Android Development] the.gangster:
[MENTION=4141005]Lanchon[/MENTION]

maybe it would be good to simply put a prominent hint in post #2 next to the downloads, that the files will be downloaded with "_" instead of "=".

No need to use an alternate filehoster then.

This should also make people think once more on what they want to do.

Especially, if they haven't read concentrated enough.

On the one hand, you changed the defaults to same and keep for all partitions, but on the other hand the download file is named to repartition to 1GB System and wipe preload.

So they have a second chance to realize. Most will (want to) rename data anyway.

But let me tell you once more:

Extraordinary work!

Someone stole your code. That's really rude. But after that happened:

don't let anyone steal your passion!

EDIT: Damn, I was obviously still looking at my cached page 1, when I wrote this. Now I realized you already changed it hours ago. Shame on me
[Galaxy S II Original Android Development] TSC Yoda:
[MENTION=535343]all[/MENTION]: be advised, that we are looking very close at this "case"!

One of our team-members is also in contact.

Regards

TSC Yoda (Super-Moderator at Android-Hilfe.de)
[Galaxy S II Original Android Development] jojobg:
Apparently the moderators of both forums are investigating in details. Let's stop public posts on the topic till we see what will be the so called "formal" answer from this joint investigation.
[Galaxy S II Original Android Development] the.divergent:
Is there some pit file with 2gb /system?
[Galaxy S II Original Android Development] jogrim:
Donate

[MENTION=4141005]Lanchon[/MENTION] Your tool helped me alot. Many, many thanks. I'd like to donate, but I didn't find any donate button.
[Galaxy S II Original Android Development] AchiNo:
This is actually not a pit file and you self set what values you want for each partition. Usually you don't need 2gb for /system, most people go with 1gb /system and 4 or 6gb for /data but in the end it's your decision. Just rename the file accordingly and follow the instructions.
[Galaxy S II Original Android Development] Kevin3014:
Successfully repitted. :D

Thanks a lot Lanchon!

I followed Acid0057's steps.

It took about 15 mins (don't know for sure, maybe it finished in 10 mins. I was busy playing a game on my PC :p)
[Galaxy S II Original Android Development] the.gangster:
You are a very lucky guy!

Next time, better follow the instructions of the OP.

It clearly states, you should have gone for a coffee (or two) !!

LOL ;)
[Galaxy S II Original Android Development] the.divergent:
So, I already repitted my device once, I've got 1gb /system and 3 gb /data and my internal memory is in ext4 format, now i want to repit my device on 2gb /system and 5 gb data, so i should rename Lanchon .zip like this : lanchon-repit-20160213-system=2-data=5-sdcard=max++ext4-preload=min+wipe.zip ? Correct me If i made mistake somewhere:)
[Galaxy S II Original Android Development] Acid0057:
Glad it worked for you! [emoji1]

---------- Post added at 08:06 AM ---------- Previous post was at 08:05 AM ----------

Looks good but you will wipe all data off you're phone.
[Galaxy S II Original Android Development] the.divergent:
I can deal with it, thanks for help;)
[Galaxy S II Original Android Development] Acid0057:
You're welcome
[Galaxy S II Original Android Development] the.gangster:
[MENTION=6022607]Ojdanic[/MENTION] [MENTION=5173535]Acid0057[/MENTION]

No he won't wipe all data as it defaults to keep.

But make sure have enough free space in your current internalSd. It will have 7.5Gb afterwards and you need additional space to move all the data.
[Galaxy S II Original Android Development] the.divergent:
I only have 200mb taken on internalSD, rest is free, so I will be able to reppit my system wihout losing any data?
[Galaxy S II Original Android Development] the.gangster:
Yes.

That's the magic of this tool.

And can't see an error in your naming, so I assume it should work that way.

But, nevertheless, the warnings of OP are still valid.

Noone guaranties for your data.
[Galaxy S II Original Android Development] the.divergent:
Will try now and report later, thanks:)
[Galaxy S II Original Android Development] Acid0057:
[MENTION=6560258]the.gangster[/MENTION] thanks for the correction. My bad.
[Galaxy S II Original Android Development] TSC Yoda:
Hey Guys :)

Okay...we discussed the case and that's the situation for now:

-a collegue deleted all links to his space in his initial post

-he deleted the donation link in his initial post

-he placed a link to this thread

We will observate the thread at Android-Hilfe closely.

I hope you agree to our actions taken and wish you all a happy sunday

best regards

Markus (Super-Moderator and Mediator at Android-Hilfe.de)
[Galaxy S II Original Android Development] the.divergent:
[MENTION=6560258]the.gangster[/MENTION] [MENTION=5173535]Acid0057[/MENTION]

It worked perectly for me, I haven't lost any data, thanks for help.
[Galaxy S II Original Android Development] 089man:
Hello, is it normal that in Mount menu twrp the system and data unmounted? All other is mounted.

I9100 Tapatalk, AICP M
[Galaxy S II Original Android Development] the.gangster:
Why should they be mounted by default in recovery??
[Galaxy S II Original Android Development] Valtekken:
When I try to flash the package it gives me an error message: "FATAL: required tool 'resize2fs' missing (please use TWRP to flash this package)". I tried installing the TWRP recovery Lanchon links in the OP, but whenever I try to install it, it gets flashed without any error message and the recovery stays as it was before flashing, even after rebooting to recovery. I tried using another TWRP recovery I found on XDA, but the error message displays again (even though I'm evidently using TWRP). What can I do to flash the package? I was on Cyanogenmod 12.1 before flashing, if this information can help.
[Galaxy S II Original Android Development] Lanchon:
everything looks good.

beware! the script will first move data, then expand it (to work less)

but.... it will still have to move the complete 3G!! not just the used space.

so if data partition is mostly empty, i suggest you first shrink it (and grow sd, you know how, it shows), then move it and enlarge it in a single step.

this only happens when moving the start of an ext4 partition, not vfat which works much more efficiently.

another option to avoid this cost is not enlarging system.

but everything you propose is fine.
[Galaxy S II Original Android Development] Lanchon:
no he wont wipe anything! only preload but we assume he wants that, he is requesting it.
[Galaxy S II Original Android Development] Lanchon:
but if you want to wipe, add the options to wipe!!! it will take 5 seconds to repartition instead of 20 minutes!!
[Galaxy S II Original Android Development] AchiNo:
To use Isorec-twrp you have to use a isorec compatible kernel. Depending on how old your cm12.1 is, it might not have a isorec compatible kernel. Recent builds should have it already merged. If not sure, flash any compatible kernel and try isorec-twrp again.
[Galaxy S II Original Android Development] Lanchon:
many thanks!! thank you guys for quickly dealing with this silly issue. sorry for the trouble.

for everyone else: i received private questions about this. the GPL gives you many rights; but it is not a copyright assignment, it does not transfer ownership. what this guy did, knowingly falsifying copyright, is illegal.
[Galaxy S II Original Android Development] the.gangster:
[MENTION=4141005]Lanchon[/MENTION]

ojdanic already successfully moved and migrated everything 2h ago and everything went well.
[Galaxy S II Original Android Development] Lanchon:
what he answers is totally ok. i want to add that you can simply flash my isorec compatible cm12.1 trim kernel instead of upgrading cm.
[Galaxy S II Original Android Development] the.divergent:
Already did it, everything worked great, haven't lost any data, after repitting, I flashed stock gaaps and your trim kernel, my phone works really great now. Thank you sir.:)
[Galaxy S II Original Android Development] Valtekken:
Well, the version I have is the latest stable snapshot. Should I flash a CM13 nightly, a CM12.1 nightly or what?

Alternatively, where do I get and how do I flash a compatible kernel? I had a quick look at the IsoRec kernel thread, but I didn't see any download links or anything.

Thanks for the reply, anyway!

EDIT: Nevermind, I found it in the IsoRec kernel post.
[Galaxy S II Original Android Development] vaxu:
Hi Lanchon,

thanks for the quick reply. After installing the zip from /tmp it worked. With ERROR 1, but it worked.

Log attached.

Big thanks for the script! It saved a lot of recovery time. =)
[Galaxy S II Original Android Development] the.divergent:
I recommend you flashing CM 13 and then Lanchon's kernel trim for CM 13, here ia download link for Isorec

https://www.androidfilehost.com/?w=files&flid=47550
[Galaxy S II Original Android Development] Lanchon:
you just used the old prerelease v0.1 script !!!

please read the OP again, a lot has changed.

given the error, i suggest you do a run of the current script to fix that.
[Galaxy S II Original Android Development] AchiNo:
[MENTION=4141005]Lanchon[/MENTION]

I know the defaults are already =same+keep+fs but I was trying to come up with the longest filename and after renaming the tool to "lanchon-repit-20160213-system=same+keep+ext4-data=same+keep+ext4-sdcard=same+keep+ext4-preload=same+keep+ext4-i9100.zip" (because i use ext4 for sdcard) it actually woudn't to any repitting at all and just fixing fs and trim.

So my question is: since trim still isn't available in the stock kernel, could we instead of flashing a trim-kernel after every nightly just use this tool from time to time to trim the fs?

EDIT: I see, well if it is dependent on the kernel at least we have your-trim kernel to bypass this for now till it gets merged into the default kernel (if ever).
[Galaxy S II Original Android Development] Lanchon:
hi, thanks,

till now i never wanted to add a donation button.

but i'm just thinking, why not? i'd surely enjoy a free beer now and then.

so there, i added it. you are welcome to use it if you ever want to!

thanks again!
[Galaxy S II Original Android Development] Lanchon:
no, you cant. it uses the kernel functionality. if your trim kernel isn't there, this wont trim either; just like fstrim wont. these are userland tools and need support from a trim enabled kernel.
[Galaxy S II Original Android Development] vaxu:
Yeah, I flashed it last Friday. As you suggest I reflashed with the new script. All worked well.
[Galaxy S II Original Android Development] DevilZeta:
What happen if we "forget" to flash trim kernel after a new nightly? Makes Cm 13 stock kernel troubles?
[Galaxy S II Original Android Development] AchiNo:
It depends, cm stock/default-kernel does not support trim, the trim-kernel does (hence the name). Without it the system will over time get slower and trimming is also supposed to extend the lifespan of the mmc, recent versions of android support it as well.
[Galaxy S II Original Android Development] Lanchon:
please discuss this in the proper thread, thanks!
[Galaxy S II Original Android Development] nasirsaeed786:
32gb pit file for i9100

hello sir,

is it available re partition pit file for 32gb with 4 or 6gb size

---------- Post added at 08:16 AM ---------- Previous post was at 07:24 AM ----------

hello sir,

is it available for 32gb internal storage....?????//
[Galaxy S II Original Android Development] AchiNo:
My intention was just to point out that the additional functions that this tool can provide rely on trim enabled kernels (as I asked you earlier) and what that features would benefit him. Other than that one does not have to stick to the trim-kernel after repartition, because the device is already repitted and will stay that way and the tool would also work without the trim-kernel in the first place. Isorec-twrp just needs an isorec-kernel. Great Tools :good:
[Galaxy S II Original Android Development] Lanchon:
i was surprised by 3 donations after i set up the button, all of them very generous.

and i want to say this: to feel appreciated is a welcome gush of fresh air after the crappy events of the last few days. i'm really thankful for this gesture, guys.
[Galaxy S II Original Android Development] Lanchon:
whaaaaaaaat???? i didn't know this even existed!

ok, an update is needed. when do you need this?
[Galaxy S II Original Android Development] laserkater:
Worked like a charm, amazing work! Absolutely foolproof!

Lanchon, you're the man!
[Galaxy S II Original Android Development] fireburner-de:
Well first let's be sure, it is an i9100.

Pls have a look at setting -> about phone. -> device

Is there really written i9100?

And to clear things up. Could it be that you are talking about your 32 GB external SD card?
[Galaxy S II Original Android Development] nasirsaeed786:
32gb internal storage

Yes sir.....i am 200% sure its 32gb internal storage with stock 2gb rom...

And i bought it from UAE.....GT-i9100 and also available 16gb.....

And till now i install too many Android OS..likelike GB, JB , KK ,LP AND Now i am using MMALLOW...and i put also 16gb micro sd card...

So plz don't u think its 16 gb.....believe me it is originally galaxy s2 GT-i9100 with original UAE Basband version...

Thanks for everything....

Best regard...
[Galaxy S II Original Android Development] the.gangster:
[MENTION=7183558]fireburner-de[/MENTION] [MENTION=4141005]Lanchon[/MENTION]

I know for sure, Samsung offered our i9100 also with 32GB. But it's the first time I really hear, someone bought it. :)

Guess there are not so many out there, as they were much more expensive back then, so everyone picked the 16GB model and put a "huge" 32gb sdcard into it.
[Galaxy S II Original Android Development] asdfvtn:
Completely missed the notification for your reply.

Just checked discinfo. System now has 572mb free, which is enough for Gapps!

Flashed but now I'm constantly getting Setup Wizard has stopped and Google Play Services has stopped. Guess I'll keep looking for a reason why...
[Galaxy S II Original Android Development] fireburner-de:
Somehow GApps and CM need to be flashed together for permissions. (I read it somewhere in CM13 thread I think).

Therefore, go to recovery:

-wipe /system (no data will be lost)

-install CM13+GApps

-reboot and it should work
[Galaxy S II Original Android Development] asdfvtn:
Thanks for letting me know. Did it just as you said, but it's still kind of wonky. At first, the setup wizard still kept popping up, so I did this:

However, I'm still having Google Play Services stopping every 10 seconds. Any idea why on this? I ended up trying to give GPS all permissions, but it's still happening.
[Galaxy S II Original Android Development] Lanchon:
yes!!!! i know it's true, i googled when i saw your first message.

i *WILL* provide a solution for you. my question was: when do you need it? are you in a hurry?
[Honor 5X Questions & Answers] TwitchyTwitchens:
ok I literally cannot get any apps on sd to work at all.. Ive tried moving with links2sd and apps2sd and apps still wont open. I restart my phone and the apps dissapear altogether. Then I do a soft reboot and they might show they might not ,but the still wont open. I am rooted and I am doing everything correctly. I was just wondering if anyone else is having this same issue?
[Desire 820 Q&A, Help & Troubleshooting] xdakin:
Hello. I decided to reboot my phone after seeing that my SD card was unmounted. I removed the SD card, and long-pressed the power button, and selected RESTART. After waiting for a few minutes, my phone won't boot. I thought the battery must have drained so I charged it to a wall socket. Nothing happened. The powerbank recognizes the phone when I plugged it, but the phone won't get hot (so I think it isn't really charging?). The LED light won't turn on. Laptop doesn't recognize the phone, too. I tried to hard reset it by pressing the power button + down button, but nothing happens. Everything is black. Please help! Thank you.
[Desire 820 Q&A, Help & Troubleshooting] SK00RUPA:
Cold reset is on vol up + power I think :)
[Desire 820 Q&A, Help & Troubleshooting] xdakin:
Yeah, I did that. Didn't work. Apparently my phone got soft-bricked. Haha. I went to a repair shop and had it fixed. Thanks!
[8525, TyTN, MDA Vario II, JasJam General] stepchild:
I have done the reg hack to remove the battery and comm icons from the bottom tray. It seem to work. However after awhile the battery icon comes back. If I do a soft reset it is gone, but then after awhile it comes back. Does anyone know why and what I can do?
[8525, TyTN, MDA Vario II, JasJam General] mcorrie1121:
You could try using something like HTCustom to do it for you. I havent had this problem using it.
[G4 Q&A, Help & Troubleshooting] zen8t8:
Has anyone tried to create or save any manual camera mode quick settings? For instance, something that would launch the camera in manual mode with the shutter and ISO locked in for motion photography, and another for low light photography? It seems like 90% of the time that I launch the manual camera, I'm going for one of these 2 things. It'd be convenient if most of the settings were already locked in where I want them to end up! :good:
[G4 Q&A, Help & Troubleshooting] davebugyi:
This makes no sense to me, because the light conditions are not always the same. One setting may work in the scenario you created it, but not for another, even if they are similar. By the way, I have this function on my D7100, but I only find using it when shooting with artificial lights (speedlight).
[General Questions and Answers] jaymzway:
Note 2 mixed with cars DVD 7 in screen can it be done ?

I have a gt n7105 i317 with a cracked screen

Also have a dual DVD 7 in touch screen I want to add that screen to my phone.

What would be the main pros n cons of trying to do this.

Would the software have to be modded to work.

Because of pixel depth n color or is there away around this.

Is there any write ups on doing this.

Any info would be nice.
[General Questions and Answers] jaymzway:
Below is the 2 devices I have..

Any ideas please
[Miscellaneous Android Development] chrisupi007:
Success!