yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Original Android Development] ungaze:
My mini-guide to flash Amon_Ra v1.2(ported by drellisdee)

What you need:

1. terminal emulator(download from market - free)

2. recovery installer(download here)

3. winrar/7zip (or whichever archive unpacking/extracting tool you use)

when you have everything, lets start:

1. extract contents of "recovey_installer.rar" to the root(meaning the base) of your SDcard.(it contains 3 files, so you should also see 3 new files on your SD card).

2. open terminal emulator, enter these lines(press enter after each line):

su
sh /sdcard/rf.sh

3. Done! This should lead you directly to the recovery menu!!!!!

Visit this thread for more info.
[Optimus One, P500 Original Android Development] marioemp2k7:
Yes it is like this. I have been doing this every time I want to use ext2 since I use Clockworkmod. Just format the ext partition from recovery and then enter parted and do print. You will see it's ext4 formatted. This could be an issue for those with Clockworkmod.
[Optimus One, P500 Original Android Development] ungaze:
Another life-saver there man. Although future versions would need to be able to deal with any EXT partition, but for now, lets just stick with ext2.
[Optimus One, P500 Original Android Development] ungaze:
Another test update(hopefully the last beta before integrating the interactive script):

Ungaze Data2sd v4b2

Just like before, if possible, try it on a freshly installed ROM(after an actual successful boot). Non compulsory, if you're happy with your setup, so be it(although testing would really be helpful). If successful, please indicate the ROM used. If problem occurs, a logcat would be very helpful(can't explain how to do it atm, maybe googling can help) and important details(like ROM, sd-card class, recovery used etc.) would really help out.

-added fs check on every succeeding boot.

-added more sleep time after mounting, unmounting, copying and removing files.

-adds the e2fsck binary file.

Thanks again.
[Optimus One, P500 Original Android Development] homecanibal:
Hi there,

I'm using ext2, i'm using a kingston 2gb card (class2 i think), i order a 8gb card class 6, that will arrive in next week.

francisco say that libsqlite.so make the difference in quadrant, and no other issue! the system is very fast!

who can i open the file?
[Optimus One, P500 Original Android Development] marioemp2k7:
Forget about data2sd with a class 2 SDCard. If you are on a Froyo build flash the libsqlite from francisco. If you are on CM7 just leave it as is. Also on Froyo you will get a low cpu score because of stagefright (which is disabled). It's not quite well implemented on 2.2. On GB it's better.

I would use data2sd only on a card that is >=Class 6 (I would love a 10 :)).
[Optimus One, P500 Original Android Development] franciscofranco:
Not the libsqlite.so from me, but the libsqlite.so that's linked in ungaze's signature. Mine's for 2.3. You're incorrect about the cards. The classes mean sequential speed and our system don't read our SD sequentially. There are class 2 cards that perform better with any kind of data2sd than class 10 cards. Now for reading/writting sequentially like transfering a file from your pc to your card, then yes the class 10 is obviously faster.
[Optimus One, P500 Original Android Development] ungaze:
Franco has a point. Althugh data2sd performance isn't directly proportional with the SD class(as some class 2 cards can reach up to 20mb/s write speed, but do bear in mind that higher class SD rarely get a low write speed), the whole process of moving to SD MAY BE affected by SD card class. An example would be a very slow SD fails to respond in time with the mounting,un-mounting, copying or deleting of files thus resulting in a failed data2sd migration.
[Optimus One, P500 Original Android Development] franciscofranco:
Quoted for truth!!!
[Optimus One, P500 Original Android Development] giveme13s:
Hi ungaze,

Tried flashing your "Ungaze Data2sd v4b2", and here is my report:

Steps done:

- Flash mik_os' CM7 beta 6.3

- Flash Ungaze Data2sd v4b2

Results (with 8GB SD card class 6; formatted ext2 with 1GB space, no swap):

Free space (Internal storage): 855 MB

Free space (internal storage) after restoring apps using Titanium Backup with system's busybox: 739 MB

Benchmark: (CPU min 245MHz - max 748 MHz with Performance governor)

Linpack: stable at 8 ~ 9

Quadrant: 1599

Neocore: 56.4 fps

Playing Angry Birds Rio and NFS Shift 1.0.4 without glitches.

Smooth UI (using LPP 0.8.5)

Overall, I'd say that is very good result!

However, I experienced big lags on operations involving write/read to SD card such as restoring SMS using GoSMS (compared to before using Ungaze Data2sd v4b2)

