Jump to content

How to enable "S2e" in G300


Guest backside

Recommended Posts

Guest backside

Hi,

This is not really a guide to enable "S2e" in G300, I'll explain this stuff after the great INFUSION ROM will include this "upgrade".

UPDATE: If you like to do the same for ANY **STOCK** ICS see http://www.modaco.com/topic/356319-initd-userinit-on-stock-ics-roms/

UPDATE2: At post #9 you can found updated info for relase 020812 of INFUSION.

UPDATE3: Post #10--> set "mount as ext4" in S2e preferences!

The upgrade is very simple: INFUSION ICS ROM has "INIT.D SCRIP SUPPORT", but not "userinit" support. This is the real requirement for use S2e in your device. To add "userinit" support in your device you only need to do two steps:

1) Copy the file "20userinit" from a CM7/9 ROM to the directory "/system/etc/init.d/" (I include one attached to this post; remember: chmod 777, chown root:root)

2) Create the directory "/data/local/userinit.d/" (chown system:system)

And that's all! With this you can enable "userinit" support on your device and you can install and use S2e on it (I recommend to format to ext4).

I hope that Tillaz will include this feature soon.

20userinit.zip

Edited by backside
Link to comment
Share on other sites

Guest backside

Hi,

I'm still waiting for the new release of the INFUSION rom (Hi Tillaz, great job!)... nevertheless, here the guide to enable "S2e" in your G300:

1) If you use INFUSION 2.0 (or whatever name) or you have manually do it the previous guide to enable the "userinit support", you can install "S2e" (simple2ext) from the Play Store (aka Android Market). Please, verify also that you have installed "superuser" before continue.

2) After install "S2e" execute it two times. After the second one try, the file "/data/local/userinit.d/simple2ext" needs to be present on your device (check it with any root explorer or by shell). The user interface of the app needs to be locked, this is normal.

3) Reboot. If you like to use "/sd-ext" from your SD card, boot to the "Recovery" (CWM) and re-partition your SD card (remember to BACKUP first!!!!!). Select "NO" to SWAP Partition, and some Gigabytes for your EXT Partition.

4) After boot to Android, you need to edit the file "/data/data/ru.krikun.s2e/shared_prefs" (use your prefered file-editor or edit with vi and shell), and insert this line "<boolean name="app" value="true" />".

5) Reboot. After new boot, ALL yours APPs whill be copied from "/data/app/" (internal memory) to "/sd-ext/app" (in your SD card). Check the space installing "FreeSpace" from "S2e" tools.

Enjoy your new "unlimited" space for applications! :D

If you need more space, you can now use the UI of the "S2e" tool (the user interface is unlocked after apply step 4) and move more data for free space.

Regards! :wub:

Link to comment
Share on other sites

Guest backside

Hi,

If some of you has enabled "S2e" on your INFUSION ROM with the help of my previous guide... Now, you can use your INTERNAL SD as a "sd-ext" partition.

UPDATE: At post #9 you can found a file ready to use!!

Here the how-to:

1) After enable "S2e" and move your apps (/data/app/*.apk) to "/sd-ext", use the UI of S2e to move them to the original place (this is for safe operation).

2) Go to the shell of the device (using ADB or another tool, like a SSHd server, for example, SSHDroid), and run next commands...

3) unmount "/mnt/sdcard2", the partition is "/dev/block/mmcblk0p19".

4) Format the internal SD partition to ext4 (this is really safe!) with the command "/system/bin/make_ext4fs /dev/block/mmcblk0p19" (the tool "make_ext4fs" is installed by the INFUSION Rom).

5) Copy the file "/data/local/userinit.d/simple2ext" to " "/data/local/userinit.d/0simple2ext"; and edit the new file "0simple2ext" with these modifications:

replace line: "EXTPART='/dev/block/mmcblk0p2'"

with this line: "EXTPART='/dev/block/mmcblk0p19'"

add before the line: "# Initialization"

this new line: "echo "" > /data/local/userinit.d/simple2ext"

6) In the UI of the "S2e" enable "mount as ext4" in advanced options.

7) Reboot.

8) Open "S2e" and select move apps directory.

9) Reboot.

And now you have 700MB for DATA and CACHE, and 2GB for APP !!! :o :o :o

If you like to check manually if the process works right, execute "/data/local/userinit.d/0simple2ext" and see if the partition is mounted.

Regards!

Edited by backside
Link to comment
Share on other sites

Guest backside

Hi,

For use this mod on the last version of INFUSION (020812) you need to do some changes:

1) "/system/xbin/busybox" has "sudo" privileges. THIS IS A BUG!!! Some scripts use busybox, and sudo calls to "superuser" (that it's an android app, and not a linux binary) can generate problems. So, change this with "chmod 755 /system/xbin/busybox"

2) The busybox included in the last INFUSION release has problems with filesystem uid and gid in the command "chown". So in the script of S2e (/data/local/userinit.d/simple2ext), you need to replace all ocurrences of "system:system" to "1000:1000" and "system:cache" to "1000:2001". If you like, the file attached can be used and you don't need to do any modification (decompress and copy it to /data/local/userinit.d/0simple2ext ...AFTER... install and execute "S2e" two times!!).

I hope my mod of "userinit" will be included in the next version of INFUSION!

0simple2ext.tar.gz

Link to comment
Share on other sites

  • 4 weeks later...
Guest backside

Hi to all,

I'm sorry, but a huge requirement it's set "mount as ext4" in settings of S2e. After you install the application, run it, select settings and pick the option. After you reboot, the scripts of the application will be executed.

Regards!

Edited by backside
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.