yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] Lotok:
Decided to give it a shot, maybe I am missing something but removed the original libsqlite.so and pushed the new one, gave chmod 755. I didnt add the custom_backup_list.txt as I wanted to see it work.

Cant get past HTC screen when trying this. I will keep playing until my wife gets angry. Then I will revert back to what I had. :)

[EDIT]

I got it working, just done a benchmark test too. 1328 with the sqlite mod. Much better than without it. Without it I couldnt get past the DB write part of the test!

Thanks for the sqlite info. Much appreciated. Learnt a little today :)

[Edit 2]

SQlite + Life on edge gives a 1477 benchmark. Probably going to deactivate the life on the edge as it doesnt need to be supa-fast but nice to know
[Desire Android Development] xavierjohn22:
Without lote which causes reboots i got good game performance on all my miui builds with sqlite hack. Never mind my quadrant because its high, lol.
[Desire Android Development] iinga:
Agreed xj :) That sqlite fix does wonders for the phone, even on my class 6
[Desire Android Development] gboddina:
Switched to CM7 Nightly #38 and tried data2wathever 0.4c.

For now everything is working fine (surprised to see it working on 2.3 but eh! Nice job ! :D)
[Desire Android Development] 325i.:
What class memory card is reccomended? Is class 4 ok?
[Desire Android Development] iinga:
Should be fine!
[Desire Android Development] Lotok:
This was with a Class 4 Kingston 16gb partitioned with 1GB EXT4 and the rest on FAT32
[Desire Android Development] fer5437:
I got this from the log not sure the data2whatever is working or not

=============================

Wed Feb 23 19:55:58 MYT 2011

=============================

+++ Your Partition(s) are already aligned and data2whatever didn't modify them

-------------------------------------------------------------------------------

+++ Errors found on Filesystem check - see the attached log for more info:

--------------------------------------------------------------------------

____________________________e2fsck_output__________________________________

e2fsck: no such tool

___________________________________________________________________________
[Desire Android Development] MATRIKS:


You need swap partition
[Desire Android Development] iinga:
How did you come to this conclusion?

Normally errors are on file system from an unclean unmount of the SD card - such as reboot to recovery using Quick Boot.

The e2fsck no such tool error implies that e2fsck has not been flashed. Are you using the original posted in the first page to flash data2we?
[Desire Android Development] xavierjohn22:
This is 0.4d isnt it? Some pages back it is mentioned too that the log file is lying, you have to check with qsi if its working or see logcat, or see your rom structure too using root explorer.
[Desire Android Development] ASD2003ru:
How restory from nandroid backup?
[Desire Android Development] trileptal:
Reboot on recovery mode: switch of then press call+home ,choose what you want in the list of the recovery (like nandroid backup).
[Desire Android Development] ASD2003ru:
:)

I know this.

After restory many apps not work (not restored).
[Desire Android Development] iinga:
What recovery are you using?
[Desire Android Development] ASD2003ru:
ClockworkMod 2.5.0.7
[Desire Android Development] iinga:
I thought cwm was ok with ext restore, but maybe not. If you look on the sd card in the location of your nandroid, how big is the sd-ext?
[Desire Android Development] MrRalphMan:
Although this was working fine with AuraxTSense v8.4 Rom, I seemed to have very high battery usage afterwards, I wasn't even getting 20 hours out of a full charge.

Should this happen or could it be down to my SD Card or something else I am doing?

Now I am back on this Rom as standard, I have normal battery usage.
[Desire Android Development] ASD2003ru:
269mb.I think it's just a shortage of space in the /data restoration.

How correct mount data@ext partition for restory?
[Desire Android Development] iinga:
CWM does it automatically for me. I have not had any problems with ext restore, but then again i never ran 2.5.0.7. 2.5.1.8 (i think) worked fine for me. You might want to consider changing recovery to see if that helps.
[Desire Android Development] bandit_knight:
Hi. I am on the Oxygen 2.0 (GRI40). The D2WE script works pretty fine for me except for the fact that from time to time the system starts throwing Force Closes for most of the apps. Then the only solution is to reboot the device and that fixes the issue for a day or so. I use an AData 16GB Class 10 SD card. What could this be?
[Desire Android Development] snq-:
no it's not

i'm thinking of starting mythbusters serie on xda with myths like bfs plays nice with hd fx <1.72 and stuff like this
[Desire Android Development] coutts99:
:D
[Desire Android Development] jjexpat00:
Just a confirmation that the script works very well on Oxygen 2.0.1 and 2.0.2

