FORUMS

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

[GUIDE] Update CM without losing custom /system changes (ex Swype, keymap)

37 posts
Thanks Meter: 4
 
By skyjumper, Member on 2nd December 2010, 05:13 PM
Post Reply Subscribe to Thread Email Thread
There's a really simple way to prevent CyanogenMod from overwriting your custom /system changes during an update. Create the file '/system/etc/custom_backup_list.txt' with a list of files within /system that you don't want to be overwritten.

For example, to prevent CM from wiping out Swype, open adb shell and type this:
Code:
mount -o remount,rw /system
cd /system/etc
echo lib/libSwypeCore.so >custom_backup_list.txt
echo app/Swype.apk >>custom_backup_list.txt
cd /
mount -o remount,ro /system
If you use teferi's custom keymap, do this:
Code:
mount -o remount,rw /system
cd /system/etc
echo lib/libSwypeCore.so >custom_backup_list.txt
echo app/Swype.apk >>custom_backup_list.txt
echo usr/keylayout/vision-keypad.kl >>custom_backup_list.txt
echo usr/keychars/vision-keypad.kcm.bin >>custom_backup_list.txt
cd /
mount -o remount,ro /system
Then the next time you flash CM, your changes to /system will still be there. If you want to see why this works, take a look at /system/bin/backuptool.sh

Hope this helps
Last edited by skyjumper; 2nd December 2010 at 05:21 PM. Reason: added swype apk to list
The Following 2 Users Say Thank You to skyjumper For This Useful Post: [ View ]
 
 
2nd December 2010, 07:24 PM |#2  
cparekh's Avatar
Senior Member
Thanks Meter: 10
 
More
Thanks! This is great; now I can easily keep my Email.apk that doesn't require me to enter a alphanumeric password every time I want to use the phone.
2nd December 2010, 09:25 PM |#3  
Senior Member
Flag Manhattan
Thanks Meter: 21
 
More
CM probably needs to overwrite build.prop but I've been changing the LCD density in this file. Is there a way to use a seperate file to override the lcd density so that i can let CM overwrite build.prop but still maintain lcd density after a flash?
2nd December 2010, 09:38 PM |#4  
OP Member
Thanks Meter: 4
 
More
Whatever commands you put in /data/local/userinit.sh will run at boot. So in adb shell, type this for a density of 215:
Code:
cd /data/local
echo setprop qemu.sf.lcd_density 215 >userinit.sh
2nd December 2010, 10:41 PM |#5  
Senior Member
Flag Manhattan
Thanks Meter: 21
 
More
awesome! thank you!

Don't suppose you would know how to get the CM update to not install/auto delete after installation apks like ADWLauncher and wifi calling?
2nd December 2010, 11:15 PM |#6  
Member
Thanks Meter: 2
 
More
Thank you!
This may be the long lost solution to my Swype and Cyan Problems. The new Release Candidates are destroying my swype and not liking it's return after installing the new Cyan. So, if this can basically help me update without losing much, it's a god send. Especially the LCD density.

You're a genius.

Thank you.


Hmm, seems the issue is still persistent. Thanks though.
Last edited by Kalandros; 2nd December 2010 at 11:49 PM. Reason: Didn't work.
3rd December 2010, 02:01 AM |#7  
Member
Flag Jacksonville, FL
Thanks Meter: 17
 
More
Should userinit.sh and custom_backup_list.txt survive the upgrade or should they both be included in the backup list file?

Sent from my HTC Vision using XDA App
3rd December 2010, 02:25 AM |#8  
igashu's Avatar
Member
Thanks Meter: 2
 
More
If you look at the actual script, it seems that it ignores the backuptool if .installscript exists, and in practice, I've noticed that nothing gets saved when flashing via ROM Manager. Is this, in fact, what's happening, and is there a way around it?
3rd December 2010, 04:13 AM |#9  
Senior Member
Thanks Meter: 98
 
More
Quote:
Originally Posted by sundar2012

awesome! thank you!

Don't suppose you would know how to get the CM update to not install/auto delete after installation apks like ADWLauncher and wifi calling?

You can put the following in /data/local/userinit.sh:

Quote:

mount -o rw,remount /system

for apk in ADWLauncher.apk MS-HTCVISION-KNT20-02.apk
do
rm -f /system/app/$apk
done

for package in com.android.launcher
do
pm uninstall $package
done

mount -o ro,remount /system
exit 0

I haven't tried this for removing the Wifi Calling app, so ymmv. I remove a much larger set of apps myself (facebook, email, live wallpapers, amazon mp3 store, DSPManager, FileManager, Browser). http://wiki.cyanogenmod.com/index.php?title=Barebones has a list of apps that can be removed safely.
3rd December 2010, 05:14 AM |#10  
Senior Member
Thanks Meter: 2
 
More
@cparekh -- what e-mail app is that? Or did you just use the pre-OTA's Email.apk app?
3rd December 2010, 05:18 AM |#11  
pbedard's Avatar
Senior Member
Flag boston
Thanks Meter: 839
 
More
Rc4 has the trackpad wake fm radio and speaker led fixed its workng very smooth better than rc3

Sent from my HTC Vision using XDA App

Read More
Post Reply Subscribe to Thread

Tags
cyanogenmod, swype, update
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes