[Optimus One, P500 Android Development] ayrus02:
Alternative Script for Mount 2 SD

Hi,

I want to share my experience on installing the Ver.8 of this KitKat ROM.

I've try the Ver.8 Release of mukulsoni KitKat ROM for few days so far the ROM is very smooth.

Because I dont want to use Link2SD that many user here complaint, I use custom script ad2sdx that I modified from amarullz (a XDA developer that create AROMA Installer and AROMA File Manager). The original script will switch the \data partition with \sd-ext partition but leaving the dalvik-cache intact in internal memory. The original script cannot run on this KitKat ROM. And for that issue I modified the script so it can run on KitKat and also change the behavior of the script to only switch the \data partition with \sd-ext. And for that I can get the internal storage memory to use the second partition from my micro SD card. (the reason of the original ad2sdx script to keep the dalvik-cache in internal memory is speed, but because I use class 10 32GB transcend micro SD, I change the script to keep the dalvik-cache also on second partition of micro SD card, the other bad side of the original script are your davik-cache size will be limited to 200MB of internal space) Currently I use about 2.08 GB of second partition size with free space about 862MB with no speed degradation (see screenshot attached).

Original thread of ad2sdx by amarullz

http://xdaforums.com/showthread.php?t=1310309

Below I will share how do I flash this ROM using modified ad2sdx script from amarullz:

(PLEASE DO NANDROID BACKUP BEFORE YOU TRY ANY OF THE METHOD BELOW)

I start to flash the ROM with clean install and formating \cache, \system, \boot, \sdcard\.android_secure, \sd-ext on the recovery menu and choose clean install also in The Aroma Installer. (FYI: I use recovery CWM v6.0.4.6 [16 Jan]) The Aroma Installer run without any problem, I don't install apps like viber, facebook. I choose Play Music from google as music player and Audio Fx as DSP Manager, also I install WhatsApp from Aroma Installer.

After Aroma Installer successfully installed, without rebooting from recovery I run Aroma File Manager to access the system file. I manually copy the modified ad2sdx script (you need to extract it first from 7z) from SD card storage to \system\etc\init.d\ folder and set the permision to 755 (see the attachment image).

After copying the script, exit the Aroma File Manager and reboot the recovery. And you will get larger internal memory.

WARNING DO NOT COPY the ad2sdx script along side with other mount2sd script like Link2SD, and ALWAYS do the script copy from newly clean install ROM and before the first boot. I've try to copy the script after the first boot or after upgrading from earlier ROM version to version 8, both scenario causing boot loop on Google startup animation.

If some how the script do not run as expected and you need my help, please send me the script log from /data/ad2sdx-log.txt here. And copy this script only from after the first boot, if you send the log from the second and later boot will be useless because it will be replaced on each boot.

I never try this script using SD card below class 10 speed. You will probably have speed issue of lagging app load or long delay if you use slower SD card class speed.

DISCLAIMER DO WITH YOUR OWN RISK, I AM NOT RESPONSIBLE FOR BRICKED DEVICES, DEAD SD CARDS, THERMONUCLEAR WAR, OR YOU GETTING FIRED BECAUSE THE ALARM APP FAILED. PLEASE DO SOME RESEARCH IF YOU HAVE ANY CONCERNS ABOUT FEATURES INCLUDED IN THIS SCRIPT BEFORE USING IT! YOU ARE CHOOSING TO MAKE THESE MODIFICATIONS, AND IF YOU POINT THE FINGER AT ME FOR MESSING UP YOUR DEVICE, I WILL LAUGH AT YOU.