• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.
Sign in to follow this  
Followers 0

How to enable "S2e" in G300

11 posts in this topic

Posted (edited)

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
1

Share this post


Link to post
Share on other sites

Posted

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:

1

Share this post


Link to post
Share on other sites

Posted (edited)

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
0

Share this post


Link to post
Share on other sites

Posted

nice work :).

0

Share this post


Link to post
Share on other sites

Posted

Great job! I will try this in Infusion 2 when released!

0

Share this post


Link to post
Share on other sites

Posted

Great job! I will try this in Infusion 2 when released!

If you like you can also try with STOCK roms! :o

0

Share this post


Link to post
Share on other sites

Posted

What is s2e

0

Share this post


Link to post
Share on other sites

Posted

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

0

Share this post


Link to post
Share on other sites

Posted (edited)

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
0

Share this post


Link to post
Share on other sites

Posted

If you like to use this on a STOCK rom, please read:

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.