yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] tkirton:
This version of Darktremor Apps2SD is in limited support phase. New comments need to be posted to this thread: http://xdaforums.com/showthread.php?t=715116. You will also find a link there to the most recent version.

Introducing Darktremor Apps2SD 2.7 Update 3r1

Date of Release: June 26, 2010

This is Darktremor Apps2SD, a powerful program that allows a user to execute applications created for the Android OS on their Secure Digital card (with the proper setup...more on that later). But, Darktremor Apps2SD is all about stability. The goal is to be able for all users of the Android OS to be able to take advantage of a method to run their applications from a secure digital card.

But just because the Darktremor Apps2SD is all about stability, doesn't mean it isn't packed with features:

- Move applications (both free and paid) to the Secure Digital card.

- Move Dalvik Cache to run either from your Secure Digital card or from your cache partition.

- Activate a swap partition on your SD card.

- Automatically fixes configuration issues.

- Users can check the free space on their SD card and check the installation to make sure all is setup correctly.

- Runs ZipAlign on demand...this makes your programs load faster.

- Allows the user to easily clear the Dalvik Cache without booting into recovery

- Designed with all different phones and roms in mind.

- Built in help system for easy reference of commands.

- All features can also be reversed without repartitioning your Secure Digital card.

Not sure if you should use this program? Take a look at these roms that currently run Darktremor Apps2SD:

That makes 22 different roms across 6 different phones that uses Darktremor Apps2SD. And more roms have been tested and verified to work with Darktremor Apps2SD.
[Hero CDMA Android Development] smw6180:
Works fine coming from 2.5 on dc 2.0.7.2

Suggestion:

/system/bin/a2sd version

It's getting confusing with all the a2sd's out there. Even I get lost sometimes trying to remember what version of a2sd I have on my phone lately. ;)

Notes:

First boot takes forever. I already had dalvik on the SD card...does it move it back to internal and then delete/re-create it on SD or something?

ls -l /data
lrwxrwxrwx root root 2010-04-25 08:41 dalvik-cache -> /system/sd/dalvik-cache
lrwxrwxrwx root root 2010-04-24 08:36 app-private -> /system/sd/app-private
lrwxrwxrwx root root 2010-04-24 08:36 app -> /system/sd/app

As you can see it looks like the dalvik-cache directory was completely recreated (based on timestamps).

It's not a big deal, just thought I'd bring it up.
[Hero CDMA Android Development] tkirton:
Probably had something to do with the flags. I'll check it out.

It appears to be doing that each reboot.

Found the issue. It would reset if the symlinks were active and the flag file was not present. That should be if the symlinks were not active and the flag file was not present. Fixed it.

New file uploaded.

As for a2sd version, I decided to utilize code I already have.

The version number will show up when you start up a2sd.

But, if you type a2sd help, it will display the version number at the top of the help list.

Hopefully, that should help you keep track of the different versions.
[Hero CDMA Android Development] smw6180:
Sweet. Thanks :)

# /system/bin/a2sd help

/system/bin/a2sd help

[*] Starting A2SD version 2.6

Just redownloaded and reflashed. Sat on the HTC (white screen) for about 1.5 minutes, then loaded my normal bootscreen.

Still seems to be taking an inordinate amount of time to boot...looks like it's re-doing dalvik again.

lrwxrwxrwx root root 2010-04-25 09:27 dalvik-cache -> /system/sd/dalvik-cache

Wondering if I should nandroid back and try again?

Edit: Just did a normal reboot and it's the same thing. Sits for a couple minutes on the HTC screen, then re-creates dalvik.

lrwxrwxrwx root root 2010-04-25 09:34 dalvik-cache -> /system/sd/dalvik-cache
[Hero CDMA Android Development] fixxxer2008:
im testing now on pancake 1.5, will report back. seems to be stuck on the very first htc screen is that normal while it moves everything?

edit: it's booting...YES your the man!
[Hero CDMA Android Development] fixxxer2008:
worked like a charm man, i went from 118mb free to over 145mb free now! :D
[Hero CDMA Android Development] DJAscendance:
I noticed its the same when you normal reboot on 2.5, it hangs for quite a while on the HTC grey screen and then finally boots. how do I go about upgrading?
[Hero CDMA Android Development] tkirton:
This is odd...mine's not doing that.

I don't think you have the right a2sd. Download the updated 2.6 (http://www.darktremor.com/files/misc/a2sd-2.6-signed.zip) and flash that one.

The starting line should say now: Darktremor A2SD version 2.6.

