yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] Droidzone:
Data2SD migration code

Just updated some flashable conversion scripts based on Sibere's migration code.

Three different versions of Data2SD:

Beta Code (W series): Moves dalvik-cache and all system settings to nand. Superfast. Known Issues: Nand may fill up fast and impose an absolute limit on number of apps that may be installed. Should be enough for most people. If you face the issue, you can switch to X series.

Setting fix version (X series): Difference from W sereis is that settings is left on Nand, while dalvik-cache of apps is moved to sdcard. So you dont get the limit of apps like W series. May be slightly worse in performance compared to W series

Stable version (tiny series): /data completely shifted to Sdcard. Known issue: Settings (Wifi, language-if not set at first boot; etc ) revert to default on each reboot.

Links:

Migrate SettingfixX1 to BetaW

Migrate BetaW to Stable(tiny)

Migrate BetaW to SettingFixX1

Migrate Stable(tiny) to SettingfixX1

Use them at your own risk. These scripts are alpha and probably buggy! If you want a clean method of switching, use the Titanium backup method on the site.

If you use these zips, do give feedback.
[Desire Android Development] huzi7868:
hi droidzone what kernel would you recomend for good signal and battery life thanks
[Desire Android Development] Droidzone:
I dont believe the kernel contributes much towards network signal. That's probably a function of the radio. I myself use Neo's 1000mv kernel. Neo's 875mv kernel might provide even more battery savings, but it might be a bit laggy.
[Desire Android Development] Droidzone:
All Data2SD based files

Here's the complete collection of all updated Data2SD based zips. It supports very fast downloads.

http://www.box.net/shared/5rj5nr3y7l
[Desire Android Development] qweasdfzxc:
Yeah, me. We talked about it couple of days ago with you and Sibere.
[Desire Android Development] Droidzone:
Hmm.. If you had a reinstall over an existing version, your system might still be in beta code rather than settingfix code..

If you can do the following in adb while booted up, we can know what version of data2sd your system is on:

ls -l /data

You'll have to copy the entire listing you see and paste it here in code format.
[Desire Android Development] gseeley:
Can you add English (Canada) to the locales for the next release?
[Desire Android Development] Bibracte:
Hello,

Is it possible to flash Data2SDReInstaller1.3_tiny.zip directly if you already have a ROM that works with Data2SDInstaller1.2_tiny.zip ?

I have not seen any explanation about it on the blog.

Thank you :-)
[Desire Android Development] fredfox_uk:
@Bibracte

From Droid's site :-

http://starburstrom.wordpress.com/category/installation/

Very important: DO NOT ATTEMPT TO USE THE INSTALLER OF ONE VERSION OF DATA2SD AND REINSTALLER FROM ANOTHER VERSION OF DATA2SD. IF YOU WANT TO SWITCH DATA2SD VERSIONS (OR UPGRADE TO DATA2SD), OR SWITCH BETWEEN STABLE AND BETA VERSIONS, USE “Re-Installing over an existing installation because of code revision in the Data2SD code” procedure!

HTH :)
[Desire Android Development] Roach2010:
I am loving your rom mate, I installed it for the first time today but managed to break it. I got a bit carried away and installed one too many tweaks. :rolleyes:

Second time round I have used Data2SDInstallerW7.zip and the script worked just fine for me.

My phone posted a quadrant score of 2000+ without OC so I'm happy with the speeds.

Keep up the good work and cheers for a great rom.
[Desire Android Development] anderl78:
Hi! Just tried your Migrate_BetaW_to_SettingFixX1.zip with success!

1. Nandroid

2. Flashed the migrate.zip

3. Boot

-- > phone runns without problems, dalvik is back to sd, settings are surviving a reboot and I have unlimited space back again!

Very good work droidzone! Thank you!
[Desire Android Development] Borat38:
I couldn't find this in the Wordpress site: How does one include Chinese in the keyboard toggle?
[Desire Android Development] Borat38:
Sorry if this appears as a double post, couldn't find my post from awhile ago.

