yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] Cordy:
Hey tkirton, just wanted to post some info for you to look at. Not sure if this is an actual issue with the Zipalign function or not. Looking at ddms on boot when it first zipaligned everything the log only showed it zipalign the /data/app folder and only about 3 apks within it. I had then thought it wasn't seeing the symlinks so I ran the align command from shell once the phone was booted and it said everything was already aligned, showed me all the files inside of the appropriate folders instead of the few it said through ddms. However what was strange was that everything in /data/app-private and /system/app showed zipalign already completed however it stated /system/bin/aligna2sd: line 32: [: missing `]' after every /data/app-private apk and /system/bin/aligna2sd: line 52: [: missing `]' after every /system/app apk. I just wanted to pass this information by you and wasn't sure if this was a result of the fact that the phone was running and the /system/app folder shouldn't really be zipaligned while it ran or if it just wasn't zipaligned at boot like it should've since it didn't show up in the log. Other than that everything still working flawlessly on Zen's MT3G Slide rom.
[Hero CDMA Android Development] xxxk15:
Just alittle question what is the difference between moving the dalvik-cache and not moving it??
[Hero CDMA Android Development] tkirton:
You running an Eris rom?
[Hero CDMA Android Development] tkirton:
Frees more internal storage space. Some users using class 6 cards reported faster response by moving dalvik-cache to sd card. But, those with class 2 cards have reported boot times up to 30 minutes if the cache has to be rebuilt and it is on the sd card.
[Hero CDMA Android Development] Cordy:
Re: [APP] Darktremor A2SD (Apps2SD) version 2.7 beta 9 (05/12/2010)

No running ZenEXP

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] tkirton:
I see what you are talking about...let me fix that...beta10 anyone?
[Hero CDMA Android Development] thatguythatdid:
Where can I get a copy of 2.5
[Hero CDMA Android Development] tkirton:
http://www.darktremor.info/files/a2sd/a2sd-2.5-signed.zip

But why would you want to run a copy of 2.5? There are major fixes in 2.7 over 2.5:

2.5 doesn't have the cm.filesystem.ready detection, which means:

a. Stalls boot in any 1.5 rom or any 2.1 rom that has the fix

b. Race condition could occur with any unpatched 2.1 rom

Not that the program wasn't good...it was a first attempt at moving the dalvik-cache onto the ext partition. 2.7 goes a long way to fix many of the shortcomings of 2.5 (and the apparent bugs of 2.6.x), while adding new options to give you more control.
[Hero CDMA Android Development] thatguythatdid:
Sorry about being rude and not responding I was heading out the door. The reason is that I tried to install the other versions and they didn't work for me and I've been having problems with my sd card which I think is broken even though I can still put things on it so I needed to run a test using 2.5 which I know worked before. So now I know my sd is broken. Thanks
[Hero CDMA Android Development] fixxxer2008:
has anybody had problems with mail not giving you any notification with the beta's? i had no issues until i flashed this beta. this is on the IC3rom.
[Hero CDMA Android Development] Gamercjm:
If I install this and then flash a rom. Do I need to reinstall this zip after the rom?
[Hero CDMA Android Development] fixxxer2008:
i can confirm if i don't install this beta on the IC3rom my email works again. has anybody else experienced this?
[Hero CDMA Android Development] regaw_leinad:
yes, you need to reflash this zip after flashing the rom.
[Hero CDMA Android Development] tkirton:
Don't worry about it...I see now you were doing process of elimination. At the time you requested it, it didn't make sense to me since 2.7 fixed bugs that were found in previous versions.

On one hand, I'm glad it wasn't my program that was causing issues. However, on the other hand, I'm sorry your sd card decided to give you issues. Hopefully you have already found a new SD card (hopefully better than the one you had) and you are running.
[Hero CDMA Android Development] tkirton:
What's happening with mail? Is the e-mail client you're using is something from the market or stock?

I'll check IC3Rom and see what the issue is. The only thing I can think of is that the e-mail client is somewhere on /system/sd/app and zipalign may be causing the issue.

I think when 2.7 goes final I'm going to turn off dalvik-cache move and zipalign by default (you'll have to manually turn these on). I think that's going to give me the least amount of issues during full release.
[Hero CDMA Android Development] gunnyman:
I triedto run Beta 10 cache move version against the new Sprint Leak that damageless put together. I get an error in line 4 saying can't find file a2sdfix and it is unable to chown said file.

EDIT:

Same error in the Non Cache move version.
[Hero CDMA Android Development] fixxxer2008:
no version of app2sd works so far that ive tested on the new sprint leak, such a shame.
[Hero CDMA Android Development] tkirton:
Just tested the flash again, doesn't seem to have an issue on my phone.

This is the same method I have used to flash since 2.6.1

Also line 4 shows fixa2sd...so...

I have sent the files back up to darktremor.info. Try downloading them again. It could be the recovery you are using...what version are you using?
[Hero CDMA Android Development] gunnyman:
I'm using the fresh/toastcfh godspeed recovery

Also I've nandroided back to Aloyicious until the new toys have beentweaked by you all who know better than me how to do this stuff. :)
[Hero CDMA Android Development] tkirton:
Works fine on Fresh 2.0d. Damageless may have change something again...I will take a look and make the proper adjustments.
[Hero CDMA Android Development] tkirton:
That's odd...that's the one I'm using.

Try downloading again...don't know how to help you on this one since both of us are using the same recovery system. Not sure why you would couldn't flash it but I can.

I used the nosc version (there's only one file difference between the versions, and it is a flag file. Programs and update-script are identical).
[Hero CDMA Android Development] Cordy:
The rom in reference is just a quick port of the newest Sprint RUU for the Hero. I'm sure the reason why this is not working is because it does not have the cm.filesystem.ready fix because the only modifications damageless has made right now to it was patched root and superuser.
[Hero CDMA Android Development] gunnyman:
I honestly think it's something in the quickie ROM damageless threw together this afternoon. I wouldn't worry about this until the Sprint ROM that was leaked today is fleshed out and taken apart and put back together correctly :D
[Hero CDMA Android Development] fixxxer2008:
makes sense, might have to wait until it can be fixed.
[Hero CDMA Android Development] tkirton:
Oh, if it's a quick port, he probably haven't added any code in init.rc to activate a2sd.

Give him a day or two...he'll have the code in there.
[Hero CDMA Android Development] fixxxer2008:
ive tried what i could manually get this to work with no success. damn shame as the bare rom as it is, is super quick. :(
[Hero CDMA Android Development] gunnyman:
But I want my oompa loompa NOW!!!!!:D
[Hero CDMA Android Development] tkirton:
Let me take a crack at it...see what I can do.
[Hero CDMA Android Development] regaw_leinad:
You guys, damageless did this in like 10 minutes and I bet he didn't edit the init.rc to enable a2sd on boot....

he said earlier he would have a DC tonight...
[Hero CDMA Android Development] nfinitefx45:
ok, so any update as to getting apps2sd working on damageless's latest sprint leak. I know that there are many roms available with apps2sd, but I would prefer to have a actual sprint rom unchanged with apps2sd.
[Hero CDMA Android Development] smw6180:
You'll have to wait until Damage releases a new ROM based on the leak. The one he posted, all he did was add SU and pull it out of the RUU then put it up. It's pretty much totally stock and does not have configuration for a2sd. Once Damage posts something (hopefully tonight, possibly tomorrow, I know the guy's busy and has a real life;) ) it'll work.
[Hero CDMA Android Development] nfinitefx45:
Agreed these guys are amazing I was actually refering to tkirtons post wondering if he had andy luck with enabling it for this rom.

I am still working on the learning curve of figuring this android system out, but my guess is that this editing needs to be done to the boot.img in order for the system to start this process on boot. Once edited I would think that we could just install the apps2sd located in this thread and it should work. But like I said I am a beginner.
[Hero CDMA Android Development] nenn:
i looked but this thread is too massive and i couldnt find my answer.

a2sd is running, but im still losing system space. does the system pull from my ext3 partition and subtract it from the memory, orrr?

its running and im down to 109mb free, fresh flash im usually at 150ish

thanks for any and all help.
[Hero CDMA Android Development] tkirton:
Working on it.
[Hero CDMA Android Development] tkirton:
Most of what you need to know is on the first message (the long one).

a2sd check is your friend...this will tell you how your system is setup.

Dalvik-cache, when setup on the internal storage, will continue to use up space, even after you moved your applications.
[Hero CDMA Android Development] tkirton:
As soon as my computer comes back fully online (it crashed), I can test the stock rom and see if my modifications work.
[Hero CDMA Android Development] regaw_leinad:
Yeah, but I too have dalvik2sd, and my internal mem is still goin down, and i havent installed anything else. I guess it would be the app data that's getting stored internally still? I started with 152/159 free about 4 days ago, and now its down to 122/159. Ideas?
[Hero CDMA Android Development] tkirton:
Do keep something in mind that there are other caches and files that are not moved to the SD card. Biggest area I can think of is /data/data, where program caches and settings are stored. If you are doing heavy surfing, it will cause the number to decrease. Try using something like CacheMate to clear the caches, then check your space.
[Hero CDMA Android Development] tkirton:
Okay...it's up, but I'm not sure it works since I lost adb. I'll fix that and see if it works.

EDIT: A2SD works...everything else still untested - http://www.darktremor.info/files/2.1/2.1-ruu-a2sd-signed.zip
[Hero CDMA Android Development] posguy99:
Surely it's just that I'm missing something... but is this really supposed to leave /system mounted read-write these days?
[Hero CDMA Android Development] lmsomb:
Re: [APP] Darktremor A2SD (Apps2SD) version 2.7 final beta 10 (05/14/2010)

The latest update worked for me... I downloaded the version that doesn't move the cache to the sd card... I then activated it trough adb and it worked! Finally >120mb free

-------------------------------------

Sent via the XDA Tapatalk App
[Hero CDMA Android Development] tkirton:
I manually mount everything...I don't trust the OS.
[Hero CDMA Android Development] nfinitefx45:
Where is it posted at tkirton? I will test it out once downloaded.

never mind , I found your new post, will be flashing it in a few!!

Thanks
[Hero CDMA Android Development] posguy99:
Yes, but does /system need to still be read-write at the end of it? Don't even need something like Root Explorer to really screw things up after that.
[Hero CDMA Android Development] tkirton:
I wasn't sure...that's why I didn't remount to read only. I wasn't sure if I would break something else trying that.

But, everything is a learning experience, so I'll do further testing on it.

EDIT: It appears not to break anything. I put in code to switch it back to read-only after the program was complete. It is in 2.7 final.
[Hero CDMA Android Development] tkirton:
Darktremor A2SD version 2.7 goes FINAL (2010-05-16)

My goal to get this version into a released state has been met. The final version of Darktremor A2SD version 2.7 is now available.

Since the version is now officially out, any bug fixes will be under update versions.

Version 2.8 will be at work as well. This will be alpha code for now, as some of what I am proposing for this version I'm not sure can be done or are efficient to do.

Some of the things I have planned for version 2.8:

1. Move Dalvik-Cache to /cache. That partition is as big as /data and usually sits empty. Give the user the option to move dalvik-cache to SD, Internal storage, or cache storage

2. GUI - Since I'm not proficient in Java, I'll have to look for someone to do this for me...or learn it myself.

3. Move /data/data to SD card...this one looks like it has been tried before, since there are code to move it back. But I want to see if it would work. Of course, the user would need a class 6 card for this.

4. Detect speed of SD card...not sure if this can be done.

5. Optimize the code further.

Some of these may make it...others probably won't. Still others I haven't thought of may still show up later.

But, until then, enjoy version 2.7.
[Hero CDMA Android Development] gizmosears:
Just came from beta 10 to the final. And I had the dalvik on my sdcard. When I flashed 2.7 final and rebooted everything kept force closing. Did a restore and is fine. Just wondering if I would have to do a dalvik wipe first?
[Hero CDMA Android Development] posguy99:
Since Flipz says you special-created a copy of beta 7 for him that went into FreshROM 2.1.1, will this go over the top of that with no problems?

I'll try it anyway, of course, but it never hurts to go to the horse's mouth.
[Hero CDMA Android Development] tkirton:
When you have force closes, it's recommended to do a dalvik-wipe. You can type /system/bin/a2sd resetcache and it will do it for you. That's when you are switching from one version to another.

If you did what I just did and switched between nandroid backups of different roms, then I ended up wiping everything and then doing a nandroid restore.
[Hero CDMA Android Development] tkirton:
His beta 7 code became the code for beta 8 through 10 and the final. There's no reason it shouldn't just go other the top of the one Flipz has.
[Hero CDMA Android Development] posguy99:
Cool. Now to look at this and see about removing the bash-isms.

Edit: No, Fresh 2.1.1 doesn't like it, it complains about read-only databases in logcat. I'll do a capture in a bit.
[Hero CDMA Android Development] tkirton:
I just flashed 2.1.1 and 2.7 final. Didn't get the same issue. It booted all the way for me.
[Hero CDMA Android Development] regaw_leinad:
well, on the final, I get this when doing a check, or any other action:

C:\ANDROID>adb shell a2sd check
Starting Darktremor A2SD version 2.7
[ ] Mounting /system as read-write
[ ] Mounting /data as read-write
[ ] Starting A2SD in check mode
[ ] Running A2SD Check Program.
[ ] Searching for Mount Point...
[!] Mount point found..no further action required.
[ ] 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
===============================================================
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 not present.
[!] Swap does not start.

ZipAlign -
[*] Running at boot.

Property Patch - Property found.
cm.filesystem.ready or dc.filesystem.ready

[*] Boot image init.rc patched.

[ ] Cleaning up...
mount: mounting /dev/block/mtdblock5 on /data failed: Device or resource busy

notice the

mount: mounting /dev/block/mtdblock5 on /data failed: Device or resource busy

Normal???
[Hero CDMA Android Development] tkirton:
It's remounting the /data directory to read-only. Though not normal per se, it leaves the /data partition in read-write mode (same as when it was in beta).

Doesn't hurt anything.

EDIT: 2.7 Update 1 is out...it puts the partitions back to read-write after completion. This is the same behavior as in the betas.
[Hero CDMA Android Development] posguy99:
It *boots*. But logcat is (at least here) full of sqlite errors about read-only databases that don't occur if you revert to beta 7.
[Hero CDMA Android Development] tkirton:
I'm putting it back in read-write mode. If someone decides to delete things off their phone because they aren't paying attention, that's not my problem. I'm not a babysitter for everyone...my job is to make sure this works as seamless as possible with the roms.
[Hero CDMA Android Development] tkirton:
Darktremor A2SD 2.7 Update 1

2.7 Update 1 is out...all this release does is leaves the /system and /data partitions in read-write as opposed to resetting them to read-only. This seems to alleviate the force close issues.
[Hero CDMA Android Development] rodigezstyle:
@tkirton

little OT

some solution to relocate the market to SD like in your Tut but manual..? tell me please the file i have to edit !!! to fix a cooking broken rom...

Please... I´m going crazy with this Market Problem...

for HTC Legend 2.1
[Hero CDMA Android Development] tkirton:
I try to relocate it away from the SD (there no reason it should be there...it is a core application and needs to be in /system/app).

Here's my steps to put it in its correct place (this is based on the rom already flashed to your phone):

1. Grab the Vending.apk from my A2SD zip file (get the final version or the Update 1 version). It is located in the /data/a2sd directory. In a terminal, change to that directory that has the Vending.apk file you just extracted.

2. Type adb remount

3. Enter the phone by typing adb shell

4. Type cd /system/sd/app

5. Type ls -l, Look for a file called com.android.vending.apk. Delete it by typing rm com.android.vending.apk

6. Type cd /system/app.

7. Type ls -l Vending.apk, See if the file displays in the ls listing. If it does, delete it by typing rm Vending.apk

8. Type cd /data/data/com.android.vending/cache

9. Clear the Market cache by typing rm *

10. Exit the shell, then type adb push Vending.apk /system/bin

11. Make sure the Vending.apk has the proper permissions by typing adb shell "chmod 755 /system/app/Vending.apk"

That should fix your broken Market issue manually. If you want to fix it automatically and you have the final version of A2SD 2.7, you can simply type a2sd fixmarket.
[Hero CDMA Android Development] rodigezstyle:
ok Thank you very much i´m done with and i go testing now Thank´s again !!!

*edit*

Market not on the phone ??? i can´t find it

i do all your steps any idear ???
[Hero CDMA Android Development] rodigezstyle:
adb shell "chmod 755 /system/app/Vending.apk" is right ?
[Hero CDMA Android Development] anderson620:
Problems after upgrading...

I upgraded to the latest version listed above and after flashing and moving dalvik back to internal (lots of fc's) I have 75.33 mb internal. After running a2sd check everything seems to be working, at least there were no (X) 's listed. I've restored and reflashed but same thing. Also, everything is so slow suddenly that Tue phone cannot keep up while typing. I'm using the stock SD card, FYI. Any help would be great. Also, I'm running evil Eris 2.0.1. Thanks!
[Hero CDMA Android Development] xxxk15:
I got done with that tried to upgrade from Ext2 to Ext3 and it says "Error : Run 'fs ext3 via adb!" does anyone know what this means
[Hero CDMA Android Development] xxxk15:
I got done with that tried to upgrade from Ext2 to Ext3 and it says "Error : Run 'fs ext3 via adb!" does anyone know what this means? or know what i am doing wrong??
[Hero CDMA Android Development] posguy99:
Means what it says. Go to an adb shell and run that command.
[Hero CDMA Android Development] xxxk15:
ok i just put it on and now when i go into phone storage it only has 68mb shouldnt it have 512mb like i set it??and also my phone seems more laggy than it was before
[Hero CDMA Android Development] xxxk15:
well i had a2sd on my sd card and i formatted it. it shut off i put in my other sd card and nandroid restored it. I tried to partition my sd card again it worked then i upgraded my ext2 to ext3 and i flashed the a2sd then it rebootes and it gets to the black screen back to the HTC Screen over and over again. Instead of trying to repartition my sd card there is a a place that says repair :ext Should i try that?? or if anyone knows anything i can try it would be appreciated.
[Hero CDMA Android Development] tkirton:
Yes, that is correct.
[Hero CDMA Android Development] tkirton:
Make sure you are using Update 1...the 2.7 Final resets the /system and /data partitions back to read-only, which seems to cause a lot of force closes (it didn't do it in testing, but post-testing, I had a rom that did the same thing. Applied 2.7 update 1 and that stopped the force closing.

What you may do is wipe everything, restore your nandroid backup (seems to work for one rom I was on) and run the restore before you flash A2SD (this makes sure dalvik-cache is built all the way). Then flash the Update 1 version from recovery and try again.

If you still have issues after those steps, I'll see if I can track the issue for you.
[Hero CDMA Android Development] tkirton:
You have an issue with your EXT2 partition. Run the option "Repair EXT partition", then try to upgrade again.
[Hero CDMA Android Development] tkirton:
Phone storage and SD ext storage are two completely different things.

Type a2sd check and see if it says you need to fix something. If you do, run a2sd repair.

Also, when doing the check, look to see if your Apps and App-Private is being stored on your SD card (it will tell you it is stored on SD card or stored on Int. Storage). If it says Int. Storage, you can reboot and see if it picks up.

If you have at least a class 4 (recommend a class 6) sd card, you can type a2sd cache to move the dalvik-cache to the SD card. That will free up more space on the Internal Storage (phone storage).
[Hero CDMA Android Development] tkirton:
Wait, you set up A2SD on one SD card, then you removed it without running a2sd remove and replaced it with another SD card? Was a2sd active when you did the nandroid backup? If so, all the pointers are off. If the phone continues to boot loop, go into the phone via adb shell and type a2sd repair. Then restart the phone by typing restart. See if that helps. If not, go back into the phone and type a2sd check and sent it to me via PM.
[Hero CDMA Android Development] xxxk15:
. i got it to run when using repair ext: ..so i should type in a2sd check into the command propt and see if it is running off my sd card or my internal storage?? because when i download apps my internal storage goes down.