[GUIDE] Customizing roms to gain more free space (CWM only) - HD2 Android NAND Development

This guide is for those that use Desire HD or Z roms on EU HD2 with the lack of free space. Off course this chould theoreticly apply for all other roms that were flashed with cwm but i only tested with MDJ's rev. HD 2.4.1. This is for those roms that use a2sd+ for apps and store data on nand like MDJ's roms or similar (this was tested and works on MDJ Revolution HD 2.4.1).I got from starting 100mb free to a 180mb and i just removed locations other smaller widgets setup wizard and other small stuff which i won't use at all.
Again I'm not responsible if you ruin your rom damage or brick your HD2 in any way. Then again you can allways backup with cwm and if anything goes wrong just flash again with the recovery originally intended and restore it with cwm and you are back where you were.
This guide is a simple actually and it requires few simple steps.
1. Install cwm and flash your rom in usual way
2. Install titanium backup (best choice) or any other software that can remove system apps
3. First do a backup with Titanium in order if you need those apps later. Remove all aps that you don't need but be carefull what apps you remove or your rom might not boot.
4. Use any file manager with root capabilities (my choice root explorer) and go to folder system to see how much space is used (NOT FREE) and round that number(i.e. if it says 256 you will use 260 and always use higher don't use smaller like 255 because it will not work)
5. restart and enter cwm. Make a backup. chose backup and restore than backup wait a couple of minutes
6. restart and enter dft flasher
7. on your computer go to where you flashed your recovery and edit flash.cfg (you can use notepad or in total commander just pres f4) and input the round number from point 4. Save and flash.
8. Go in cwm and go to backup and restore and just choose restore. Wait until it's done and restart. You should have more free space for the amount that you shrunk the system data.
(Note: for a little advanced when you go to backup and restore you can go to advanced restore and then choose to restore everything except the sd-ext partition to save time because that partition isn't affected by any of the stuff above.)
If this helped you can always click thanks

Related

[Q] Advanced ROM flashing techniques

I just learned how to root and flash ROM's for my evo a few days ago and I had a few questions now that I got the basics down.
1) Do I have to do a "data wipe, then cache, then Davlik" if I am just flashing a kernel and/or theme?
2) Is there a way to save NAND backups onto my computer so I have multiple versions of a rom/kernel combination?
3) Is there a way to save sense and all of my programs before I flash a ROM so that after I flash I don't have to type my username/password in all of my programs and reorganize my UI?
4) Are there any useful tips out there to make this process easier?
nitrosilver said:
I just learned how to root and flash ROM's for my evo a few days ago and I had a few questions now that I got the basics down.
1) Do I have to do a "data wipe, then cache, then Davlik" if I am just flashing a kernel and/or theme?
No you do not have to wipe data cache and dalvik for themes and kernels. some may say they advice it but personally i have literally flashed them hundreds of time with out and never had an issue. the exception is if the dev says you should flash ... always listen to the dev.
2) Is there a way to save NAND backups onto my computer so I have multiple versions of a rom/kernel combination?
Yes just conenct the phone to a computer navigate to where the nand are stored and copy them over. for clockwork it is ussually int he clockwork folder for amon ra the backup folder.
3) Is there a way to save sense and all of my programs before I flash a ROM so that after I flash I don't have to type my username/password in all of my programs and reorganize my UI?
It is not advised. while you can back up all your apps and there data it is not recommended to restore the system data between roms. The reason being it can cause conflicts with changes made by the dev. It is a little bit of a hassle but it is best to type back in your username/password and reset up your home screen.
4) Are there any useful tips out there to make this process easier?
Click to expand...
Click to collapse
Back u apps with titanium back up (if you dont have it get the paid version) otherwise it is going to take a few minutes to set up your rom once you flash it there isnt much you can do that is "safe"
1. Thats the way Ive always done it.
2. Yea copy the nand folder to your computer.
3. I use my backup pro, its simple quick and easy. Some people like Titanium backup but every time I used it its always caused problems for me.
4. My method: Backup apps+app data using backup app, nandroid backup, wipe+cache+dalvik, flash ROM, download backup app and restore.
A little tip, I always add the backup apk to my ROM using winrar so I can restore my apps immediately after I flash.
Thanks! That was quick. This forum is awesome!