Anyway, what do I do to add Chinese to the keyboard? (Sorry, couldn't find this topic in the Wordpress mini-site).

Thanks!
[Desire Android Development] qweasdfzxc:
Here it is, anyway I did a full wipe before installing this version

drwxrwx--x system system 2011-03-12 22:18 app
drwxr-xr-x root root 2011-03-12 15:55 data
lrwxrwxrwx root root 2011-03-10 09:57 misc -> /system/data/misc
/
drwx------ system system 2011-03-12 19:36 backup
lrwxrwxrwx root root 2011-03-10 09:57 dalvik-cache -> /system/d
ata/dalvik-cache/
drwxr-xr-x system system 2011-03-12 15:47 tombstones
drwxrwx--x shell shell 2011-03-10 09:57 local
lrwxrwxrwx root root 2011-03-10 09:57 drm -> /data/local
drwxrwx--- root root 2011-03-10 09:57 lost+found
lrwxrwxrwx root root 2011-03-10 09:57 system -> /system/data/sy
stem/
drwxr-x--- root log 2011-03-10 09:57 dontpanic
drwxrwx--x system system 2011-03-10 09:57 app-private
lrwxrwxrwx root root 2011-03-10 09:57 property -> /system/data/
property/
[Desire Android Development] Roach2010:
I'm afraid I spoke too soon. (see above a few posts) :(

I'm running with the Beta (W Series) and I've found that if I use recovery to wipe the dalvik-cache then the folder and symbolic link are removed as expected but are not recreated when the phone is restarted. This causes my phone to sit indefinately on the first splash screen until I use adb shell to manually recreate them. At this point the dalvik-cache starts to rebuild and the phone goes through the normal boot process.

I don't know if this is isolated to me or if it will affect everyone who uses the Data2SD Beta code.

Would it work if I were to drop a few lines into init.rc that would recreate the folder and the symbolic link if they have been removed?
[Desire Android Development] Roach2010:
I guess not since I've just found out that init.rc can't be changed as easily as I had first thought.

I tried to change the section that creates the dalvik-cache for the following but I guess init.rc must be stored somewhere like the boot image so I can't update it.

mkdir /system/data/dalvik-cache 0771 system system
chown system system /system/data/dalvik-cache
chmod 0771 /system/data/dalvik-cache
symlink /system/data/dalvik-cache /data/dalvik-cache

Any thoughts on a fix/workaround for this problem?
[Desire Android Development] Droidzone:
I dont know. It'd be better to open a Q & A thread for this.

As I expected, this is beta code rather than setting fix version. You can migrate to X1 version to fix your space constraints.

It's a known issue that wiping dalvik-cache causes bootloops. I've included that it in the list of "Donts".

Modifying the init.rc shouldnt be necessary since that runs at every boot. You should normally just need to recreate the softlinks. This code can be seen in the migration flasher.

The foll commands should recreate the softlinks.

/system/xbin/busybox ln -s /system/data/system/ system
/system/xbin/busybox ln -s /system/data/misc/ misc
/system/xbin/busybox ln -s /system/data/property/ property
/system/xbin/busybox ln -s /system/data/dalvik-cache/ dalvik-cache
[Desire Android Development] Droidzone:
Excellent! . :)

But it's just a modification of Sibere's migration code. His Data2SD work is awesome!
[Desire Android Development] Droidzone:
This is true normally, in all cases except this particular one.

For 1.2->1.3, you can flash the reinstaller directly on 1.2. The difference between the two is very minor to cause an issue..
[Desire Android Development] Bibracte:
Ok. Thank you.

I tested Data2SDReInstaller1.3_tiny.zip directly, it works.

I also understand the normal procedure "Re-Installing over an existing installation because of code revision in the Data2SD code".
[Desire Android Development] Box287:
Has anyone experienced problems with HTC Mail? I've set three accounts up to automatically sync every 10 mins but cannot get any of my mail down unless I perform a manual sync.

Only have experienced this problem since switching to Starburst.
[Desire Android Development] 3f1f37:
1stly mad props to DroidZone for his work on this ROM and Sibere for his Data2SD work. As a fan of sense UI all I wanted was more internal space, so I rooted and did my research, flashed this ROM.

In response to the above quote I installed this yesterday and will post results regarding the mail issue you mentioned.

Edit: @ box... HTC mail working perfect for me.

Sent from my HTC Desire
[Desire Android Development] zongamin:
Is there a change log for the new Data2SD versions?

I'm still on 0.7Tiny, but I can't find any details about the newer versions.
[Desire Android Development] nlgasper:
charging

Hi there.

I´ve tried may ways to turn off the screen when the battery is charging.

the screen becames on but don´t show anything. You can check it in a dark room.

I ´ve tried your last rom but the screen became on when charging.:confused:

Thank you
[Desire Android Development] sibere:
Wiping dalvik in recovery should not affect the ext partition because the dalvik is on NAND (beta version). The simlinks are located in the ext partition so I don't really see how they can have been deleted by the recovery. Cleaning dalvik-cache should only delete files inside the dalvik-cache forlder.

Could you give a bit more details on the links and/or forlders you had to recreate to get boot? Which links/folders got deleted?

This would help to troubleshoot and come with an updated script which would correct this issue.

