Jump to content

[HOW-TO] A2SD for Coldfusion ICS


Guest uosiek

Recommended Posts

Guest uosiek

Hi,

I'm using Coldfusion Alpha 3 and I was fighting for two whole days to get A2SD working. Link2SD wasn't satissfiy me. Here's my receipe:

Create file 05sdcard with content:


#!/system/bin/sh

/system/bin/mount -o remount,rw /

/system/bin/mkdir /sd-ext

/system/bin/mount -o remount,ro /

if [ -e /dev/block/mmcblk0p2 ];

then

	/system/bin/mount -t ext4 /dev/block/mmcblk0p2 /sd-ext

fi;

then adb remount adb push 05sdcard /etc/init.d/ adb shell chmod 0755 /etc/init.d/05sdcard Then download ICS_simple2ext.zip, unzip it to /sdcard with preserving directory structure (META-INF in .zip is /sdcard/META-INF etc) Next: adb shell And copy-paste into adb shell window:

mount -o remount,rw /system

rm /system/etc/init.d/10apps2sd

cp /sdcard/system/app/s2e.apk /system/app/

cp /sdcard/system/etc/init.d/20userinit /system/etc/init.d/

chmod 0644 /system/app/s2e.apk

chmod 0755 /system/etc/init.d/20userinit

mount -o remount,ro /system

reboot, setup s2e according to Your preferences, reboot (watch adb logcat, this boot should take longer)

If everything works go to fridge and open Cold Beer of Winner :D

Credits: uosiu (myself → this how-to), (tlexul → inspiration from THIS POST/XDA-Developers) and OlegKrikun/XDA-Developers for S2E application.

Edited by uosiek
Link to comment
Share on other sites

Guest Amphoras

Thanks for posting this. I was trying to get this to work the other day, but hadn't included the 20userinit file. The lack of S2E support was the only thing keeping me from using it, so now I can again :).

Link to comment
Share on other sites

Guest cristi12

Hi, total noob here... please help :)

I've tried to follow the instructions... never used adb before :)

- installed android sdk

- opened adb in a cmd window

- made a text file called "05sdcard" and pasted the first part in it.

- did

adb remount

adb push 05sdcard /etc/init.d/

adb shell chmod 0755 /etc/init.d/05sdcard

-extracted the zip file on the root of the sd card

-did

adb shell

-copy pasted the second pard in the cmd window and hit enter :D

-rebooted

-s2e is installed but doesn't see my partition ( i had an ext4 1gb part. beforehand )

-rebooted in cwm and tried to partition from there,

-s2e still doesn't see my part.

help please?

Thank You! :)

Link to comment
Share on other sites

Guest uosiek

-s2e is installed but doesn't see my partition ( i had an ext4 1gb part. beforehand )

-rebooted in cwm and tried to partition from there,

-s2e still doesn't see my part.

help please?

Thank You! :)

adb shell

fdisk -l /dev/block/mmcblk0

Great job. Any way you could make a flashable zip?

If you tell me how, I'll try to do that :D

Edited by uosiek
Link to comment
Share on other sites

Guest tilal6991

adb shell

fdisk -l /dev/block/mmcblk0

If you tell me how, I'll try to do that

Basically if you have cm 9 on your computer, unzip the file and delete any lines which say format or are to do with boot.img in meta-inf/google/android/updater-script. Then get rid of all the files on the system dir and replacement them with the hierarchical equivalent of the files you are pushing. Then zip the metainf and system folder. Don't zip the root folder but the actual metainf and system folders inside.

Link to comment
Share on other sites

Guest uosiek

Basically if you have cm 9 on your computer, unzip the file and delete any lines which say format or are to do with boot.img in meta-inf/google/android/updater-script. Then get rid of all the files on the system dir and replacement them with the hierarchical equivalent of the files you are pushing. Then zip the metainf and system folder. Don't zip the root folder but the actual metainf and system folders inside.

http://stuff.uosiu.info/S2E_for_coldfusion_by_uosiu_test_build.zip

Try this out, I'm not sure did it is exactly what should be.

Link to comment
Share on other sites

Guest cristi12

adb shell

fdisk -l /dev/block/mmcblk0

Thanks for the reply!

This is what i got:

1|root@android:/ # fdisk -l /dev/block/mmcblk0

fdisk -l /dev/block/mmcblk0

Disk /dev/block/mmcblk0: 7822 MB, 7822376960 bytes

255 heads, 63 sectors/track, 951 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/block/mmcblk0p1 1 698 5606653+ c Win95 FAT32 (LB

A)

/dev/block/mmcblk0p2 699 947 2000092+ 83 Linux

/dev/block/mmcblk0p3 948 951 32130 82 Linux swap

root@android:/ #

Link to comment
Share on other sites

Guest Amphoras

Great job. Any way you could make a flashable zip?