Config for 8 GB for me: ~7000MB FAT32 and ~1000MB EXT4

No hiccups yet :D
[Desire Android Development] Lanbase:
Which one did u use?
[Desire Android Development] animehq:
+1 for me v0.4d don't work (install trouble) and with 0.2e the phone enter in a boot loop...

edit work with 0.4d

1/ use n1 or other hboot but not the oxygen hboot because it's too small

2/ the second partition need to be in a ext format because kernel don't support other filesystem (coutts kernel too :-/)
[Desire Android Development] jjexpat00:
The script I used was the 0.4d version
[Desire Android Development] lvnatic:
I flashed the 0.4d version on oxygen 2.0.1 and it only removed app2sd script, didn't install data2whatever. My internal memory is only 154mb im running out of it fast. Card is partition with gparted, 1024mb ext4. What is the problem with it?
[Desire Android Development] pdagenius:
How do I check I have got this working correctly please? Also is there a way to put widgets in internal storage rather than Ext?
[Desire Android Development] iinga:
Check internal free space in settings.

Data2Whatever = Internal Storage. If you're moving things to external, that means you're moving them to fat. Keep everything on internal.
[Desire Android Development] Boonyard:
Downloads seem to freeze at 2% for me? Any other links?
[Desire Android Development] Boonyard:
Forget that, it was tapatalk. Worked from the browser.
[Desire Android Development] 325i.:
Is anyone using D2we on insertcoin, is it faster or slower compared to A2sd?
[Desire Android Development] Boonyard:
Hmmm... Seems to give loads more space, but slows oxygen 2.01 down. Anyone else find that?
[Desire Android Development] iinga:
That will be to do with your SD card. You could speed it up if you can find a patched libsqlite.so file for Oxygen.

I maintain a CM one, but Oxygen doesn't use CM source, so it might not work
[Desire Android Development] Boonyard:
I have no idea, but thanks! Maybe I'll give cm07 another shot. Oxygen just seems snappier.
[Desire Android Development] iinga:
Not going to go into Oxygen v CM, but I find CM to be really good. I use the latest Nightly (by latest I mean, I upgrade when I see some new features worth my upgrade) and keep the libsqlite.so file upgraded for each nightly.

The patched sqlite basically alters how the phone manages small file writes and speeds it up without compromising too much on data integrity.
[Desire Android Development] Souldrinker:
Hi, I put this out yesterday on the LeeDroid forum, but thought I might try it here too in hope of getting answers.

Currently I'm running the A2SD version of LeeDroid 2.3d on my Desire with a 16GB class 4 card partitioned with the following partitions (made with MiniTool Partition Wizard on my Win7 machine):

FAT32 12,93GB (7.75GB used)

Ext3: 2.00GB (385,38MB used)

According to Titanium backup (3.7.4.1) I have the following:

Internal: 154MB (17.0 MB free)

SD-card: 13,8GB (5,56GB free)

SD-card (a2sd): 2.07GB (1,74GB free)

In the list of fetched applications I have 78 installed apps which is a lot more than I had space for before I rooted the phone and installed LeeDroid, but recently when I try to install new applications I start running into "not enough space" errors, and even if I uninstall large applications the free space on internal memory is still <20MB.

Then to my questions:

1) Is there a way to see what is using the internal memory to know what would make most sense to clear up

2) Are contact photos from Facebook and that kind of data stored on the phone memory or the SD card?

3) Is the dalvik-cache on the SD or phone memory (if not is there a way to move it to SD)?

4) Would it be worth installing Data2Whatever? In that case what version? Or something similar?

5) I've seen warnings about not running Data2Whatever on partitions >2GB. Mine is exactly 2GB when I set it up in Win7, but Titanium backup says it's 2.07GB, would that be too large or would it make sense to reformat the whole card and make it smaller and maybe also Ext4 instead of Ext3?

6) If I install Data2Whatever I suppose I have to re-flash LeeDroid 2.3d with a full wipe and then flash Data2Whatever before rebooting and then restore from my Titanium backup. What happens when LeeDroid 3.0 comes along? Will I have to do the same (full wipe, reflash Data2Whatever, restore all) or is that retained with a normal flash of LeeDroid without wipe?

7) Are there any downsides with going for Data2Whatever?

Any hints on what to do to gain more memory on my beloved Desire would be greatly appreciated.
[Desire Android Development] iinga:
Your post isn't really Data2Whatever related...more like an issue that could be resolved in the Leedroid forums. To solve your problem, wipe dalvik cache from recovery. Apps2sd just moves the apps to the ext and your ext partition is huge and barely used. What is leaves behind is all the data...which is about 40-50% of app size. Give it a wipe and see how much free space you have then.

