yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] THATTON:
Hey, that works for me! Thank you!
[Nexus One Android Development] tkirton:
Add Apps2SD support in your Rom

I created a guide in my main thread on how to add Apps2SD into roms that don't have it.

http://xdaforums.com/showthread.php?t=715116
[Nexus One Android Development] tkirton:
Bump....New version 2.7.5 Preview Fix 4 is out (and there was a PF3, but it was only released to Desire users to try to work through the NAND protection on their device...their changes are part of PF4).
[Nexus One Android Development] Chahk:
Has anyone tried this on the latest CM6 nightly build?
[Nexus One Android Development] djdarkknight96:
I was going to, but the nightly are so often that I would hate to keep having to do it every update...well the nightlies have slowed down....I might try it out! Will report back if works!
[Nexus One Android Development] THATTON:
Cool, let us know here and in the CM thread. I would love to know as well.
[Nexus One Android Development] mightykc:
I flashed the zip in recovery using CM6 and it did not work. The zip flashed without error but my apps did not move to the EXT partition
[Nexus One Android Development] tkirton:
I'll check it out and see what's going on.

EDIT: It's possible that Busybox Run-Parts won't process two files with the same name. Since I can't run it, can you run a logcat so I can see what's going on. Send it to rtkirton@gmail.com and I'll take a look at it.
[Nexus One Android Development] sir*mez:
It works on CM6. All you need to do is flash boot from Modaco's (Paul's) Froyo R21 with a2sd.
[Nexus One Android Development] mlevin:
I'm eager to try this -- but I noticed that in the update.zip, there's a "new" copy of Vending.apk. Why is the Market app being replaced? How does this one differ from the stock FRF91 copy? It makes me a bit nervous to be replacing the app. Previous apps2sd approaches haven't needed to modify this. Can you explain a bit what's going on under the covers?

I would have thought that just an init script, an ext3 partition and a few symlinks would be all that was required...

Thanks
[Nexus One Android Development] mlevin:
Awesome! Thanks so much for the quick and detailed reply!
[Nexus One Android Development] mlevin:
Just read through the code. Nice work!

I see that one of the options is to put dalvik-cache in /cache. Any reason apps can't be put into this partition as well? On a rooted device, /cache is mostly wasted space. Or does /cache get wiped on reboot like /tmp?
[Nexus One Android Development] tkirton:
It is fine.
[Nexus One Android Development] Stars75238:
Eclair2Cliq Beta-1

I am running this ROM (clair2Cliq) and truly everyone I have read on this forum is way ahead of my understanding of Android and the phones, I want to learn more and get into the core of the phones working.

Here are the questions:

What is a good way to make certain the SD Card is partitioned for the phone to use this app? I have a 16GB card and a Cliq and want to move forward. I know I can copy stuff from the card to the computer, would that go to the fat partition when I am done?

How big should I make the partitions? Isn't there an online tutorial for partitioning the card?

Then can I install this app and run in with E2C? If I need to wipe I should be able to reload with a nandroid back up created before the wipe right? I should be able to flash this as an update and not overwrite the ROM, is that right?

I know lots of questions, I am new to the game and want to get started to make the Cliq worth the Android system. E2C is running 2.1 where the Cliq is still officially at 1.5 if that matters.

Many thanks for ay and all advice.

Michael
[Nexus One Android Development] seppi68:
Hello little question :

Why after flash new rom + App2sd and config all parameter my partition Internal Data space increases ?

I've set all Data to sd/data, but internal storage increases after new prog installed

Ext partition increases also.

i don't understand
[Nexus One Android Development] tkirton:
Everyone here has been working on Apps2SD a lot longer. Some started back in mid-2009 with the CyanogenMod builds. I believe it just recently appeared with the Motorolla Cliq (with thanks to jr33).

