yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] tkirton:
1. You did find a bug. A2SDLite was phased out as of Beta 2, but it looks like some referencing code didn't come out. I have fixed that in both Beta 2 and Beta 3, so you may want to download a new copy.

2. Stock roms won't work (just updated my thread to reflect that). There needs to be a few lines of code in the init.rc that launches A2SD (any variant, any version). You can try a custom rom...I can usually work around any installation issue with custom roms.

3. It looks like maybe some instructions for rooting your GSM Hero may have been missed. I'm not familiar with how to root a GSM Hero, as I own a CDMA Hero (it's rooting process is different as CDMA Hero units don't have SIM cards). You may want to review the rooting instructions again and see if maybe you missed something. When you enter adb shell, you should get a pound sign (#) for a prompt. I can certainly add the su command as part of the script if that will help.
[Hero CDMA Android Development] tkirton:
I've tried to remove any references to the busybox symlinks in my code...but the check is there in case I missed one or two.

The symlink is based on /system/xbin/cp (should be symlinked to busybox...if it is an actual command and not a symlink to busybox, it will trip an error each time). If it remains a problem, I'll remove it from the code.

As long as busybox is at /system/xbin/busybox, you can safely ignore the symlinks as all the busybox commands reference the actual busybox program and not the symlink.
[Hero CDMA Android Development] Cordy:
Hey whats up tkirton, just reporting back. I flashed beta 3 over beta 1 which I had flashed over 2.6.1 and everything is still going strong. It auto zipaligned everything for me and haven't run into any FC's or anything. Thanks again.
[Hero CDMA Android Development] tkirton:
No problem. 2.7 should be more stable than 2.6.1 (simplified the code).

I've been getting many requests to fix this program for other phones as well (working with a G1 and an Eris right now...that's challenging since I don't have access to those phones, so I rely on solid feedback for those phones.)
[Hero CDMA Android Development] OtisFeelgood:
I can't get a2sd 2.7 beta 3 to work on Fresh 2.0d. I tried installing in the adb shell and got this:

A2SD 2.5 worked fine and I'm using a class 4 8gb card.
[Hero CDMA Android Development] tkirton:
Type a2sd check. Post back what that says.
[Hero CDMA Android Development] OtisFeelgood:
Starting Darktremor A2SD version 2.7 beta 3

[ ] 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 ext3 rw,noatime,nodiratime,errors=continue,data=

ordered 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 - [*] Regular directory.

[*] File .nocache found.

[!] Dalvik runs from Int. Storage.

To run from SD card, type a2sd cache.

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.

#

Edit: Its 2am here and I keep dozing off so Im heading to bed. I'll check back when I wake up.
[Hero CDMA Android Development] tkirton:
It's 1am here.

Download Beta4 and install it. I think you got an uncorrected copy of Beta3 (there was an issue with Beta2 and Beta3 as it tried to launch a2sdlite during the busybox check during boot. It wouldn't show up on install or check. Beta4 fixes this issue).
[Hero CDMA Android Development] Andrizoid:
so ive been stuck on the boot screen for about half an hour. that CANT be right can it?

# /system/bin/a2sd install

[*] Starting Darktremor A2SD version 2.6

[ ] Remounting /system as read-write.

[ ] Remounting /data as read-write.

[ ] 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.

[ ] Checking Ext partition...

e2fsck 1.40.8 (13-Mar-2008)

/dev/block/mmcblk0p2: recovering journal

/dev/block/mmcblk0p2: clean, 175/249856 files, 102242/499713 blocks

[ ] Mounting ext partitions

[ ] Checking for version 2.5 flag files...

mkdir failed for /system/sd/lost+found, File exists

[ ] Searching for Data directory on ext partition.

[ ] Searching for Dalvik-cache directory on ext partition

[!] Dalvik-cache directory exists, but symbolic link do not.

[ ] Removing files from /system/sd/dalvik-cache

[ ] Copy any files in /data/dalvik-cache

[ ] Remove /data/dalvik-cache

[ ] Creating Symbolic link...

[ ] Changing ownership...

[ ] Changing permissions...

[ ] Searching for App directory on ext partition

[!] App directory exists, but symbolic link do not.

[ ] Copying any files in /data/app

[ ] Remove /data/app

[ ] Creating Symbolic link...

[ ] Changing ownership...

[ ] Changing permission...

[ ] Searching for App-private directory on ext partition

[!] App directory exists, but symbolic link do not.

[ ] Copying any files in /data/app-private

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

[ ] Remove /data/app-private

[ ] Creating Symbolic link...

[ ] Changing ownership...

[ ] Changing permission...

[ ] 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).

