yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] derfolo:
Hi,

To followup on xnycen's question, why would we do this? Is the benefit only in providing more space, or is there also a performance increase (or decrease)?
[G1 Android Development] dbhatesyou:
hate to see the sdcard fail with this change
[G1 Android Development] Darkstrumn:
well...

Yes, after the install you are running complete on sd,

but because of the method used, if you reboot, and take out the sdcard before the boot starts, you will be running as you were before the data2sd aka normal; put the sdcard back in, reboot and you are in data2sd mode again.

This effectively gives you two android run modes: "normal" and data2sd. If the SDCore can not be located the Android will boot in normal mode. You can of course try to keep them sync'd, but if you do the data2sd from a clean slate you can effectively have a "safemode" :p and if you have an issue with some app, go into this "safemode" and do some investigations or adjustments as the SDCore will mount if you put the sdcard in after the system is in "safemode" but the apps and such will not be loaded until you reboot.

The size expansion is the primary benefit of the construct. As far as speed goes, I haven't checked to see if there are any speed gains in moving /data to the sd... Can someone who's interested check that out and let us know?
[G1 Android Development] sacredsoul:
Speed is all I'm interested in :D If it speeds the device up, why not?
[G1 Android Development] corp769:
Anyone have anything to report about the speed? I am very interested in this :)
[G1 Android Development] ebadevil:
wow having this "dual boot" seems like an incredible idea... can anyone report on this?
[G1 Android Development] ebadevil:
can someone please give a more noob friendly instructions? from what I understand as of now is:

1) boot into recovery and wipe the phone (I'm assuming we can keep whatever ROM we had before)

2) place data2sd.img in root of SDcard (fat32)

3) and this is where I get lost... how exactly do I move the sh file to that location? how do I chmod it? how do I run it? what are the adb commands? thanks!
[G1 Android Development] TheDudeOfLife:
Hmmnm I thought we weren't doing this because of inheriant security risks?

Not to mention what happens when you mount your fat32 partition....are the apps no longer (as well as your data) available?
[G1 Android Development] Darkstrumn:
NO booting into recovery and wiping of the phone!

Hold up people!

:eek:**There is NO booting into recovery and wiping of the phone!**

My bad for not being clear on the wipe instructions!:o

1) (optional) If you are to wipe it (your choice it is not required), then press menu->settings->SD card & phone storage->scroll to bottom of screen and select "Factory data reset". This will wipe the /data partition only removing all apps and settings. BACKUP YOUR /data dir to sd, First or you will need to down load all your apps again to include paid apps!!

2) place data2sd.img in root of SDcard (fat32)

3) terminal in or adb shell in.

4) cp /sdcard/data2sd.sh to /data/local/bin - to copy the script to your user-space

5) chmod 0750 /data/local/bin/data2sd.sh - to make it executable

6) /data/local/bin/data2sd.sh or data2sd.sh may work to run the script

7) once the install is done it should tell you to reboot. If you had the ddms debugger running, you can observer the log as it is working.

8) done. It may boot a little longer if you clean-slate installed and then restored your apps by copying them back into /data/app and /data/app-private which has the affect of reinstalling everything, and thus the boot will take a while if you have alot of apps like I do. Again you can observe this as the Android boots if you have the debugger running.:)
[G1 Android Development] ebadevil:
thanks a lot man, will give this a shot in a few hours! not at my comp right now
[G1 Android Development] Darkstrumn:
security risks and (u)mounting /sdcard

Not sure why there would be any security issues, the Android is already rooted. If someone can steal the sdcard, they can steal the entire Android, and if the sdcard is left lying about, then yes it can be strolen then too. :p

The construction of the SDCore assumes all the original permissions, so nothing has access to things it shouldn't save the scripts that use the cache as a backup mount point, but it is given the same permissions as /data, so no worries. :)

With this construct in place, you can't physically remove the sdcard without first powering off the Android, or rebooting it and removing the sdcard first thing. But while the system is operational, you can mount the sdcard to usb and umount it from usb without issue as long as any mounts to the sdcard are released (loopfs, etc) prior to trying. vold will give 10 tries to umount /sdcard to include attempting to kill the processes with file locks on /sdcard when it tries to umount the volume to attach it to usb.

A a matter of fact, if you observe via teh ddms debugger during boot, the vold service is busy checking the sdcard and mounting it well after the system has already mounted the sdcp2 and begun initializing apps from the sd /data.

