yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] MicroMod777:
Well, just got DT on my ROM and I'm having the same issue. Seems all apps installed in the Data/app partition before running a2sd reinstall don't get deleted and stay there. Any new apps installed after do get moved to the ext.

Why doesn't DT delete those data/app after moving them to ext. to free up space on the phone. If its to "fool" the phones, then why do new apps installed afterwards not show up there in data/app too?
[Nexus One Android Development] varmillion:
No a2sd.swap environment variable found

Question: I'm running MicroMods v2.11 Desire SuperHybrid and when I run the command a2sd reinstall I'm receiving the following:

No a2sd.swap environment variable found

Phone storage is still going down when installing new apps and it doesn't seem to be going to SD. I've also tried to do an a2sd repair but it still doesn't seem to work. Does anyone have any ideals of what I can do?
[Nexus One Android Development] Alex240188:
they are been moved over, if you plug your phone in, do

adb remount

adb shell

cd /data

ls -l you will see next to /app and /app-private there will be a line that says

/app/ > /system/sd/ (or could possibly be /sd-ext/)

you will still see apps in /data/app because as far as your phone is concerned thats where they are, in essence your just creating a shortcut for the app folder on your sd card, in the /data/ directory

your phone thinks your in /data/app when in actual fact your in either /system/sd/app or /sd-ext/app (note both are the same place - your phones ext partition)
[Nexus One Android Development] theghazi:
I had this installed in my nexus one, and didnt have a problem, but today i took my sd card out, and now when i was gonna switch my rom, copied it, and use RA Recovery , i got an error

E: no digest for __MACOSX/.META-INF

E: VERIFICATION FAILED

any idea?
[Nexus One Android Development] meechto:
Hey, need a li'l help here.

Yesterday afternoon I upgraded my N1 from MIUIMOD 1.8 to MIUIMOD 1.8.1 and at night, I partitioned my SD card and installed the DarkTremor's Apps2SD. Everything else seems fine but when I go to Setting -> SD Card Settings, I get a Force Close error. I have read and performed the steps mentioned on the first page of this post. ;)

Also the reinstall script gives the following output

# a2sd reinstall

a2sd reinstall

[ ] Apps2SD is launching...

__ _____

| \ |

| | |

|__/ | Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop

[ ] SetProp Command = /system/bin/toolbox setprop

[ ] Mount Point = /sd-ext

[ ] Starting Darktremor Apps2SD Version 2.7.5.2

[ ] Launching Apps2SD Start Program with reinstall

[ ] Starting Darktremor Apps2SD in reinstall mode

[ ] Moving applications to SD card

[ ] Moving private apps to SD card