# reboot

ken-kygers-computer:tools slipknotfan4life06$
[Hero CDMA Android Development] tkirton:
Beta4 now available (2010-05-06 01:00 CDT)

I've made some bugfixes to the program. So, that means that a new version is available:

Darktremor A2SD version 2.7 beta 4

This also comes in two flavors - No ZipAlign (was beta2) and ZipAlign (was beta3)

If you are using Beta2, Beta3 or any of the previous versions of Darktremor A2SD, please download and install Beta4 before posting new issues.
[Hero CDMA Android Development] Andrizoid:
downloading it now, hopefully that will solve my problem
[Hero CDMA Android Development] Andrizoid:
when trying to flash 2.7 beta 4 i get an error, cant open the file (bad)
[Hero CDMA Android Development] tkirton:
Both worked fine on mine. I'll transfer them up again.

Give me about 10 minutes, then download it again.
[Hero CDMA Android Development] Andrizoid:
it worked as soon as i re downloaded.

every time i try i have to run /system/bin/a2sd install and the a2sd check and a2sd repair

last time i did that though, y apps dissapeared, when i tried a reboot it hung up on the boot screen and i had to do a nand restore.

any ideas?
[Hero CDMA Android Development] Andrizoid:
hung up on the boot screen after trying a reboot

sent me into an endless reboot cycle
[Hero CDMA Android Development] tkirton:
What rom are you running?

Seems like I have issues with different roms tonight.
[Hero CDMA Android Development] tkirton:
Rom developer didn't put any references to start a2sd anywhere in init.rc.

I sent you a PM with a link to a boot.img that I was able to assemble. Not sure if it will work, hence why I sent you a PM instead (I have troubles at times reassembling boot images for devices that aren't a Sprint Hero).
[Hero CDMA Android Development] Andrizoid:
i am running evil erisv2. i know it works, i got it to work once.

im stuck now, i have it saying its installed, my internal memory is freed up but i cant see my apps :/
[Hero CDMA Android Development] tkirton:
Do me a favor. Upgrade to Beta 4. Then try again. I still see Beta 3 in the log.
[Hero CDMA Android Development] Andrizoid:
its the file uploaded as beta 4 though.

"a2sd-2.7beta4-zipalign-signed"
[Hero CDMA Android Development] tkirton:
Since I injected fixes in the beta2 and beta3 files, it's possible they may still be residual traces of the old version numbers. I'll check it out.
[Hero CDMA Android Development] OtisFeelgood:
I wiped data, dalvik, and sd ext, installed Fresh 2.0d again, then I installed beta4 with no luck still. Might just go back to 2.5 for now.
[Hero CDMA Android Development] xxxk15:
ok i am running DamageControl v2.08 and it says it supports apps2sd but does that include the link he post?? i think he is using a2sd

and also what is ZipAlign? i know they are beta2 and beta3 but which should i use??
[Hero CDMA Android Development] urushiol:
Confirmed beta 4 with zipalign running on Gumbo 1.5c overlock with no issues. Works beautifully!
[Hero CDMA Android Development] amallama:
Im using the Ic3Rom v2.5.3 ROM. Ive tried this many different ways and I always get stuck on the white HTC screen. Does anyone know why that would happen? Im using the Beta 4 version and I got a 32mb swap with 512 mb ext3 partition. I tried reflashing beta 3 but that also didnt work. This is what I get

Starting Darktremor A2SD version 2.7 beta 3

[ ] 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 already installed.

[ ] Starting A2SD in check mode

[ ] Running A2SD Check Program.

[ ] Checking for ext partition

[!] Ext partition found, but not mounted.

[ ] Checking Ext partition...

e2fsck 1.40.8 (13-Mar-2008)

/dev/block/mmcblk0p2: recovering journal

/dev/block/mmcblk0p2: clean, 14/249856 files, 39623/499713 blocks

[ ] Mounting ext partitions

[*] Ext partition mounted.

[ ] Checking A2SD links.

A2SD Status Report

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

Busybox - [*] Present.

[*] Symlinks 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 .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.
[Hero CDMA Android Development] pyovue:
internal memory is still the same, after re-partitioning, wat is wrong? It used to work, i wiped everything, just starting fresh again, now the only thing is the internal memory is still the same, i threw 256mb on ext3, rest on fat...
[Hero CDMA Android Development] tkirton:
Download Beta5. DC2.08 uses a different fix (dc.filesystem.ready) than I was checking for (cm.filesystem.ready). I added the functions in Beta5...it should work.

ZipAlign optimizes your compressed APK files to load faster. Rom developers use it to give them an extra boost in speed without overclocking. Unfortunately, marketplace developers don't normally use it.
[Hero CDMA Android Development] tkirton:
Download Beta5. Ic3Rom is based on DC2.08, which uses a different init.rc fix (dc.filesystem.ready rather than cm.filesystem.ready). I added the functions to treat dc.filesystem.ready fix the same as the cm.filesystem.ready fix.
[Hero CDMA Android Development] regaw_leinad:
I don't think they changed it w/ 2.08.1 did they?
[Hero CDMA Android Development] tkirton:
Originally, Damage was using an older version of Darktremor A2SD (version 2.0), but he changed to use TrevE's version. I guess there are people who were having issues getting his to work correctly (same issue I'm having with all the various roms out there) and decided to use mine.
[Hero CDMA Android Development] tkirton:
Don't know. What rom are you running?
[Hero CDMA Android Development] pyovue:
fresh rom, with fresh toast on top of that.
[Hero CDMA Android Development] tkirton:
Okay....Fresh 2.0d and FreshToast is very difficult for any other A2SD to install to because of the way Flipz launches his A2SD.