Lags also on opening certain apps such as GPS Status and iReader.
[Optimus One, P500 Original Android Development] Grievous23:
Still working, no problems in CM7 6.3

Results similar to the previous poster, I haven't really noticed big lags, just when the phone is starting, but thats normal I think

Getting 2.3k in quadrants with 768MHz with Franco's tweaks and patched libsqlite.

Only thing that didn't work for me is compass app, it was very unresponsive, but I think that is the app's problem...
[Optimus One, P500 Original Android Development] marioemp2k7:
I know what I meant and that is

no libsqlite whatsoever

(your's or Ungaze's).

You are right about the rest also, but the write part comes into play too (as Ungaze wrote). So why not be on the safe side with a higher class sdcard?
[Optimus One, P500 Original Android Development] Bytecode:
Guys some help is needed. Can patched libsqlite.so drain battery? Because i need to fix it. I'm on openOptimus ROM,build 1.102.
[Optimus One, P500 Original Android Development] kenblat:
Mine phone using franciscofranco's libsqlite.so under Mik CM 7 beta 6.3 + the all in one tweaks from francisco as well (not the latest one - one or two days old version i guess...) After a full charge i think my battery working great gaming 3D (Eternal Legacy) over 3-4hours calling.. surfing website... and now still 63% left after 10 hours long...

Mine phone using Ungaze 4.1 script and OC min 122MHz Max 729MHz.

TIA
[Optimus One, P500 Original Android Development] homecanibal:
@ungaze and francisco

Cm7 6.3

Francisco lastest tweaks

Libsqlite

Ungaze data2sd

2gb class 2

Now i have 2500 in quadrant

Io file test 5000+

Thanks u chico and ungaze
[Optimus One, P500 Original Android Development] shotgun32:
What exactly the different between ungaze data2sd and darktremor app2sd? I confused..

Im planning to flash a non a2sd rom(devoid franco). After i flash that rom should i after that manually flash this ungaze data2sd?

Is this the same like darktremor a2sd, means after i flash this then if i install an apps my phone memory will not be decreased?

And what should i flash better for unlimited app installing without worrying, ungaze or darktremor?

Im sorry im kinda confused, cause i want to flash a new rom soon
[Optimus One, P500 Original Android Development] franciscofranco:
What's confusing about that?
[Optimus One, P500 Original Android Development] ViTAMiNCHEG:
I'm sure that Ungaze_Data2SD is much better than DarkTremor script
[Optimus One, P500 Original Android Development] shotgun32:
So i should flash ungaze over darktremor?
[Optimus One, P500 Original Android Development] franciscofranco:
They are different. If you don't know the difference I suggest you not to try either of them.
[Optimus One, P500 Original Android Development] shotgun32:
Well then, i stick to megatron
[Optimus One, P500 Original Android Development] ungaze:
Here's a breakdown:

Darktremmor a2sd(apps2sd):

+moves /data/apps and /dalvik/cache /directory to your ext partition.

+tried and tested with almost any ROM oout there(although some ROMs still have problems with this, specially with the SGA)

+everything is the same except for the apps and dalvik-cache directories mentioned.

-also with dalvik-cache moved to SDext, SD card life can be shortened dramatically. on the other hand, retaining it to internal memory will eventually fill up the partition and result in storage shortage.

Ungaze data2sd(aka data2ext)

+moves almost the whole /data FS to your SDext partition(except some setting directory)

-some users still experience some bugs, but development is going well and is on our way to a final version.

+with final version, it will be very well optimized and user friendly as to enable users to move /data back and forth from internal to ext as well as give users an option to mount dalvik-cache to a directory of choice(RAM for SD-life saving, internal for data integrity, ext for performance and cache simply just to use the extra space cache has)

+also, a small boost in real-life performance can be gained as well as a huge boost in quadrant tests.
[Optimus One, P500 Original Android Development] ungaze:
If you can't do tests yourself, ask openOptimus users with and without patched libsqlite.so. AFAIK, it doesnt affect battery draw and may even reduce it due to the decreased amount of syncing needed.
[Optimus One, P500 Original Android Development] lerkin:
Sadly, I have FCs and freez on 1.2 version and freezes without FCs (after several seconds after reboot) on 1.4b2. On my 2.2.1 (without any app2sd, ext2)
[Optimus One, P500 Original Android Development] ungaze:
Have you tried this: "postcount=252"

What's 1.4?
[Optimus One, P500 Original Android Development] lerkin:
Yes I tried it, sorry i didn't mention it, I'll correct it in my post, finally I'm going to test very first version of your scripts.