So, as long as "sdcard partition2" (sdcp2) remains mounted and all, you can mount the sdcard to the connected Host and back and still have access to your apps and data all you want. I reckon this is how the app2sd and dalvik2sd constructs also perform.

The only thing to really note is that the first partition must be vfat (fat32) and the second either ext2 or ext3 (currently as they support file permissions). vold only cares about the first partition which it expects to be a vfat volume. So as long as p1 is vfat and p2 is posix compliant, we're golden!:D

The only real question I don't have a good answer for is the speed gains question. My card is a 8GB class6 and things seem fairly responsive. I don't know how much different it would be with a class 4 or 2, or the real speed difference with the built in storage. Honestly it feels a little more responsive, but I haven't really done things that make it feel sluggish.;)
[G1 Android Development] TheDudeOfLife:
Oh, I saw the .img and assumed you just mounted the .img from fat32. My bad for not reading all the instructions.

Any problems with apps crashing? I have had a lot of quirky issues in the past with merging the entire partition.

Thanks for the response. I like what you've done here. I'll have to try it out for sure.
[G1 Android Development] Darkstrumn:
No worries; the .img file can be thought of as an install cdrom it is only used the one time during install.

As far as apps crashing, no problems!:D

During my experimentation building the construct, permission mangling happens if apps are moved out of /data/app, /data/app-private but /data/data and maybe /data/dalvik-cache are not cleaned up prior to copying apps back into their respective app dirs.

What happens is the app dirs are monitored. if you move an apk into the dirs android will install the app. Likewise if you delete an app from those dirs PackageManager will uninstall the app. If /data/data already has the dir for the app, it will use it. if the /data/system/packages.xml and /data/data don't have the same id assigned to that app, you get a permissions\\id conflict; the PackageManager will not manipulate the dir if the id's don't match.

The app /data/local/bin/archiveApps.sh, /data/local/bin/softWIPE.sh and /data/local/bin/restoreApps.sh scripts allow one to backup thier apps to the new /data/app-archive and /data/app-private-archive dirs, clean out /data/data/ /data/dalvik-cache, and restore the apps to their app dirs. As the apps are copied into their dirs, the PackageManager will update /data/system/packages.xml proper and rebuild /data/data and the dalvikVM will build the /dalvik-cahce proper.

Someone made a seemingly nice script (I've not used it yet) called fix_permissions.sh that will parse the /data/system/packages.xml and update the ownership id of the apps /data/data sub dir proper and thus is more scalpel like in operation, but that process doesn't make a backup of the apps; so using both may be the most effective replacing the softWIPE.sh part of the process with the fix_permissions.sh instead.:cool:

The only time you should run into issues is if say you have 10 apps installed in teh SDCore /data and 6 in Android /data and then attempt to sync them (because the 6 are different than the 10) by copying\\merging Android /data with SDCore /data the SDCore /data/data /data/dalvik-cache and /data/system/packages.xml will now be mangled.

/data/system/packages.xml will now no longer know about the 10 apps that were installed prior, and on boot PackageManager will "install" them, but /data/data will have dirs inside with now different id's from what was newly assigned them in /data/system/packages.xml, and the 10 apps will now not work correctly but the 6 will as dirs with matching id's were created when they were "installed" new.

To fix, either the softWIPE.sh process outlined above, or the fix_permissions.sh process also mentioned above.

:)
[G1 Android Development] sacredsoul:
So did anyone try this at all?
[G1 Android Development] danieljordanmaddux:
Can this be done after doing the apps2sd by marcusmaximus? I tried it but when trying to chmod 0750 /data/local/bin/data2sd.sh it said "No such file or directory" so i tried mkdir /data/local/bin and got "File Exists" so i proceeded with copying data2sd.sh to /data/local/bin again which went without showing any errors and when trying to chmod 0750 /data/local/bin/data2sd.sh again i got the same error so i tried to ls /data/local/bin and just got # what am i doing wrong?
[G1 Android Development] chev:
looks interesting! might try this during the weekends ill give an update if i encounter any issues or not :)
[G1 Android Development] justanothercrowd:
interesting. I'll be looking into this!
[G1 Android Development] Raziel07:
I just flashed cyanogens 3.4.4 and it has a built in apps 2 sd but doesnt do cache, is that what this does?
[G1 Android Development] danieljordanmaddux:
nvm did a wipe and it worked perfectly! :)
[G1 Android Development] chev:
Really?? any issues?
[G1 Android Development] danieljordanmaddux:
no issues so far. I've got about 250 apps installed with 69mb left of internal memory.
[G1 Android Development] sacredsoul:
Any speed improvements?
[G1 Android Development] danieljordanmaddux:
For me it runs as fast as it does after a wipe, not many force close issues. Its just usually if you have one app thats bad about force close issues it 'll cause like a chain reaction and cause other apps to do the whole force close or wait thing. I'm running marcusmaximus's apps2sd from a 16GB class 6 micro sd so its actually a little faster for me than normal to begin with. Other than that no changes really. :)
[G1 Android Development] danieljordanmaddux:
Sorry forgot something ;)

