[Q] converting a stock hboot rom to cm7r2 - Desire Q&A, Help & Troubleshooting

Hi All,
I am attempting to edit leedroid final 2.5 to fit inside a cm7r2 hboot.
I have updated the updater-script and the unpacking of the zip works correctly.
I have symlinked /system/app to /sd-ext/app_s
I have confirmed the presence of apps on my sd-ext partition by checking using adb shell whilst in recovery.
The system size is less than 125MB.
I feel like i am missing something, the rom gets to the end of the the android boot animation and then falls into a loop.
My best guess is that it is related to the smaller cache partition on the cm7r2 hboot.
I can provide logcat prints if anyone has time to help or advise. (i am attempting to learn!)
Cheers

alexs1mmo said:
Hi All,
I am attempting to edit leedroid final 2.5 to fit inside a cm7r2 hboot.
I have updated the updater-script and the unpacking of the zip works correctly.
I have symlinked /system/app to /sd-ext/app_s
I have confirmed the presence of apps on my sd-ext partition by checking using adb shell whilst in recovery.
The system size is less than 125MB.
I feel like i am missing something, the rom gets to the end of the the android boot animation and then falls into a loop.
My best guess is that it is related to the smaller cache partition on the cm7r2 hboot.
I can provide logcat prints if anyone has time to help or advise. (i am attempting to learn!)
Cheers
Click to expand...
Click to collapse
I believe it is supposed to be that you symlink sd-ext/app_s to system/app and not the other way around. Also did you set permissions for sd-ext/app_s?
Sent from my Full Android on Bravo using Tapatalk

Hi,
Cheers for the reply.
I did symlink that /sd-ext/app_s to /system/app that way round and set permissions correctly.
I looked through leedroid 3 HD updater-script to make sure I had these correct.
Still no luck
Cheers
Sent from my HTC Desire using XDA App

did you mount sd ext in init.d?

Yeah, the original rom uses a2sd anyway so that should mean that it is already mounted?
Cheers
Sent from my HTC Desire using XDA App

Related

Cannot view SD EXT

