• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Guide] CM6 Installation with a2sd and swap

Do you think that application removal script should contain some more applications?

  • Yes

    Votes: 5 71.4%
  • No

    Votes: 2 28.6%

  • Total voters
    7
Search This thread

G1sanju

Senior Member
Aug 28, 2009
370
54
Hyderabad
I was trying to upgrade to CM6 from CM5 and was facing lot of issues so I followed below process and got it worked. I thought of sharing it with everybody as lot of person are having issues.

I know most of the information is available on XDA but not on a single place.

I have made a separate thread because A2sd and SWAP are not supported by CM6 officially.

This is not an official method of installing CM6, this is how I got it worked and you can use it for reference.

1) Preperation: You need to get the below mention files, Please get these files from below mentioned thread:
a) CM6 and Gaaps
b) CustomMTD Patch - You only need FR-recovery and FR-boot latest version.
c) Script for a2sd and swap - get the latest script.
d) Fastboot - Fastboot should be setup and working, If you are on Linux go here
e) SD Card Partition - If you are not sure how to partition the sd card. If you want to use a2sd and swap, please partition your sd-card.
Store all files on root of sd-card.

2) Connect the phone to PC, do not mount the phone.

3) Wipe the phone:
a) Boot into recovery(reboot while holding home and power). Wipe everything.
b) Boot in fastboot mode. (reboot while holding back and power)
Enter the command in terminal or command prompt on the PC
fastboot erase system -w​
c) reboot into recovery.​

4) Install the custom MTD. (If you already have custom MTD then this step is not required.)
a) Flash customMTD fr-recovery file.
b) Reboot into recovery.​

5) Install CM6 Gapps and boot loader.
a) Flash CM6
b) Flash Gapps
c) Flash Boot Loader fr-boot file
d) reboot phone​

6) Once phone is booted and you are on the home screen, go to
  • CyanogenMod Settings > Application Settings > Install location - Set Install location as Internal, make sure allow application moving is not checked.
  • CyanogenMod Settings > Performance Settings - make sure that Compcache, JIT, dithering is not checked. If something is checked please uncheck it.
    Lock home in memory can be checked, but some guys has reported that it drains a lot of battery.
Reboot the phone.

7) Go to terminal type below code
su
sh /sdcard/fr-patch140.txt a2sd​

It will ask if you want to install a2sd, type Y and press enter. Once APKManager is installed, type quit to exit.
Reboot the phone.

8) If you are not using a2sd and want to setup swap, please enter the below command in the terminal otherwise continue to step 9.
su
sh /sdcard/fr-patch140.txt sdext​

reboot the phone.

9) Go to terminal type below code
su
sh /sdcard/fr-patch140.txt swap​

It will ask for swappiness, I use 60 there, but its your own preference. After that it will ask you if you want to use swap-file, press n and enter.
After this enter below to terminal
Free​
If you get swap setup it will show in front of swap in terminal, if the result show zero swap then reboot and do the step 9 again.



Now you have a CM6 with apps2sd and swap. All the newly installed apps will automatically go to ext. ;)

If you don't like 3d gallery and want it to replace it with old gallery..This has been provided by ZilverZurfarn on CM6 thread.

Extract Gallery.apk from a older CM update (like 5.0.8) somewhere (c:\temp in the example below)
Using adb:

adb remount
adb shell rm /system/app/Gallery3D.apk
adb push c:\temp\Gallery.apk /system/app/Gallery.apk

Also there are some apps which I don't prefer, as I don't use android native keyboard, Android browser, POP email, amazon MP3 etc. So I have created a script for my use which has been shared and it can be run from the terminal..

download remove-app-v1.0.txt and store it to root of your sd card. than enter below commands in terminal

su
sh /sdcard/remove-app-v1.0.txt​

currently this script will remove below mention apps based on user input.
Amazon MP3, Live Wallpaper picker, CM Wallpapers, POP Email, Android Native Browser, Android Native Onscreen Keyboard, Genie Widget...

Note: - Before removing browser and keyboard please make sure you have a replacement for them.

I do not take any credit for work, its just a reference for installing CM6. Thanks to Cyanogen and team, Firerat, Lbcoder for producing these amazing roms and methods.....:)

Please provide your feedback and suggestion for the guide.

If you like my guide and want to Donate
 

Attachments

  • remove-app-v1.0.txt
    2.2 KB · Views: 84
Last edited:

supa2001

Senior Member
Sep 28, 2009
139
15
Can I have swap without app2sd?
I skipped the app2sd part, but the swap wouldn't work.
it didn't ask me about the swap file.
It ended with:
use
/system/bin/swappy on # to turn swap on
 

supa2001

Senior Member
Sep 28, 2009
139
15
Try below command:

sh /sdcard/fr-patch139.txt sdext​