Guys, did you test this scripts on your roms, prepared in "HTC android kitchen"?
[Optimus One, P500 Original Android Development] ungaze:
the ROM I'm usin' (and buildin' this mod on) is made from disxda's HTC ROM kitchen.(BTW it's version 4 beta 2 ;) )

Can I ask more info?

-did your ROM already booted up normally before applying the zip?

-on which reboot did this happen? 1st or succeeding reboots?

-What SD class are you using? What ext partition did you use?

-which recovery mod did you use?
[Optimus One, P500 Original Android Development] lerkin:
1)2) Yes, it booted after flashing, then I apply franco's tweaks, restore apps with titanium backup (there was problem with restoring amazon market app - phone rebooted). After I made another nand backup.

Then I flashed your script, and everything happened on first boot (freeze or FC and freeze) I've just tested first version of your script, there was FC and freeze on the first boot, after i tried to restart, and there was bootloop on "android", on the third booted with FCs.

3) I use 16gb class6 SD card. I have ext2 second partition (made it in Acronis Director Suit, it's active)

4) I use AmonRa

I just wiped everything, and it took more time to wipe ext partition then usual.
[Optimus One, P500 Original Android Development] ungaze:
I see, it may be that the moving of files did not complete entirely.

Why not try this method?

1. Apply ROM

2. Boot normally

3. Apply data2sd v4b2

4. reboot

5. do everything else then reboot as often as it would allow you to test.

If this would work for you, then I would add another fix to the script. I can stay up for another hour so I'll wait for your result till then(unless you can't do it right now).
[Optimus One, P500 Original Android Development] ChEtTeDeBoEuF:
hello !

Anyone has test this mod with Fenice ?

Cheers
[Optimus One, P500 Original Android Development] ungaze:
I second that!!!!!

BTW, you could be the first you know ;)
[Optimus One, P500 Original Android Development] lerkin:
I tried that way already, and had a freeze on "checking battery" without FCs

I have just catch LG logo bootloop after applying libsqlite.so. What is going on...

So I will flash my rom again, and if you are going to upload your new version, I will test it today..
[Optimus One, P500 Original Android Development] ChEtTeDeBoEuF:
Yes, tomorrow I will test after a nand backup of course !!!

Cheers
[Optimus One, P500 Original Android Development] ungaze:
If the method I mentioned didn't work, then there's no sense in making the revision/fix(as the fix would be based on the hypothetical problem, which clearly is not). Let's wait for more response and see what we can do about it.
[Optimus One, P500 Original Android Development] N_lover27:
Hi ungaze in first I want to thank you for Ungaze_Data2sd_v4b2

as its perfect for me I am using cm7 beta6.3 with franciscofranco's tweaks and Patched libsqlite.so for 2.3 by:mik_os

yes it booted correctly and then I flashed Ungaze_Data2sd_v4b2 from recovery(thunderg-1.1.0) and rebooted. then I replaced libsqlite.so by the help of root explorer and rebooted. Lastly flashed franciscofranco's tweaks and rebooted again.

I am using class 4 8gb card with ext 2 partition.

In your last script system setting(time & date, theme etc ) always change to default when the device reboot. but now it doesn't this script is perfect. :D:D:D

I do not know why other people are having problem. as for me I followed this steps

1. Wiped everything data/cache, delvik, ext cache etc

2. Flashed the rom (in my case CM7 beta 6.3)

3. I went to recovery after is booted for the first time and applied Ungaze_Data2sd_v4b2 and rebooted the phone.

4. after this I replaced libsqlite.so by the help of root explorer and rebooted and went to recover again to flash franciscofranco's tweaks and again a reboot......

5. finally restored every app I had by the help of titanium backup and rebooted .

And now running the phone for past 4 hours and no fc .. I am pretty happy.......

result clocked at 768

Quadrant Advanced(with 3D)

Quadrant Advanced(without 3D)

RL SQL benchmarking after applying Patched SQLITE3(libsqlite.so) for 2.2 and 2.3

:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D
[Optimus One, P500 Original Android Development] lerkin:
Several days ago I tested another rom. It only had root, busybox, init.d, su and it didn't had such things as deodexing, data\app, zipalignating or something. And your scripts worked in that case. I want to cook another rom and test again tomorrow.
[Optimus One, P500 Original Android Development] ungaze:
Keep us updated ok?!?!

@cyber_avijit