Not tested it yet as I haven't had time to flash CM9 and get it all set up properly, but if anyone wants to try it, here is one with the scripts I made before but including the 20userinit file. It doesn't have S2E in it, so you'll need to install that separately.

apps2ext-cm9.zip

Link to comment
Share on other sites

Guest cristi12

Not tested it yet as I haven't had time to flash CM9 and get it all set up properly, but if anyone wants to try it, here is one with the scripts I made before but including the 20userinit file. It doesn't have S2E in it, so you'll need to install that separately.

apps2ext-cm9.zip

This worked for me! Thanks!

S3E now sees my ext partition and after reboot everything was moved there :)

EDIT:

For some reason, random apps won't install, saying "insufficient storage space"

for instance i can't install this:

https://play.google.com/store/apps/details?id=com.lsdroid.cerberus

Though it was an issue with the store so tried installing the apk manually, but still no.

Other bigger apps (Opera, etc) install ok.

Edited by cristi12
Link to comment
Share on other sites

Guest alfonex

Not tested it yet as I haven't had time to flash CM9 and get it all set up properly, but if anyone wants to try it, here is one with the scripts I made before but including the 20userinit file. It doesn't have S2E in it, so you'll need to install that separately.

apps2ext-cm9.zip

Perfect for me. It's working fine. I'll keep using coldfusion.

Thank you very much!!

Link to comment
Share on other sites

Guest ZafaelSR

here is promissed logcat:


I/DownloadManager( 6329): Initiating request for download 55

I/DownloadManager( 6329): Initiating request for download 55

I/qtaguid ( 6329): Failed write_ctrl(u 58) res=-1 errno=22

I/qtaguid ( 6329): Untagging socket 58 failed errno=-22

W/NetworkManagementSocketTagger( 6329): untagSocket(58) failed with errno -22

D/Finsky  ( 5816): [1] DownloadQueueImpl.notifyProgress: com.boidforandroid.appb

eta: onProgress 643937/643937 Status: 200.

D/Finsky  ( 5816): [1] DownloadBroadcastReceiver.onReceive: Intent received at D

ownloadBroadcastReceiver

D/Finsky  ( 5816): [1] DownloadImpl.setState: com.boidforandroid.appbeta from DO

WNLOADING to SUCCESS.

D/Finsky  ( 5816): [1] DownloadQueueImpl.onComplete: com.boidforandroid.appbeta:

 onComplete

D/Finsky  ( 5816): [1] DownloadQueueImpl.remove: Download com.boidforandroid.app

beta removed from DownloadQueue

I/installd(  229): free_cache(0) avail 1619709952

D/dalvikvm(  377): GC_CONCURRENT freed 671K, 26% free 10896K/14535K, paused 4ms+

6ms

D/dalvikvm( 5816): GC_CONCURRENT freed 1052K, 13% free 15054K/17287K, paused 5ms

+31ms

W/ActivityManager(  296): No content provider found for permission revoke: file:

///data/data/com.android.providers.downloads/cache/downloadfile-2.apk

D/dalvikvm(  377): GC_CONCURRENT freed 317K, 24% free 11047K/14535K, paused 4ms+

12ms

D/dalvikvm(  296): GC_EXPLICIT freed 176K, 16% free 16562K/19591K, paused 8ms+23

ms

D/Finsky  ( 5816): [344] 1.packageInstalled: Package install status for "null" i

s -4

D/HardwareRenderer( 5816): Disabling v-sync

D/Finsky  ( 5816): [1] InstallerTask.cancelCleanup: Cancel running installation

of com.boidforandroid.appbeta

D/memalloc(  224): /dev/pmem: Allocated buffer base:0x413fc000 size:491520 offse

t:3072000 fd:25

D/memalloc( 5816): /dev/pmem: Mapped buffer base:0x5369c000 size:3563520 offset:

3072000 fd:65

Link to comment
Share on other sites

Guest kimomini

Hey i flashed the apps2ext-cm9 zip through CWM and then installed s2e but it doesnt seem to work, when i open s2e everything is greyed out except the download cache option the ui of s2e is confusing how do i use it?

Link to comment
Share on other sites

Guest Chrissyboy101

Just tested it's in there.

I might as well join the noob fest-how do we install this thing? Extract and find it in system/app then just run it or via clockwork mod? Because neither are working for me right now!

Link to comment
Share on other sites

Guest Dazzozo

Not sure how relevant this is to Blade users as I'm cross-posting this from the Crescent / Blade 2 forum, but here's a flashable zip of the Darktremor A2SD scripts + the mount script given earlier in this thread. Should be good for Blade use, as I've found there to be no difference in this regard.

http://www.mediafire.com/download.php?e69w1wxegx5ak4f

Link to comment
Share on other sites

Guest mr_mufy

Hi,

I run the file: 31032012-a2sd-ext3.zip left by Dazzozo And the ext4 on my blade apears.

So tks Dazzozo.

Just run the file on CWM.

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.