reboot the phone

sh /sdcard/fr-patch139.txt swap​

If this doesn't work, could you please pass on the message you are getting from the script.

It works now. Thanks.
What does sdext do ?
When I ran sdext, it said "danger detected" though, is it still safe?
Same thing appeared when I did swap.
 

vermaekansh

Senior Member
Aug 20, 2010
557
61
I was trying to upgrade to CM6 from CM5 and was facing lot of issues so I followed below process and got it worked. I thought of sharing it with everybody as lot of person are having issues.

I know most of the information is available on XDA but not on a single place.

I have made a separate thread because A2sd and SWAP are not supported by CM6 officially.

This is not an official method of installing CM6, this is how I got it worked and you can use it for reference.

1) Preperation: You need to get the below mention files, Please get these files from below mentioned thread:
a) CM6 and Gaaps
b) CustomMTD Patch - You only need FR-recovery and FR-boot latest version.
c) Script for a2sd and swap - get the latest script.
d) Fastboot - Fastboot should be setup and working, If you are on Linux go here
d) SD Card Partition - If you are not sure how to partition the sd card. If you want to use a2sd and swap, please partition your sd-card.
Store all files on root of sd-card.

2) Connect the phone to PC, do not mount the phone.

3) Wipe the phone:
a) Boot into recovery(reboot while holding home and power). Wipe everything.
b) Boot in fastboot mode. (reboot while holding back and power)
Enter the command in terminal or command prompt on the PC
fastboot erase system -w​
c) reboot into recovery.​

4) Install the custom MTD. (If you already have custom MTD then this step is not required.)
a) Flash customMTD fr-recovery file.
b) Reboot into recovery.​

5) Install CM6 Gapps and boot loader.
a) Flash CM6
b) Flash Gapps
c) Flash Boot Loader fr-boot file
d) reboot phone​

6) Once phone is booted and you are on the home screen, go to
  • CyanogenMod Settings > Application Settings > Install location - Set Install location as Internal, make sure allow application moving is not checked.
  • CyanogenMod Settings > Performance Settings - make sure that Compcache, JIT, dithering is not checked. If something is checked please uncheck it.
    Lock home in memory can be checked, but some guys has reported that it drains a lot of battery.
Reboot the phone.

7) Go to terminal type below code
su
sh /sdcard/fr-patch139.txt a2sd​

It will ask if you want to install a2sd, type Y and press enter. Once APKManager is installed, type quit to exit.
Reboot the phone.

8) Go to terminal type below code
su
sh /sdcard/fr-patch139.txt swap​

It will ask for swappiness, I use 60 there, but its your own preference. After that it will ask you if you want to use swap-file, press n and enter.
After this enter below to terminal
Free​
If you get swap setup it will show in front of swap in terminal, if the result show zero swap then reboot and do the step 8 again.


Now you have a CM6 with apps2sd and swap. All the newly installed apps will automatically go to ext. ;)

If you don't like 3d gallery and want it to replace it with old gallery..This has been provided by ZilverZurfarn on CM6 thread.

Extract Gallery.apk from a older CM update (like 5.0.8) somewhere (c:\temp in the example below)
Using adb:

adb remount
adb shell rm /system/app/Gallery3D.apk
adb push c:\temp\Gallery.apk /system/app/Gallery.apk
I do not take any credit for work, its just a reference for installing CM6. Thanks to Cyanogen and team, Firerat for producing these amazing roms and methods.....:)

Please provide your feedback and suggestion for the guide.


Thanks mate this will really help me to put my apps on SDcard..as past days m really trying to get my phone memory safe...
 

G1sanju

Senior Member
Aug 28, 2009
370
54
Hyderabad
It works now. Thanks.
What does sdext do ?
When I ran sdext, it said "danger detected" though, is it still safe?
Same thing appeared when I did swap.

"danger detected" message is for SPL, It checks for the SPL first and you have danger spl installed.

By default CM6 does not mount ext partition as it does not support a2sd right now. sdext creates a mount point for ext partition. a2sd internally does that but as you are not using a2sd this was not done.
 

jezterking

Member
Sep 7, 2010
33
2
Seattle
Watch out...newbie in the room

Okay, you are going to love this.... I'm sorry if this is too long but I hope you can help a newbie trying to learn this stuff!

I am REALLY new to all this, and did a Root and Rom Update as the Unlockr.com videos taught me, to get CM6. And then also added the gapps file because I read a thread that that was needed to get gmail and the market on my phone. Once rebooted, everything worked ok but slow. Then I noticed that my gmail wasn't syncing, and then it started to force close. So I did a wipe and loaded CM5 because I saw on a thread that that was faster for the G1. With all of this, after reading your thread and suggestion, I am wondering...

1. Is CM6 slow for you?