mv: can't rename '/data/app-private/*': No such file or directory

[ ] Creating Symbolic Links

[ ] Removing No Apps2SD Flag

[ ] Rebooting Phone.

Can't figure out whether or not is ran correctly.

Any suggestions? :confused:
[Nexus One Android Development] P30TiP:
MIUI has old 2.7.5 RC3 apps2sd. I don't think you can re-install any newer version on it.
[Nexus One Android Development] meechto:
Yep. Figured that out the hard way after re-installing the ROM :(

Nevertheless, now everything works just fine. :) In fact, made the best of this situation and flashed the latest version of MIUI v0.11.19 instead ;) :D
[Nexus One Android Development] djmcnz:
They can't be in both places... 100% impossible.
[Nexus One Android Development] mad-murdock:
Don't get confused by soft links or bind mounting. that's the way all a2sd implementations do their job. What you see as a linux beginner might not be what it really is.

Swyped with HTC Desire. Excuse typos.
[Nexus One Android Development] nitrox1:
Hello,

Can someone just give me a quick hand.

I've just turned my phone off, taken a photo off the memory card with my computer sd card reader, placed card back in powered on and A2SD links are broken, no apps, not widgets and I get:

! in not optimal for A2SD apps, and private-apps, from a2sd check.

Please can someone let me know if sh1t hits the fan if I "a2sd reinstall"

Edit: No it doesn't, but did loss all my widgets
[Nexus One Android Development] thatruth132:
i am about to run this on my g2 for the fu*k of it
[Nexus One Android Development] shmigao:
Sounds like reflashing DT a2sd could have fixed it
[Nexus One Android Development] dudu_georgescu:
app-cache and cache

Excuse my ignorance, but wouldn't it be possible to symlink all these to folders on the sdcard, thus moving a great deal of useless info from the internal memory?

For instance, I am thinking:

-/data/data/com.android.browser/cache

-/data/data/com.android.browser/app_cache
[Nexus One Android Development] mtw4991:
Yes you can. I was running DT 2.7.5.2 on MIUI 11/19. You have to flash it right after the ROM/EngPack/XDApack prior to booting up. I got the fc on SD Card & Phone Storage but it's no big deal, just check space using root explorer.
[Nexus One Android Development] chris66:
Thanks! Runs nicely on Calk's v1.6, frees up a TON of room, including the room taken up by the mem kill app, lol.
[Nexus One Android Development] temasek:
I am new to this apps2ext stuff and just installed successfully this script. I had also moved dalvik-cache to ext by "a2sd cachesd".

Earlier when I flashed a new CM6.1 nightly over my ROM, I had bootloop.

Question:- Do I need to prepare anything prior to flashing a new CM6 nightly ROM over my existing CM6 rom?

Thanks!
[Nexus One Android Development] belair56:
You need to flash the a2sd script after flashing CM nightly.
[Nexus One Android Development] djmcnz:
And move cache back... and leave it there.
[Nexus One Android Development] temasek:
You meant move cache back permanently as ext partition not recommended or move cache back before flashing new rom?

Thanks
[Nexus One Android Development] djmcnz:
Yes, moving cache is not recommended under any circumstances unless you know exactly how the rom manages the cache.
[Nexus One Android Development] temasek:
Thank you appreciate!

Now lets say I am satisfied with the cache being in my ext3 partition in cm6 rom. How can I prevent from bootlooping when I flash a new.nightly cm6 rom. After flashing a nightly cm6 rom, I did reflash the apps2ext script but still ended in bootloop.

Thanks.
[Nexus One Android Development] jocaferlo:
I have cache in ext3 in CM6 nightlies.

I flash nightly, flash apps2ext, and all works fine. I have no bootloops.
[Nexus One Android Development] temasek:
Your dalvik-cache in sd or /cache?
[Nexus One Android Development] jocaferlo:
My dalvik-cache is In sd.
[Nexus One Android Development] temasek:
Thanks man!

Last question. After flashing new nightly and script, rebooting takes long time?
[Nexus One Android Development] mtw4991:
Yep,s sure does take awhile. what I do is wipe cache and dalvik cache, flash rom, kernel, DTa2sd 2.7.5.2, reboot. Then go to terminal emulator and run a2sd cachesd, phone reboots and all is well.
[Nexus One Android Development] temasek:
Wont it say insufficient space?

Also I tried restoring a nandroid backup with external and apps2ext but it booted up with tonns of FC

DAMN this apps2ext making me noobish.
[Nexus One Android Development] djmcnz:
I think that probably says it all.
[Nexus One Android Development] mtw4991:
Lol, probably true. If I don't run cachesd, I have about 25mb of internal storage remaining which reflects the true storage limit of our phones. Moving dalvik to sd-ext gives me back 75-80mb, but I don't really use it. 90+apps is enough as I don't use 1/2 of them most of the time anyway. I haven't experience issues with dalvik on the ext partition, but if others do maybe it's time to re-evaluate whether it is worth it or not?
[Nexus One Android Development] temasek:
Found the problem all well now. Tested reflashing and reflashing. All's good. Thanks for the assistance.
[Nexus One Android Development] mtw4991:
Temasek, what was the problem and solution? Just in case others run into it..;)
[Nexus One Android Development] temasek:
I use the modified darktremor script that remove 05mountsd in cm6 nightly rom. That solved my problem.
[Nexus One Android Development] Negroid:
i just flash CM 6.1 RC-2 on my htc slide/espresso and also flashed darktremors a2sd. when i got to my terminal emulator i did a a2sd check. it found the ext partition but its not mounted. it also stated that my partition maybe using an EXT4 partition but my rom doesnt support it and i should repartition the sd to ext2 or ext3.

how do i do about remounting the card or repartioning the sd card to ext2 or ext3?
[Nexus One Android Development] belair56:
Temasek, gald all is well

Damn, I was just looking for the author of that. which is mad-murdock. Post #394

That is the mod-file I use.
[Nexus One Android Development] jocaferlo:
Since I use recovery Amon_Ra 2.0 I haven't to run a2sd cachesd every time I flash rom and DT.

I have dalvik-cache in sd. Before that recovery I had to run a2sd cachesd every time, but now dalvik-cache remains in sd.

I use the options "wipe only cache" and "wipe only dalvik-cache" on recovery.
[Nexus One Android Development] temasek:
I tested reflashing my rom using nightly builds 5 times over. With the modified script that remove 05mountsd file flashed each time, I had no issues. No wiping required and no redo of cachesd or any bootlooping.

That modified script helped in preventing problems in CM6.1 nightly builds.
[Nexus One Android Development] mtw4991:
umm..interesting. I've never used the modded script and have the 05mountsd file in system/init.d also but its never caused a problem. However, if I can use it once and not have to move dalvik-cache for every nightly that would be great.

Temasek, I already have DT 2.7.5.2 running with dalvik-cache moved to cachesd(sd-ext partition). To set it up, you still have to flash after each nightly but you don't have to run a2sd cachesd after the first time, right?
[Nexus One Android Development] temasek:
Yes I tested 5 times. Each time I flash the modified script after flash rom. Only done cachesd one time. No wiping of caches. Btw I am also using dalvik-cache to sd.

That modified file was unsigned though. I will sign it when I go to my pc later. More for convenience purpose. Thanks to the original poster that added a line in the script to remove 05mountsd. This I believe more for cm6 build roms.
[Nexus One Android Development] mtw4991:
Not a problem, thanks for the info. I'm using RA v1.8.0 which I think can flash unsigned zips. Will try after tonight's nightly.

btw, saw the ADW update to 1.3.1 were submitted to gerrit today but not merged yet. :(
[Nexus One Android Development] temasek:
Anyway heres the modified script, resigned by myself. - Saves me 2 clicks in RA Recovery :D
[Nexus One Android Development] Treatcon:
What two clicks is that? BTW thanks for the tip.
[Nexus One Android Development] temasek:
By default amon ra recovery 2.0 uses signed zips. To flash unsigned u have to click "others" then click "unsigned....blar......blar"

That's your 2 clicks. Ha ha. :)

Anyway I freq flash nightly cm6.1 roms and uses amon recovery so I prefer signed zips for convenience.
[Nexus One Android Development] Robdyx:
tl;dr

What's the difference between this and OP's version of DTA2SD?
[Nexus One Android Development] temasek:
The modified has a line added to the script to remove 05mountsd in /system/etc/init.d

Its more useful for users of cm6 roms.

I am not the one who added that. I just re-signed it for my own convenience.

In cm6 it worked perfectly!
[Nexus One Android Development] Robdyx:
and what's the point in removing 05mountsd? any performance advantage or so?

what is that file supposed to do?
[Nexus One Android Development] temasek:
With it removed, my dalvik-cache stays in sd. I do not have to cachereset/cachesd on flashing cm6.1 nightly rom.
[Nexus One Android Development] meechto:
@rkirton

Just flashed the DT Apps2SD ;) Works great with CM 6.1.0-RC2 :D

@jocaferlo

@temasek

Thanks for those tweaks which helped integrate the DT Apps2SD with CM so seamlessly :D
[Nexus One Android Development] temasek:
Just to clarify. I did not claim to modify the script of darktremor. I just happened to find the post by I believe is mad-murdoch (sorry if spelt wrongly). He is the one who added a line to the update script to delete 05mountsd. As it was unsigned after modification, for my convenience I resigned the zip file.

If anyone wishes to thanks its tkirton and mad-murdoch.

Thank you.
[Nexus One Android Development] meechto:
That's very honest of you, temasek :)

I shall re-phrase :

Thanks tkirton for the wonderful app :D

Thanks mad-murdock for tweaking the script and making it available to all :D

and finally, thanks temasek for signing the zip for everyone's convenience for that matter ;)

You guys simply ROCK ;) Keep up the good work. Deeply appreciate it :D
[Nexus One Android Development] Treatcon:
Yes thank you all as well! And thank you meechto for thanking everybody and making it easier for me to thank :cool:
[Nexus One Android Development] jocaferlo:
Well, as I said in previous post I am using the original script of Darktremor (without the modification deleting 05mountsd) and NOW, since I use Amon_RA recovery 2.0, it works ok. My dalvik-cache remains in sd after I flash a nightly.
[Nexus One Android Development] thatguy123:
Ok, so I've used darktremor before without a problem with rod's roms, stock miui, and even cm6.0 stable. Had it set up for ext3 and no problems.

Today I flashed cm6.1 RC-2 and I can't get my sd card to mount with darktremor. I triple wiped everything before flashing cm6.1 RC-2 and the latest gapps. Then flashed wm latest avs 950 cvs 112610 kernal and rebooted. Then I flashed the i-nexus theme made for RC-2 and rebooted. All went without a hitch.

Then I flash darktremor and reboot. I go into terminal type:

su

a2sd check

I get the message, "sd found but not mounted"

So I try repartitioning sd for ext3 again, go through all the steps, same error. So I go back and reparitition again for ext2, same error message.

So thinking something is up with the cm rom, I flash the stock miui v11.26 and darktremor works no problems.

Any suggestions for having this work with cm6.1 RC-2?
[Nexus One Android Development] Chosen_on184:
I had that message . all i did was just reinstall from terminal and that fixed that issue.

I have RC2 and its working fine with mine

Even moved the cache to sdcard and still running smooth
[Nexus One Android Development] najar360:
guys,

how do i deactivate DT script?
[Nexus One Android Development] Chahk:
Try flashing your base ROM on top of it.
[Nexus One Android Development] nawoa:
Hi, I'm having a bit of trouble with my Telus GSM SLCD Desire, currently running a Cyanogenmod nightly. I'm updating to a more recent CM nightly (201), so I format all the partitions on my phone as well as SD-EXT. I know this isn't strictly necessary but I like to start with a clean slate to make sure there are no problems that can be attributed to leftovers from a previous version.

Anyway, before I do that, I back up all my apps with Titanium Backup Pro w/ license.

When I go to reinstall CM using clockwork recovery, here's what I do: Install CM, reboot. Install Google Apps, reboot. Install DT-A2SD, reboot. Then I go into the terminal in SU mode and use "a2sd zipalign" and I reboot again.

When it's all done, I go into settings > applications and enable unknown sources. Finally I install Titanium backup and the pro license from the market. I restore my backups. Lo and behold, it gets about 2/3 through and my phone reboots. When it's running again it says low disk space. I check my disk space, it says I only have under 1 mb remaining, and Titanium says the same. Also, about a dozen installs failed, all of them are big apps like Google Earth, Flash, etc.

I figure, OK, Titanium screwed up and installed to internal memory, no big deal. So I go into terminal in SU and type "a2sd repair". I reboot hoping it will copy things to my 512 mb EXT partition... but I check my disk space in both settings and Titanium, both say I've only used a few MB in my EXT partition, and I've still got under a megabyte available on my phone.

So I go into a SU terminal again and type "a2sd reinstall". My phone reboots, it takes a bit longer than usual I think, and when it's finally done... still no usage on my EXT partition and my internal memory is full.

Can someone tell me what I'm doing wrong? I've reverted to my clockwork backup from before I did any of this and it's still working fine of course, about 100 mb remaining in my EXT partition (which has dalvik on it as well), and 28 mb remaining in my internal storage.

Thanks in advance.
[Nexus One Android Development] Youngunn2008:
so just to clarify,

1) to install this i just reboot to recovery and flash it over my existing ROM? Running CM6.0 stable, Clockwork Mod...

(of course backup the FAT32 on SD card first and create the EXT partition....)

2) do most people create the swap partition? im really just interested in freeing up internal memory for apps...

3) how much space is freed up by moving the dalvik cache to sd? do most do this as well?

thanks in advance;)
[Nexus One Android Development] neok44:
complete n00b to this and i really don't have the time between school and other crap to have to learn all about this. hopefully these questions are easy to answer.

1) is this apps2ext like what was in CM5?

2) just to make sure, i can move any app, and the full size of the app to the SD card?

3) does this work, bug free (more or less i guess) with CM6.1 stable

thanks in advance to anyone who helps me out.
[Nexus One Android Development] mtw4991:
1. yes, flash after you change or update the rom>reboot>a2sd cachesd>phone reboots>done!

2. set swap=0. I set ext2=512mb, the upgrade ext2>ext3, done!

3. usually around 75mb is freed up. yes, that is what command "a2sd cachesd" does

1. sorta, but I don't remember CM5 that well sry:p

2. yes. after installing DT, set install location to automatic in CM parts.

3. completely solid, no worries-no bugs
[Nexus One Android Development] djmcnz:
No, set it to "Internal" or you'll get a mix of apps on sd-ext and sd-fat. With it set to internal all apps will be installed on sd-ext.
[Nexus One Android Development] mtw4991:
Wouldn't that prevent apps being installed to /system/app then?

So, should I set to internal and run a2sd reinstall in terminal then?

Listen to djmcnz, he knows WAY more than me x1000000, lol.
[Nexus One Android Development] musashiken:
Hmm, apps aren't supposed to be installed to /system/app unless you adb push them right? If I'm not wrong, the system/app is for the rom's in-built apps only, not the ones you install from the market.

Darktremor's a2sd allows market applications to be "installed" into data/app via symlinks to the ext partition. It tricks android into thinking that it has more internal storage then it is supposed to have. I think.

You have to set the install location to "Internal" so that Froyo a2sd doesn't install part of the apps to sdcard, or else it will defeat the purpose of having an ext partition.

So you don't have to run a2sd reinstall. Just go to settings>applications>manage applications, move all the ones installed on sdcard to phone, and then set to "Internal". Future apps should then be installed to the ext partition.
[Nexus One Android Development] djmcnz:
:)

Apps can't be installed to /system/app/ unless you install them manually using the package manager (on a rooted phone) which is not a common usage scenario. Also, because there's no "external" location for system apps the setting wouldn't really apply.

Internal/External/Auto is a switch set by app developers to direct the default location of a normal user app. It's ignored if you manually install to the system partition (because you've told it specifically where to go, /system/app/ in this case).

So:

Internal = phone memory or the location this is mapped to (sd-ext in the case of apps2sd)

External = sd-fat partition, even if you have sd-ext and are using apps2ext

So, if I have an apk with default location set to External (sd-fat) and I'm running apps2ext, if I use the "Automatic", Android (which doesn't know about apps2ext) will install the app on sd-fat which works fine but means your apps go where the developer wants them and if you've gone to the trouble of setting up apps2ext one can assume you don't want the developer to decide where your (user) apps go, you want them all on sd-ext.

So, I actually set it to Internal (sudo sd-ext) and uncheck 'Allow moving of apps' so Android can't do anything behind the scenes to muck it up. In theory that is, see below.

To revert to this setup you do not need to reinstall apps2ext. Do this:

Set to Internal

Uncheck allow moving

Reboot

Settings | Applications | Manage applications | On SD Card - and move everything back to internal (which will move them to sd-ext).

Now, from time to time check this tab and you will see it slowly gets repopulated. That's because there's a bug in CM6 and CM6.1 that prevents that option in CM Settings working from time to time... I can't find the pattern but even with mine set to Internal and don't allow moving I occasionally get Market apps installing (or upgrading) to sd-fat... which is a pain.

A final bonus is that if you set it up this way then a nandroid backup of sd-ext will get all of your apps... not miss the ones that Froyo decided to dump on sd-fat (which nandroid never sees).
[Nexus One Android Development] mtw4991:
umm..that is how I understood it also, just not as clearly as you guys stated. However, I do not have any apps on the sd-fat partition and I've always used "auto"...guess I just got lucky, lol. fyi, I do have the Mobile Defense app that I install to /system/app so that it doesn't show up as an app
[Nexus One Android Development] Chahk:
Most of the apps that are coded to go to SD Card by default don't respect this setting, unfortunately. So if you really want them on internal memory, you have to move them after installing for the first time. The really annoying thing is that they keep moving to SD Card every time they get updated, so you end up having to move them again after the updates are installed.
[Nexus One Android Development] Youngunn2008:
thanks my man:)
[Nexus One Android Development] Youngunn2008:
stupid question: am i typing 'a2sd cachesd' in terminal on phone, or on adb?

EDIT: nevermind, i went for it and used terminal... working now.
[Nexus One Android Development] Youngunn2008:
during setup of partition of my sd card, using clockwork recovery, i performed all steps up to this and was never given an option for ext2 to ext3... am i ok??? :(
[Nexus One Android Development] djmcnz:
You're fine.

IMHO it makes *no* difference what type of ext partition you use.

Indeed, the basic ext2 is far more widely supported than anything else.
[Nexus One Android Development] jimbobalu:
I am sorely tempted to start using this but I still have some qualms. I have a problem when installing some apps, they won't install until I unmount the SD, install the app, remount, then move the app to SD. I believe this is for apps that want to install directly to the SD. Will this be a problem? Any issues transferring files over usb to the fat partition? How large will the ROM backups be if it is also backing up apps, I know it will depend on number of apps, ballpark?

The steps for doing this would be:

1. Uninstall apps as there are too many for internal memory. If I use Titanium Backup and then re-install using TiB will the apps go to EXT or FAT?

2. Enable apps2SD. How large should the partition be?

3. Change install location flag to internal only.

4. Install/re-install apps. Where will apps that install additional files to the SD get stored, EXT or FAT? This applies to games mostly.

Thanks for your patience.
[Nexus One Android Development] Zephyron:
If we flash a newer version of a rom (ex: CM6.1) without a wipe, do we need to reflash this script or will it still be okay?