yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] tkirton:
He's still using Darktremor 2.7.5 RC1 (the fact you said there wasn't a a2sd reinstall command tip me on that...that command was changed in a later version than 2.7.5 RC1). The current version is Darktremor 2.7.5.2 (several versions later).

Download the new version first: http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5.2-signed.zip

There were a lot of bug fixes between 2.7.5 RC1 and 2.7.5.2.
[Hero CDMA Android Development] wmor:
Thanks, 1 more question

Is there a way to "mount the entire /data directory to the SD card"? If so please include instructions.

Thanks!
[Hero CDMA Android Development] AntonioCorrenti:
Hi, I flashed 2.7.5 and now the device stucks on boot, now I'm waiting for 20 minutes...

AND AS STUPID AS I AM I FORGOT TO BACKUP!!!

Help please
[Hero CDMA Android Development] tkirton:
If you moved your dalvik-cache to either SD card or /cache partition, try a2sd nocache to revert back to internal storage.

If that doesn't fix the issue, try a2sd remove to disable Apps2SD.

Worse case scenario, you reflash the rom back onto the device
[Hero CDMA Android Development] AntonioCorrenti:
If i send the command from recovery via adb I get

a2sd not found, i tried with /system/bin/a2sd remove too.

This is my ls

ls

cache init res system

data init.bahamas.rc root tmp

default.prop init.goldfish.rc sbin

dev init.rc sdcard

etc proc sys

Any help?
[Hero CDMA Android Development] AntonioCorrenti:
I tried now with sbin/apps2sd remove, now i'm stuck on htc logo, crossing my finger...
[Hero CDMA Android Development] AntonioCorrenti:
Nothing, the sceen goes black (but the lcd still on) and nothing happens, by touching the screen or pressing the buttons.

Any idea?
[Hero CDMA Android Development] tkirton:
Normally, /system isn't mounted when you go into recovery. The various programs within recovery mounts those automatically. This is the same with /data.

What are you trying to do in recovery?
[Hero CDMA Android Development] tkirton:
I don't put anything in /sbin...so this is something different.

Sounds like you are intermixing different Apps2SD together.

