yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] tkirton:
Is your rom rooted?

I haven't tested this on Gingerbread (mainly because Sprint Hero and Sprint Evo don't have Gingerbread yet [doubtful if the first one will get it]), so I can't tell you if modifications will need to be made to make it work.
[Hero CDMA Android Development] tkirton:
Did you try running the alternate installation version?
[Hero CDMA Android Development] nagasgura:
Low On Space Issue

I have a droid incredible running stock apps to sd on 2.2. The data partition is by stock, 150 Megs, which I used up pretty quickly. This causes tons of issues for me and many other android phone users.

I just wanted to verify that Darktremor Apps2SD will fix this issue.
[Hero CDMA Android Development] tkirton:
If you aren't running a stock rom, then it's possible that Darktremor will work (and, if it does, it will fix the issue fully if you move dalvik-cache to SD)

Stock ROMs, without any modifications, do not have the capabilities to launch scripts during boot, which is what Darktremor (or any Classic Apps2SD or Apps2Ext needs to run).
[Hero CDMA Android Development] nagasgura:
I am running Virtuous Rom 2.2 with S-OFF. I tried wiping dalvik cache, but that didn't fix the issue, so I don't get how moving it to the sd will help. Out of the 748 Megs, we only get 150 for application data. Yes, dalvik cache contributes to it, but when you have 400+ apps, dalvik cache doesn't really matter :-)

Mostly, I need the application data (e.g. the .lib folders containing the executable application file) to be able to move to the sd card without breaking the app. I keep getting a "Low On Space" error because data/data directory can only have a max of 150 MB on it, and it gets used up really fast. Can it make it so data/data saves to the sd?
[Hero CDMA Android Development] Omnichron:
mkay so I have flashed my phone with Apps2SD version 2.7 Update 3r1.zip... how do I install or move apps to sd. I don't see Apps2SD anywhere in my apps menu.
[Hero CDMA Android Development] tkirton:
It's not an application. It's a script.

And, if the program is running correctly, your apps are automatically transferred to your SD card, provided you have an EXT2 or EXT3 partition on your SD card for it to use. If you don't have an EXT2 or EXT3 partition, then Darktremor will do nothing.

Plus, you're running an outdated version aof Darktremor. Click Download on my signature line to get Darktremor 2.7.5.2.
[Hero CDMA Android Development] tkirton:
Darktremor 2.7.5.3 will allow you to move /data/data to the SD card (though it is experimental as I heard people who have tried this using other programs have had mixed results).

You can try the beta out: http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5.3-beta01-signed.zip
[Hero CDMA Android Development] arodey:
I installed the beta and ran "a2sd datasd". It looks like everything copied but not sure if its running from sd-ext or not. I ran Quadrant which seems to be the place where people see the gains and it just hangs, but that could be GB not sure.
[Hero CDMA Android Development] mikeybonez28:
Hey all, I'm running damaged tazz on my Eris and have tried to flash the zip from boot menu and it never got past boot, in this case, a dancing Android. Did I screw up or what??
[Hero CDMA Android Development] Omnichron:
ok I followed instructions to a t. I am supposed to see an apps2sd icon on apps list. do I have to install that other apps2sd app from the market? thank you guys!:D
[Hero CDMA Android Development] Plasmah:
Darktremor Apps2SD

Does this work on Elocity A7?

If so anyone have a link to how to set it up on this platform?

Thanks
[Hero CDMA Android Development] stiffmast3r:
hey guys!

is there a way to move apps to internal storage when i have flashed DT?

im using CM7 nightly and darktremor.

i want to move for example desktop visualzer to the interal storage.

thx for help :)
[Hero CDMA Android Development] The Fer-Shiz-Nizzle:
You would have to move the app to /system/app/
[Hero CDMA Android Development] sovikhaque:
I am having some trouble with this app. i have flashed the zip. how do i get rid of it
[Hero CDMA Android Development] stiffmast3r:
noob question, but how to do that? :rolleyes:
[Hero CDMA Android Development] tkirton:
First, can you even nandroid backup the ext partition with EXT4? I've had no luck at doing that.

Second, regarding the camera. Eclair doesn't like kernel 2.6.27 (which is the kernel from Cupcake), and that's where the overclock and ext4 comes from. Until HTC releases the source for Eclair 2.1 (with a 2.6.29 kernel), it's not likely you will find a working camera. I have talked with a friend of mine who is a linux programmer about trying video4linux, but so far we've just talked about it.