I have compensated for it as best as I can, so I need you to do something for me.

If you have installed the Darktremor A2SD 2.7 beta 4 or beta 5, I need you to type the following and post it here (or pm me with the results):

/system/bin/a2sd check
[Hero CDMA Android Development] hgelpke:
Beta 5 not working with ALOYSIUS 2.0.7

I formatted my sd card with an ext3 partition. Flashed beta 5 and now I'm stuck at the white HTC/black background screen. I'm not sure how to get past this. What am I doing wrong?
[Hero CDMA Android Development] Shelnutt2:
Just let it go. On DC 2.08 it takes my phone over 5 minutes to boot. Just let it be for a while.
[Hero CDMA Android Development] ferrocene:
just fyi a2sd works great on Evil Eris 2 using beta4. the only warning is dropbox symlinks.
[Hero CDMA Android Development] tkirton:
I think the next release that entire line is coming out. I don't use any of the busybox symlinks, so it's really useless message.
[Hero CDMA Android Development] 4SidedDie:
Ive recently had to install this again and I tried 2.5 cause that was the most reliable..that doesnt boot, neither does 2.7 beta 5 on DC 2.8
[Hero CDMA Android Development] tkirton:
Try Beta6...found more issues with DC that I fixed.
[Hero CDMA Android Development] zippy-man:
I am running the a2sd update that is listed in the MT3g thread by zenulator. I know it is a modified version but it is based off your work.

Problem I seem to be having is when plugging into the computer the phone will reboot. Now after it has fully booted there s no problem but lets say i make some changes and do a adb reboot command upon reboot it gets to the homescreen freezes and then does a bootloop until i unplug the usb cable and it will be ok.

Now the only thing i have noticed is that the PCSCII.apk on the MT3g rom defaults to Disk Drive when plugged in instead of charge only or just asking what you want to be done.

It seems that by mounting the sdcard as soon as the rom boots is causing some issues with a2sd. I am not 100% positive that it is the cause but it seems to be.

Before using a2sd on this rom i never seemed to have this problem. Just wanted to report in and see if you have any ideas on the subject.