Data2whatever will place the whole /data partition on your sd card. I like it, but I have a fast sd card, so my phone runs smoothly. Others notice issues.

The 2gb warning is because the market will not play nicely with partitions larger than that. And you have to do an awful lot of work to use up 2gb...seems like your wasting space on your SD card with such a large partition.

You will have to do a reflash regardless. Who knows about Leedroid 2.3d or whatever. I am not a mind reader and can not tell you what to expect from that. Because you have data on your ext partition, it would need a full wipe anyway, but with titanium backup you can simply restore most things (apps + data). I would personally recommend shrinking your ext partition down anyway which would be nearly the same as a wipe.

Downsides: slow sd cards = unpleasant experiences
[Desire Android Development] Souldrinker:
Yes I know it's not completely Data2whatever related, and I can't say I'm an expert on Android and I maybe should have stripped down the questions to just the data2whatever stuff here, but thanks for taking time to answer them.

I realize I probably overdid the 2GB partition, 1GB would probably have been more suitable, but I wasn't using up the 16GB card anyway.

I did a wipe of the cache from recovery prior to posting these messages when I was down to <10MB and after that I got up to around 16MB, so I suppose a new wipe after just uninstalling one app wouldn't give me much more space back.

But since you mention that 40-50% of the app size will still remain on the phone memory which is limited to 154MB it kind of makes sense that the data of 400MB on the Ext3 would take up most of the phone memory, which makes me even more interested in trying data2whatever.

Since I'm still new to Android (took a while to even dare to root it) I'm a little bit hesitant, but I really want more app space.

Are there any big risks involved in taking the step to go for data2whatever, like bricking the phone? Or am I mostly on the safe side as long as I do a Titanium backup and copy my FAT32 partition to a computer. I suppose I will always have the option of reflashing a rom with a full wipe again if it doesn't work out right?

Is a class 4 Kingston memory card considered slow?

What version of data2whatever should I use? 0.2 or 0.4?

If I decide to resize the partition down to 1GB should I stay with Ext3 or use Ext4?

Sorry for the many questions and thanks again for taking time to answer them :-)
[Desire Android Development] iinga:
With regards to the cache issue, try wiping dalvik cache too (if you use clockword mod, its under advanced) and see if that makes any difference. It might not with the amount of apps you have installed.

There are absolutely no risks involved (especially if you nand back up before) in flashing this. It wont brick your phone or anything. Some data loss has been reported using the life on the edge addon, but I wouldn't recommend it if you can find a patched libsqlite.so for your rom. And yes, if you don't like data2whatever, reflashing the rom without the data2whatever addon will get rid of it.

I can't personally comment on a class 4 kingston. I run with a class 6 samsung and love it. I know people on class 2 sandisks that are fine etc...Different manufacturers can change the experience dramatically.

I personally use EXT4, however this is more "wear" on the sd card than ext3 so its up to you.

0.4d is the script I use, because it keeps dalvik on the internal memory, and reduces the read/writes happening on the sd card, but you might get along better with 0.2e...Its all about trying and seeing what's best for you.
[Desire Android Development] Souldrinker:
Thanks for the hint on where to clear the dalvik cache (I had previously just cleared the cache not under advanced whatever that was), but even after wiping the dalvik I only gained little more than an extra megabyte up to just above 18MB free space, so maybe I will try data2whatever if I get time during the weekend. Good to hear that it shouldn't be any risk of messing up the phone as long as I have my backup safe.

If this doesn't work out I might give StarBurst a try since Data2SD seem to work similar to data2whatever and the StarBurst thread claim it's fast and stable on a class 4 card...
[Desire Android Development] JonasKP:
i looked through this some times and here is something i find odd:

My Class 2 4GB SDHC card didnt have ANY issues, then i bought a larger Class 4 8GB SDHC and it... there is no words of this horrible experience!

even under the setup screen it takes 2 mins before it picks up my clicks!
[Desire Android Development] xavierjohn22:
Flashing data2whatever roms is almose same as flashing a2sd. You are flashing a files.

I use d2w 0.4d, for ext3 compatibility, with gb too.

I have a kingston, class 4 as well. 16gb

Ext 4 is good for me for gb as well.
[Desire Android Development] iinga:
Different manufacturers build different sd cards and some are much better than others. Eg a sandisk class 2 can out perform other class 4/class 6 cards. Its all to do with how they manufacture the cards and what scheduler etc they use. Shame really. All the class means in the minimum write speed...unfortunately it can also be the maximum write speed!
[Desire Android Development] JonasKP:
god damn! back to my good old Class 2 then! :p loosing 4 Gigs in the process though!

