Why does desire builds take so much space - HD2 Android Q&A, Help & Troubleshooting and Genera

http://www.htc.com/www/product/desire/specification.html
ROM: 512 MB
Click to expand...
Click to collapse
http://www.htc.com/www/product/hd2/specification.html
ROM: 512 MB
Click to expand...
Click to collapse
Euro HD2 have same size of storage than Desire. Then how can we have such small amount of free storage after installing? Or desire also have only 180MB free after install? That sounds a bit too small for real android device.
What am i missing here?

Part of the problem is that "devs" are de-odexing apks and jars. While it's true that the system image is larger with the odexes (roughly about 20 MB), that space is soon used up, but on /data when the build first-boots and creates the dalvik-caches for system files (which don't need to be created in builds that are pre-odexed).
I'll give you an example. framework.jar (in /system/framework) is around 2.5-3 MB on a de-odexed system. The classes.dex inside it gets uncompressed to dalvik-cache, and uses an addiional 6 MB, for a total file of 8.5-9 MB.
On a regular, odexed system, framework.jar is around 30kb (since it doesn't contain a classes.dex inside) and the respective odex uses up 6 MB (and since it's already an odex, it doesn't have to be uncompressed to dalvik-cache). Total size for framework: 6.03 MB.
Now, for your question. Original desire builds are odexed, so they're about 20-40 MB smaller on a shipped device. You get about 220 MB free on a stock Desire.
On top of the de-odexing, something that costs space is that the devs write larger partition than necessary, but you can fix this when you flash your build by editing the flash.cfg and writing smaller partitions for all but userdata (that way you have more space available for apps), here's what I use:
Code:
boot ya|boot|ro filesize boot.img
system ya filesize system.img
cache ya 3M
userdata ya|asize|hr allsize
cache might be unnecessary now since 2.2. It's used for OTA updates (we don't care about those) and market cache, but since 2.2 market downloads are cached on SD if there's no space on cache, so that might be another 3 MB you can get back.
Plus my personal build is odexed, so I have (on TMOUS HD2) ~800 MB free on first boot.

jubeh said:
Part of the problem is that "devs" are de-odexing apks and jars. While it's true that the system image is larger with the odexes (roughly about 20 MB), that space is soon used up, but on /data when the build first-boots and creates the dalvik-caches for system files (which don't need to be created in builds that are pre-odexed).
I'll give you an example. framework.jar (in /system/framework) is around 2.5-3 MB on a de-odexed system. The classes.dex inside it gets uncompressed to dalvik-cache, and uses an addiional 6 MB, for a total file of 8.5-9 MB.
On a regular, odexed system, framework.jar is around 30kb (since it doesn't contain a classes.dex inside) and the respective odex uses up 6 MB (and since it's already an odex, it doesn't have to be uncompressed to dalvik-cache). Total size for framework: 6.03 MB.
Now, for your question. Original desire builds are odexed, so they're about 20-40 MB smaller on a shipped device. You get about 220 MB free on a stock Desire.
On top of the de-odexing, something that costs space is that the devs write larger partition than necessary, but you can fix this when you flash your build by editing the flash.cfg and writing smaller partitions for all but userdata (that way you have more space available for apps), here's what I use:
Code:
boot ya|boot|ro filesize boot.img
system ya filesize system.img
cache ya 3M
userdata ya|asize|hr allsize
cache might be unnecessary now since 2.2. It's used for OTA updates (we don't care about those) and market cache, but since 2.2 market downloads are cached on SD if there's no space on cache, so that might be another 3 MB you can get back.
Plus my personal build is odexed, so I have (on TMOUS HD2) ~800 MB free on first boot.
Click to expand...
Click to collapse
Might I ask what build you're using with 800Mb free?

Wow, thanks for the explanation. So what are the pros of de-odexed builds?

I will ask that here instead of starting new thread:
Is there a way to change treshold for "Low Disk Space" error message? According to the DiskSpace application, i have around 50MB of the free space, which is quite a lot when max is 180. But still i got Low Disk Space and i can't install any applications.
Friend have real Desire with 20MB of free space and he don't have that message.

Related

[Q] Possible to make 512 Rom 1024 Rom?