thanks
[Hero CDMA Android Development] xxxk15:
Quick Question..

Well i just bought a class 6 sd card, can i just copy all the files from my other sd card,to the one i just bought, and it will work fine. Or do i have to put the files on and reflash the rom(DC 2.08)??
[Hero CDMA Android Development] 4SidedDie:
Might I add I was using 2.5 with Fresh 2.0d then flashed to DC 2.8 2.5 remained working flawless only when I upgraded to 2.81 I got the problems with booting for 2.5 and 2.7 I will flash 2.8 and give Beta 6 a try
[Hero CDMA Android Development] Cordy:
At one point I believe I had that issue as well on an earlier version of the MT3G Slide rom. I think back on beta3 or 0.6r1. Either way I wasn't too sure what was causing it but for me the issue stopped after using the later versions of the rom. What I would recommend doing is first change it to charge only. I hate the fact that when the phone is plugged in it defaults to disk drive and as you said it doesn't give you the choice. It's just the way that version of PCSCII is. Again though using later versions of the rom I never ran into issues with the phone going into disk drive mode while using a2sd. Secondly I would flash one of the newer versions directly after flashing the package I made. Realistically the only modified things are the package itself as I included a modified version of the boot.img thanks to tkirton that had the neccissary calls to make a2sd work. The boot.img in the package is like a day older than the one I have in my personal one but there didn't seem to be any changes so I never included it. I was however planning to once 2.7 came out of beta. I was going to package the boot.img I am using with the full version of 2.7 for MT3G Slide users as an update for Zen with tkirton's permission. If all else fails wipe flash the rom then my a2sd package then 2.7 beta 6 then reboot.
[Hero CDMA Android Development] tkirton:
I have seen a2sd being ran on roms that activate the SD card immediately at boot and others that wait later in the boot process.

Let me explain how a2sd work in its basic form: it moves the contents of /data/app and /data/app-private to your sd card (ext partition). Under a2sd, your SD card has two partition (sometimes three, if you use a swap partition)...FAT32 and ext2/ext3/ext4. A2SD mounts the ext2/ext3/ext4 partition, whether or not your FAT32 partition is mounted.

The later version of A2SD also can move the /data/dalvik-cache to your SD card and can run ZipAlign against your programs in /data/app and /data/app-private.

At no point does it mess with the FAT32 section of the SD card, which is what mounts when you select Disk Drive from your phone.

What it possibly sounds like is that, when prompted for the first time as to how to treat the USB connection, the disk drive was selected and the checkbox labeled Don't ask again was set.

Do this...goto settings -> Connect to PC -> Default connection type. Make sure the default connection type to "Charge Only"

This will force the USB cable to be a charge only cable. You can change it by accessing the notifications and changing it from there.

Try that. If that doesn't work, I'll investigate further.
[Hero CDMA Android Development] tkirton:
2.7 is really looking good. I have a Beta 7 waiting that will be two packages: a version that starts the dalvik-cache move upon boot and one that doesn't (similar to the 2.6.1 setup).

The program itself is becoming more and more stable as it is released. Barring anything that may go wrong, I think we may have a release late Sunday night or early Monday morning with beta 7 being the final.
[Hero CDMA Android Development] tkirton:
Oh...so DC made some weird changes to 2.81. Might have been to lock my code out...who knows.

Let me know if 2.7beta6 works for you.
[Hero CDMA Android Development] zippy-man:
I have loaded the newest version out atm and it happens on 0.9.x.x it also happened on the 0.8.x.x versions as well but that is because i pushed PCSCII back to the phone. Zen had removed this for a few builds and used USB mount instead and that may be why it was working as it no longer mounted the sdcard as disk drive when it gets to the home screen.

I know that it should not matter as a2sd has nothing to do really with fat32 but for some reason i believe that it is messing with it.

I have changed the default connection type to charge only and will report back my findings.

Thanks
[Hero CDMA Android Development] vivmar:
just installed on my htc desire,i have restarted the phone,and i see a lot of error

of crashed process..every time i restart is same situation....any idea?
[Hero CDMA Android Development] tkirton:
Another new phone for me to work with.