That's great to hear. Basically, the method I used is fool-proof and only has the basic processes needed for data2sd(data2ext), so it's really hard to mess it up. The only way that I could see it failing is on un-synchronized exection of commands(deleting of files while still copying; if this can ever happen with scripts / failure of un-mounting due to the partition still being used) or corruption of data(which should always be fixed by force checking of the FS). Other than that, I'm pretty lost with all the errors other users are experiencing. So thanks for the feedback, and post anytime if you find anything unusual.
[Optimus One, P500 Original Android Development] N_lover27:
now I am off testing with

mik's

beta6.4 (2011-05-01):

Fixed media button at wired headset

Fixed FM Radio issues

Reworked audio routing to match kernel config

Updated CM sources (Android 2.3.4, CM-7.1-RC0)

But wondering if the Patched libsqlite.so for 2.3 by:mik_os will work on this built as its based on 2.3.4??? Can you help?
[Optimus One, P500 Original Android Development] Bytecode:
Can i move only data to ext so i can use a2sd too?
[Optimus One, P500 Original Android Development] Momaro:
... Apps are stored in data...when you move data, apps are moved as well.
[Optimus One, P500 Original Android Development] lerkin:
OK, I have something to share. Roms with different options aren't causes my problems. I tried to format my sd card in recovery (repartitioned it), and after it your scripts started to work, but I have 1 force close of google app (I don't remember which one), after restart I had fully working system, after another restart I have time zone reset (another welcome screen), next restart was good.

After that a flashed francisco's script, first restart was long but good, but after there were freezes.

That's it.
[Optimus One, P500 Original Android Development] ViTAMiNCHEG:
Yes, it will work because mik's CM7 is 2.3.4 GB ROM. If ROM version were 2.4.3, then libsqlite wouldn't work on it.
[Optimus One, P500 Original Android Development] marioemp2k7:
I don't think it makes sense to use both, but if you must you can mess around with darktremor's data2sd dalvik on sdcard in conjunction with data2ext script of Ungaze's. My recommandation would be to stick to Ungaze's script and make sure you are using ext2 for performance or ext3 (not sure about this) for stability. Anyway you should be more than happy with an ext2 partition (checks for integrity are performed on every boot).

If you are using Clockworkmod do this to be sure you're using ext2.
[Optimus One, P500 Original Android Development] Ruwin:
@Ungaze

I flashed d2sd v4.2 over a fresh install of franco.deviod v4. And it works. /data is moved to ext, i now have 480 or something free memory. The score in Quadrant is pretty high too, 1600 pts. But, i noticed some strange stuff happening. Some proceses go mad on cpu usage. Watchdog allerts me about org.zeam going mad, about android.core elements going rampage over my cpu. This does affect the overall speed of the phone. I'm gonna make some tests on this matter, and get some logs out, maybe it will help you.

Edit: After the fourth restart i lost all the language and timezone settings, and i get a lot of FC;s. Of course none of my apps are there anymore. It is strange that after the first 3 reboots everything was ok, now it crashed...

The logcat is attached.

Cheers!
[Optimus One, P500 Original Android Development] ungaze:
finally, a logcat.

Thanks, I'll look into it.
[Optimus One, P500 Original Android Development] Ruwin:
I was kinda' in a hurry, so i printed out all the stuff the logcat showed me. Sorry :/
[Optimus One, P500 Original Android Development] ungaze:
No prob(although it's quite a long read lol)

BTW, is this from the 4th boot that you've mentioned?

Nevertheless, it seems that android was having a problem getting data from "/data" from the beginning. I'm assuming this is because "/data" was unmounted very early on. As I've stated before, I'm not an expert on the booting process so I may be wrong. I'm gonna try and look when exactly does init.d scripts get run and try to sync it with android's needs. Also, I'm considering the idea to integrate the ext partition as /data directly from the ROM. What this means is that no more scripts are needed to mount the SDext and mount /data on it, instead edit some init files and swap the original data block device with the ext partition.
[Optimus One, P500 Original Android Development] shotgun32:
I still dont understand, basically if i install darktremor all my installed app goes to my sd but the dalvik cache are in internal.

What does ungaze do? If its the same like darktremor or similar, i will install ungaze
[Optimus One, P500 Original Android Development] GForceXIII:
The difference is, darktremor only moves the app folder onto ext partition, while ungaze's d2sd moves the WHOLE data folder onto the ext partition. The app folder is inside data. That's why you can't use both.

And the plus with ungaze is the dalvik cache is moved to RAM so it doesn't eat the sd nor the internal storage's life and it gives better IO performance.
[Optimus One, P500 Original Android Development] kenblat:
Dear all,

Report for CM 7 beta 6.4 + update libsqlite.so and Ungaze 4.2 = WORK great, then install all franciscofranco (01/05/2011) + local.prop as well. so far so good. will report battery later.

BR

P/S: so at least on my case efschk did not cause any problem... time for testing Dalvik-cache to RAM (no need optional @ terminal for user, just embed directly @ your new script is OK), lastime u said that this method can cause crash while installing big apps via Market... just wanna check back this issue. :)
[Optimus One, P500 Original Android Development] victortangocharlie:
Sounds like a good idea. Will be great to see it work out fine.
[Optimus One, P500 Original Android Development] homecanibal:
@ Ungaze and francisco