I have a TMOUS HD2 1024 from the US go live release (red reset button). I have been using various Android builds for a few weeks now and love the MDJ's CyanogenMod 7 v2.2 (11 JAN). My question is this:
If I use one of the builds made specifically for the 1024 ROM will I see better response times? I know they are compatable since I am already using a 512 but more importantly would there be any benefit using a ROM designed for the 1024?
If there is a differnece is there a way to modify this build so it takes advantage of the full 1024 ROM? I have seen discussion related to changing the size of some spicific files that modify storage sizes but am very novice to phone edits and quite cautious. Any help would be welcomed and if this has already been discussed a simple link would be most appriciated.
With 1024MB ROM, there are no advantages in terms of speed performance.
However, you do get space advantages.
If you flash a 350MB ROM, 350MB is being used by the system partition, a small amount is used by the boot partition and cache, then the rest are all userdata partition, which gives you around 500MB free space to install apps and store user data. (SMS, etc)
People with 512MB ROM, 350MB is being used by system partition, minus boot, cache, you have like around 50MB to 100MB left which isn't much for apps and user data. Which is why they need to use A2SD+ or DATA2EXT or similar methods of increasing userdata storage.
Try using Clockwork Recovery. You will have ALOT of free space. Even if you don't do A2SD+ partition, since MDJ's Gingerbread Cyanogen uses less than 150MB for system partition.
LiFE1688 said:
With 1024MB ROM, there are no advantages in terms of speed performance.
However, you do get space advantages.
If you flash a 350MB ROM, 350MB is being used by the system partition, a small amount is used by the boot partition and cache, then the rest are all userdata partition, which gives you around 500MB free space to install apps and store user data. (SMS, etc)
People with 512MB ROM, 350MB is being used by system partition, minus boot, cache, you have like around 50MB to 100MB left which isn't much for apps and user data. Which is why they need to use A2SD+ or DATA2EXT or similar methods of increasing userdata storage.
Try using Clockwork Recovery. You will have ALOT of free space. Even if you don't do A2SD+ partition, since MDJ's Gingerbread Cyanogen uses less than 150MB for system partition.
Click to expand...
Click to collapse
Thanks so much best info so far.

[Q] Is the dalvik cache mod worth it?

Right now, I have 109 mb free (16%) in /data. I also have 128 mb free of 146 mb available in /cache.
I applied the dalvik-cache to cache move through recovery and adb and then listed the results of the move:
221 mb (or so) free in /data. Awesome!
21 mb (or so) free in /cache. Not so awesome.
Here's my thinking:
1. Without this mod, I still have 109 mb free for app storage.
2. With this mod, I only have 21 mb left for the dalvik-cache, minus whatever else the system decides to put in there (those annoying Download.apks)
3. Even though it will report that I have 221 mb free after the mod, there is no way the dalvik-cache produced by those 221 mb of apps will be less than 21 mb.
4. Quite possibly, it will leave us with less app space as well as other problems, aka, the phone doesn't like it when the /cache partition is full and can't write anything else to it.
I did not reboot my phone, instead I deleted the dalvik-cache folder from /cache and deleted /data/dalvik-cache. I didn't want to go through the trouble of setting permissions for /cache.
So, is it worth it? It makes sense why HTC didn't increase the /cache partition as well as the /data one. It's not like they have us in mind when they roll out their new phones. I'm just wondering if this mod has reached the end of its rope, so to speak. Is there another directory we could move it to? Moving it to system seems the only possible option, but we would have to have the phone boot with /system as rw. Can we resize the cache partition? Seems rather dangerous. Bottom line: Is it worth it?
Anything downloaded into cache typically clears itself out. If you want to get more space on your cache, switch to an odex rom, will clear up a lot of space from dalvik. But 148 MB of cache is way overkill.
I want to look into modifying firerat's partition mod to work on our phones and move some of that huge unused system space to /data but I am horribly too busy at the moment to mess around
danaff37 said:
Anything downloaded into cache typically clears itself out. If you want to get more space on your cache, switch to an odex rom, will clear up a lot of space from dalvik. But 148 MB of cache is way overkill.
I want to look into modifying firerat's partition mod to work on our phones and move some of that huge unused system space to /data but I am horribly too busy at the moment to mess around
Click to expand...
Click to collapse
Personally, I am okay with the amount of space given for apps. I just wanted to raise the question.
I am new to xda and so am not familiar with all the mods that have been implemented on other phones. When I had the Moment and was involved over at SDX, we were so busy fixing the Moment to make it usable that many mods were never implemented. It's amazing what is being done here at xda, and not to detract from the good folks at SDX, who I love, but it seems the sheer number of quality devs is staggering here. I think I'll be content being an end-user for a while and helping out where I can.
I'll look into firerat's partition mod and though I can't promise I'll be able to apply it here on the Shift, I'll give it a good go. Thank you for pointing me in the right direction, danaff37
I sure do miss fireat's partition mod on the Hero. I have about 50mb left in data on my Shift. I've used a2sd before, but I prefer my apps to run off the phone memory.
I agree with ya. And it annoys me to see over 200 megs free on system, just sitting there!
Sent from my PG06100 using XDA App
qngds said:
I sure do miss fireat's partition mod on the Hero. I have about 50mb left in data on my Shift. I've used a2sd before, but I prefer my apps to run off the phone memory.
Click to expand...
Click to collapse
I'm running most of my larger apps off of the SD card and haven't had any issues.
I'd say give it a try and see what you think.
I'm also running a Class 10 card.
If you don't have one I suggest this one