Hi
I have rooted my phone with unrevoked, s-off'ed with alpha rev 1.8, partitioned 1gb of my 4 gb card to ext 3 and installed Gingerbread F1 V3 Ap2SD ENG.
On first load of the rom i can see that my SD card FAT 32 storage has been reduced but the only other memory internal memory which was at 147mb when i first booted the rom.
All apps are installing to the internal memory by default with only the option of moving to the SD FAT 32 partition. and there is no option to move to the sd ext3 part as there is no option - so I have lost 1gb off my sd card.
What have i done wrong?
on a 2nd note i appear to have a call delay when answering the phone my radio version is 32.49.00.32U_5.11.05.27 - do i need to update this ? will it solve the problem ? my carrier is vodafone UK.
appreciate the help
ararararar... Sorry had to do something.
This has been explained SO many times by me included. The way a2sd works is by symlinking the folder containing the apps(/data/app) to you ext-partition.
You cannot see this partition listed in the system info, as the partition is not supposed to be there. The system have no way of knowing that you are using an ext-partition, as it just installs apps to /data/app, however as it's symlinked to ext, they are actually being placed in sd-ext/app.
This means that you will only see you internal memory, but it still works. Your apps will just take up less space on internal, as the apk file is placed on the ext-partition. They will still take up some space for data and dalvik cache.
edit: bonus info. Install "quick system info" or "titanium backup" from the market to see the size of your ext-partition in those apps.
edit2: and if i did not make my self clear. The partition-size info in the system settings is not supposed to be a partition manager. It's written to be userfriendly, and it only provides the regular user with the partitions they should care about(/data and /sd-card). If you want a detailed view of all your partition(and there is more than a few) go get root explorer. It'll let you play around with all the partitions mounted.(you won't have access to recovery, bootloader and so on from here)
Ok thanks. I'm new to this and there's so much info to take in
With regards to the radio is there a simple way of flashing as I have alpha rev installed the method via recovery wont work. I see alot of people talking about doing this through a terminal but I could not find a comprehensive guide for this like the xda root guide. Thanks.
Darren
Sent from my HTC Desire using XDA App
Well i take it that your cache partition is too small(this is why people using alpharev cm hboot cannot use recovery for this). In that case you have already flashed another hboot(using "fastboot flash hboot hboot.img") if you haven't done this, you cache-partition should not be too small, and the recovery method should be able to do this just fine. If you have done this, use the same command to flash the radio eg "fastboot flash radio radio.img"
Either way it is very unlikely to fix your call delay(read: it won't fix your problem, as it's got nothing to do with the radio). It's a problem caused by some incompatibility between the htc libs and GB. It's quite common on GB roms apparently. Wait for HTC to release the real GB update, and we might very well be able to solve this problem.
dazzr123 said:
Ok thanks. I'm new to this and there's so much info to take in
With regards to the radio is there a simple way of flashing as I have alpha rev installed the method via recovery wont work. I see alot of people talking about doing this through a terminal but I could not find a comprehensive guide for this like the xda root guide. Thanks.
Darren
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Install android sdk:
http://wiki.cyanogenmod.com/wiki/Howto:_Install_the_Android_SDK
Copy the downloaded radio.img to e.g. partition C: on your computer (if you downloaded a zip, extract the radio.img from there). Check the md5sum!!!
Boot your into fastboot mode (start it with pressed back and power button) and connect your phone to your computer.
Now open command prompt on your computer and type
Code:
fastboot devices
It should list your device now. If it does, type
Code:
fastboot flash radio C:\radio.img
(in case your radio.img was copied to C: ).
Now, observe the computer and be patient TOUCH NOTHING!!
The process will copy the image to your phone, write the image to the radio partition and perform some magic be patient TOUCH NOTHING!!
Watch the little indicator at the top of your phone screen.
Once the process appears to finish (it may not say complete) wait a further FULL 60 SECONDS and be patient TOUCH NOTHING!!
Then, and only then, reboot your phone.
Click to expand...
Click to collapse
A nice guide about adb/fastboot can you find here:
http://androidforums.com/desire-all...fastboot-windows-updated-1st-june-2011-a.html
Flashing radio is a risky thing. Because if there something is wrong, your phone won't be more than a paperweight.

[PATCH] serious bug in LeeDroids automatic zipalignment

Hi!
I found a serious bug in LeeDroids automatic zipalignment that potentially damages installed apk files:
The 97zipalign script does not check the return code of zipalign.
So if aligning fails for some reason, the damaged result is used and copied back to /data/app!
This happens for example, if there is not enough free space on /cache.
For Data++ users, /cache is only 5 MB, which is insufficient for quite a few bigger apps like Documents To Go, Angry Birds, Viber or Camscanner!!!
Those apps will be corrupted after the first reboot, causing them to disappear from the laucher!
But also on non-Data++ installations /cache could be full or there could be other reasons for zipalign to fail.
I have added two fixes for that problem:
zipalign-fix.zip contains a patched version, that skips overwriting the original .apk file if zipaligning failed. (The diff is also included.)
cache2sd contains an initscript that bind-mounts /cache to /system/sd/cache. This is necessary for zipalign to work on Data++ installations.
Cheers,
leo
P.S.: I know that this post would better fit to the devel forum but unfortunately I am not allowed to post there... :-(
Hmm, I'm on data++ with a cache of only 5mb. I never get a problem with automatic zipalign, even with big apps like angry birds. In leedroid ROMs the cache is moved to a ramdisk with a few changes in init.rc.
Edit: posted a link to this thread in the leedroid 3.3.x thread...
Sent from my HTC Desire using XDA App
anderl78 said:
Hmm, I'm on data++ with a cache of only 5mb. I never get a problem with automatic zipalign, even with big apps like angry birds. In leedroid ROMs the cache is moved to a ramdisk with a few changes in init.rc.
Edit: posted a link to this thread in the leedroid 3.3.x thread...
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Maybe, however, I've seen a couple of users complaining of missing apps, and their problem being solved by removing the zipalign script, as far as I remember.
It happens on other ROMs too, gonna post the link in related thread. Thanks, I had that issue a couple of times and the only way out was to erase zipalign.
el.mariachi said:
Hi!
***
* zipalign-fix.zip contains a patched version, that skips overwriting the original .apk file if zipaligning failed. (The diff is also included.)
* cache2sd contains an initscript that bind-mounts /cache to /system/sd/cache. This is necessary for zipalign to work on Data++ installations.
Click to expand...
Click to collapse
Please advise:
1. If one has Data++, does one flash zipalign-fix followed by cache2sd, without rebooting in between?
2. Is cache2sd necessary for roms which have ramdisk for cache\ like LeeDroid?
Thank you!
s300pmu1 said:
2. Is cache2sd necessary for roms which have ramdisk for cache\ like LeeDroid?
Thank you!
Click to expand...
Click to collapse
Could it perhaps work on other roms which don't have a ramdisk?
s300pmu1 said:
Please advise:
1. If one has Data++, does one flash zipalign-fix followed by cache2sd, without rebooting in between?
2. Is cache2sd necessary for roms which have ramdisk for cache\ like LeeDroid?
Thank you!
Click to expand...
Click to collapse
Hello!
1. Both zip-files are not flashable. They contain the scripts. If you want to use them, you have to use root explorer... Setting the right permissions should be necessary too...
2. I don't know exactly, but I think not. Init.rc should be executed early enough to prevent us from the described problem. But that's only my guess, could not say exactly - perhaps somebody other know more? If its not as I guess, why my angry birds get zipaligned without problem? ;-)
Sent from my HTC Desire using XDA App
anderl78 said:
Hmm, I'm on data++ with a cache of only 5mb. I never get a problem with automatic zipalign, even with big apps like angry birds. In leedroid ROMs the cache is moved to a ramdisk with a few changes in init.rc.
Click to expand...
Click to collapse
On my LeeDroid V3.3.3 R5, /cache doesn't reside on a ramdisk:
Code:
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev,noatime,nodiratime)
I think you are mixing this up with /app-cache, which in fact is a ramdisk...
Maybe you remounted /cache yourself and that's why large apps don't cause a problem on your installation.
Or maybe your angrybirds version is already zipaligned, so the zipalign check
Code:
zipalign -c 4 "$apk"
will return true (0) and the if clause won't be executed...
btw every app from the market should be zipaligned...even when i built some android apps with ecplise, the exported apk is already zipalign
why someone should create a non zip aligned apk? maybe some themed app from a bad dev? some framework apk from the uot kitchen??
el.mariachi said:
On my LeeDroid V3.3.3 R5, /cache doesn't reside on a ramdisk:
Code:
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev,noatime,nodiratime)
I think you are mixing this up with /app-cache, which in fact is a ramdisk...
Maybe you remounted /cache yourself and that's why large apps don't cause a problem on your installation.
Or maybe your angrybirds version is already zipaligned, so the zipalign check
Code:
zipalign -c 4 "$apk"
will return true (0) and the if clause won't be executed...
Click to expand...
Click to collapse
Hello!
Angry birds is from market...
App cache is right, I'm talking from a other thing.
I looked into it a lil bit. The code in init.rc moves the market download (download cache) to a ramdisk - Nothing more.
The 97zipalign script uses /cache to do its work.
Cause of this, I think you are totaly right. The download cache doesn't affect /cache itself. The space there could be to low. If /cache is to low, zipalign could fail. The error caused by this (you described it in op) could end in unusable app...
I could only say, thanks for this! I will try the scripts, even if I have no problems here.
Sent from my HTC Desire using XDA App
andQlimax said:
btw every app from the market should be zipaligned...even when i built some android apps with ecplise, the exported apk is already zipalign
why someone should create a non zip aligned apk? maybe some themed app from a bad dev? some framework apk from the uot kitchen??
Click to expand...
Click to collapse
Yep, but a few user reported issues with installed apps after a restart. Removing the zipalign script cured it. No comment about devs and not zipaligned apps ;-)
Sent from my HTC Desire using XDA App
Just tested it, works as it should.
Is it ok for you, if I post a flashable zip?
Sent from my HTC Desire using XDA App
anderl78 said:
Just tested it, works as it should.
Is it ok for you, if I post a flashable zip?
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
This would be great if we can have flashable zip. I know I am facing the problems with few of the apps I installed and they will disappear once rebooted.
Looking forward for the flashable zip files to install them on my desire.
anderl78 said:
Just tested it, works as it should.
Click to expand...
Click to collapse
Glad to hear that.
anderl78 said:
Is it ok for you, if I post a flashable zip?
Click to expand...
Click to collapse
Yes, of course. Feel free to create a zip!
Thanks,
leo
el.mariachi said:
Hi!
I found a serious bug in LeeDroids automatic zipalignment that potentially damages installed apk files:
The 97zipalign script does not check the return code of zipalign.
So if aligning fails for some reason, the damaged result is used and copied back to /data/app!
This happens for example, if there is not enough free space on /cache.
For Data++ users, /cache is only 5 MB, which is insufficient for quite a few bigger apps like Documents To Go, Angry Birds, Viber or Camscanner!!!
Those apps will be corrupted after the first reboot, causing them to disappear from the laucher!
But also on non-Data++ installations /cache could be full or there could be other reasons for zipalign to fail.
I have added two fixes for that problem:
zipalign-fix.zip contains a patched version, that skips overwriting the original .apk file if zipaligning failed. (The diff is also included.)
cache2sd contains an initscript that bind-mounts /cache to /system/sd/cache. This is necessary for zipalign to work on Data++ installations.
Cheers,
leo
P.S.: I know that this post would better fit to the devel forum but unfortunately I am not allowed to post there... :-(
Click to expand...
Click to collapse
Would you kindaly take a look at the ACEMOD007 Rom please, it also suffers from the same bug.. but im not a 100% sure what to change.
I also think where /system/sd is the SD CARD, on ACEMOD its on /SDCARD
It was driving me nuts Apps vanishing, until i saw this post
thanks.
flashable zipfile
flashable zipfile containing the fixed zipalign-script and the new cache2sdext-script. Simple flash it in recovery
thanks to el.mariachi for this!
Thanks. Works like a charm
Problem here!
Zipaligning com...apk FAILED (rc:1)
darkpain said:
Problem here!
Zipaligning com...apk FAILED (rc:1)
Click to expand...
Click to collapse
This is, of course, not a problem of the zipalign script.
com...apk is, according to the garbled filename, most likely not a valid apk file and thus zipalign will fail when trying to process it.
The only difference to the old zipalign is that the error is now detected. The old script just silently ignored the return code.
Cheers,
leo
Thanks so much for this! I was going crazy as my installation of Swype would vanish every time I rebooted my phone... flashing this has solved the problem.

[Q] install apk to sd-ext

hi guys,
i would just like to ask if it is possible to install apk and will automatically moved to sd-ext and not on data\app?
i'm currently on aurora v4.1. Any ideas? Thanks!
The Rom thread says it you need an ext for a2SD so this should already be happening
Sent from my HTC Desire using xda premium
jhannbernas said:
hi guys,
i would just like to ask if it is possible to install apk and will automatically moved to sd-ext and not on data\app?
i'm currently on aurora v4.1. Any ideas? Thanks!
Click to expand...
Click to collapse
It is already on your sd-ext. Check sd-ext/app
thanks for your replies...
i think i got a problem here...
i tried to install an apk (download from pc and transfer to phone and then install) but when i visit the /data/app the apk i install was there.. and when i also visit the /sd-ext/app it was also there with the same size on what is in /data/app..
anyone can help me? do i need to flash some add-ons to make it automatically installed on /sd-ext? i just want to install apps which is automatically installed on /sd-ext and not mind the size of my /data.. what i'm i done wrong??
my details:
ROM: Aurora v4.1
16GB microsd card
sd-ext: 1GB ext4
sdcard is the rest
hboot: cm7/r2
partition via gparted
Thanks!
Not sure about that, Maybe an issue or duplication in the scriopt? Would only expect to see it in one or the other. May be best asking this in teh rom thread to be honest.
I think it's more likely that he's missing the symlink. Do an ls -l, to see the symlink
Droidzone said:
I think it's more likely that he's missing the symlink. Do an ls -l, to see the symlink
Click to expand...
Click to collapse
thanks sir. sorry but what is symlink? where can i do that?
jhannbernas said:
thanks for your replies...
i think i got a problem here...
i tried to install an apk (download from pc and transfer to phone and then install) but when i visit the /data/app the apk i install was there.. and when i also visit the /sd-ext/app it was also there with the same size on what is in /data/app..
anyone can help me? do i need to flash some add-ons to make it automatically installed on /sd-ext? i just want to install apps which is automatically installed on /sd-ext and not mind the size of my /data.. what i'm i done wrong??
my details:
ROM: Aurora v4.1
16GB microsd card
sd-ext: 1GB ext4
sdcard is the rest
hboot: cm7/r2
partition via gparted
Thanks!
Click to expand...
Click to collapse
That just means a2sd is working. The reason you are seeing the app in both data/app and sd-ext/app is because the sd-ext/app folder is symlinked to data/app. In short, what you are seeing in data/app are actually the files in sd-ext/app. Hence, the similar data size of the app.
Sent from my HTC Original Desire using Tapatalk
itachi1706 said:
That just means a2sd is working. The reason you are seeing the app in both data/app and sd-ext/app is because the sd-ext/app folder is symlinked to data/app. In short, what you are seeing in data/app are actually the files in sd-ext/app. Hence, the similar data size of the app.
Sent from my HTC Original Desire using Tapatalk
Click to expand...
Click to collapse
thanks. i got much clearer vision on it.
Ooooh. I thought you said sd-ext/app and sd-ext/data/app.
Silly me
Sent from my HTC Desire using xda premium
so this symlink thing will still occupy space on the data? am i right? thanks!
No. Its symlinked to sd-ext so thats where the space is taken up, however if you browse to /data/app, you can still see the file, even though its on /sd-ext/app
Thats what Symlinking is. Symbolic link. As far as android is concerned, the app will only run from /data/app so it must appear to be in /data/app
rootSU said:
No. Its symlinked to sd-ext so thats where the space is taken up, however if you browse to /data/app, you can still see the file, even though its on /sd-ext/app
Thats what Symlinking is. Symbolic link. As far as android is concerned, the app will only run from /data/app so it must appear to be in /data/app
Click to expand...
Click to collapse
thanks for the brief explanation but i don't understand why my /data size is decreasing as well when i install my app even the app go directly to /sd-ext/data..
Because some app-data is still stored in internal memory. That's how it is. The only thing to "solve" this is using a data2sd rom, which moves completely everthing from internal /data partition to a sd-ext partition.
MatDrOiD said:
Because some app-data is still stored in internal memory. That's how it is. The only thing to "solve" this is using a data2sd rom, which moves completely everthing from internal /data partition to a sd-ext partition.
Click to expand...
Click to collapse
thanks for the advise. i really consider that option.
just to add up, is data2sd different from data2ext?
jhannbernas said:
thanks for the advise. i really consider that option.
just to add up, is data2sd different from data2ext?
Click to expand...
Click to collapse
yes its better
ooppss. my bad.. i really forgot the other thread. please disregard.
Don't ask a question two times:
http://forum.xda-developers.com/showthread.php?t=1320341
how do I symlink an apk that is already installed in data\app
i don't want to use apps like link2sd

[Q] How to know Data++ is working?

Hi,
I have just flash my desire with Revolution 3.0 ROM.
before that i made the partition on ext4 using Gparted.
I have checked using this info:
D. How to check if it worked?
To check whether A2SD is working once you've flashed your ROM,
1)Download Quick System Info from the Market, and check under A2SD Storage, it should give you enough informations.
2)download the Android Terminal Emulator app from the market and use the following commands
Code:
su
ls -l /data
You should see your app directory pointing to /system/sd/app and app-private pointing to /system/sd/app-private (courtesy of ikkokusenkin)
Click to expand...
Click to collapse
From here: http://forum.xda-developers.com/showpost.php?p=7279872&postcount=3
On the Quick System Info, it shows A2SD Storage with a total 1,95Gb and 1.49Gb free. So i think that is ok.
But, on the terminal, it shows the app directory pointing to /system/sd/app but the app-private does not point to the sd.
Is that normal?
Do i need to worry about the app-private redirection?
Thanks
Hello!
That's ok. You are able to access the content of the SD-ext partition with /system/sd/
The /app-private folder is originally located in /data. But usually it is moved to SD-ext too - but this is a thing the ROM-developer can change like he wants. I think, it would be a good idea to ask him to this.
You don't need to be worried about this. Apps which are located there are simply stored completely in NAND.
Sent from my An-Droid loaded Desire
anderl78 said:
Hello!
That's ok. You are able to access the content of the SD-ext partition with /system/sd/
The /app-private folder is originally located in /data. But usually it is moved to SD-ext too - but this is a thing the ROM-developer can change like he wants. I think, it would be a good idea to ask him to this.
You don't need to be worried about this. Apps which are located there are simply stored completely in NAND.
Sent from my An-Droid loaded Desire
Click to expand...
Click to collapse
Thanks, after a while and after reading a lot i realise that i didnĀ“t change the hboot into Data++ and that is a requirement for the revolution 3.0 version.
So now i am updating the radio, updating the hboot and after i will flash the rom again.
So thats the reason that the rom is not working properly.
I will update this if something goes wrong.