Show off

CM7 6.4

francisco tweaks

libsqlite

ungaze script

thanks you both
[Optimus One, P500 Original Android Development] franciscofranco:
**** that's good, congrats :)
[Optimus One, P500 Original Android Development] homecanibal:
Can be better if use class 6 card?

The system it's amazingly fassssssssssstttttttttttttttttttt, even @ 600mhz...
[Optimus One, P500 Original Android Development] Bytecode:
I really would like to try ungaze's data2sd but i have tons of apps(100+) and i really need darktremor a2sd.
[Optimus One, P500 Original Android Development] franciscofranco:
Let's get this once and for all:

darktremor:

can move /data/app and /data/dalvik-cache to the ext partition

ungaze's script:

moves /data (the entire folder, APPS are inside /data so they get moved as well) to the ext partition

dalvik-cache stays inside internal memory
[Optimus One, P500 Original Android Development] ttschizo:
after i apply ungaze data2sd, my phone storage is 400+mb, izit normal coz i saw other ppl can get 600+mb??

512 ext2 on clean install of franco.v5
[Optimus One, P500 Original Android Development] ungaze:
thats normal for 512 ext2. phone storage depends directly on the ext partition, so if you want to get more storage, make a larger 2nd partition.
[Optimus One, P500 Original Android Development] zeemar007:
i m trying to get this to work for a week now without success.

YES I have installed it!! also got a quardrant score of 2416!!

but the application response time have greatly increased.. all apps takes atleast 7-8 secnds to open!!!!!! COULD U BELIVE DAT!!

also the screen light up time is very much delayed!!

PLZ HELP ME

um using a class 4 kingstone 8 gb sd card..

mik's rom 6.4.2
[Optimus One, P500 Original Android Development] N_lover27:
I am also using 6.4.2 without any problem with class 4 8gb card.

start from the scarp..

wipe everything don't leave anything.

flash cm7 beta 6.4.2

after successful reboot flash Ungaze_Data2sd_v4b2.zip

and rebbot

after that replace libsqlite.so by the help of root explorer and reboot(instruction for replacing Patched libsqlite.so for 2.3 by:mik_os)

reboot

and finally flash franciscofranco's tweaks

and reboot ... and then you are ready to do anything now....

I hope it will help.
[Optimus One, P500 Original Android Development] ppascuzz:
The thing that confuses me is what to do with the SD. At the moment I use regular built in A2SD so there are a bunch of apps on my sd card as well as other data/backups etc. I copied everything from my SD to my computer, formatted my SD to ext2, then copied everything back. Is this the correct way to do it? (I'm using CM7 b4.4.1 btw with Franciscos tweaks)

I then tried flashing Ungaze_Data2sd_v4b2, rebooted, it booted fine but then everything was force closing including my Zeam launcher and Swype keyboard and then it looked like it restored my phone.

Obviously i've done something wrong :P but i'm not sure what.
[Optimus One, P500 Original Android Development] shotgun32:
Thank you. Which do you think personally better? :)
[Optimus One, P500 Original Android Development] ungaze:
If you're not so much into modding and just want more space for your apps, then stick with darktremor's.

But if your even a slightest bit of a techie and want's to squeeze every little juice you can get from your phone, then data2sd(data2ext) is the way to go.
[Optimus One, P500 Original Android Development] thenenea:
FCs everywhere

Hi,

I really need some help with this one as I can't find the reason why the A2SD doesn't work on my phone. Cleaned everything. Formatted card with 512 Ext partition (card is 8gb class 4, Kingston). Clean install of devoid v5. Boot then the usual system setup (G account, date format, etc). Reboot recovery, flash a2sd zip, reboot. All seems ok. Installed apps (one or many apks, it makes no difference). Reboot, first run phone setup wizard appears again and none of my account data is there, billions of FCs, system hangs. Why ? I thought it was Titanium Backup's fault but if I directly install from market an application I get the same issues. Logcat attached. Thank you.