Jump to content


Photo

How to enable "S2e" in G300

- - - - -

  • Please log in to reply
9 replies to this topic

#1
backside

backside

    Newbie

  • Members
  • Pip
  • 36 posts
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.

Attached Files


Edited by backside, 29 August 2012 - 07:17 AM.

  • 1

#2
backside

backside

    Newbie

  • Members
  • Pip
  • 36 posts
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

#3
backside

backside

    Newbie

  • Members
  • Pip
  • 36 posts
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, 02 August 2012 - 06:07 PM.

  • 0

#4
FrankieADZ

FrankieADZ

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,255 posts
nice work :).

  • 0

#5
Mario_Cardoso

Mario_Cardoso

    Regular

  • Members
  • PipPip
  • 142 posts
  • Gender:Male
  • Location:Portugal
  • Devices:Sony Xperia J
Great job! I will try this in Infusion 2 when released!

  • 0

#6
backside

backside

    Newbie

  • Members
  • Pip
  • 36 posts

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

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

  • 0

#7
kyan31

kyan31

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 3,889 posts
  • Gender:Male
What is s2e

  • 0

e2199c4dbb.png823c51b6b0.pngc3f6e04cdb.pngbc36a18046.pngead60d1912.pnge46a22ae54.png

 

Phones: Samsung Galaxy S4 Qualcomm & Huawei Ascend G300

PC: AMD FX 8350 8 CORE 4.2Ghz CPU, 16GB 1600Mhz Kingston HyperX RAM, Gigabyte R9 270X Winforce Edition GPU

Like my work? Hit that +1 button as a thank you! Want to support me? You could consider donating!  :)

Subscribe to my YT Channel: https://www.youtube.com/user/thekyan31


#8
backside

backside

    Newbie

  • Members
  • Pip
  • 36 posts

What is s2e

Simple2ext: A tool to move some "/data" directories outside your internal storage: in origin to the second partition of your EXTERNAL SD card, or with my mod to your INTERNAL SD!

See: https://play.google....rikun.s2e&hl=es

  • 0

#9
backside

backside

    Newbie

  • Members
  • Pip
  • 36 posts
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!

Attached Files


  • 0

#10
backside

backside

    Newbie

  • Members
  • Pip
  • 36 posts
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, 29 August 2012 - 07:11 AM.

  • 0

#11
backside

backside

    Newbie

  • Members
  • Pip
  • 36 posts
If you like to use this on a STOCK rom, please read: http://www.modaco.co...stock-ics-roms/

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users