It sucks, I know...but unless you want to go with a leaked RUU version (which doesn't have ext4 or overclocking), you're pretty much stuck without a camera.
[Hero CDMA Android Development] StephenMilone:
thanks for the quick reply and good info
[Hero CDMA Android Development] tkirton:
One of the key components of TrevE's version is a custom kernel (I'm thinking more in line of a custom init.rc since there's no way to customize the kernel in 2.6.29...we don't have source code). To put that in, you'll have to break the boot.img into two pieces: the kernel and the ramdisk. The init.rc is in the ramdisk part. Once you add his modified init.rc, you have to reassemble the two pieces together and flash it.

The nocache version is the safest version to go on the Darktremor code...it will put another .nocache flag in /system/bin which will trigger to create the .nocache flag on /system/sd. As I said in another post, the actual a2sd script has code in there that will prevent the dalvik-cache from moving if it is ran on anything that starts 04apps2sd in /system/etc/init.d (the normal place to run it is /system/bin/a2sd).
[Hero CDMA Android Development] tkirton:
Hopefully, once Sprint releases the 2.1 version, HTC won't drag through legal channels like last time. Maybe we'll get a 2.1 source code that won't take 3 months and a crowd resembling an angry mob.
[Hero CDMA Android Development] posguy99:
I noticed when installing 2.6.1-R2:

# a2sd check
[*] Starting Darktremor A2SD version 2.6.1-2
[ ] Running script from: /system/bin/a2sd
[ ] Searching for Mount Point...
[!] Mount point found..no further action required.
[ ] Checking for ext partition
[!] Ext partition already mounted.
[ ] Checking for 04apps2sd Startup Sequence...
[ ] Checking A2SD links.

A2SD Status Report
==================
[*] /data/app link active.
[*] /data/app-private link active.
[*] /data/dalvik-cache link active.
[X] Swap partition NOT present.

But the partition is most certainly there:

# fdisk -l /dev/block/mmcblk0

Disk /dev/block/mmcblk0: 16.0 GB, 16070475776 bytes
255 heads, 63 sectors/track, 1953 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 1888 15162109 c Win95 FAT32 (LBA)
/dev/block/mmcblk0p2 1888 1950 500000 83 Linux
/dev/block/mmcblk0p3 1950 1954 31714+ 82 Linux swap

And it will *activate* it if told to:

# a2sd swap
[*] Starting Darktremor A2SD version 2.6.1-2
[ ] Running script from: /system/bin/a2sd
[ ] Searching for Mount Point...
[!] Mount point found..no further action required.
[ ] Checking for ext partition
[!] Ext partition already mounted.
[ ] Checking for 04apps2sd Startup Sequence...
[ ] Turning swap on
[ ] Removing flag to prevent swap from activating during boot.
[*] Swap activated.
# free
total used free shared buffers
Mem: 195632 192772 2860 0 10948
Swap: 31704 532 31172
Total: 227336 193304 34032

But 'a2sd check' still says the partition isn't there.

I think it's this:

if [ -d /dev/block/mmcblk0p3 ];

It's not a directory. ^_^

I'm not sure why you provide a test for it in the check screen, since you don't actually provide a test for it in the activate logic.
[Hero CDMA Android Development] th3taman:
I have 2 questions/issues, both are kind or related and/or around Permissions Denied.

I can go into the Android SDK Tools Directory and see the below when I type in ls -l /data.

app -> /system/sd/app

app-private -> /system/sd/app-private

However, if I try to type in a2sd check I get Permissions Denied?

I also get the same problem with dalvik-cache. I have a2sd installed on Fresh 2.0d, but want to activate dalvik-cache. I get a similar Permissions Denied message.

Why would I be getting these messages? And what do I lose if I can't get dalvik-cache activated? Thanks!
[Hero CDMA Android Development] energizer1389:
Im thinking this is more of a something flipz did or did not do in Fresh 2.0d Rom. This thing is working properly for me on DC and Regawmod. Fresh also has the issues with Quickboot. DC and Regawmod dont.
[Hero CDMA Android Development] tkirton:
Yes...it's suppose to be:

if [ -e /dev/block/mmcblk0p3 ];

I'll fix it now.

[/QUOTE]

Actually, I do:

if [ -e /system/sd/.noswap ];
then
echo "[ ] No swap flag detected.";
echo " Will not activate swap partition.";
else
echo "[ ] Searching for Swap Partition";
if [ -e /dev/block/mmcblk0p3 ];
then
echo "[ ] Swap Partition Found...Turning on swap.";
/system/xbin/busybox swapon /dev/block/mmcblk0p3;
else
echo "[X] Swap Partition not found.";
fi;
fi;