[INFO] Xperia Neo partitions

Do Xperia Neo ownwers really have only 380 Mb to for their applications and other stuff? Not really, we have system partition of 312,5 Mb in size as well.
I've noticed there are other partitions on Xperia Neo.
Here are all partitions I have found on Xperia Neo.
/cache --> 225 Mb
/data --> 380 Mb
/dev --> 167,77 Mb 76 k used
/etc --> 312,5 Mb
/mnt/asec --> 167,09 Mb This partition houses secure information about for example apps you bought from Market. It might show as 0Kb used but check individual folders and you see each is made into separate partition with around 1-2Mb in size.
/mnt/obb --> 167,09 Mb
/mnt/secure/asec this is using your sdcard but showing only files ending with *.asec
/system --> 312,5 Mb
Total Mb size adding them all would be 1731,95.
That's not correct since:
/etc and /system are in fact 1 partition. Considering this, the size is 1419,45
/mnt/asec and /mnt/obb could be as well same partitions. If it's true then total size is 1252,36 Mb.
Apps that show partition information show max total space around 917 Mb. But they show info only about /cache, /data, /system and no other system specific partitions.
its written on the sony ericsson website that neo has Internal phone storage: 1GB
(up to 320MB free)
The truth of which I am trying to figure out seeing those numbers I've presented. So far for me it seems the exact size is 1,2 Gb.
Official information about 1 Gb RAM for example for PC is always inaccurate, it's more like 1,1 GB or 1,2GB.
Seems the same case here. It's more convenient to type 1Gb and since most users will never notice those extra 200 Mb used by system specific partitions then who cares...
Well I do.
This 252,36 MB extra means I have some more room to play around with seeing that not much is getting written there by system.
I've noticed the same thing on my xplay it would be really cool to be able to have at least 500mb free
Sent from my R800i using XDA App
You sure there's no symlinks inflating the numbers?
You have assume that /data --> 380 Mb, when it's up to 380Mb free, must have 128Mb free with 252Mb of apps installed, to recover use app2sd or similar.
I've moved as many apps to the sd card but there some that won't move and I'm left with 190Mb free and 205.3Mb after cache clearing
You sure there's no symlinks inflating the numbers?
Click to expand...
Click to collapse
If you read last lines of OP you notice I try to calculate out possible symlinks.
I've moved as many apps to the sd card but there some that won't move and I'm left with 190Mb free and 205.3Mb after cache clearing
Click to expand...
Click to collapse
That is fine or what? Those apps need to be somewhere anyway. Total space is 380 Mb and that's what matters.
i have to ask a thing
is normal that in "settings"--> "applications", i see only 335 mb of ram in total (not free) ?
but the phone should't have 512 mb?
where is the other ram?
maRRRco89 said:
i have to ask a thing
is normal that in "settings"--> "applications", i see only 335 mb of ram in total (not free) ?
but the phone should't have 512 mb?
where is the other ram?
Click to expand...
Click to collapse
Hello. Exact. The neo has 512 Mb of Ram but just around 320 are available for users (the rest is used by the system )

[Q] unusable internal memory