My only real issue is that when i boot the phone i have to allow it about 10 minutes to boot totally due to the amount of apps on the phone. Its just a matter of the apps all starting up at once in the background and if i mess with it too much before it comes all the way on it just reboots itself
[G1 Android Development] sacredsoul:
Ahh. I have very few apps. And Im gonna get my class 6 sandisk later today. Will try this after more people have tried it :p
[G1 Android Development] Darkstrumn:
Boot times with alot of apps... and something new!

Hi All,

As has been noted by danieljordanmaddux, if you have a lot of apps installed on your expanded Android will take a little longer to load-up after a reboot.

This is especially true if you have a ton of apps backed up and dump them into the app dirs of a "clean" system, or one where the app was "uninstalled"

The PackageManager and DalvikVM work to "install" the app and basically queue up the files as they land in the app dirs and installs them FIFO style and do so seemingly rather slowly(, but who knows what all is being done). So it can take some time on the initial "install" which can happen if you wait for the it to finish before rebooting, doing the install and then rebooting or rebooting and then installing in which the install will not require a second reboot, but will simply install the apps and when done your apps are go.:) Further reboots shouldn't take as long, just depends on how the "install" is done.

Note: That any apps which fail to install will try again the next boot. I have a few apps that no longer work in 1.5 and attempt to install at each reboot.

Note: You don't need to reboot after installing apps, just after the data2sd install to have the system load /data from sd. If you dump the files into your app dirs before the reboot, you will be dumping them into the data2sd app location as it is currently loaded but not loaded from. And if so done, it will take a longer time to boot as the device installs all the apps. So I recommend doing the app dump after the reboot.

Hope that provide some more info on the process and what to expect.

Good News!

I've worked up the natural progression to this XXX2SD business, and have made an Android2SD construct which can expand the Android similarly to the the previous constructs, but also puts /system on sd and is more scalpel like in what is expanded\\backed (via unionfs overlays) and allows you the user to fine tune what is overlayed via overlay profiles which you can make and change and selection of specific dirs to overlay which allows you to mix and match profile components as you see fit.

I'm doing the doc write-up and install which should be a bit better than my first attempt (data2sd) both in explaining the process (no need to recovery wipe the Android unless you want to, but backup first!:)) and the install process.

I'm sure you'll all like this new construct "Android2SD".:D

Coming soon!
[G1 Android Development] Darkstrumn:
android2sd released!

Hi All,

I've released android2sd! The thread is here:http://xdaforums.com/showthread.php?t=534851:D

Enjoy!
[G1 Android Development] Darkstrumn:
Sorry I missed this post. Probably pointless now, but app2sd moves the apps dirs and such to the sd while data2sd moves the entire /data volume to sd.

You should use one or the other but not both as they do the same thing. But if you do use both, data2sd should probably be run first...

Try copying data2sd.sh to /data/local and then proceeding with the permissions changes and execution.

Hope that helps.
[G1 Android Development] DearTanker:
Can you teach me how to add this great script to a rom when i cooked.

Teach me detail with step by step.

Thank you so so so so much.

Because someone like me feel tired to type those script after flash a new ROM.

Thank you for this great work.
[G1 Android Development] lyndel4:
Yeah am having the same problem aswell I dont know how to install this thing am thinking you should try to make it more noob friendly lol am not good with linux but am interested in this and I love your work it will alow me to fully enjoy my G1 with more internal memory something i been waiting for a long time now it would of been nice if you could make a app that does everything with one click but this is still ok but how do I install I read the instructions but still dont really get how to move the files using adb
[G1 Android Development] mayurh:
hi there

this data2sd sounds good