So, apparently, swapon isn't running correctly or your rom has code that is overriding it (that would be swapoff...and it could very well be an app you have loaded. Swapper will do that if you have it loaded but no settings.)
[Hero CDMA Android Development] th3taman:
tkirton,

Any idea on my problem I posted above on Permissions Denied?
[Hero CDMA Android Development] posguy99:
No, it *activates*, it's just not listed as being present in 'check', as I said.
[Hero CDMA Android Development] tkirton:
Oh...that's due to the -e...that's definitely a bug.

I do know the next version is going to be smaller...this code is becoming a nightmare to maintain.
[Hero CDMA Android Development] tkirton:
1. Are you rooted when you type these commands? I have a couple of people actually trying to execute the commands in a terminal emulator. If you are, it may be that the terminal emulator isn't running with root privileges. However, if you are getting this in adb shell, do the following:

- Before entering adb shell, type adb remount

- Once you are in adb shell, type /system/xbin/busybox chmod 777 /system/bin/a2sd

Now try your command again.

2. You don't lose anything not moving dalvik-cache versus a normal installation of a Rom with an older copy of A2SD. The benefit of moving the dalvik-cache is more internal storage space free.
[Hero CDMA Android Development] th3taman:
tkirton,

Thanks. I finally got around the permissions problem and got a2sd check to work. I have attached a screenshot below.

I also see the following when I type in ls -l /data

app -> /system/sd/app

app-private -> /system/sd/app-private

So does this seem that a2sd is installed correctly? The reason I ask is when I install apps. It seems like my Internal Memory goes up some. Could this be related to the dalvik-cache still being on internal memory?
[Hero CDMA Android Development] kfree:
market app + all other installed apps missing

Recovery 1.6.x using the auto-move dalvik a2sd ... on dc 2.07.2

followed the steps on installing the a2sd script after formatting the card properly... rebooted, market + beautiful widgets + various other apps (seem like mostly non-htc stock apps) are missing... I'm guessing I'll have to push these apps back through but why did this occur? I did something wrong in the process?

I didn't have more than 2-3 apps that I used often so I didnt bother doing a backup of them as it would be easy for me to get them again. Just curious what happened and if I could have prevented it. I want to use a2sd but not if I'm doing something wrong :)

thanks
[Hero CDMA Android Development] tkirton:
Yes...Dalvik cache will take up a considerable chunk of internal space and will continue growing as you add applications.
[Hero CDMA Android Development] tkirton:
Hmmm...not suppose to do that...it's suppose to copy it to the /system/sd/app.

Hold out until later today (Sunday) and I can give you a test copy of A2SD 2.7 to try (pending if I don't run into issues myself with it).
[Hero CDMA Android Development] kfree:
Sounds great, in the meantime I reflashed my phone w/ DC 2.07.2 because I couldn't get market to work .. but I'd love to get this working :)
[Hero CDMA Android Development] posguy99:
I don't suppose you're going to do any work on replacing the a2sd that's in DC 2.08?
[Hero CDMA Android Development] tkirton:
Okay...2.7 beta 1 is out there. Try that and tell me if improves anything (make sure you do a nandroid backup as this is still beta software...I've done limited testing on it).
[Hero CDMA Android Development] tkirton:
That's up to DamageControl if he wants to use mine. I think he's using TrevE's version.

You should be able to flash mine in place of his...but you'll lose some of his functionality (For instance, I don't incorporate zipalign in my process...although I am thinking about it for cm.filesystem.ready patched init.rc files.
[Hero CDMA Android Development] puertoblack2003:
so far so good.
[Hero CDMA Android Development] kfree:
Yep, working fine for me as well.. checked the /system/sd/app and saw all my apps there, installed a few new ones, went there as well.. not sure what exactly happened last time around but I tried 2.6x 3x with fresh DC 2.07.2 installs and no dice each time.

Thanks again for such awesome support and maintenance.. I definitely appreciate it :)
[Hero CDMA Android Development] tkirton:
No problem. Since this is still beta software, if you find any issues, let me know.
[Hero CDMA Android Development] tkirton:
Need testers for 2.7 beta 1.
[Hero CDMA Android Development] flight-medic:
Stuck at "HTC" boot screen

Loaded the new Aloysis ROM. Then I flashed A2SD 2.6 and then rebooted from recovery.

Now I am stuck at the HTC Boot Screen.

As I had just partitioned my SD card, I did not have a nandroid on my SD card. I guess I should have restored my SD card before flashing the A2SD zip.

Can I fix this or am I screwed?

I know this was probably a noob thing to do.

Thanks in advance for your help.

