Closed ElPumpo closed 8 years ago
hi!
there is a /device tree, where device specific ports live. if you want the i9300 supported, we need a i9300 port.
i can do it with your help. get a recent TWRP working on your device. then flash my device dump tool, grab the output logfile, post it here, and i'll take it from there.
Wait, where's the device dump tool? I'd love to help you out. Thing is that, I'm not running stock, but that's not a issue right?
Can you release a version of the device dump tool?
not an issue. it's in the repo! https://github.com/Lanchon/REPIT/tree/master/device-dump/zip
One sec, flashing..
repit-dump-out.txt .. It is 1305 lines of code..
ok thanks!
please tell me your twrp version and point me to where did you get that build.
3.0.0-2, .tar file from twrp.me https://dl.twrp.me/i9300/twrp-3.0.0-2-i9300.img.tar.html
ok, and the device codename is?
i9300?
i9300, 16gb
apparently also m0
yes i was puzzled by the m0 thing. but i assume that you have the regular international i9300.
yes
this is turning into a chat rather than a thread, no shit your thread on XDA got shit on by a mod (no offence) :D
lol. thanks! i'll look into this ASAP.
You should also add the device dump tool to README.md so people can contribute easier.
Keep in mind that there are also 32 and 64gb models..
I got some questions,
should! should! :) the problem is that i dont have time!
well, let me do the port to the i9300 and then ill be able to answer. 3) you shouldn't delete partitions. it can cause compatibility issues. shrinking them to their minimum size is the safe way of obtaining the same result.
Aight. But I don't get it, why must there be official support for x device?
1) all partitions in the device are already ext4
But I don't get it, why must there be official support for x device?
well it has to be ported to the device to work! officially or not
Wait what, a /ota partition?? mmcblk0p11?? edit: /efs?! i would never touch that shit. yey new version out. edit: or maybe not..
ok i ported it, it's here: https://www.androidfilehost.com/?fid=24459283995310549
the default config will shrink cache to 32MB and preload to minimum (8MB) the gained space (around 1.5GB) will be dumped into /data (the main storage), including space for apps and the emulated sdcard. system will be left at its current size. system and data will keep their data. backup data if your data is vital to you (nothing should happen to it though). PLUG TO POWER SOURCE.
WARNING: resizing /data without wiping it in this phone is an extremely costly operation !!! you can expect about an hour of work!! don't do this often! it adds wear to the emmc. you can expect the "life cost" of this operation to be similar to storing 13GB of files in the phone and then deleting them (not a big deal if you dont do it every day).
What's inside /data? Installed apps or ROM? edit: never mind.
Thanks for adding support for i9300!
lol
/data contains everything in your phone that you added to it that is not the rom: -all non-system apps -all app upgrades (including sys apps) -all data of all apps -all phone settings -all files you store in the internal (emulated) sdcard
if you wipe /data, only the rom will survive. it will boot like a new device. all your files lost.
Ok, final thing:
1) the ota partition. leave it alone, it's already as small as it can be. 2) nope. cache was used by the ota mechanism. it is not used at all in android. recoveries need a little bit of cache.
You may now close this. You have been very cooperative. EDIT: dont, haven't tried it yet.
hell no!
did it work? what happened?
haha just editied my post before i saw your comment
it better not eat my phone..
Keep getting a "cannot unmount /sdcard" error...
I manually unmounted /data in TWRP, works now. I Think you need un mount /data in your script. UPDATE: wait what the f***, can NOT reproduce it.. I'll keep you updated in one comment.
UPDATE 1: it's wiping data..? UPDATE 2. It's because I added +wipe at the end of the filename UPDATE 3. Done. Rebooting to CM now... UPDATE 4. works Can't give you the log as I accedently rebooted without copying log @-_-
BEFORE: Filesystem Total Used Available Use% Mounted on mmcblk0p8 1032088 17732 1014356 2% /cache mmcblk0p12 11901576 6355436 5546140 53% /data mmcblk0p12 11901576 6355436 5546140 53% /sdcard mmcblk0p10 564416 8964 555452 2% /preload mmcblk0p9 1548144 632704 915440 41% /system mmcblk0p3 20144 9568 10576 47% /efs
AFTER: Filesystem Total Used Available Use% Mounted on mmcblk0p8 32240 4200 26404 14% /cache mmcblk0p12 13457732 574316 12199796 4% /data mmcblk0p12 13457732 574316 12199796 4% /sdcard mmcblk0p10 8048 4120 3520 54% /preload mmcblk0p9 1548144 638168 909976 41% /system mmcblk0p3 20144 9568 10576 47% /efs
Works flawless.
cool... but you wiped data!!! i guess this was intentional?
Are you kidding me, I did it for no reason?! "WARNING: resizing /data without wiping it in this phone is an extremely costly operation !!! you can expect about an hour of work!!", that is what YOU said.
A real headache trying to reinstall all my apps and configure them -_-
well... reinstalling a phone is much more work than waiting for an hour lol!!!
the idea was to tell you to expect a hour or so of work (probably more like 30 minutes) and that you don't repartition around for fun, certainly not telling you to wipe your phone! :-/
anyway, glad it worked :) later!
Thanks I guess. Keep up the great work!
How on Earth are you supposed to run the script on non-samsung galaxy s2 devices? I found NO universital builds that works for other phones.
The source is to no help for me :/ Trying to make a guide on how to re-partition a samsung galaxy s3 (due to large /cache and /preload partitions), and this is setting me back.