Hi, I am using MIUI with Android version 2.3.7. Everything is allright, but I only have 217 mb of internal memory in total. The MIUI ROM and other apss take up about 180 mb and although I have moved some apps to sd I now only have 40 mb available. It should have 512 mb internal memory. Why can't I see and use all of it? Is it possible that I didn't delete windows mobile or one of the other android roms I have used so far, though I am sure I have tried "clean install" a few times?
Dalvik cache & app data take up a lot of space too, you could move these to th SD ext partition to free up more internal memory. You will need a2sd installed I think to enable this.
Peace
Sent from my HD2
the 'available internal memory' figure only counts the data partition size.
so (for example) if your rom requires a 200 meg system partition, you would show..
512 minus 200 minus whatever cache size you flashed minus the boot and recovery partitions (lets guess 50 meg) so your available internal memory on a completely fresh install, no data or apps, would still only show a max of 262meg available.
Also, if you flash a system partition bigger than required, you dont get the extra space to use. So flash a 180meg rom onto a 250 meg system partition, and you lose 70meg, the system wont use it for anything.
samsamuel said:
the 'available internal memory' figure only counts the data partition size.
so (for example) if your rom requires a 200 meg system partition, you would show..
512 minus 200 minus whatever cache size you flashed minus the boot and recovery partitions (lets guess 50 meg) so your available internal memory on a completely fresh install, no data or apps, would still only show a max of 262meg available.
Also, if you flash a system partition bigger than required, you dont get the extra space to use. So flash a 180meg rom onto a 250 meg system partition, and you lose 70meg, the system wont use it for anything.
Click to expand...
Click to collapse
Thank you so much. My ROM itself is about 100 mb. How much data partition size should I actually spare for such a rom? Also could you please direct me to the post that tells me how to arrange the data partition size and do the rest of flashing my rom again? I would really like to have more available internal memory. Also I would be happy if you told me what ext 3 or ext 4, whatever it is called, is and if it has anything to do with internal memory.
If the rom is 100mb then you need a partion of at most 110 so if your using clk or magdlr..after you have wiped nand...partition it to 110 if possible or use 105 even cos you don't wanna be giving up wanted space..

[Q] HD2 NAND Memory explanation

I'have flashed a lot of roms already but i'am still wondering how the memory works.
My favorites are the roms with Sense from DungPHP.
Now i'am running Coredroid that gives a load of manual options but also crashed unexpectedly.
Why this questions:
Every rom crashes somewhile. To understand how the memory works can help to find the rootcause. That can be application related, or configuration for the partitions, core etc.. Now only the developers know this (should know )
My Phone:
The Phone HD2 HTC LEO (EU) has 512 Mb memory
EXT4 partition of 2 gb
SWAP 256 mb
SD card of 16 Gb, 4mb speed
[*]What kind of memory's are there?
[*]and where are they used for?
To install the Rom we have to give the correct configuration like:
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 5M
system ya 175M
cache ya 5M
userdata ya|asize|hr allsize
So when i have 512mb - 1 - 5 - 175 - 5 = 313 mb left over
[*]Where is the left 313 mb used for?
[*]What is installed on the EXT4 partition?
[*]How much do you need to keep for good performance?
This are a lot of questions and i hope someone can help me to figure it out so we have a usefull tutorial page left over.
[*]Where is the left 313 mb used for?
[*]What is installed on the EXT4 partition?
[*]How much do you need to keep for good performance?
Click to expand...
Click to collapse
1 - 313 would be the userdata partition (allsize). This is the only nand partition which counts towards total internal storage.
2 - depends on the rom, some put user installed apps there, some put apps and dalvik cache, some put the whole data partition there.
3 - doesn't matter, you are talking about rom, not ram,, free rom has no effect on performance.( well, perhaps if every tiny scrap of space is full, but you sound like you meant ram)
You are right RAM has effect on performance.
The problem for me is that i understand lots of fragments of the theory but it is not complete.
Like today i have installed a backup, and later a full installation of a rom on my phone. And this rom was working fine in the past and now the battery lacks and streaming video is not working. Why??
I did a cleanup to factory, and cache and dalvic cache, but it looks like something stayes and is not formatted.
Back to runny. Video works fine now. But the sense is stopping very often due to lack of memory.
Is there a way to improve this?
I removed almost all widgets from main screen but after opening an application it is stooped and needs to be reloaded.
Sent from my HTC Runnymede using xda premium
Flash marc 0.1.9 kernel and then add a zram (100mb) script to increase virtual memory size.
I already improved the phone by changing the config from 5/170/5 to 10/180/10. Especially cash was the problem what I think. Till now it worked fine.
Sent from my HTC Runnymede using xda premium

Categories

Resources