but no one has yet said if i'l still able to use my phones sd in disk drive mode to transfer stuff? and will it cause any problem?
[G1 Android Development] AndDiSa:
You can use ddb option of firerats all-in-one-script. This moves data onto the ext3 partition of your sd-card and will mount /data/data to /sd-ext/data.

As long as you do not mount the /sd-ext partition there will be no problems with transfering data onto the sd-card.
[Networking] Geoffsri:
I hope I am posting this in the correct forum.

I have installed Skype on my Samsung I730 WiFi cell phone. When I make or receive phone calls the audio is routed thro the Speakerphone. I would like to route it thro the phones receiver and mic.. I was told that there was a thread in your forum that gave instructions on how to do this, but I cant find that thread.

Please help.

Thanks
[Networking] Davebravey:
Unfortunatly it isn't possible. Only solution at the moment is to use headphones.
[Tilt, TyTN II, MDA Vario III General] Constantinff:
I'm trying to use this emulator to play some very old games, but get an error message. Some help please.Thanks!

EDIT: I think it is because of the resolution

EDIT2: And is there a way to play game in landscape screen, because for the moment it does not work
[Tilt, TyTN II, MDA Vario III General] jimmyboy2389:
Problems

I have the same issue. I downloaded some roms and when i go to open them on morphgear I get that same message.
[Touch Diamond2, Pure ROM Development] rakusson:
hi all,

HTC has recently (2009-05-26) released a new version of Danish ROM _HTC Touch Diamond2_QMR_RUU_Topaz_HTC_DAN_1.39.403.2_Radio_Signed_Topaz_61.20t.25.10_3.43.25.19_Ship

http://www.htc.com/dk/SupportViewNews.aspx?dl_id=571&news_id=166

My ROM version is 1.39.403.1(DAN). Has anybody installed it?? If someone has then let me know what are the changes.

will appreicate your effort.
[Touch Diamond2, Pure ROM Development] ULJ:
The only differences is some corrections of the language in some menues and help files. Trust me, I know ;)
[Touch Diamond2, Pure ROM Development] tom_codon:
upload it some where , i'm interesting with this one , maybe next times , i will build a DAN version of my series roms

Thanks bro :)
[Touch Diamond2, Pure ROM Development] niknik76:
Here you go :-)

http://rapidshare.com/files/2460528...d_Topaz_61.20t.25.10_3.43.25.19_Ship.exe.html
[Touch Diamond2, Pure ROM Development] tom_codon:
thanks bro :)
[Touch Diamond2, Pure ROM Development] ttppeewee:
I would be so happy if you made a DAN version of you super ROM:D
[Touch Diamond2, Pure ROM Development] Smirge:
That would make several of us indeed very happy :)

/Smirge
[Touch Diamond2, Pure ROM Development] rakusson:
have you tested it yourself? If it is just for some corrections of the language then I am not gonna flash it.
[Touch Diamond2, Pure ROM Development] dohaa32:
link not active anymore, can u please upload again:)
[Touch Diamond2, Pure ROM Development] BeeGee_Tokyo:
Someone can upload it to my FTP server? User xda Password xda. Then I can publish it on BeeGee's Topaz File Mirror!
[Touch Diamond2, Pure ROM Development] m@f:
Was starting to upload it to your ftp-site.. but then I saw you allready got it...
[Touch Diamond2, Pure ROM Development] BeeGee_Tokyo:
hmmmmm, I should read the dates of the posts :o

Of course I have it already on my server. :rolleyes:
[G1 Q&A, Help & Troubleshooting] watchyaself:
Well after some time i had trouble loading the Recovery Menu to install he hardspl on my phone(and for everybody who helped me before, i found that reinsalling the 1.0 update and repeating everything from scratch fixed my problem, but thanxs for the help anyways)

I finally got it working.So now im running JF1.51 :P

But now im trying to put appstosd on my phone

But what im reading is that you need TheDudes Rom to do so

Am i mistaken???

Or is there a specific way of doing it for Jf's rom

I've been looking aroung with no luck :(

So far all ive been able to make a partition, but thing arent going so well.

When i first tried it i Sucessfully created a partition on my phone

but when i install appstosd and try to "Move all Apps to SD"

it works but when trying to install stuff from the market it tells me "install unsucessful" and i cant revert it so i have to wipe/factory reset from recovery menu to get back to normal