To remove Darktremor Apps2SD (or at least stop it from actually moving your programs, since you can't really remove it), you need to type a2sd remove when the phone is booted...not in recovery.

If you are really serious about running Darktremor commands in recovery (and I'm presuming you have a Sprint Hero), here's what you type:

busybox mount -t yaffs2 -o rw /dev/block/mtdblock3 /system

busybox mount -t yaffs2 -o rw /dev/block/mtdblock5 /data

cd /system/bin

a2sd remove

If you so happen to run an Evo, the partition block devices are a bit different:

busybox mount -t yaffs2 -o rw /dev/block/mtdblock4 /system

busybox mount -t yaffs2 -o rw /dev/block/mtdblock6 /data

cd /system/bin

a2sd remove

All other phones follow either one of these processes...type cat /proc/partitions to see a list of partitions with the corresponding block device names.
[Hero CDMA Android Development] tkirton:
An adb logcat as the unit first boots would probably be helpful. Could be several factors.
[Hero CDMA Android Development] tkirton:
The command to do that is:

busybox mount -o bind <sd mount point>/data /data

Create a data directory on your SD card

Make sure you move the contents of /data to the data directory on the SD card. Otherwise, it's going to be like you did a factory wipe.
[Hero CDMA Android Development] AntonioCorrenti:
Sorry, we are making some confusion here.

I have an htc tattoo/click with HCDR ROM 1.6 donut witch has an old versione of a2sd.

So you suggested me to update the script because i cannot use the "reinstall" command.

I fired the Amon RA and installed dtapps2sd-2.7.5.2-signed.zip, since that my tattoo won't boot.

That mean I stuck @ the htc logo, without getting into the OS.

So I tried to use adb from the recovery, but as you said there is no system/bin.

I've fount a sbin directory with a apps2sd and i launched apps2sd nocache and remove.

And after that nothing new happens. So I've tried wiping the dalvik-cache, now the phone becomes black after the htc logo but the lcd is on and is not responding.

I would reflash the rom, but I want to save my sms and from recovery telephony directory is not mounted.

Any Idea?
[Hero CDMA Android Development] tkirton:
There's isn't confusion over here. What I'm trying to tell you is that there is nothing in my program that installs anything in /sbin. The directories I touch are /system/bin, /system/xbin, /data, /system/etc/init.d...that's it.

I don't know if this apps2sd that is in /sbin on your recovery image is the Darktremor one.

However, in the last post, I gave you some commands to mount both /system and /data if you were insistent on running Darktremor commands in recovery.

Let's see what's going on...since you want to save your SMS messages, the best thing I can get right now is a logcat.

Do the following:

On your computer, make sure your phone is attached to your computer via USB. Type adb logcat > logcat.txt ... but don't press ENTER.

Next, either turn on the phone or just reboot the phone.

Next (and this is important), immediately press ENTER on that adb logcat.

Wait about 2 minutes, then press Control C to stop the log.

If all goes well, you should have a logcat.txt that has more than zero bytes. If you do, send that file to rtkirton@gmail.com and I'll see what Darktremor is doing.
[Hero CDMA Android Development] AntonioCorrenti:
Tkirton, first of all thank you for the help!

With "confusion" I meant that you responded separately to my posts and I wanted to make some order (so I made some "counfusion" not you) and i'm sorry for that. :(

Darktremor script is a great piece of software, my problem started because on a recent rom was installed a really old version of the script.

I'll try to create a logcat and thank you so much for the support! :)
[Hero CDMA Android Development] AntonioCorrenti:
Here my logcat,

I sent a copy to your e-mail too!

Tnx in advance!
[Hero CDMA Android Development] tkirton:
I got the logcat and, although I can't see what happened at the very beginning, I do see the latter half of the Darktremor script being executed.

I'm seeing a bunch of illegal instructions. I'm betting something is wrong with the busybox on your system.

The proper way of resolving this is to reflash the rom without a wipe...but I want to do something different.

Type the following command in ADB shell:

/system/bin/busybox.a2sd ls -l /data

Let's see what that returns.

The reason I'm having you type this command is that Darktremor comes with its own Busybox, but it will use the one on your system for most of the Busybox commands (reboot is the only one it uses the Darktremor version, as a lot of newer Busybox installs don't have that command).

I want to see if this one is causing an illegal operation or not. If so, we'll have to figure out where your Busybox is located. I may have to modify my code to search for that area.

The other thing I was thinking it could be is the shell that is being used. Depending on what is throwing the "Illegal instruction" (could be a number of things), you may be forced into reloading the ROM anyways.

But let's try the Busybox exercise first.
[Hero CDMA Android Development] AntonioCorrenti:
Here the output:

drwxrwx--x 1 1000 1000 2048 Oct 15 13:34 anr

lrwxrwxrwx 1 0 0 14 Oct 7 17:01 app -> /system/sd/app

lrwxrwxrwx 1 0 0 22 Oct 7 17:01 app-private -> /system/sd/app-private

-rwxrwxrwx 1 1013 1000 44 Oct 16 20:33 awbautocal.bin

drwxrwxrwx 1 1002 1002 2048 Oct 14 11:28 btips

drwxrwx--x 1 1000 1000 2048 Oct 17 17:37 dalvik-cache

drwxrwx--x 1 1000 1000 2048 Oct 16 13:39 data

lrwxrwxrwx 1 0 0 11 Sep 1 09:52 drm -> /data/local

-rw-rw-rw- 1 0 0 2086 Oct 18 14:46 dta2sd.log

-rw-rw-rw- 1 0 0 345 Oct 17 10:53 dtinstall.log

-rw-rw-rw- 1 0 0 0 Oct 17 17:46 fix_permissions.log

-rw-rw-rw- 1 1013 1000 9 Oct 14 11:22 fmmsg

prw-r--r-- 1 1000 1000 2048 Sep 1 19:11 gps_nmea_fifo

drwxr-xr-x 1 0 0 2048 Oct 17 10:53 jit

drwxrwx--x 1 2000 2000 2048 Sep 1 09:52 local

drwxrwx--- 1 0 0 2048 Sep 1 09:52 lost+found

drwxrwx--t 1 1000 9998 2048 Oct 16 23:28 misc

drwx------ 1 0 0 2048 Oct 18 14:46 property

drwxrwxr-x 1 1000 1000 2048 Oct 18 14:47 system

drwxr-xr-x 1 1000 1000 2048 Oct 15 14:40 tombstones
[Hero CDMA Android Development] AntonioCorrenti:
And I tried

a2sd remove

[ ] Apps2SD is launching...

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

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

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

[ ] Mount Point = /system/sd

Illegal instruction

[ ] Starting Darktremor Apps2SD Version 2.7.5.2

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

[ ] Starting Darktremor Apps2SD in remove mode

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction

Illegal instruction
[Hero CDMA Android Development] avijan:
Need Help

Try to mount the new ROM,

get wrong digest.

I am a noob so can someone tell me how to re-sign?

By the way, Is there an a2sd support to:

ROOT_Legend_HTC_ISR_2.05.461.52_signed_081010_083339.zip

That will be great
[Hero CDMA Android Development] wmor:
What do i put in the "<sd mount point>" part?

Also how do i move the contents of /data to the data directory on the SD Card?

If i still want to have a few apps stored on the internal phone memory after doing this, how do i do that?

Thanks again!
[Hero CDMA Android Development] tkirton:
I got to looking at the logcat you sent over...something didn't look right (besides the illegal instructions).

The illegal instructions are from the if [] statements I have in the code. But, on my two devices, everything looks okay.

Then I started to notice something...it looks like all the commands are being executed from /system/bin/sh.

So I restarted my Sprint Hero running CyanogenMod nightly build. I noticed all my commands are starting with:

/system/xbin/run-parts

So I tried my Evo with VirusRom Airborbe RC2...that one starts with:

/system/xbin/busybox

Then I reloaded Fresh 3.3.0.1 on the Evo and Darktremor 2.7.5.2. The result...

/system/xbin/busybox

I'm not sure, but it looks like you may have an issue with your rom. Here's what I would do:

1. Backup your SD card using Recovery

2. Reflash the rom without executing a wipe

3. Reflash Darktremor 2.7.5.2

4. Reboot and run a logcat again. Hopefully that will work.
[Hero CDMA Android Development] tkirton:
I don't know how I can put this delicately...what you are asking for is a relatively complex procedure.

Mount point is where the SD card is mounted to. This varies. You'll need to research the rom you are using in order to find where it mounts the SD card.

CyanogenMod (as well as those based on CyanogenMod) uses /sd-ext. Darktremor Apps2SD creates /system/sd as a mountpoint, but can also use /sd-ext.

Once you which directory you are accessing your EXT partition, that's your mountpoint.

To copy contents from /data to your SD card, you'll need to create a data directory on the EXT partition.

mkdir /<mountpoint>/data

Once you have done that, copy the data:

busybox cp -rfp /data/* /<mountpoint>/data

If you want to be bold about it, try a move command:

busybox mv -f /data/* /<mountpoint>/data

Once you do that, mount it:

busybox mount -o bind /<mountpoint>/data /data

Now your entire data directory is on your SD card.

As for putting apps on your internal storage, can't do...you mounted your internal storage to your SD card.

Now, the hard part...you're going to have to build a program that will do the last command for you...and you will have to put it in a directory or use an existing file that the system runs during startup. Otherwise, problems will occur again. This process will have to be very close to the start of the boot sequence.
[Hero CDMA Android Development] tkirton:
I don't know if this will work, but based on the rom you gave me, I comprised a version with Darktremor Apps2SD:

http://www.darktremor.info/temp/legend-stock_dtapps2sd-signed.zip

Let me know if it works...I don't have a Legend to test it on.
[Hero CDMA Android Development] AntonioCorrenti:
Hi, I managed to copy via adb my sms so I could wipe the phone.

I wiped the dalvik too and the ext partition.

I flashed HCDR ROM and a2sd 2.7.5.2, and by logcatting I get our dear "illegal instruction"...

Why then?
[Hero CDMA Android Development] tkirton:
Huh...that tells me something is wrong with the rom itself.

I would try another rom...the following link is to the other Darktremor Apps2SD thread: http://xdaforums.com/showthread.php?t=715116

In it, there's a list of roms by phone. In your case, there are two other roms you can try:

KiljackenROM - http://xdaforums.com/showthread.php?t=696239

PuzzleRom - http://xdaforums.com/showthread.php?t=749932
[Hero CDMA Android Development] Elegy:
typing 'a2sd cachesd' or 'a2sd check' or any of the commands, in terminal brings up a list with "Segmentation fault, /system/bin/bash: /system/bin/launcha2sd: No such file or directory"

whatsup, it worked fine before
[Hero CDMA Android Development] tkirton:
Segmentation fault usually indicates that a program is corrupted or is for the wrong platform (i.e. compiled for an Intel processor but ran on an ARM processor). Bash is the same version as it always has been since 2.7. I would try reflashing Darktremor again (in case it did get corrupted). Worse case, reflash the rom, then Darktremor.

If those steps don't work, let me know what rom you are using and I'll see what I can find out for you.

Also...did you upgrade your rom to a newer version? It's possible there is some issue with a newer version. But try the two suggestions first and let me know the results.
[Hero CDMA Android Development] Krazy_Talk:
Hi, I am attempting to partition my sd card through windows command. I managed to get into adb shell but when I attempt to do anything else via adb I get this

C:\android-sdk-windows\tools>adb shell
# adb reboot recovery
adb reboot recovery
adb: not found

May I please get some help with this?
[Hero CDMA Android Development] tkirton:
This is easy: you don't do adb reboot recovery when you're in an adb shell (adb.exe is the program to do both the reboot recovery and the shell).

Either:

- In a Windows Command prompt, type adb reboot recovery

or:

- In an ADB shell, type reboot recovery

That should fix your issue.
[Hero CDMA Android Development] Krazy_Talk:
Million thank-yous!!! I really appreciate the help here on XDA.
[Hero CDMA Android Development] PureLoneWolf:
Superb, after struggling to get another script running to do this...I was pointed here...installed, rebooted and immediately went up to 35mb free. Ran the a2sd cachesdreset command and now have 110mb of loveliness.

Speed of boot hasn't changed and the phone seems to be flying quite happily..

Many many thanks for your efforts.

HTC Desire, Cyanogenmod 6.1.0 RC1 here.
[Hero CDMA Android Development] Big-A-Rob:
Clarification on usage of this script

I have a quick question about this note:

"NOTE: ROMS THAT ARE ORM (ORIGINAL ROM FROM MANUFACTURER...ALSO KNOWN AS STOCK ROMS) WILL NOT RUN ANY VERSION OF APPS2SD EXCEPT FROYO.

The code to launch Apps2SD is not present in the init.rc. The only way Apps2SD will work with a Stock ROM is if the init.rc has been modified with the commands to run Apps2SD."

Does this mean that NO stock ROM is able to run this script and use this scripts method of apps2sd period, or does it mean that no stock ROM, LESS THAN 2.2 (Froyo) can run this script and use it's method?

I myself am using NXSense on my N1 which utilizes this script, but my friend has an Aria which is rooted and running the leaked 2.2 ROM for it and he wants to use this script to enable apps2sd. Does this script modify the init.rc file to enable it to run Apps2sd or is he going to have to wait until someone cooks up a 2.2 ROM for Aria that can utilize this script?

If we were feeling adventurous, would it be possible for us to update the init.rc file with the appropriate code to be able to use this?

Thanks in advance.
[Hero CDMA Android Development] ferrarinews:
I made a ROM with the "HTC Android Dsixda's Kitchen. Through it I put the A2SD. The rom everything went well, only when I see the command line "a2sd check," said that there was correct but not optimal.

To fix this I needed to do "a2sd reinstall". What went wrong? How can fix this, to not have to always do this every time I install?

Thanks in advance.
[Hero CDMA Android Development] tkirton:
If you could post the results of a2sd check, perhaps I can get a better idea of what your issue is.
[Hero CDMA Android Development] tkirton:
It means exactly what it says. If you are running an unmodified stock rom, Apps2SD will not run as the code to launch is not in init.rc. You have to modify the init.rc (which is located in boot.img) to allow Apps2SD to launch.

This even applies to unmodified leaked roms. Leaked roms are actually ORM beta roms that an tester has posted, hence why they are called leaked...they aren't suppose to be publicly available.

The script does not modify init.rc because of the complexity of modifying init.rc:

1. The boot.img file would have to be extracted

2. The boot.img would have to be split into two elements: kernel and ramdisk

3. The ramdisk portion has the init.rc, which would require modifications.

4. The new ramdisk and kernel would have to be reassemble into a new boot.img

5. The new boot.img would have to be flashed back into the phone.

It's a complicated process that goes beyond the script's capabilities.

If you feel adventurous, you can certainly put the init.rc into the rom. Many people in the past has done that with leaked roms. The procedures would be the same as for an official stock rom.
[Hero CDMA Android Development] ferrarinews:
I install a2sd from kitchen, then after install the ROM i go to recovery create partitions. Once the phone starts, if I do "a2sd check" appears:

only instead of appearing as the image is here, in squares appear "[!!]=Setting is correct, but not optimal". Then i need to do "a2sd reinstall" to have the values, like this image.

Can you tell me why?

Thanks.
[Hero CDMA Android Development] tkirton:
My guess is that something else is mounting the EXT partition before Darktremor does. The mount fails in Darktremor due to the card already being mounted, thus causing Boot Protection to activate.

Check your /system/etc/init.d directory to see if you have other programs related to Apps2SD running.

If you want to post your directory listing, I will see if I can find your issue.
[Hero CDMA Android Development] ferrarinews:
Thanks for answering.

In the /system/etc/init.d i have:

» 00banner

» 01sysctl

» 02firstboot

» 04apps2sd

» 99complete

Thanks.
[Hero CDMA Android Development] sik_gerar:
will this work in floyo 1.1.9. for hero gsm? if not.. what do you guys recommend?
[Hero CDMA Android Development] tkirton:
Ummm.....not sure. Unless the rom itself is resetting the location (which I've seen happen with CM6 with the dalvik-cache). In that case...the check code should've reset that situation.

I'll check the code.
[Hero CDMA Android Development] tkirton:
If Floyo 1.1.9 supports Apps2SD, then it should work.
[Hero CDMA Android Development] sdjensen:
Hi,

I downloaded the a2sd-2.7-update3r1-signed.zip but I get this error when I try to install it on my Desire with stock ROM:

--Installing: SDCARD:a2sd-2.7-update3r1-signed.zip

Finding update package...

Opening update package...

E:Can't open /sdcard/a2sd-2.7-update3r1-signed.zip

(bad)

Installation aborted.

What am I doing wrong? Sorry if this is a noob error, but one time has to be the first.... ;)
[Hero CDMA Android Development] tkirton:
Sounds like your copy is bad.

Clear the cache from your browser on your computer and download again.

Or, you can try Darktremor 2.7.5.2 ( http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5.2-signed.zip )
[Hero CDMA Android Development] ryandard:
can we manage the apk when using a2sd

i mean select manual which apk move to sd

or which apk on internal
[Hero CDMA Android Development] madeSICC:
So I think im a little confused on this. I flashed the program in recovery, booted up fine. After it finished booting I went and checked my available memory on the phone it still says 20mb.

What else needs to be done for this to take affect? Im using aosp-mod

Edit - did the cache script and went from 20mb to 100mb.

Is there anything besides that that is recommended doing

Froyo!!!......... its what's for dinner
[Hero CDMA Android Development] jziggy101:
A2SD guide or tutorial?

Is there a current guide to using a2sd? I am reading thread after thread and I just want to understand what I need to do to use this app. I understand partitioning the sd card and I have played with some of the commands but that is it.

Noob question so point me to a noob tutorial or guide please.

Thanks
[Hero CDMA Android Development] paciotti:
I'm unable to install/run A2SD in my Dream running CM 6.1 stable:

Copying files...
E:Can't chown/mod /system/bin/fixa2sd
(No such file or directory)
E:Failure at line 6:
set_perm 0 0 0777 SYSTEM:bin/fixa2sd

Installation aborted.

It seem unable to properly mount the system partition and files aren't copyied/chowned/chmodded. It worked with CM 6.1 RC1!

Anyone had this problem and found a solution?

Thanks.
[Hero CDMA Android Development] angelfirex:
Hi to all,

I'm going mad with a strange problem, I'v spent hours reading this post and think you could maybe help me:

I have a motorola backflip with a preclair modded rom that includes apps2sd in it.

The problem is that when I use ghscript and moove + rebuild apps to the adcard, it workes BUT:

every time I reboot the phone just after the white screen with M logo I get an error that translated would be something like "system is not working" with 2 choices 1-> "kill" 2-> "wait", I have to press KILL then the shutdown button and on close menu select "shutdown".....after that I get the loading logo of the rom and phone swithes on!!

Is the a wai to avoid this error?

Or is it possible to do to the "kill" then "shutdown" operation using comand lines directly in the init.rc file?

Thanks alot!
[Hero CDMA Android Development] Deathwish238:
I'm using MicroMod's Gingerbread v0.10 on the Nexus One. I have an ext4 partition and the ROM does support ext4, however I'm having problems installing the Darktremor A2SD script. Doing a2sd reinstall in terminal emulator says "SD Card not mounted." The exact output is below.

$ a2sd reinstall

rm: cannot remove '/data/dta2sd.lg2': Permission denied

cp: cannot create '/data/dta2sd.lg2': File exists

rm: cannot remove '/data/dta2sd.lg1': Permission denied

cp: cannot create '/data/dta2sd.lg1': File exists

rm: cannot remove '/data/dta2sd.log': Permission denied

[ ] Apps2SD is launching...

grep: /init.rc: Permission denied

__ _____

| \ |

| | |

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

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

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

[ ] Mount Point = /system/sd

[ ] Creating /cache/dc

mkdir: can't create directory '/cache/dc': Permission denied

chmod: /cache/dc: Permission denied

[ ] Symlinking /cache/dalvik-cache to /data/dalvik-cache

rm: can't stat '/cache/dalvik-cache': Permission denied

ln: /cache/dalvik-cache: Permission denied

[ ] Starting Darktremor Apps2SD Version 2.7.5.2

[ ] Launching Apps2SD Start Program with reinstall

[ ] Starting Darktremor Apps2SD in reinstall mode

[X] SD Card not mounted.

Cannot reinstall applications to SD card.

$
[Hero CDMA Android Development] fullblown:
Are you typing SU to get superuser status in Terminal?
[Hero CDMA Android Development] tkirton:
Try the Darktremor 2.7.5.2 thread...this one isn't supported anymore.

Just click on Discuss in my signature and it will take you to it.