Let me know if that fixes your issue.
[Hero CDMA Android Development] tkirton:
That could have very well been a bug in 2.5 that I didn't catch. You can upgrade to 2.6 over 2.5 without any issues.
[Hero CDMA Android Development] DJAscendance:
awesome. thanks :)
[Hero CDMA Android Development] tkirton:
Download http://www.darktremor.com/files/misc/a2sd-2.6-signed.zip and flash it like you would a ROM. I flashed it with RA 1.6.2...not sure if other recovery versions will work (been getting mixed results).

If you can't flash it, let me know and I'll guide you to manually push it.
[Hero CDMA Android Development] DJAscendance:
I flashed it with 1.6.2 and its still doing the same hanging on the HTC screen.
[Hero CDMA Android Development] DJAscendance:
its been stuck on it for like ten minutes now
[Hero CDMA Android Development] smw6180:
Relfashed it twice, same deal. Gonna nandroid back and try it new.
[Hero CDMA Android Development] fallentimm:
the new gui version out there worked for me maybe try that if your having problems- http://xdaforums.com/showthread.php?t=670098
[Hero CDMA Android Development] smw6180:
Nah. I'm happy with this version. :)
[Hero CDMA Android Development] DJAscendance:
how do I pull logs from this boot, its still stuck on the htc screen, im tempted to just pull the battery

edit: I plugged it in and adb rebooted and it booted just fine
[Hero CDMA Android Development] smw6180:
Nope, no good. I nandroided back (ever have a bad nandroid? Heh) 2 versions ago where I wasn't using a2sd. Installed the latest that you uploaded. I still get:

# /system/bin/a2sd
/system/bin/a2sd
[*] Starting A2SD version 2.6
[ ] Searching for Swap Partition
[ ] Swap Partition Found...Turning on swap.
swapon: /dev/block/mmcblk0p3: Device or resource busy
[ ] Searching for Mount Point...
[!] Mount point found..no further action required.
[ ] Checking for ext partition
[!] Ext partition already mounted.
[ ] Moving Dalvik Cache back to SD card.
[ ] Resetting and Moving Dalvik Cache.
[ ] Searching for Data directory on ext partition.
[ ] Searching for Dalvik-cache directory on ext partition
[ ] Searching for App directory on ext partition
[ ] Searching for App-private directory on ext partition
[ ] Removing ODEX files from /system/sd/app
rm failed for /system/sd/app/*.odex, No such file or directory
[ ] Removing ODEX fles from /system/sd/app-private
rm failed for /system/sd/app-private/*.odex, No such file or directory
[*] A2SD installed and active.
[ ] Performing Sync.
[ ] Setting properties (for 1.5 Roms).

and

# /system/bin/a2sd help

/system/bin/a2sd help
[*] Starting A2SD version 2.6

Not sure what's up.

Edit:

Also all kinds of force closes. I ran an a2sd remove. Gonna reboot and see what happens. Something went wrong somewhere it looks like.
[Hero CDMA Android Development] tkirton:
Can you run a logcat...I should be able to diagnose it.
[Hero CDMA Android Development] tkirton:
Take the zip file out of your SD card. Go download this copy: http://www.darktremor.com/files/misc/a2sd-2.6c-signed.zip

This is what you should be seeing:

[*] [B]Starting Darktremor A2SD version 2.6[/B]
[ ] Searching for Swap Partition
[ ] Swap Partition Found...Turning on swap.
[ ] Searching for Mount Point...
[!] Mount point found..no further action required.
[ ] Checking for ext partition
[!] Ext partition found.
[!] Skipping check due to dalvik-cache symbolic link
[ ] Mounting ext partitions
[ ] Checking for version 2.5 flag files...
mkdir: cannot create directory '/system/sd/lost+found': File exists
[ ] Searching for Data directory on ext partition.
[ ] Searching for Dalvik-cache directory on ext partition
[ ] Searching for App directory on ext partition
[ ] Searching for App-private directory on ext partition
[ ] Removing ODEX files from /system/sd/app
rm: cannot remove '/system/sd/app/*.odex': No such file or directory
[ ] Removing ODEX fles from /system/sd/app-private
rm: cannot remove '/system/sd/app-private/*.odex': No such file or directory
[*] A2SD installed and active.
[ ] Performing Sync.
[ ] Setting properties (for 1.5 Roms).
/system/bin/sh terminated by exit(0)

I renamed the file so there would be no confusion when you download it (I think you may be downloading it, but it looks like you keep flashing the same file. Renaming it eliminates any current or potential confusion.)

Flash the 2.6c file and run it. If you see the line I bolded, you have the fixed version.
[Hero CDMA Android Development] tkirton:
Good thing I didn't make it public release. :-)

I need a logcat of the phone, starting at the point of when the device starts booting. The first couple of pages is all I need.

That may tell me what's going on.
[Hero CDMA Android Development] tkirton:
Same thing....if you can do a logcat at the point the phone start booting, I may be able to pinpoint the issue.
[Hero CDMA Android Development] asci:
@tkirton

I wasn't able to catch the log:
[Hero CDMA Android Development] tkirton:
Do you have DDMS? You may be able to catch the logcat there (as well as see the phone boot up).

DDMS is part of Android SDK.
[Hero CDMA Android Development] asci:
Yes I see it, it's in tools sdk folder. How to use it?

EDIT: I was able to start DDMS but nothing happened. It doesn't see my device so I wasn't able to start logcat from menu.
[Hero CDMA Android Development] tkirton:
1. Is the Desire have USB Debugging turned on

2. What OS are you running (Windows, Linux, Mac)

3. Try this:

adb kill-server

adb start-server

ddms
[Hero CDMA Android Development] Isotopes:
****, same here. :mad:

Boot-loop after install the move dalvik-cache version.

Restoring backup and all is ok.

PS: Paul from Modaco have realeased a new MCR Kitchen.

changelog:

r2

Updated 'cachedalvikcache' script

Odex'd /system/app directory to save space in dalvik-cache

Added A2SD+ with dalvik-cache on SD

Temporarily removed HTC_IME mod

Updated build.prop

Minor fixes

I give it a try.

PPS: dalvik-cache on sd now works with the new MCR r2. no probs with braked market. i will test this now for a longer time.
[Hero CDMA Android Development] d12boy420:
Class 2. I'm thinking of buying a class 6 one. I wasn't getting that error before i don't know why its doing it.
[Hero CDMA Android Development] gunnyman:
TKirton,

just a note of thanks. I got tired of various instabilities in the current 2.1 ROMs and have moved to Gumbo 1.5 with Toastcfh's overclock. Your a2sd beta 7 is working flawlessly for me. My hero is fast and stable :)
[Hero CDMA Android Development] vedavin:
Do any of these version work with ALOYSIUS 2.7 ?
[Hero CDMA Android Development] tkirton:
Just downloaded it. I'm looking into it right now.

The problem could be a two-fold issue:

1. Busybox that Paul is using is about 800K smaller than the one I designed around. Luckily, I include my own busybox (busybox.a2sd). I am going to realign all the commands to use that Busybox.

2. It's possible that the removal of 40a2sd while busybox run-parts is running may cause the lockup. I'm looking at exactly what run-parts does and what are the effects of removing the file while it is running.

Worked with Asci earlier today, forced him to reload Modaco completely. So, this is the biggest issue I've seen yet.
[Hero CDMA Android Development] tkirton:
Dalvik-cache and class 6 doesn't work so well. Sometimes it works, other times it doesn't. If the dalvik-cache has to rebuild on the Class 2 card, it tends to take a while, which could cause instability.

What you could do is the following:

If you are able to get into the adb shell, you can perform the following steps to move the dalvik-cache while it is rebuilding...

1. If using Beta7 or greater, type /system/xbin/busybox rm /system/sd/.dalvikcache. If using Beta6 and earlier, type echo "x" > /system/sd/.nocache

2. Type reboot to reboot phone

3. A2SD will detect a conflict in the way the dalvik-cache is setup and reset the dalvik-cache to the internal memory.

4. Wait until the phone completely boots

5. Go back in adb shell and type a2sd cache. That will move the dalvik-cache back to the SD card without rebuilding the cache.

6. Reboot.

That will allow you to use the dalvik-cache on the class 2 SD card.
[Hero CDMA Android Development] tkirton:
It should. Use Beta6 or greater to make sure (Aloysius is based on DamageControl...there was changes done in DC 2.08 that broke A2SD...that was fixed in Beta6.

If this is Aloysius for the Eris, that may be another story...depends on whether the init.rc is launching A2SD correctly (seems to be an issue plaguing the Eris roms I've encountered.) But I can fix those issues and get the A2SD working for you.
[Hero CDMA Android Development] kurt666:
I have just flashed Pay's ROM on my Desire.

And flashed the new A2SD beta 7.

And it's working great with dalvik. Thanks so much. :)
[Hero CDMA Android Development] Isotopes:
@tkirton

Is there a noticeable difference when using a swap partition. Imho i think the MCR r2 is not using a swap partition.

This would be another reason for me to use this version. The rest is now working excellent with the MCR r2.
[Hero CDMA Android Development] tkirton:
That's sweet. So Modaco is the only one I'm having issues with...and it's all about that vending.apk disappearing.

I'll put your name up on the board. Thanks for testing it.
[Hero CDMA Android Development] tkirton:
Let me ask you a question. I'm seriously looking into Modaco because, the way his rom is setup, it is completely different than everyone else's I've encountered.

When you had r2 built, did you specify in his online kitchen to use a2sd? It appears mine will run fine without specifying a2sd in his build, but I'm trying to figure out what to do with 02cachedalvikcache and 40a2sd. I have another beta8 that replaces those files with custom files (the files don't do anything except echo a line that says I replaced them). 40a2sd is nothing more than the file I use for run-parts (04apps2sd), so 40a2sd is completely unnecessary and 02cachedalvikcache moves the dalvik-cache from the internal storage to the cache partition ( /cache ).

As soon as I feel confident that all other functions are still working (probably one more day), I'll see if anyone wants to test this version with me.

Now, to your question. Modaco's Apps2SD appears to be the same as the one Cyanogen uses (which Darktremor A2SD is based from). That apps2sd doesn't initialize the swap partition. Mine does.

The swap partition will allow you to open more programs at once without the low memory killer routines ending them, but the adjustment of the low memory killer routines would yield better performance.

If you do use a swap partition, don't go above 64MB.
[Hero CDMA Android Development] Isotopes:
Imho is a swap partition not necessary and does not bring increased efficiency. Is it correct?

Ok, I had tried it last with inbaked a2sd. Maybe because it was it's constantly stuck in bootloop.
[Hero CDMA Android Development] tkirton:
No, a swap partition is not necessary. A2SD (and your phone) will run fine without it. But it's there if you want to use it.

Okay...did you flash beta7 or beta8? That's important because I'm still trying to figure out what's going on with this rom and my A2SD.
[Hero CDMA Android Development] Isotopes:
I had tested this yesterday with the beta8 and MCR r1 with a2sd baked in.
[Hero CDMA Android Development] pyovue:
let see, flashed beta 7, stuck at boot, restored backup, now my Market app is missing??? Installed the move the delv cache version, help! I dont wanna restart everything ovvveerr!
[Hero CDMA Android Development] NRGizzer:
Hello,

can anyone confirm if a2sd ist working correct on my phone ?

I am a bit confused, because: If i used astro explorer and browse the system folder on the phone, there are allready the apps folders with all my programms inside. Maybe there is a mount to the sd card, i don´t know, but on the sd-card i can´t find any program i have installed.

i post the result of a2sd check:

# a2sd check

a2sd check

Starting Darktremor A2SD version 2.7 beta 7

[ ] Mounting /system as read-write using Busybox Mount.

[ ] Mounting /data as read-write using Busybox Mount.

[*] Busybox already installed.

[ ] Starting A2SD in check mode

[ ] Running A2SD Check Program.

[ ] Checking for ext partition

/dev/block/mmcblk0p2 /system/sd ext3 rw,noatime,nodiratime,errors=continue,data=ordered 0 0

[*] Ext partition found and already mounted.

[ ] Checking A2SD links.

A2SD Status Report

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

Busybox - [*] Present.

Apps - [*] Linked to SD Card.

[*] File .noa2sd not found.

[*] Programs run from SD card

To run from internal storage, type a2sd remove

Private Apps - [*] Linked to SD Card.

[*] File .noa2sd not found.

[*] Private Programs run from SD card

To run from internal storage, type a2sd remove

Dalvik Cache - [*] Linked to SD Card.

[*] File .dalvikcache found.

[*] Dalvik runs from SD card

To run from internal storage, type a2sd nocache

Swap - [*] Partition present.

[*] File .noswap not found.

[*] Swap starts.

To deactivate swap, type a2sd noswap

ZipAlign - [*] Running at boot.

Property Patch - Property found.

cm.filesystem.ready or dc.filesystem.ready

[*] Boot image init.rc patched.[/B]

Is everything ok ?

As noob, i would say that busybox issnt working which will mount the sd card !?!? What can i do ?

Greetings,

Michael
[Hero CDMA Android Development] 4SidedDie:
For those wanting to check how much storage youve used for Apps2sd download quick system info
[Hero CDMA Android Development] tkirton:
Didn't you backup first?

Also, are you using Modaco Rom on a Desire?

If so, try this...

Install beta8

In a shell, type

su

/system/bin/a2sd clearcache

Phone will reboot. It will take a while to run the first boot (upwards of 10 minutes) because dalvik-cache must rebuild. Hopefully that will solve your missing market.
[Hero CDMA Android Development] tkirton:
What is it with this market app?

Try clearing the dalvik-cache and run again. In beta8: a2sd clearcache
[Hero CDMA Android Development] bb_tt:
im still getting fc after all those steps.

im using aloysius v11
[Hero CDMA Android Development] tkirton:
You need to be a bit more descriptive with the issue you are having for me to help.

I got the rom you're using as Aloysius 11.

What are you getting FC on?

What version of A2SD are you using?

Can you produce a logcat on the phone the moment it starts booting?
[Hero CDMA Android Development] tkirton:
My head hurts from trying to figure this out...but I think I can and I think this may be a wild goose chase.

Question: When the app is missing, is it missing from just the desktop or from all programs as well?

If it is missing from the desktop, did you execute a2sd install?

If it disappeared from the desktop after you typed a2sd install, what happened was the app disappeared when /data/app was removed. This happens right before it symlinks to /system/sd/app. Now, there are many roms that are putting com.android.vending.apk on /data/app. Not sure if the rom developers are doing this on purpose or is this something that ended up there by accident.

In that case, just drag the one in all programs back on your desktop.

If it's missing from both desktop and all programs, then the file either corrupted or is missing from /data/app. If that's the case, you can try rebooting the phone to see if the one in /system/app takes over. If it doesn't, 2.7beta9 will have a new option called fixmarket that will put a copy back on the phone in /system/app (where it belongs). When it does that, it should show up instantly on All Programs. Just drag it to your desktop.
[Hero CDMA Android Development] tkirton:
Beta9 will fix that...being posted now.
[Hero CDMA Android Development] NRGizzer:
I have installed the beta 9 nc Version over the Beta 7 nc Version. Now i have a bootloop after the first HTC Screen. Quite Brilliant don´t comes up.

What can i do :( ?

Wiping the cache and dalvik cache didn´t help.

Greetings,

Michael
[Hero CDMA Android Development] tkirton:
I need to see a logcat.

Reboot the phone. Wait about five seconds after you feel the vibration after the htc screen. Then type

adb logcat -f logcat.txt -r 16 -n 2

Send the logcat.txt file to rtkirton@gmail.com and I'll take a look at it.

Also, once you wipe dalvik-cache, it can take anywhere from 5-20 minutes for you phone to come back up.

Did you also do a nandroid backup before you flash the new version? You could restore from backup and try again.

I'll check the packages...it's possible the packages are switched.

EDIT: Packages are correct.
[Hero CDMA Android Development] NRGizzer:
I cant create that logfile, because it stucks on -waiting for device- and then the phone reboots.

There is no additional vibrations... i see the HTC Logo for ~30sec. an then the phone reboots.

i have done an nandroid backup before i install beta 7, but not before i installed beta 9.

Are there any other ways ? Maybe reset to factory defaults or clear storage ?

Greetings,

Michael

EDIT: Factory reset and clear cache didn´t help, now i try the restore from nandroid backup

EDIT: Puh, Nandroid Restore gives me back control over my phone, now i have to check what is missing and if i get a2sd back to work

EDIT: Now i installed new r2 version of modaco custom rom where App2sd is integrated. Everything works fine now.
[Hero CDMA Android Development] tkirton:
Hmmm...there must have been a problem with the R1. Keep getting a lot of complaints about that version. Appears R2 is working fine with the code.

I wish I had a Desire so I can test this stuff...instead I have a CDMA Hero. It's hard relying on other people to test this. I'm more hands on and like to see the results myself so I can make the necessary changes. This way, you don't have to go through this issue.
[Hero CDMA Android Development] tkirton:
Okay...I've been investigating this market app issue that seems to be plaguing a lot of people.

Fortuantely, I had a rom developer recently experience the issue. I think I have fixed it by understanding what was going on and made an option to fix it in Beta9. Just download that one and type a2sd fixmarket to put the market back (it won't go back on your desktop...you'll have to add it back there).

150MB is about right if you have dalvik-cache moved to the SD card.
[Hero CDMA Android Development] DS36:
btw OP the reboot command in your program does not reboot on my droid eris from verizon...i have to exit adb shell and use adb reboot !
[Hero CDMA Android Development] tkirton:
What happens if you go into adb shell and type reboot?