Upgrading to 2.29.405.5 (Possibility of buying new sdcard)

Hello,
I am thinking of upgrading to 2.29.405.5 from 2.29.405.2.
My device came non-branded when I bought it.
The only thing i've done is that I 've rooted it.
What are the steps that I should follow to upgrade?
Should I update using the update available through my device(via WiFi) or download to my pc and then transfer it via usb?
I am thinking of buying an 8GB card, is there any way to copy all the content from the old to the new one, without having to unistall sth? (I haven't used app2sd or apps like that).
Also, to get this right, what app2sd does actually? Allows me to use a partition of my sd card as an extra space to install apks, as the space available in the device?
Thank you for your time!
If you are rooted never use the OTA updates. Either use a RUU and root again or flash a .405.5 based custom rom. If you never used A2SD+ (the one with ext partition) you can just copy all files from one card to the other. (make sure you also copy the hidden files).
Here you can find some more info about A2SD
Thank you for your reply!
I've checked my files and found that I have downloaded this:
"RUU_Bravo_Froyo_HTC_WWE_2.29.405.5_Radio_32.49.00.32U_5.11.05.27_release_159811_signed"
It should be from a link found at the forums here..
Should I install this one? I don't have to unroot?
A RUU will unroot your phone, but why not flash a custom rom?
If you want to stay close to the stock rom just flash Leedroid
I thought I 've read somewhere in the forums, that upgrading a rooted device will cause a brick. Is that correct? Or this happens via OTA updates?
Is Leedroid similar to sense style?
I am not familiar to all this, but I am willing to try, as long as my device will not be bricked!
Also does Leedroid support greek localization?
Upgrading via OTA causes problems for some people. But since you wanna flash the ROM using RUU, it won't cause any problems, you have to root it again, as said before.
Leedroid IS a sense rom, check out the Desire android developement sub-forum.
For greek localization - if the Eλληνικά is for Hellenic, then yes, LeeDroid supports it .
Yes Eλληνικά is for Hellenic
I visited the Leedroid site and saw that there are some problems at the versions 2.3a-c..
Is 2.3d a more stable one?
I know that, anything isn't perferct, but leaving original rom for a custom one and having problems with it doesn't sound good to me.. :-S
With Leedroid will I be able to use market and all the applications I used?
In example, I have already backed up, my apks with Titanium backup and my SMS with SMS Backup&Restore, will I be able to restore EVERYTHING with these 2 applications to the Leedroim rom?
For the above question I 've found here this: "Not booting / Stuck after boot animation – Allow the phone time to boot after flashing. Sometimes it can take up to 5 minutes. Also don’t restore system settings using Titanium. It can cause faults (unless you want to take the risk, ONLY restore items in GREEN colour font)"
I have stopped to follow the Leedroid thread, but most of the issues are user related and not rom. So if you do a full wipe and only restore data apps (the green once) with titanium you should not have any issues.
With the Leedroid you will be able to do anything the 405.5 stock sense can do plus a bit extra.
Yes titanium is good to back up your apps, no idea about sms backup since it's not important to me. Also you home screen settings will be gone and you need to re-enter your email accounts (maybe you can also backup email accounts with titanium). However, this would also happen if you use a RUU.
If you want to flash leedroid, I assume you are rooted with unrevoked and have Clockworkmod as recovery image?
If yes:
Download this
Put it on the sd card (not in any folder)
Boot in to recovery
Nandroid (backup)
Wipe data/factory reset (this will wipe all data on the phone, the sd remains untouched), wipe cache and under advanced wipe dalvik cache
Select "install zip form sd" chose Leedroid and let it install.
This will install the noA2SD version, if you want more space for apps look in to making a ext partition on your sd card and use this file instead.
2.3d is a stable one. And some functions are working better for me as on the stock 2.2!!!
So far, no problems/freezes etc.
Market is installed, I can assure you can use it.
Titanium backup is working too (however not tried SMS backup - but it should work)
I only backup the apps that I use(d) + the data for it and the so-called "green colored settings" and TI always restored it without problems.
Thank you both for your replies!
You really encourage me to try leedroid
What is the choice at titanium backup batch processes that will backup up the applications installed with their data?
Also, I 've been reading about this so called "radio", if I 've understood well, this is responsible for the call, sms, mms recieving and sending or I am completely wrong?
If I install leedroid (the no-a2sd version) shouldn't I install a radio as well?
When should I do that? Which one? (the latest found here -> 32.49.00.32U_5.11.05.27 ?)
To see if I am pretty sure of what I am going to do exactly:
* Download this -> trying to, getting a (5xx) error :S
* Put it on the sd card (not in any folder) ->with the name it comes? Or renaming it to "update.zip"?
* Boot in to recovery -> holding vol (-) button untill it boots to recovery, right?
* Nandroid (backup) - > select it through the choices available there..
* Wipe data/factory reset (this will wipe all data on the phone, the sd remains untouched), wipe cache and under advanced wipe dalvik cache -> select it through the choices available there..
* Select "install zip form sd" chose Leedroid and let it install.
After selecting install, what should I expect? (waiting time,etc.)
The batch process is backup all user apps + system data, and there you should uncheck the "red ones". You notice that it has the largest number on the right.
You can update the radio whenever you want, but I did after installing LeeDroid (the same way you install as the custom ROM) and no error. I am using the radio in my signature, but used 5.11.05.27 before, so I recommend to stick with that for a while.
1. The noa2sd file : LD2.3dNoa2sd
2. You don't have to rename it. Works with any name.
3. Yes
4. Yes, it is stored under backup & restore under Clockworkmod
5. correct
After install you should expect the device to rebuild the system/cache etc. - for me it took 5 mins approx, then it boots up to the home screen if everything is working correctly
Ok, so updating the radio is to be done after installing the Leedroid rom!
At last (after some tries to get the download working I started dling the file).
I might give it a try today
Will reply here, if I need any help!
Thank you very much for your help!
Careful when updating radio, this is one off the things that can brick your phone. Check md5 and don't interrupt the the process. If you don't feel comfortable updating radio, it's not essential.
Sent from my HTC Desire using XDA App
Could you explain me what is the radio? :-S
By wiping data and installing a new rom, won't it be needed to update the radio? :S
Wouldn't it be deleted by the wiping process? If no, then why to update it?
As I see now the version of radio I have is:
32.49.00.32U_52.11.05.27
PS: I've already upgraded to 2.29.405.5.
As you said earlier, the radio
is responsible for the call, sms, mms recieving and sending
Click to expand...
Click to collapse
.
So basically it controlls the mobile network transmitter, bluetooth, wifi, etc.
And no, it won't get deleted when you do a full wipe!
Your radio is alright - I had the same when installing LD 2.3d and it will work on it 100%, so no update needed!
I really thought that it would delete everything along with the radio.. :S I still have much to learn
I finally downloaded the leedroid rom
Hello again,
I bought an 8GB class 6 microSD today.
And thinking of creating the partitions so that I can use the SD as internal memory.
Is that right?
Is there any tutorial I can read to understand this feature?
What should I do to create the partitions needed?
Thank you.
Read the first post of the ROM thread, it tells you what you need to have setup.
Then Google videos on GPartEd and use that to partition your SD card. Or just search the forum as it's been covered loads already
I know that it has been covered already. I just asked links because I am not 100% sure of what I am looking for. :S
Will look and reply here. Thank you.
Is this thread helpful for what I exactly need? :S
Also, I 've connected my mobile to the PC via USB and the icon at the "My Computer" window looks disabled. I double click on it but it says "Insert a disk at this unit...".
Could somebody please help me to prepare my 8GB microsd for the ext partitions...I haven't done this again and I am new to this..
Also any link to a tutorial would be appreciated.
Thank you!

[Q] A few questions I need answered

I have a few questions:
1) Which is better? The Cyanogenmod 7 or The Nightly builds?
2) I really like the Sense UI. After flashing Cyanogenmod 7, can I change my "theme" to Sense UI?
3) Which ROMs you can recommend me? I like to use the Sense UI. So till the time ROMs have Sense UI, I'm cool with it. Most of the ROMs I see have different themes which I kinda don't like. I got a few other ROMs with Sense UI but they needed to do some partition in the SD card and stuff which didn't really go inside my brain
4) After performing a Nandroid backup, I should flash my rom. So why do a few devices get bricked? Can't they just restore the backup and be back to normal version again?
5) After rooting, should I connect my phone to any HTC online services?
6) If HTC future updates come out and I'm on my rooted phone then will the update automatically install itself or I need to backup to the original version and then update my phone?
Sorry, I'm really new to all this. So please don't flame me
Hi !
1) You may go with the nightly builds, they seem to be quite stable as a daily rom. You can reflash an old build if one is buggy anyway.
2) You can't switch to Sense UI with a Cyanogen 7 installation, but you can install Launcher Pro or another launcher and then apply a theme that looks like Sense.
3) Leedroid is by far the most known Sense rom on Desire. You can also look after Teppic74's rom and addons which are also nice if you don't want a rom that has an infinite nomber of addons or changes.
4) Pay attention not to change your recovery when you backup an old rom. You have to restore with the same recovery you backed up your rom.
5) You must be talking about HTCsense.com, this online service has appeared with Desire HD and Z, it isn't available on our Desire Froyo roms at the moment. If you want to try HD Roms and others with a later version of Sense UI, you won't be forced to connect to this service.
6) When a future updates come out, if you want to install a stock RUU, you'll only have to create a goldcard before installing the RUU. No matter your Desire is rooted or not, after the RUU install, you will be S-ON and unrooted.
But you should wait for developers to release roms with the new HTC update, therefore you won't have to root and S-OFF your device again.
Welcome on XDA
Hey, thanks for replying mate
I didn't understand the 4th point. Sorry I'm a noob at this
for the fifth point, I was talking about sync and other services.
Sorry, I misunderstood your 4).
Your device won't get bricked if you pay attention to what you are doing when flashing.
Make sure before any flash to :
- Check the MD5 hash of your rom
- Wipe Data, Cache, Dalbik-Cache when it is needed
for the fifth point, I was talking about sync and other services.
Click to expand...
Click to collapse
Do you talk about Google sync (calendars, contacts, gmail), Facebook, etc. ?
Oh okay. I got it and how do I install Leeroid? I don't see any tutorials around..
- Download .zip : http://leedroid.ftp.rshost.eu/Bravo-ROMs/LeeDrOiD_V2.4.1_A2SD.zip
- Copy your .zip on your SD card
- Root your phone with Unrevoked (you can find some tutorials around here)
- Turn off your phone, press volume down+power button to boot into bootloader and select RECOVERY.
- Wipe Data, Cache and Dalvik Cache
- Flash Leedroid's rom.
Maikoru said:
- Download .zip : http://leedroid.ftp.rshost.eu/Bravo-ROMs/LeeDrOiD_V2.4.1_A2SD.zip
- Copy your .zip on your SD card
- Root your phone with Unrevoked (you can find some tutorials around here)
- Turn off your phone, press volume down+power button to boot into bootloader and select RECOVERY.
- Wipe Data, Cache and Dalvik Cache
- Flash Leedroid's rom.
Click to expand...
Click to collapse
Sorry, but imho your guide is incomplete. I write the necessary new things in red:
- Download .zip : http://leedroid.ftp.rshost.eu/Bravo-ROMs/LeeDrOiD_V2.4.1_A2SD.zip
- Copy your .zip on your SD card
- Backup/copy all data of sd-card on your computer, just in case;
- Root your phone with Unrevoked (you can find some tutorials around here): noob-guide: http://forum.xda-developers.com/showthread.php?t=1016084; for advanced users: http://forum.xda-developers.com/showthread.php?t=696189
- Save your systemdata and apps; i recommend Titanium Backup (Menu>Batch>”Backup all systemdata and apps”).
- Turn off your phone, press volume down+power button to boot into bootloader and select RECOVERY.
- Made a full nandroid-backup. Reboot your phone. Copy all data on the sd-card to your computer again.
- Turn off your phone, press volume down+power button to boot into bootloader and select Recovery; now select "partition sd-card" and then "partition sd". Set 0 MB for SWAP, 512 MB for ext3 and rest for FAT32. If you cannot create ext3, create ext2. After complete partitioning, select "SD: ext2 to ext3". Now go back and select "USB-MS-Toggle". Now copy all the saved data back on your sd-card. Is this complete, select "other" and "toggle signature verify".
- Wipe Data, Cache and Dalvik Cache
- Flash Leedroid's rom.
- Restore all missing systemdata and apps (Titanium Backup>Menu>Batch>"Restore all missing systemdata and apps").
- Restart phone
First start can take some time, because all apps were moved to the sd-card.
Never post such incomplete guides, please.
My bad, I gave him an incomplete guide, but there are also plenty of them around this forum and Google.
Searching isn't hard : http://forum.xda-developers.com/showthread.php?t=1016084
Thank you for your replies guys
Also, will the tutorial work with Cool Sense? (http://forum.xda-developers.com/showthread.php?t=899943)
It will, don't forget to flash this .zip : http://wbss.ro/coolexe/Extra/Alignment_Cool.zip before installing the rom. (This .zip will convert your ext3 partition on your sd to ext4, and it will also align that partition)
Okay And what's the use of partitioning the SD? Does it increase the Storage space (Internal Memory)? I saw it on one of the ROMs. Not sure which.
And what are radios?
The Radio of your device is the thing which makes it possible to call and to have mobile internet. And some radios should be better than others, so they should increase battery life or so but i never felt a difference with different radios yet.
Royal King said:
Okay And what's the use of partitioning the SD? Does it increase the Storage space (Internal Memory)? I saw it on one of the ROMs. Not sure which.
And what are radios?
Click to expand...
Click to collapse
The use of partioning is, that u are able to save data on the sd.
If you ask, why you should do it with this ext3- partition (i do not know why you need swap-partition; i just set it to 0 MB, as i was told ): With this ext3- partion all apps you install are automatically moved on the sd-card, wether the programmer has destined it or not. On this way you consume less space internal memory, by what you save/increase indirectly internal memory. This function is available for roms with apps2sd(a2d).
If you really what to increase your internal memory, you need data2sd (also available in some roms here). Here ALL data were moved to your sd-card without exception and the system is leaded to believe that the free internal space is the free space on your sd-card. On this way you increase your internal memory directly, and you will never have any save problems any more.
The question about the radio was already answered.
That sounds really good! Thanks

[Q]Is there any good app or Recovery to backup /sd-ext?

I think that most of customized ROM support ext4 partition and release A2SD/CM7/A2E version.
And many apps or data are moved to /sd-ext.
Is there any good backup app or Recovery can backup /sd-ext partition and save to sdcard?
Sometimes I don't want to recovery all ROM and do restore data/apps things again and again.
Use ROM Manager, which could backup sd-ext individually.
But this function only shown in Premium version.
Correct me if i'm wrong, but doesnt Recovery menu offer that function? (Backup and restore menu)
I use the recovery menu that was flashed by RomManager (2.5.0.7 or something), and it is able to do a full backup (aka nandroid backup? I'm new so not sure about terms)
scottnet said:
Use ROM Manager, which could backup sd-ext individually.
But this function only shown in Premium version.
Click to expand...
Click to collapse
Do not use rom manager. It carts more problems than out solves.
Yes, every recovery should have this offer.
TouchPaled from Oxygen with Transparent XDA App
The way I backup is following:
1st step:
Titanium Backup. Use this to backup all my app/data/settings.
2nd step:
Set up Google Backup if supported (that way Market knows what apps i had and starts installing them after a wipe) Does not always work however, hence the step1.
3rd step:
Reboot phone into recovery menu, "backup and restore > Backup". This backs up following: system, rom, ext partition (if any) and also recovery/bootloader.
Using these steps, i can restore only my apps/settings (step 1) on a new rom or do a complete restore if something doesnt work right (step 3). Step 2 is handy If i want a fresh start but it doesnt always work right.
asestar said:
The way I backup is following:
1st step:
Titanium Backup. Use this to backup all my app/data/settings.
2nd step:
Set up Google Backup if supported (that way Market knows what apps i had and starts installing them after a wipe) Does not always work however, hence the step1.
3rd step:
Reboot phone into recovery menu, "backup and restore > Backup". This backs up following: system, rom, ext partition (if any) and also recovery/bootloader.
Using these steps, i can restore only my apps/settings (step 1) on a new rom or do a complete restore if something doesnt work right (step 3). Step 2 is handy If i want a fresh start but it doesnt always work right.
Click to expand...
Click to collapse
4rd step:
after the backup with the step 3, u can go in the advanced restore menu, and restore only the partition u want..for example restore only the sd-ext (as the OP was asking)
Thanks for your information.
No matter ROM manager or new Recovery, the problem is to support /sd-ext backup/restore especially I always format to ext4.
I installed ROM manager once, but it can not backup/resotre my ext4 partiton.
It might be 2 month ago, and I removed ROM manager.
Did anyone have the experience to backup/resotre ext4 and which Recovery version?
Please use the Q&A Forum for questions Thanks
Moving to Q&A

[Q] How do you completely recover your device?

Ok, so I downloaded some files, and they ended up a bit corrupt, and not knowing this, I wiped data/cache + system and tried to flash them. Now, I have nothing but 3 corrupt ROMs (CM10.1 12-22-2012, WickedJB 5, and DarthStalker 6). I had some backups, some time ago, but thinking that I'd be able to backup as soon as I get to recovery, I didn't. So now, I have no backup and 3 corrupt files, but a functional Download and Recovery (TWRP 2.3.3.1). I tried to use the adb sideload function, but it doesn't work ("device not found"). And trying to flash cm10.1 gives me error status 7, and the other two don't give me errors but after flashing, they just stay stuck at the boot screen.
I tried Odin, but it becomes stuck at "aboot.mbn." It doesn't even give a pass/fail. It just says "aboot.mbn" and after 10 minutes, I raged and pulled the plug (and then it says failed).
So, now I have no idea what to do.
How to fix it?
Thanks
Hope this helps a little
I'd make sure that ur Downloaded Flash ROM's are not Bad files or incorrect... There is usually a MD5 file or long number with most downloads,
get a MD5 checker program and check the number of the file(s) you downloaded and see if they line up with OP's Site
At this point you know u have GREAT files (ROM's) to work with.
-Not sure what recovery you have, when you boot into recovery, what do u see...
-It is possible that you inject SuperSU or Superuser into your stock ROM and have ROOT access, but also still have STOCK RECOVERY!
-You will need any kind of RECOVERY other then stock, I suggest TWRP 2.3.3.1 (version 2.3.3.0 didn't show you your sdcard, don't use that version) v2.3.1.0 was fine to use in past.
How to add NON Stock Recovery (ROM has to be rooted)...
__________________________________________________________________________________________
***to add ROOT... Use ODIN to inject stock ROM with Root66's (Dark Chld) method... (at this point, you'll have rooted ROM with stock recovery)
1. Use "Terminal Emulator" app found on market (newest is v 1.0.50)
2. Download + Copy (TWRP v2.3.3.1) recovery .img file to sdcard (rename it to recovery.img)
*** you have to extract out xxx.img file out of .zip (.zip won't work...".img" file will work only)
3. Run Terminal Emulator 1.0.50 and type this code...
su
dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
4. Done!
*** if all went well !, now Recovery is Changed ..reboot into recovery mode and check...
more info found here
At this point you will know you have rooted ROM and NON Stock recovery.
-With any non Stock recovery, you can flash any ROM. Read their Instructions and follow them to the letter.
-Be sure to wipe Cache's, System, (and most of the time DATA) and other stuff as instructions for that particular ROM says
-Eventually once you have any great (NON CURRUPT) ROM, make a backup, so you can always have a SAFE ROM to flash...
TWRP BACKUP's get saved to External SD Card in TWRP folder (but you have to Set them there when your creating NEW BACKUP)
*** Don't ever save files to INTERNAL SDCARD, incase you wipe internal DATA in future.
IMPORTANT : understand what you are doing as u do it...
TWRP Wipe Menu (options)
___________________________________________________________________________
Cache = always ok to WIPE (it will take longer to load after wiping on 1st boot only)
Dalvik Cache = always ok to WIPE (it will take longer to load after wiping on 1st boot only)
Factory Reset = wipes Cache(s), (Data - All settings + User Apps), (NOT data\media - Internal SDCARD), (NOT External Micro SDCARD)
System = just ROM Files (System Apps, System Files, NO settings at all)
Internal Storage = (data\media - Internal SDCARD), (NOT External Micro SDCARD))
Format Data = All settings + User Apps + (data\media - Internal SDCARD), (NOT External Micro SDCARD)

Categories

Resources