stupid Duracell
[Desire Android Development] gnlcp:
Hi guys, I have a big problem.. I can't flash the DATA2whatever v0.4d file.

For the record I write what I did so that somebody could tell me if I mistook something

1. Partition my sd in ext4

2.flash my rom (http://xdaforums.com/showthread.php?t=730290)

3. flash data2whetever

now error during the flash:

E:can't chown/mod /system/xbin/tune2fs

(No such file or directory)

E:Failure at line 21:

set_perm 0 2000 0755 SYSTEM:xbin/tune2fs

Installation aborted

what should I do? why doesn't it work??
[Desire Android Development] Hexxer:
Hi,

"search" doesnt work atm.

Im on Cyanogen 7 and these script does a perfekt job.

My problem: Titanium backup doesnt find any app. If got 70 apps installed, but titanium find only 3 of them. Without that data2sd it works, with that it doesent.

Is that a known problem ?

Regards
[Desire Android Development] JonasKP:
Remembered to clean Dalvik cache?
[Desire Android Development] teorouge:
Just wanted to note that latest Reflex S 1.9.3 from Ne0 works ok with 0.4d version + life on the edge patch! Flashed right now and everything seems to be ok, TB sees 1GB as internal and Sense works... got a couple of self reboot at the very start but now I'm restoring all the 200+ apps I had via TB.
[Desire Android Development] melethron:
Yes. But needs fresh install after nandroid backup ofc. If it doesn't work or you dont like it it can restore nand. It doesnt change anything on your partitions. It does the same as app2sd and moves data/data to the sd too. (only thing that doesnt work is if you have data2ext running and nand then with amon ra recovery older than 2.0.1)

Also note that i will not provide any support anymore. I may make a new script in future and may provide a flashable zip for that one. Moving /data/data to sd is only save with ext4 atm. If i make a new script this will mpunt the sd direclty to /data and (as sibere does but without his UNSECURE loop device ****).
[Desire Android Development] melethron:
Completly new script (moved her from btrfs thread) ... and completly new OP.

Zip may come soon ....
[Desire Android Development] mattiadj:
With the new script no lags and all became smooth??

sent from the future
[Desire Android Development] melethron:
Read the OP. It is slower than ownhere's or siberes but more safe. To have data2ext smooth you need at least a class 6 sd card to compete with the nand speed.

If you want speed:

- dont use it

if you want space

-use it

Chose wisely ;-)

Edit: speed may be higher on class 6+ of course ...
[Desire Android Development] yukkio:
I Hope It will fast on my desire with class 6 I'm restoring my apps and data. Here a df output:

I think it's all right, dont you?

BR.

Edit: What is there inside system/data_internal? Only dalvik-cache??
[Desire Android Development] melethron:
This looks alright:

/dev/block/mmcblk0p2 645016 241708 370440 39% /data

/dev/block/mtdblock5 151168 1420 149748 1% /data/local/mnt/system_r

o/data_internal

But internal looks unused (that is where dalvik is). Since system will not boot without dalvik it must be somewhere. And i dont know what this is:

unionfs 901016 497708 370440 57% /data/local/mnt/system_u

nion

So maybe this is another script that moves dalvik-cache. But i actually have no idea. But as long as the systems boots up dalvik is at least somewhere ^^ and you are fine.

Im still intresteted in where it is .... can you do this (anytime ... in recovery you need to mount /data before):

bash-3.2# cd /data
bash-3.2# ls -l

you should then see where dalvik is symlinked to (like this:)

drwxrwxr-x 1 1000 1000 20 Dec 15 02:33 anr

drwxrwx--x 1 1000 1000 4442 Dec 15 11:47 app

drwxrwx--x 1 1000 1000 80 Dec 15 00:07 app-private

drwx------ 1 1000 1000 116 Dec 15 11:47 backup

lrwxrwxrwx 1 0 0 34 Dec 14 23:45 dalvik-cache -> /system/data_internal/dalvik-cache

drwxrwx--x 1 1000 1000 10330 Dec 15 02:15 data

drwxrwx--x 1 1000 1000 0 Dec 14 23:45 dontpanic

drwxrwx--x 1 1000 1000 18 Dec 15 02:31 drm

drwxrwx--x 1 1000 1000 10 Dec 14 23:45 etc

drwxrwx--x 1 1000 1000 18 Dec 14 23:45 local