[Q] about hboot and m2sd

Hi. I wanted to know about hboot. Where can I download custom hboots? And what is the maximum size for system partition without having problems? And sorry to have another question. I know that new version of mounts2sd released. But I tried them on some of android versions. On some of them mounts2sd mtd and on some of them mounts2sd ext4 works.is there an aroma edition from this new version to work on all roms?
Sent from my HTC Desire using xda app-developers app
You can download hboots from here: alpharev.nl. Check the table.
The system partition doesn't need to be that big. The biggest ROMs are Sense ROMs, that easily fit in the fatsys hboot, the one with the largest system partition, that nobody uses . You don't need bigger systems than that.
thanks for your respond.I know alpharev hboots.I meant custom hboots created from users with different cache,system and data partitions size. I use very mods like sony walkman,widgets from other devices that needed to be placed manually in system/app and flashable ones. because of this I need a bigger system partition size than 250mb. do you know anything about m2sd? all I want is m2sd to work with all of the roms and aroma version to configure that from recovery,but all that exists is m2sd 4.6.2 (old version)
siavash2death said:
thanks for your respond.I know alpharev hboots.I meant custom hboots created from users with different cache,system and data partitions size. I use very mods like sony walkman,widgets from other devices that needed to be placed manually in system/app and flashable ones. because of this I need a bigger system partition size than 250mb. do you know anything about m2sd? all I want is m2sd to work with all of the roms and aroma version to configure that from recovery,but all that exists is m2sd 4.6.2 (old version)
Click to expand...
Click to collapse
hboots in my sig.(they not over 250mb system but they handy to have) what size hboot do u need coz i can make u 1
jmcclue said:
hboots in my sig.(they not over 250mb system but they handy to have) what size hboot do u need coz i can make u 1
Click to expand...
Click to collapse
Thanks.I downloaded a zip from forum that allows to create custom hboot. However I need someone like you to create a safe and without problem hboot. Please make an hboot with maximum possible system partition size. Thank you so much.:thumbup:
Sent from my HTC Desire using xda app-developers app
siavash2death said:
Thanks.I downloaded a zip from forum that allows to create custom hboot. However I need someone like you to create a safe and without problem hboot. Please make an hboot with maximum possible system partition size. Thank you so much.:thumbup:
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
ur phones total memory is 437mb and that gets split into 3 partitions, system - cache - data (internal)
u obviously need some data memory so how much do u need in system ?
edit : i made some hboots + PB99IMG of them, all have md5 so make sure u check them before u use them, also i didnt test them coz i cant, phone is dead so use at ur own risk. the highest one is 350mb system

Categories

Resources