Jump to content


Photo

[HOW-TO] A2SD for Coldfusion ICS

- - - - -

  • Please log in to reply
101 replies to this topic

#1
uosiek

uosiek

    Newbie

  • Members
  • Pip
  • 35 posts
  • Devices:ZTE Blade
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 Attached File  ICS_simple2ext.zip   178.24KB   1246 downloads, 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, 20 March 2012 - 12:36 PM.

  • 7

#2
Amphoras

Amphoras

    Addict

  • Members
  • PipPipPipPipPip
  • 766 posts
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 :).

  • 0

TPT Helper lets you easily repartition your ZTE phone, install a new ROM and for the Blade, convert to/from Gen 2. Available for Orange San Francisco/ZTE Blade, Orange Monte Carlo/ZTE Skate and Orange San Francisco II/T-Mobile Vivacity. https://market.andro...horas.tpthelper

TPTs and other apps


#3
tilal6991

tilal6991

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,781 posts
  • Gender:Male
  • Devices:ZTE Skate, Huawei U8150
Great job. Any way you could make a flashable zip?

  • 0
If you like my work or if I helped, click the Plus button.

#4
cristi12

cristi12

    Newbie

  • Members
  • Pip
  • 15 posts
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! :)

  • 0

#5
uosiek

uosiek

    Newbie

  • Members
  • Pip
  • 35 posts
  • Devices:ZTE Blade

-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, 20 March 2012 - 05:35 PM.

  • 1

#6
tilal6991

tilal6991

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,781 posts
  • Gender:Male
  • Devices:ZTE Skate, Huawei U8150

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.

  • 0
If you like my work or if I helped, click the Plus button.

#7
uosiek

uosiek

    Newbie

  • Members
  • Pip
  • 35 posts
  • Devices:ZTE Blade

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.i..._test_build.zip
Try this out, I'm not sure did it is exactly what should be.

  • 1

#8
cristi12

cristi12

    Newbie

  • Members
  • Pip
  • 15 posts

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:/ #

  • 0

#9
Amphoras

Amphoras

    Addict

  • Members
  • PipPipPipPipPip
  • 766 posts

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.

Attached File  apps2ext-cm9.zip   172.7KB   1375 downloads

  • 3

TPT Helper lets you easily repartition your ZTE phone, install a new ROM and for the Blade, convert to/from Gen 2. Available for Orange San Francisco/ZTE Blade, Orange Monte Carlo/ZTE Skate and Orange San Francisco II/T-Mobile Vivacity. https://market.andro...horas.tpthelper

TPTs and other apps


#10
cristi12

cristi12

    Newbie

  • Members
  • Pip
  • 15 posts

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.

Attached File  apps2ext-cm9.zip   172.7KB   1375 downloads


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....sdroid.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, 20 March 2012 - 11:48 PM.

  • 1

#11
ZafaelSR

ZafaelSR

    Newbie

  • Members
  • Pip
  • 9 posts
  • Gender:Male
  • Devices:ZTE Blade
same problem as cristi12
I will attach logcat when I arrive home...

Edited by ZafaelSR, 22 March 2012 - 10:42 AM.

  • 0

#12
droidbittin

droidbittin

    Enthusiast

  • Members
  • PipPipPip
  • 152 posts
  • Gender:Male
  • Location:Stockholm
  • Devices:ZTE Skate, Advent Vega
  • Twitter:@bittin
big thanks for this :)

  • 0

#13
alfonex

alfonex

    Newbie

  • Members
  • Pip
  • 3 posts

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.

Attached File  apps2ext-cm9.zip   172.7KB   1375 downloads


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

Thank you very much!!

  • 0

#14
ZafaelSR

ZafaelSR

    Newbie

  • Members
  • Pip
  • 9 posts
  • Gender:Male
  • Devices:ZTE Blade
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

  • 0

#15
chipmap

chipmap

    Newbie

  • Members
  • Pip
  • 1 posts
Hey guys, I'm a n00b too, where do I create the 05sdcard file?

  • 0

#16
HumaDroid

HumaDroid

    Regular

  • Members
  • PipPip
  • 142 posts
  • Gender:Male
  • Devices:DELL XCD35
i cant install s2e from play.... can someone upload the .apk please?

  • 0

#17
brookergray

brookergray

    Diehard

  • Banned
  • PipPipPipPip
  • 458 posts

i cant install s2e from play.... can someone upload the .apk please?


It's inside the zip in the op.

  • 0

#18
uosiek

uosiek

    Newbie

  • Members
  • Pip
  • 35 posts
  • Devices:ZTE Blade

Hey guys, I'm a n00b too, where do I create the 05sdcard file?


create it on you PC and then upload via ADB

  • 0

#19
kimomini

kimomini

    Regular

  • Members
  • PipPip
  • 90 posts
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?

  • 0

#20
Markiv

Markiv

    Regular

  • Members
  • PipPip
  • 86 posts
  • Gender:Male
  • Location:India
  • Devices:ZTE Blade, Alcatel OT 995

It's inside the zip in the op.


noob here. unable to find the .apk inside the zip...

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users