Easiest way of partitioning the card is from a recovery image (I don't know what recovery image is available for the Cliq...I think jr33 could probably answer that question better than I can). In the HTC world, there are three different recoveries:

1. Amon_RA recovery

2. Clockworks Recovery

3. Godspeed Recovery (a modified version of Amon_RA that clocks the CPU at full speed).

There may be more, but those are the three I have to deal with a lot.

All three recoveries allow you to partition your SD card using a menu option.

When you do a "mount" on your SD card via the Android interface, you are connecting the FAT32 partition of the SD card to your computer. Any files are stored there. On your Android phone, this is usually represented as the /sdcard directory.

You can push applications directly to the EXT partition either by running Linux as a desktop OS (Linux will mount both the FAT32 and the EXT2/3/4 partition for direct transfer) or use a program from the Android SDK called ADB. The EXT2/3/4 partition is represented as the /system/sd directory (in 2.7.5 RC3, it changed to /data/sd...later versions put it back on /system/sd) or, in some of the Froyo builds, it is represented as the /sd-ext directory (Darktremor 2.7.5 RC3C uses /sd-ext if it exists, or /system/sd if the /sd-ext doesn't exist).

The default settings are usually the following:

EXT2/3/4 partition: 512MB

Swap partition: 32MB

Remainder is FAT32

I have mine set to the following:

EXT2/3/4 partition: 2048MB

Swap partition: 32MB

Remainder is FAT32

There are guides, but you'll have to search for them as I don't know where they are at on XDA.

Darktremor Apps2SD can be loaded on top of the ROM you are using, provided that the ROM you are using is Apps2SD ready (it doesn't have to be using Darktremor, but it does have to be able to load a copy of Apps2SD at boot time).

In other words, Eclair2Cliq has to setup to launch Apps2SD in the boot image.

Here is the main Darktremor Apps2SD thread: http://xdaforums.com/showthread.php?t=715116

It is on the Hero CDMA thread (that's the phone I use). On that thread (and there should be links to that on the Nexus One Darktremor thread) is information on what is Apps2SD and how to modify your ROM to install it (you may have to adjust the instructions to match your particular phone...found out recently that the Samsung Moment has a completely different method of booting).

Darktremor Apps2SD works with Android 1.5, 1.6, 2.1 and 2.2 (Cupcake, Donut, Eclair and Froyo).

And if you have other questions, you can PM me or send me an e-mail at rtkirton@gmail.com.
[Nexus One Android Development] tkirton:
More than likely your dalvik-cache is located on your internal storage. When a program is installed, a optimized version of the program is loaded in dalvik-cache (for faster launch).

If you want to move your dalvik-cache and your SD card is a Class 4 or higher, you can execute the following command to move it to the SD card:

a2sd cachesd

If you don't have a Class 4 SD card and you don't have a ROM with SenseUI on it, you can move the dalvik-cache to the /cache partition:

a2sd cachepart
[Nexus One Android Development] ramosfet:
thanks

appreciate the hard work man. thanks!
[Nexus One Android Development] seppi68:
Hello, my dalvik-cache is already on SDcard !

my Rom is : Enomther's TheOfficial
[Nexus One Android Development] tkirton:
If that's the case, then the /data/data directory is getting populated. This is where your settings and program caches are stored. This is not moved to the SD card.
[Nexus One Android Development] Stars75238:
I want to tru;y thank you, you helped me get the card ready to be used and it is wrking nicely. Also did you mention that there was an app that allowed you to see what was on all the partitions? I think I have stuff being loaded to teh ext partiton but can't easily tell.

Dallas here so we are in the same great state.
[Nexus One Android Development] tkirton:
Thank you for the comment. I'm glad the program is working great for you.

As for an app...there are a few on the market. The one I use is Root Explorer (I don't think that's a free app, but it works pretty well for me). I know some Roms include ES File Explorer, which is free.

Dallas for me is not too far away (close to 300 road miles). A jump on I-10 to Beltway 8, then to I-45 for the rest of the trip. :)
[Nexus One Android Development] mjsztainbok:
I've noticed that some ROMS put some system apps into /data/app_s which consumes a large chunk of storage memory (roughly 80MB).

Is it possible for the A2SD script to also move this directory onto the ext partition so that more storage memory is available?
[Nexus One Android Development] tkirton:
Which rom is doing that? This is a non-standard location.

I'll check the rom out...this configuration will screw up every Apps2SD out there, including CyanogenMod, Darktremor, DamageControl, and any others.
[Nexus One Android Development] sl8125:
I have a couple question installing this app. I never install this app before.

I read that in the op that you will need a class 4 or higher. Is this a must? I have a sandisk high capacity 16gb SD card class 2. What will haqppen when I use my SD card.

When partition your SD card what ext performs the best and most stable. How mug of performance boost will I see. That's just about it. I read some of the post but I couldn't find my answer.

Thanks work all the work you done and appreciate all the support u are providing in the threads.
[Nexus One Android Development] tkirton:
1. Class 4 is highly recommended, but not required...and that really is if you move dalvik-cache to your SD card. The reason for that is that a Class 2 will actually slow the phone down if you use the SD card to store dalvik-cache information, especially if the dalvik-cache requires rebuilding.

2. Here are the different ext partitions:

EXT2 - The fastest partition due to no journal overhead, but also the most dangerous for the same reason...can be easily corrupted.

EXT3 - Slightly slower than EXT2, but safer to run due to journal recovery. Some claim this partition type will shorten the life of the card, I haven't seen such claims proven yet.

EXT4 - Gives the speed of EXT2 with the safety of EXT3. Only issue here is that not every ROM supports it (requires the kernel to be recompiled to support it...stock roms don't support it). If you use EXT4 and the ROM doesn't support it, it won't mount.

I personally use EXT3 and it seems to work fine for me...but then again, I have a 16GB Class 6.
[Nexus One Android Development] sl8125:
Thanks for your quick reply.

I am currently running on cm6 final. How do I know if my rom supports ext4? I used other rom but cm6 runs smoothest without modded kernel.
[Nexus One Android Development] mjsztainbok:
The KingXKlick Desire2Nexus ROM uses that configuration as I discovered on the weekend when I installed it. I assume it does that because the Desire has more ROM space than the N1 so it puts the system apps on the data partition to save some space in the system partition.
[Nexus One Android Development] IRIE4IPIER:
Does cm6 stable support this. It worked fine with cm6 rc3 with ext3. But I try it with cm6 stable and I get boot loops.
[Nexus One Android Development] tkirton:
Thank you. I'll take a look at that rom and see what's going on.
[Nexus One Android Development] tkirton:
Did you try pulling the battery? This may be due to a DalvikVM overrun condition that seems to be happening between Darktremor and CyanogenMod.

I'm working on adjusting this for RC4.
[Nexus One Android Development] IRIE4IPIER:
Yes i tried to pull the battery that did not work it just kept on boot looping. thank you for the prompt reply. Anxiously waiting for rc4:)
[Nexus One Android Development] HackitZ:
I have tried to move the dalvic cache with dt and get this error every time, not enough free space.

Ok while typing this response it worked and for the first time the phone rebooted (i had always gotten the error not enough space) my sd card is ext2 at 4 gigs(yeah i know over kill). that seemed good a first, but now my phone keeps rebooting.

so i go into recovery and wipe dalvik cache and get this eror,

e:unknown volume for path [/sd-ext]

So it looks like i need to start over. i just wish i could move the cache to the sd card.

any ideas why this happens.

same thing happened when i ran the terminal command to move the dalvik cache. phone went into a bootloop.
[Nexus One Android Development] temasek:
I got this feeling that your /sd-ext is corrupted. If I were u I would repartition that sd-ext and use ext3 at least.
[Nexus One Android Development] denteno:
I got a question..

Since this method do not move the entire app to the ext partition

And apps still takes a space in internal memory

Is it possible to see how much every app takes from the internal memory?
[Nexus One Android Development] HackitZ:
Thanks will try that this weekend, i just formated the sd card in linux and maybe should have used recovery. i will now try recovery and use ext3 as i'm now using ext2.

would it matter if i'm using a stock xperia rom? it's the latest world rom from sony. but it is stock.

does this feature also need to be implemented into the rom as well as the kernel?

i have been using dooms kernel, so i know it supports moving the dalvik cache to the sd card.

Thanks for the answers.
[Nexus One Android Development] HackitZ:
I dont know of an app that will do that, but this app will show you all storage locations even ext partitions.

FreeSpace

if i find one i will let you know.
[Nexus One Android Development] temasek:
So long its rooted its ok. Only if u wish to have ext4 then the rom must support it. But ext2 / ext3 should be ok.

Note I'm not familiar with se devices though.
[Nexus One Android Development] bassmadrigal:
The way I do it is through the terminal. It isn't pretty, but it does give you the info. I just grab everything that is rated in MB so I don't have to see the smaller ones that aren't using much space.

su
cd /data/data
du -hd 1 | grep M

If you want to see everything in there, just do the du -hd 1. The grep will only show everything with a capital M in it. And since all the sizes are listed as x.xM it will show everything that is taking up 1MB or more. I will then find the large ones, and then use Titanium Backup to move the data for that app into my ext partition. Big culprits are Google Earth and Firefox. I won't move system ones (or ones that tie into the system) or some others due to worries of performance. These include: contact, facebook, poweramp, Mobo, etc. This has helped me free up a substantial amount of space on the internal memory.
[Nexus One Android Development] HackitZ:
so what you are saying is all 2.3 versions of android should support moving the dalvik cache to ext2 or ext3?
[Nexus One Android Development] temasek:
Huh?

No. Think I didn't explain clearly. Got nothing to do with wat android version. One of DT functions is moving dalvik-cache to /sd-ext which will save lots of storage for u.
[Nexus One Android Development] baseballfanz:
I think the only thing that stay internal is the app's data (unless you moved it of course)

I use Quick System Info

It will break down the size of the app + size of data.

Knowing that my app is in sd-ext I look at the size of the data and that's how

I know what's left on my internal.:D

1st Picture example

-Red underline app size

-Blue underline data size

or you can go into Settings>Applications>Manage applications>click on the app and look at the infos. (2nd picture)

probably not 100% accurate but it's something to gauge by
[Nexus One Android Development] Hanny:
omg temasek... please help...!!

(i hvnt update my signiture)

now last night i encountered a lot lot of problems AGAIN and i did this:

("boot recovery" = power off + buttons combination to recovery)

boot recovery

clear cache

clear dalvik cache

flash ROM

power off

power on (normally)

boot recovery

clear cache

clear dalvik

flash Kernel

power off

power on (normally)

boot recovery

clear cache

cleae dalvik cache

flash dt a2sd 2.7.5.3 beta 04

power off

power on (normally)

wait for dalvik cache to build

and NOW there are A FEW problems like:

- there was one or two auto bootloop by itself and it went stable afterwards

- i stucked at the LG logo but everytime i pull battery out and in and power on again, it runs through the LG logo smoothly

- sometimes the screen freezes after i boot, but when i pull battery and reboot it gets well again

but i dont want these uncertain bugs!!! :(

and ive seen on the last page you said we should flash ROM -> KERNEL -> DT A2SD [IN ONE GO WITHOUT REBOOT]??

should i do that to prevent bugs?

well i thought flashing one more zips at once will damage the system or what!! :confused:

i dont know much and is not experienced as you, please advice, THANKS!!!!
[Nexus One Android Development] temasek:
U should perform all the flashing of zips before u reboot.

Boot to recovery

Flash cm7 rom

Flash custom kernel (optional)

Flash gapps (optional)

Flash dt script

Reboot
[Nexus One Android Development] Hanny:
jesus, thanks for solving my noobie confusion for over half a year!!!

thank you very much and wait for my good news :)
[Nexus One Android Development] denteno:
Is data2sd stable enough or not yet? I'm using miui rom
[Nexus One Android Development] temasek:
Don't try unless u got a real class 10 sdcard.
[Nexus One Android Development] Hanny:
ahhh temasek :(:(:(

i did exactly what you told me

clear cache

clear dalvik

flash cm7

flash kernel

flash dt a2sd 2.7.5.3 beta 04

reboot

ive tried 3 reboots after tht with different bugs appearing like stuck at LG, auto boot again in bootanimation, or both, battery super drain etc...

and finally it "stablised" with only 1 certain bug:

power on -> normal LG logo -> bootanimation -> lockscreen -> 2.5 minutes -> bootanimation (mostly watchdog problem) -> lockscreen -> stable

and the exactly same thing 100% happens again everytime i reboot!!

is there a way to solve this? is it any related to /system/etc/init.d?

cause i see different values there between 2.7.5.2-1 and 2.7.5.3beta04

also some guys made some fix (not working tho) before, which also changes the values inside!

:( please help me...
[Nexus One Android Development] temasek:
Since u are using cm7, may I suggest u use S2E from market. Check it out. Its easier for 1st timers.
[Nexus One Android Development] Hanny:
but the developer of my rom said that, for a2sd, use darktremor

so there will still be no problems when even if i use s2e right? :) also you mean s2e is officially compatible for cm7 as well?
[Nexus One Android Development] temasek:
Not officially but it only supports cm rom. Try it. Its easier ....
[Nexus One Android Development] bassmadrigal:
Nothing is "officially" compatible with CM7. But S2E was built with CM7 in mind. In fact, they mention it is only for CM7, although it probably works with many of the CM7 derivative roms.

Both work great, but S2E doesn't require flashing a zip file (it is a normal app you get from the market). If you are trying to flash too many things on your phone, you may be running out of space on the /system partition, which can cause all sorts of problems.

If you do decide to switch to S2E, make sure you wipe /system before you do it to get rid of any remnants of DT's a2sd.
[Nexus One Android Development] Hanny:
thanks for your detailed advices!!! :)

yea im actually not quite sure about the exact procedure of switching to s2e, even i have read their description on market already

i have a quite noobie question to ask, so by wiping /system in amonra, what will happen? which kind of data will be lost i mean

also im confused how exactly do i switch there, as the description told me, just click ext4 and press "Import" is done, but i dont think it would be easy like that, so i have to go recovery and wipe system and boot my phone up and execute s2e? but im confused, if i wipe /system, darktremor will be gone, so how do i access s2e the app...

and for your /system no space thing, im very interested too... what i have to flash is

rom

kernel

dt a2sd (for now)

i think they wont be "too much"? if so, how do i make sure my /system.got enough space tonavoid problems...?

im SO SORRY for these lots of questions but im already annoyed by this **** for 3 continous weeks already... :( really and REALLY THANKS for your time reading and replying!!!!
[Nexus One Android Development] bassmadrigal:
Well, S2E does offer an import option, but I think that is probably only worthwhile if you have a working DT a2sd install. Since you are running into issues, I wouldn't recommend trying the import option (and to be honest, I have never used it).

My recommendation would be to backup any apps you have with a program like Titanium Backup. If you are still having problems with your current install, revert to a working nandroid to do it. Then, since you are running Amon_RA, you aren't able to actually wipe the /system partition as it doesn't include the option. Technically, CM shouldn't carry over any of the DT stuff when you install it, but I have always found it beneficial to do a proper wipe. If you go to temasek's mediafire folder (linked in his signature), you can find a system-only wipe or an extreme wipe. Extreme wipe will wipe all the major partitions to get you back to a stock install (minus your sdcard). This is almost the same as doing a system wipe and a factory reset.

Once your phone is wiped, then install CM and gapps. If you feel like running a custom kernel, you can flash that as well (although, CM's default kernel is still really nice). Once you are done with that, reboot into CM. Setup your google account and get on the market (I would recommend unchecking any options to auto-restore apps, since you will do that with Titanium Backup). Download and install S2E and Titanium Backup. Go into S2E and enabled the moving of apps and dalvik to the sdcard (you can also force ext4 if you feel like it -- I also change the read cache of my sdcard to 2MB, but this may not be the best setting for everyone). This will require rebooting the phone. Once the phone is rebooted, then everything else will be automagic and you will be using the ext partition for everything except for data. Start TB and restore all your apps and data and you will be golden.

@ Any Mod, this part has gotten a bit off topic to DT, so you may want to consider moving these few posts over into the Q&A section of his phone so we can keep the thread about DT :)
[Nexus One Android Development] temasek:
@Miasmic

Bass pretty much explained in detail. Just follow his pointers and u should be good.
[Nexus One Android Development] Hanny:
thanks a LOT to both of you!!!!! :)

i have a very few confirmations and small questions let me pm bassmadrigal :)

thanks and really thanks for your time!!!
[Nexus One Android Development] denteno:
Would class 8 be OK?
[Nexus One Android Development] temasek:
Never heard of class 8. From what I know is class 2, 4, 6 or 10.
[Nexus One Android Development] GenghisKhan67:
I use A2SD on a class 4 16Gb SD card, works like a charm on my Nexus One (using Oxygen).
[Nexus One Android Development] baseballfanz:
A class 4 work fine for a2sd, a true class 10 is required however if you're looking at moving DATA to sd.
[Nexus One Android Development] mtw4991:
Agreed. I run data2sd and I had a two class 6 cards, one spec'd out at cl4-6 and was noticably slower/laggy than the other cl 6 card which tested out at Cl 10 speeds. No lag at all and very fast!
[Nexus One Android Development] samcad:
how to Remove the A2sd???
[Nexus One Android Development] temasek:
1. Backup your apps

2. Boot to recovery

3. Flash rom

4. Wipe /sd-ext

5. Reboot

No more dt a2sd upon bootup.