It could be several things. If you are getting a lot of errors and crashed processes, it's possible A2SD isn't running at startup.

When you installed it, did you run any other commands to install (i.e. a2sd install).

What ROM are you running?
[Hero CDMA Android Development] rseffner:
I'm happy to help you ...

Oh ****. I don't like to lose any functionality (cam quality and stability are known to be more bad in custom roms), but I really would like to use your code.

Now I'm sure to got an rooted phone - like the manual I read. Now I'm able to download any "need root rights" app from market. Running this results in an question if I'ld like to give root rights. But if I open 'adb shell' I get a "$" instead of a "#" at prompt, so I have to 'su' first. 'a2sd' is working without errors now, but my device is in loop at rebooting - it seems you are right with 2. My stock rom does not interpret /system/etc/init.d/a2sd... - or is it the - in my case - missing 'su' inside?

It seems rooting CDMA and GSM is not that different.

best regards
[Hero CDMA Android Development] asci:
​

I installed beta5 on Desire with Custom Modaco ROM. It seems to work fine but Market app. After using Market, if you reboot device, it desappears. In app menu Will appear a broken link to Vending app that will cause a Sense FC when pressed.
[Hero CDMA Android Development] tkirton:
Stock rom isn't going to work as it doesn't have the code in init.rc to launch a2sd, either from /system/etc/init.d or /system/bin.

Is the stability issues in the other roms due to the apps or the kernel? If it is due to the apps, you could replace the boot.img from a custom rom into your stock rom. Thsi way, you can run a2sd and still maintain the actual stock applications.
[Hero CDMA Android Development] tkirton:
If market is moved to /data/app, it's a possibility that a2sd may have something to do with that (although the market should never had been moved to that location)

If the market is in /system/app, where it should be, then a2sd doesn't touch that area.

I can take a look at it to see what's going on.

EDIT: You may want to upgrade to beta7 to see if that clears the problem.
[Hero CDMA Android Development] vivmar:
i have same problems with beta 7...
[Hero CDMA Android Development] amallama:
Thank You so much!! It never had loaded so quick and it worked perfectly! Thank You!!
[Hero CDMA Android Development] 4SidedDie:
Beta 7 is working flawless on DC 2.8
[Hero CDMA Android Development] Pyr0x64:
having the same problem here with an htc desire running a modaco custom rom too

it's very strange because the vending.apk is in /system/app
[Hero CDMA Android Development] tkirton:
I'm scanning the Desire thread and am noticing major issues with Apps2SD (and it's not my implementation...but mine could be affected.)

I'm still investigating the issue. I'm determined one way or another to get this to work for you guys.
[Hero CDMA Android Development] Pyr0x64:
thanks tkirton :)

i think the rooted desire owners need all the help we can get at the moment lol

as you mentioned, it does seem to be a tricky one for these phones :(
[Hero CDMA Android Development] tkirton:
The only thing I can think of is the dalvik-cache move may have affected it.

Dalvik-cache is one of those areas that can cause some strange results on the phone. If anyone has a nandroid backup before installing A2SD, do the following for me and let me know your results:

1. Restore using nandroid backup

2. Reboot the phone

3. Validate market is present

4. Reboot the phone in recovery

5. Apply the 2.7beta7 package that doesn't move dalvik-cache on boot.

6. Reboot phone

7. Validate market is present

8. Open an adb shell and type /system/bin/a2sd cache

9. Once completed, reboot phone

10. Validate market is present.

I suspect it may be relating to the dalvik-cache being moved, but can't confirm that.

Whoever does this, let me know your findings on each of the validation steps.

The only other thing I can think of is zipalign. If needed, I can put together a package that doesn't do zipalign for testing.

EDIT: Seems like I keep thinking of other ideas. The last idea I would try (and you could try it first) is to go into recovery and select Fix app UUID. I know it sometimes works for force closes, it may work for missing applications.
[Hero CDMA Android Development] Isotopes:
And another one have the same prob with modaco custom rom too. :confused:
[Hero CDMA Android Development] tkirton:
This is rather perplexing...
[Hero CDMA Android Development] Isotopes:
Why is confusing ...