2. Should I have loaded gapps? IS that how to get gmail and should it sync automatically? If not, is there a way to make it?

3. Should I stick with CM5 or try CM6 following these suggestions??

And big ones.... I wish there was a website somewhere with definitions to all the terms and apps used. Lol.. I Google all of them but don't always find anything that actually describes what they are.

Swap and app2sd were mentioned on the video instructions for loading a new ROM but do they automatically come in the ROM zip files? Because in the video they didn't load them separately. They partition the card "for" them, but don't show installing them. Obviously I assume App2sd is a program to store your apps on your sd card. Is this something that I SHOULD install? Is swap something I should install?

And what is a CustomMTD Patch? Annnnnnd, what is fastboot??

I know this is a lot of questions... I decided to ask them all here because they pertain to this thread because I'm wondering if I should do this...

Thanks for any and all answers! :confused:
 
Last edited:

G1sanju

Senior Member
Aug 28, 2009
370
54
Hyderabad
I would assume that you have a G1, and my answer is based on that assumption. If you have different phone let me know.

1. Is CM6 slow for you?

If I don't use a2sd and swap, answer is yes. I install lot of apps, with cutomMTD it works fine in starts but slows down after some time. With a2sd and swap it is worth a try.​

2. Should I have loaded gapps? IS that how to get gmail and should it sync automatically? If not, is there a way to make it?

CM roms does not distribute google apps with the rom as its not legal. So if you want gapps then yes that file has to be flashed. CM6 can be run without gapps, but you won't get gmail, market etc..once you have gmail it should sync automatically.​

3. Should I stick with CM5 or try CM6 following these suggestions??

CM5 is quite stable rom and runs fine. Choice is yours...CM6 is in initial stages, but is good too...I go with CM5 for my daily driver as a2sd is not officially supported. It will be there in CM6.1....​

And what is a CustomMTD Patch? Annnnnnd, what is fastboot??

G1 was build with a low memory and the way internal memory has been partition todays rom can't fit into it. That's why dangerSPL, but there is a risk involved in installing dangerSPL. If you don't follow the instruction you can brick your phone. CustomMTD is a safe method. This increase the size of data partition so you can install more apps internally. link for that thread is in first post.​


a2sd is a way to store apps on sdcard, sdcard needs to be partitioned to support that..step 1 - e in my guide. That's a manual way of doing it. If you have AmanRA recovery then it will have a menu option for that. Most of the rom supports it automatically, so if you have sd card partition then rom will automatically do that.

CM6 does not support a2sd so it has to done in different way. CM5 supports it but in settings - application - a2sd has to be checked on to move your apps to sdcard.​

Swap is kind of extra memory to help running the applications. if you run multiple application together then you need swap on CM5 and CM6.​
 

jezterking

Member
Sep 7, 2010
33
2
Seattle
WOW!

THANK YOU!!! You are awesome for going through all of those!

Yes, it is a G1.
Are there any features in CM6 that aren't in CM5, or is it faster than CM5 with the ap2sd & swap?

I believe I partitioned the sd card when I loaded the CM6 ROM.

So I'd like to try the CM6 with the ap2sd, swap and the CustomMTD. I do have the AmanRA recovery, but not sure about how to select the ap2sd. :(

Any chance you would tell me how to get the ap2sd, swap and CustomMTD on the phone if I have already Flashed CM6 on there?

Thanks again, regardless. The info you gave me helped me learn a little more. I'm still a bit confused about what fastboot is though. But I will just keep at it and keep learning! :)
 

G1sanju

Senior Member
Aug 28, 2009
370
54
Hyderabad
Are there any features in CM6 that aren't in CM5, or is it faster than CM5 with the ap2sd & swap?

CM6 is based on froyo, latest version of android...its good and yes speed is comparable. Also CM has added new stuff in it, like fully customizable power bar and other stuff...Full changelog is there in CM6 thread.​

I believe I partitioned the sd card when I loaded the CM6 ROM.

So I'd like to try the CM6 with the ap2sd, swap and the CustomMTD. I do have the AmanRA recovery, but not sure about how to select the ap2sd. :(

For CM6 a2sd is through script, instruction is in first post. I have included customMTD also there. So if you follow the guide, you will be having customMTD, a2sd and swap...swap require an partition on your sdcard, if you don't have that partition then it will ask for swap file.​

Any chance you would tell me how to get the ap2sd, swap and CustomMTD on the phone if I have already Flashed CM6 on there?

you can wipe and start over again, first post should be good for you.​

Thanks again, regardless. The info you gave me helped me learn a little more. I'm still a bit confused about what fastboot is though. But I will just keep at it and keep learning! :)

Oh I forgot about the fastboot, fastboot and adb are tool, which give an option to control, flash and do other thing on the phone from PC. The link for setup guide is in first post.​