many thanks.
[Desire Android Development] Roach2010:
I've managed to come up with a simple fix for the Boot Loop issues I was experiencing.

When the dalvik folder is removed from NAND the simlink in the ext4 partition disappears as well. What I've simply done to resolve the issue was to add a line of code into /system/etc/init.d/01data to re-add the link after the ext4 partition has been mounted.

20	chown 1000.1000 /data
21	chmod 771 /data
22	#This should fix the dalvik-cache wipe issues
23	ln -s /system/data/dalvik-cache/ /data/dalvik-cache

Now every time I clear down dalvik the phone simply re-adds the simlink and boots as normal.

Thanks for the help and I hope this is of some use to you in the future.
[Desire Android Development] Roach2010:
When I perform a dalvik-cache wipe the folder is removed along with the contents. I guess that's why the symlink gets removed too. I don't exactly clear it down on a regular basis or anything but I was trying to install a theme last night and that's when I ran into problems.
[Desire Android Development] sibere:
Noted. Could be useful for Droidzone.

But I still don't get own the simlink can be deleted on the EXT4 when it is not mounted!

When you select "clear dalvik-cache" in recovery, only the NAND should be mounted to /data and the dalvik-cache folder cleaned up.
[Desire Android Development] Stephen88:
Hello droidzone I wanted to ask if the new version is still data2sd

this and the problem of debugging and mode GSM / WCDMA, or do I

use the beta version?
[Desire Android Development] Roach2010:
This was bugging me so I carried out some tests and it turns out that performing a dalvik wipe using cwm-recovery removes dalvik-cache from /data, /sd-ext and /cache regardless of whether it's a folder or a symlink.

Selecting 'Wipe Dalvik Cache' from the Advanced menu results in all three partitions being mounted in preparation for the wipe. This explains why both NAND and ext are being cleaned.

It hopefully a non issue now that there's a workaround for the problem.

Thanks again for the rom guys, it's by far the fastest Sense Rom I've used and it's given me reason to hold onto my Desire for a wee while longer. :D
[Desire Android Development] Fieser-Kardinal:
What's the difference between W7 and X1 Data2SD Versions?
[Desire Android Development] Droidzone:
That's a great idea..Added that and updated scripts..Only the beta needs it.
[Desire Android Development] Droidzone:
Described here

http://starburstrom.wordpress.com/2011/03/12/398/
[Desire Android Development] whips:
Does anybody else have a problem with time and date settings? I set my time to update automatic based on network, my timezone is GMT-5 which it gets initially but within a second it jumps to GMT-4. Each time i toggle the auto update it gets the correct setting then jumps back to GMT-4. If I manually set the time and time zone, my HTC clock widget displays the wrong time even though the time in the status bar is correct.
[Desire Android Development] mayurh:
droidzone any idea when the settings issue in the stable data2sd version will be fixed? please?
[Desire Android Development] Droidzone:
It was fixed some time ago. Flash the migration script to move to X1 version.
[Desire Android Development] mayurh:
thanks .but does that come with the con that i wont able to install as many apps as before? or will it work just as the stable version but with the settings fix?
[Desire Android Development] Droidzone:
http://starburstrom.wordpress.com/2011/03/12/398/
[Desire Android Development] mayurh:
:( i downloaed the supercicle mod from your mini site and flashed it in recovery and now my phone is stuck at the htc screen?

damn, wat must i do now? besides reloading. and i didnt do a nandroid before this.damn

help pls droidzone? is there a way to go back?
[Desire Android Development] Droidzone:
You could flash the starburst rom once again in recovery, followed by the data2sd reinstall zip (appropriate for the version of data2sd on your phone now.) immediately without reboot in between
[Desire Android Development] mayurh:
but then i'l have to start from scratch?

wat if i copy the original framework-res file back to the system folder?

there must be a way to undo the cricle.zip update?
[Desire Android Development] eddy790:
tq for the rom. this is my 1st custom rom i flash to my desire. hopefully it will work..
[Desire Android Development] Droidzone:
No you wouldnt have to start from scratch. It wouldnt overwrite anything you installed.

And yes, you can do exactly what you've described. It's the most specific way to do it. Get the file from Rom, then extract it to the dir where you have adb.exe.

In recovery:

adb shell
mount /system
exit
adb push framework-res.apk /system/framework/framework-res.apk
[Desire Android Development] mayurh:
why did it get stuck anyway? i used the circle mod from your site?
[Desire Android Development] Droidzone:
That's a very old file. I'll remove the link now.
[Desire Android Development] mayurh:
will that make it like it was b4 super circle.or is it going to remove other stuff too?>
[Desire Android Development] mayurh:
yes pls do man.eish i have to start from scratch
[Desire Android Development] Deus4ever:
Hi,

First off all, thx to droidzone and anyone helping and contributing to StarBurst.

I don't know if this is a problem with StarBurst/Data2SD or Clockwork, since I can't access update.zip's (or any other zip) from within Clockwork anymore. Last zip flashed was rom followed by Data2SD with reboot in between.

My suggestion is Clockwork can't access the FAT32 partition.

I'm using StarBurst 1.3.3.4 with 1.3tiny, 6.5 GB FAT32 followed by 1 GB ext4, Clockwork 2.5.0.7

//UPDATE

Problem solved. I just upgraded to Clockwork 3.0.0.5-r3 trough UnrEVOked3. Now it's possible to access sdcard from recovery again.
[Desire Android Development] sofia-captivate:
Hello everyone. This is my first rom I tried and got it successfully there is 2 problem

My internal memory is 67mb and I get only 1110 quadrant score and browser is slow have I done something wrong?
[Desire Android Development] Bibracte:
Bonjour :-)