So now im here like a dumb@ss wondring what the heck do i do any help appreciated!
[G1 Q&A, Help & Troubleshooting] mrcrs:
i feel like a broken record but... have you tried using the search feature?

because imo, if you did you would know that a2sd is not only for the dudes.

also 'HERE' link in my sig has a nice guide for getting a2sd and also go to the dev section.

oh to add, did you symlink your apps before you went to the market to install the apps?

if not, do that please.
[G1 Q&A, Help & Troubleshooting] watchyaself:
Ok i got you but

whats symlink????

and how do i do it
[G1 Q&A, Help & Troubleshooting] mrcrs:
okay if you are asking me what symlink means then you are obviously not reading the guides that are here on xda or even on the net for that matter.
[G1 Q&A, Help & Troubleshooting] watchyaself:
well im kinda new and all these methods sound "Advanced"

especially the one you gave me

but im going to try ill see what happens

so thanxs
[G1 Q&A, Help & Troubleshooting] mrcrs:
have you looked into lucidrem's script?
[G1 Q&A, Help & Troubleshooting] tubaking182:
there are three basic rules to modding your phone:

SEARCH

IF IT LOOKS TOO HARD AND YOU'RE SCARED THEN STOP

IF YOU DON'T KNOW HOW TO UNDO THE PROCESS THEN DON'T START

in the future start with step one
[Touch Pro2, Tilt 2 Themes and Apps] Angelusz:
(Click the image to go to the thread)

Howdy! I'm running Rhodium's TF3D on my Xperia and made a theme. Thought you people might be interested as well. Enjoy!

Main thread​
[Touch Pro2, Tilt 2 Themes and Apps] Pimmr:
Thanks!! Looks awesome... I'll definitely try this one :D
[Touch Pro2, Tilt 2 Themes and Apps] Angelusz:
Cheers! ;)
[Touch Pro2, Tilt 2 Themes and Apps] nicelad_uk:
Nice piece of work mate, very nice indeed.
[Touch Pro2, Tilt 2 Themes and Apps] Pimmr:
Whoops neverminde should have read the thread first....
[Touch Pro2, Tilt 2 Themes and Apps] Angelusz:
Lemme guess, white manila? ;)
[Touch Pro2, Tilt 2 Themes and Apps] Pimmr:
:eek: Spot on :D:D:D

Awesome skin my friend!!

Can't help to notice T-Mobile-NL, so this is yet another Dutch creation? Lijpe **** zeg ik!! ;)
[Touch Pro2, Tilt 2 Themes and Apps] stunno:
Pimmr: Do you have a Voda branded TP2 or an HTC one?

This looks really nice, just hope it will work with my branded one
[Touch Pro2, Tilt 2 Themes and Apps] Angelusz:
Hehe, yeah, dutch it is. ;)

The problem is that the normal download uses a compression method to decrease the file size up to 90% (see cab size difference), which makes manila faster. Thing is, manila needs to be patched for it to work. Look up Chainfire's Compression for more information.

It should work with a branded ROM as well, unless completely new manila files have been added (which I think is unlikely).
[Touch Pro2, Tilt 2 Themes and Apps] DavidMc0:
I've just tried it on my Vodafone branded Pro2, and all works well except when you stop on any tab, the background goes black so you can't see anything much.

The transitions between tabs is so great - I hope this can be made to work fully. Great work, thanks!
[Touch Pro2, Tilt 2 Themes and Apps] Angelusz:
Do I understand correctly that the background (as in the screenshots) only shows while scrolling, but not while actually inside a tab?

I'll relay this information to Rotastrain (the creator of the panoramic background mode9 file) so it can be looked into.
[Touch Pro2, Tilt 2 Themes and Apps] Pimmr:
Does this mean there is a preformance difference between the original one and the compability version?

I have got a HTC one... so can't tell how it works on the branded one. I had to use the compability cab anyway.
[Touch Pro2, Tilt 2 Themes and Apps] stunno:
on my Voda branded one the compatibility cab works fine apart from some of the fonts stay black. The calendar tab is particularly bad and a white font & lines would have been better.

Great theme tho!
[Touch Pro2, Tilt 2 Themes and Apps] DavidMc0:
Yeah, that's what I've been experiencing. It seems it's the same issue Stunno is having, as with a light background (which I believe it's supposed to be) the black fonts would be suitable.

Will be fantastic to have this to replace the Vodafone theme once it's fully functional, thanks again!