Jim
[Hero CDMA Android Development] Cordy:
adb reboot recover, (or pull battery then hold home and press power) then mount usb then move files back to sd then run nandroid restore. Alternatively I would flash 2.7 beta 1 with that rom and see if that works.
[Hero CDMA Android Development] flight-medic:
Thanks for your help. I was afraid that I bricked it.

BUT, I just moved to HTC Hero from WinMo. I'm still learning adb commands. Can you clarify a little?

Much appreciated!!!

And yes, I deserve to be flamed. LOL

Jim
[Hero CDMA Android Development] Cordy:
Lol it's fine I'll let someone else set you ablaze if you like. But for now you should just start from the part in parentheses. It was an either/or thing. You can either run the command adb reboot recovery (if you have android sdk) or you can just pull the battery and follow the rest of the directions. If you want to learn about adb I would suggest doing a search on the forums as well as going to googles website where you can also download the sdk from.
[Hero CDMA Android Development] flight-medic:
Thanks. I have it recovery. Doing research now to try and figure out how to move the recovery img to the sd card.
[Hero CDMA Android Development] Cordy:
Are you talking about your nandroid backup? because if you're in recovery you would already have the recovery img on your sdcard. Either way you could use adb push "file on pc" "where you want file to go and be named". But if you are indeed talking about your nandroid just mount usb option in recovery menu then drag your backup of your sd card back unmount then restore.
[Hero CDMA Android Development] flight-medic:
Thanks. That fixed it.
[Hero CDMA Android Development] tkirton:
EDIT: Looks like you were able to reverse. You may try the A2SD 2.7...I ended up rebuilding the 2.6.1 from ground up due to many issues.

Can you pull a logcat?

How long has it been stuck at the HTC Boot screen? It could be transferring the dalvik-cache to the SD card.

If it is on the HTC boot screen, it is likely fixable.
[Hero CDMA Android Development] flight-medic:
It was stuck there for like 30 minutes...long enough for me to smoke a cigarette, leave the base and get lunch and come back to my bunk room and see the phone still stuck.

And I installed the manual move .zip file, because I'm not sure the speed of my SD card (the one that came with the phone).

Jim
[Hero CDMA Android Development] tkirton:
Try the 2.7...I've incorporated a check for a particular fix in the init.rc. Depending on if you have the fix in place or not (depends on your rom provider), it will either run the larger A2SD (the one that moves the dalvik-cache, based on the 2.5 code) or the smaller one (what I like to call the lite version that doesn't move dalvik-cache, based on the 2.0 code).

The fix is a line called "on property cm.filesystem.ready=1". If that is present in the init.rc, A2SD will process the larger move dalvik-cache version as that line prevents dalvik from continuing until cm.filesystem.ready is set to 1. If that line isn't present, dalvik will run alongside A2SD. This may cause a race condition that will freeze your phone. This is more noticed when dalvik-cache is moved (dalvik freaks out over it if its moved while its processing the cache), so the smaller version that doesn't move dalvik cache is used.

This fix was present in all of the 1.5 Roms I could find. It is in some of the 2.1 Roms (TrevE's A2SD also depends on this fix...he's working directly with the Rom developers in getting that patch in place for his version).
[Hero CDMA Android Development] flight-medic:
Thanks for the explanation.

I'm trying 2.7 beta 1 and see how this runs.

How long should it take to boot up? And also do you recommend loading this before adding apks to the phone? Or should I download all my apks and then run 2.7?

Thanks,

Jim
[Hero CDMA Android Development] tkirton:
Depending on whether dalvik-cache is being moved and what the speed of your SD card. I would say no more than 15 minutes at the slowest speed.

You should be able to add programs either before or after...it shouldn't matter.

Once beta 1 is installed and all looks good, I just released Beta 2 and Beta 3 (beta 3 has a zipalign function, beta 2 does not).
[Hero CDMA Android Development] tkirton:
I took out version 2.6.1 (you would flash the nocache package in that version).

2.7 Beta (either 1, 2 or 3) has adaptable code that will look to see if the init.rc is patched to pause dalvik while a2sd is running.

Right now, beta 2 and beta 3 are available. Beta 3 has zipalign while Beta 2 does not.
[Hero CDMA Android Development] Cordy:
Thanks Tkirton, I'm gonna test this out for you. I never ran into any problems upgrading 2.6.1 to 2.7beta1. I'm gonna try out beta 3 with zipalign.
[Hero CDMA Android Development] bigrushdog:
Issues with 2.7 beta 2

I've been fighting with this all day and can't get it.

a2sd check:

c:\android\tools>adb remount
remount succeeded

c:\android\tools>adb shell
# a2sd check
a2sd check
Starting Darktremor A2SD version 2.7 beta 2
[ ] Mounting /system as read-write
[ ] Mounting /data as read-write
[ ] Mounting /system as read-write using Busybox Mount.
[ ] Mounting /data as read-write using Busybox Mount.
[!] Busybox installed, but symlinks are not present.
[ ] Installing Busybox Symbolic Links...
[ ] Starting A2SD in check mode
[ ] Running A2SD Check Program.
[ ] Checking for ext partition
/dev/block/mmcblk0p2 /system/sd ext2 rw,noatime,nodiratime,errors=continue 0 0
[*] Ext partition found and already mounted.
[ ] Checking A2SD links.

A2SD Status Report
==============================================================
Busybox - [*] Present.
[X] Symlinks Not Present.
[X] Setup issue. Run a2sd repair to fix.
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 .nocache not 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
Property Patch - Property found.
cm.filesystem.ready
[*] Boot image init.rc patched.
#

Everything looks cool except for busybox.

[!] Busybox installed, but symlinks are not present.

a2sd repair

# a2sd repair
a2sd repair
Starting Darktremor A2SD version 2.7 beta 2
[ ] Mounting /system as read-write
[ ] Mounting /data as read-write
[ ] Mounting /system as read-write using Busybox Mount.
[ ] Mounting /data as read-write using Busybox Mount.
[!] Busybox installed, but symlinks are not present.
[ ] Installing Busybox Symbolic Links...
[ ] Starting A2SD in repair mode
[ ] Running A2SD Repair Program.
[ ] Remounting /system to read-write
[ ] Remounting /data to read-write
[ ] Checking for ext partition
[*] Ext partition found and already mounted.
[ ] Checking A2SD links.

A2SD Status Report
===================================================
Busybox - Present.
[X] Symlinks Not Present.
[*] Symlink Issue repaired.
Apps - [*] Linked to SD Card.
[*] File .noa2sd not found.
[*] Programs run from SD card

Private Apps - [*] Linked to SD Card.
[*] File .noa2sd not found.
[*] Private Programs run from SD card

Dalvik Cache - [*] Linked to SD Card.
[*] File .nocache not found.
[*] Dalvik runs from SD card

#

Something is funny with symlinks and busybox, but I just can't get it. Running Fresh 2.0d coming from a2sd 2.5. All apps are now on internal memory. Thanks guys. :)
[Hero CDMA Android Development] lacrisexistentielle:
Apps2SD on Evil Eris 2.0 help!!

First of all, thanks so much for the ROM and the thread! I'm completely newbie in this and it gives me so much convenience!

I'm using HTC Droid Eris with the Evil Eris 2.0 ROM that just came out recently claiming to have apps2sd in its features. I flashed the ROM after I set up partition of 32M swap and 1408M ext.2->ext.3. Then I rebooted my phone. I checked using the script you provided at the end of the thread but it turned out that apps2sd was not installed correctly. So I ran the script of manually installing that is posted right after that. But this appeared and confused me...:

# /system/bin/a2sd install

Starting Darktremor A2SD version 2.7 beta 2

[ ] Mounting /system as read-write

[ ] Mounting /data as read-write

[: -1: unknown operand

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

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

[!] Busybox installed, but symlinks are not present.

[ ] Installing Busybox Symbolic Links...

[ ] Starting A2SD in install mode

[ ] Running A2SD Setup Program.

[ ] Remounting /system to read-write

[ ] Remounting /data to read-write

[ ] Checking for ext partition

[!] Ext partition found, but not mounted.

[ ] Mounting ext partitions

[*] Ext partition mounted.

[ ] Installing A2SD Links...

[ ] Creating /system/sd/app

[ ] Copying /data/app to /system/sd/app

[ ] Removing /data/app

[ ] Creating /data/app link to /system/sd/app

[ ] Creating /system/sd/app-private

[ ] Copying /data/app-private to /system/sd/app-private

cp: cannot stat '/data/app-private/*': No such file or directory

[ ] Removing /data/app-private

[ ] Creating /data/app-private link to /system/sd/app-private

[ ] Creating /system/sd/dalvik-cache

[ ] Copying /data/app-private to /system/sd/app-private

[ ] Removing /data/dalvik-cache

[ ] Creating /data/dalvik-cache link to /system/sd/dalvik-cache

[ ] Removing No A2SD flag file.

rm: cannot remove '/system/sd/.noa2sd': No such file or directory

#

What should I do now?