How to know which version of the script is installed and active (1.3tiny, X1, W7 etc...) ?
[Desire Android Development] Box287:
1. Did you partition your SD card correctly and run the 2SD Script?

2. Quadtant is a benchmark, YMMV. Try disabling livewallpapers, radios, use an app killer and you'll get different results also try overclocking with SetCPU. If your not experiencing FC's and lags ignore quadrant.

According to your sig, you posted from a SGH-I897, that's a Galaxy S, this is a desire forum. Cross post or just me?? :confused:
[Desire Android Development] Droidzone:
Sounds like he installed the Rom alone without the data2sd.

I suggest you go back to install instructions and follow it word for word..

A valid qn..We didnt realize that there were going to be many versions of data2sd! :)

For newer versions, you can get the version from adb shell:

"cat /data/data2sd.prop"

For older versions, you will need to do this from adb shell: "ls -l /data"

If it shows:

dalvik-cache not followed by an arrow, but system, property, and settings are followed by an arrow, that is X version

If it shows:

dalvik-cache, system, settings, and property followed by arrows, that is W.

No arrows implies means Stable version
[Desire Android Development] Alas2708:
Hello Droidzone, Sibere,

I just want to say thanks again for this ROM, I love switching ROMs and testing lots of different configs on my device, but somehow I always come back to Starburst, which gives me the best overall experience... I even find it better than the latest Gingerbread Oxygen... and battery life is pretty much the same...

Anyways, just wanted to let you know as well that I was able to flash the "Migrate X series to W series" to successfully migrate the "W6f" version that I installed the ROM with to the latest beta code, which performs the best for me. I confirm that in adb shell, my symlinks in /data are correct, with the dalvik cache on the internal NAND now...

Thanks again and keep up the good work!
[Desire Android Development] Droidzone:
Appreciate the feedback.
[Desire Android Development] Psyco-Man:
hi droidzone,

thx for your updates in rom and data2sd script.

i ve a working running version of starburst 1.3.3.4 & W6f data2sd on my desire,...

now there is a w7 out i m confused how to "upgrade" from w6f script to w7 script.

because there are much installers and reinstallers on your download section i m confused.

hope you can bring light into my dark and help me what i should do, because i dont want to reflash the phone from scratch.

thanks for your help, or the users help, depends on who answers ;)
[Desire Android Development] Droidzone:
Do you have adb?

Can you do this in recovery?

adb shell

mount /system

mount /data

ls -l /data

Can you Select the text output of the last command and post here?

This is because after W5, the W6f was "accidentally" upgraded to Settingfix version.
[Desire Android Development] zongamin:
Question RE: Data2SD Scripts

Hi Droidzone

I just updated to 1.3.3.4 with Data2SD Tiny 1.3 - wow - getting a quadrant of 2142 with a Class 2 Card!

My question is:

Is there a changelog specific to changes to the Data2SD scripts?

Thanks.
[Desire Android Development] Droidzone:
That's a very good score for Class 2!

Actually Data2SD work has been too dynamic to keep a changelog. :)

If you want to see the differences between the various versions, just see the page for download links of the migration code.
[Desire Android Development] zongamin:
Thanks Droidzone

I was amazed by the score too - I ran it a couple more times and still getting the same results. Its a Sandisk 16GB Class 2 (or at least that was what it was sold as)

I was getting about 1300 with 1.3.2 with Tiny 0.7

The difference in Quadrant seems to be all down to the I/O tests - the first one was taking about 7 seconds on my old install, since I updated its now almost instant.