drwxrwx--x 1 1000 1000 0 Dec 14 23:45 lost+found

drwxrwx--x 1 1000 1000 152 Dec 15 02:31 misc

drwxrwx--x 1 1000 1000 214 Dec 15 15:51 property

drwxrwxr-x 1 1000 1000 336 Dec 15 16:30 system
[Desire Android Development] yukkio:
Dalvik is in /system/data_internal :) That's df is without app installed, only system app.

It's seen very smoother. Good job mate.

Br.
[Desire Android Development] melethron:
Due to a pm i updated the OP with a Troubleshooting for Rom cookers.

Ah ok lol. Thought it was after first boot. Alright then...
[Desire Android Development] mattiadj:
I have class 10card, so I have the same smooth of nand and more space?

How can I try it?

sent from the future
[Desire Android Development] yukkio:
Hehe.

I will try to do a ext4 with 1024k alignement to see if i can improve a bit more my ext partition :)

Edit: I think I've my ext4 align to MB because I did it with gparted and by default is set to MB. right?? How Can I know If my ext4 is aligned to MB?

Edit1: I havent modified the update script with this line: delete SYSTEM:data_internal/placeholder because I got a error when install the rom: error status 6. Without that line no problem.
[Desire Android Development] melethron:
1. If you did it with gparted you should be fine. gparted checks if the device is "non rotational" and sets align to MB as default. Since a 1024k alignement is enough for sd everthing else doesn't matter. (for an ssd on the computer with larger blocks you also have to watch more: for a 4MB alignement the space BEFORE the partition has then to be a multiple of 4)

If you still want to check you can do it with ubuntu (while you USB-MS in recovery is enabled) with:

sudo fdisk -lu

you then get an output for the device like this:

/dev/sdb1 1 29117187 14558593+ c W95 FAT32 (LBA)
/dev/sdb2 29118464 31115263 998400 83 Linux

My fat partition isn't aligned yet (i need to backup first). You can see that it starts at sector 1 (wich is ... obviously ... not a multiple of 1024).

My second partition starts at 29118464. Just devide the sector number by 1024. For me its:

29118464 / 1024 = 28 436

If the number is then "natural" then its fine.

If the partition would have started RIGHT behind the fat partition it would be:

29117188 / 1024 = 28 434,7539063

This would mean it is not aligned .....

But as i said. If gparted has set "align to mb" it will atomatically make a 1024kb alignment disregarding the space used before this partition.

2. removing the placeholder isn't needed. The partition can be mounted on top of the folder. I just removed it to clean up these unnecessary bytes (... thats actually a bit pathetic :D).
[Desire Android Development] yukkio:
All clear :) Good job dude. My desire is smoother :D
[Desire Android Development] melethron:
If you have linux (or do you use gparted live cd? ) you can also try btrfs. I have a cheap class 2 sd and btrfs is far better than ext4 (but can be slower then ext4 on faster cards). But atm this only works with roms that don't install stuff to sd-while installing.

Im making a HD rom atm. But i didn't do that before so it may take some time.

Apart from btrfs the btrfs script is the same as this script.
[Desire Android Development] yukkio:
So... replace data2ext script and that's all (modify update script if it needed)? Directories structure is the same?
[Desire Android Development] melethron:
You need to remove any other script like app2sd data2ext or any other script that moves dalvik elsewhere (like 02cachedalvikcache in leedroid)... . And you also need the folder /system/data_internal (i forgot mkdir ... ^^ will add it soon). Still can't promise that it works with every ROM since i can't look at every ROMs file structure. But it should work with all ROMs that use cyanogens app2sd scripts (and no other additional script).

Edit: Updated to create the folder.

all you need to is remove old scripts and push the new one (without txt) in etc/init.d/.
[Desire Android Development] melethron:
Updated the script with this:

if [ ! -d /system/data_internal ];
then
busybox mount -o remount,rw /system;
busybox sleep 1;
busybox mkdir /system/data_internal;
busybox chown 1000:1000 /system/data_internal;
busybox chmod 771 /system/data_internal;
busybox mount -o remount,ro /system
fi;

to create the needed folder if not present.
[Desire Android Development] yukkio:
I thought to add this line to the script but you was more faster :P
[Desire Android Development] anko184:
wrong thread, sorry!
[Desire Android Development] sibere:
Keep in mind that each increment is 512 bytes. Thus if you make your 1st partition starting at 1024, it will not start at 1024Kb but half of it, 512Kb!

If you want to start at 1024 kb, you must set the partition beginning to 2048