I'm running CPU are standard 998 so not overclocked either.
[Desire Android Development] sibere:
2142 is very good indeed.

Just keep in mind that quadrant score may not reflect real life usage of your phone.

Latest data2sd is using tweaks which uses delayed writes (cached to RAM) to the SD.

Let us know if your phone is fast enough and not laggy (except when installing apps)
[Desire Android Development] Droidzone:
Ha..I was going to say that exact same 2nd sentence, but you beat me to it! :)

Removing the journal might make it even faster (arguably at the cost of data safety.) But I like to keep it on for StarBurst since that gives an added layer of protection.
[Desire Android Development] shankly1985:
Quick update on my battery performance, 7hour since unplugged 79% :)

up time 126h 33m thats since I updated the ROM, no crash FC, LAG all working superb.

They thing using more battery on my phone stats is phone idle 33% can I get the down, am thinking thats when my phone screen is switched off?

super droidzone :)
[Desire Android Development] schalmers:
Hi Droidzone, Can you clarify if I am using the Beta or new "Setting Fix" scripts. I downloaded Data2SDInstallerW6f_StarBurst.zip on March 2nd but as there is some confusion I would like to know:

ls -l /data

drwxrwx--- root root 2011-03-05 21:09 lost+found

lrwxrwxrwx root root 2011-03-09 20:27 drm -> /data/local

drwxrwx--x shell shell 2011-03-09 20:27 local

drwxr-xr-x root root 2011-03-13 14:28 data

drwxrwx--x system system 2011-03-13 14:30 app

lrwxrwxrwx root root 2011-03-09 20:27 dalvik-cache -> /system/data/dalvik-cache/

drwx------ system system 2011-03-09 21:00 backup

drwxr-x--- root log 2011-03-05 21:09 dontpanic

lrwxrwxrwx root root 2011-03-09 20:27 property -> /system/data/property/

drwxrwx--x system system 2011-03-05 21:09 app-private

lrwxrwxrwx root root 2011-03-09 20:27 misc -> /system/data/misc/

lrwxrwxrwx root root 2011-03-09 20:27 system -> /system/data/system/

sh-3.2#

I am getting about 2000 on Quadrant so I am pretty sure that is beta.

Thank you for all of your great work with Sibere
[Desire Android Development] Psyco-Man:
hi droidzone,

thx for your fast answer, i just installed everything i eeded to run adb and here is my screenshot.

whats next ? hope i did all right.

http://tinypic.com/r/210wn10/7
[Desire Android Development] zongamin:
I thought it might be something like that - I would say that in terms of real life usage I'm not seeing any noticable increase in speed over 0.7, only in the Quadrant test.

Nothing lagging though - still feels quicker than Stock.

- Quadrant score this morning 2302
[Desire Android Development] Droidzone:
Yup. This is beta. If you are still able to install Market apps, you can use this. When space for dalvik-cache starts to fill up and Market starts reporting errors, you can switch to settingfix version.

Seems like you have the stable version. To move to w7, use the migrate stable to beta script.

Yea, though Quadrant score can be over enthusiastic, see for lags while playing games and installing apps. The latter is to be expected on a small scale.. You shouldnt have the former though.Also, I must say that there would be no difference in real life performance for 1.3 tiny over 0.7 tiny. When you switch to beta, you should see a big difference.
[Desire Android Development] mayurh:
droidzone please update new link for supercircle mod?

or can i just upload framework-res.apk to uot ?

do i chose edify script or older?
[Desire Android Development] DroidBois:
Has anyone else noticed any issues with battery charging here? I seem to have it plugged in to a USB port but it's not drawing power? Or is it just me and a dodgy port or connector / cable? The orange charging light is on and charging status is 'USB'.. Weird. Battery Monitor Widget is not showing positive current either, and the phone is not hot which would suggest excessive current drain (overwhelming the charging current).

Only non-standard mod is VoiceDial app and supercircle mod.
[Desire Android Development] mayurh:
mine is taking longer than normal to charge - but its charging
[Desire Android Development] mayurh:
damn:( it does not working even with this method. boot loops after entering sim unlock code

back to square one

why is it not working droidzone?
[Desire Android Development] linasg:
sorry if repeating, but unable to install rom via rom manager - data2sd files not found.
[Desire Android Development] mayurh:
:( restored nandroid but sense ui wont load
[Desire Android Development] Droidzone:
I tried cooking a theme with the new kitchen and it works fine. So I dont know why it doesnt work for you.

Link to the SCB mod I cooked..

http://hotfile.com/dl/110307692/c454e4d/UOT-03-15-11-31-1.zip.html