I am testing to see if the Froyo roms have a "bug" in them that keeps the cellular radios awake and pinging home even when the phone is on airplane mode. From what I've gathered from Gingerbread users if they switch to airplane mode and have no programs running, their phone will last for weeks. From the extensive testing I've done, it seems as though the Froyo roms can't do the same.
I am now trying to see if I can find the root of this problem. I thought the first place I would start is in the code used to enable airplane mode. That can be found in Settings.apk. I've taken the Gingerbread implementation of airplane mode and placed it inside of the Froyo Settings.apk. So far, everything seems to function normally. The only problem is that I am on a business trip. I don't have my test equipment with me, and I can't leave my phone on airplane mode for extended periods of time, especially overnight to test it. It would also be handy to get data from more than one phone.
Warning: This is very much a beta. Don't use this unless you know what you are doing. Always make backups! This is only for Froyo!
If any of you want to help out:
There are a few ways to accomplish steps 3-5. Place the modded Settings.apk in the root of your sdcard first. Here is how to do the steps through adb:
Through terminal emulator:
If you want to restore your backup through adb:
Terminal emulator:
If your wallpaper returns to the default, you've done something wrong. Try restoring your old Settings.apk. Once you lose your wallpaper, the only way to restore it is by manually adding the image as your wallpaper again. You have been warned!
Thank you!
I am now trying to see if I can find the root of this problem. I thought the first place I would start is in the code used to enable airplane mode. That can be found in Settings.apk. I've taken the Gingerbread implementation of airplane mode and placed it inside of the Froyo Settings.apk. So far, everything seems to function normally. The only problem is that I am on a business trip. I don't have my test equipment with me, and I can't leave my phone on airplane mode for extended periods of time, especially overnight to test it. It would also be handy to get data from more than one phone.
Warning: This is very much a beta. Don't use this unless you know what you are doing. Always make backups! This is only for Froyo!
If any of you want to help out:
- Leave your phone on airplane mode overnight and take note of the battery drain (% drop/hr)
- Download the modded Settings.apk.
Nameless Rom
Reborn Rom
Bumblebee Rom
Harmonia Rom - Back up your Settings.apk located in /system/app/.
- Push the modded Settings.apk to /system/app/ and change the access permissions to "rw-r--r--".
- Reboot
- Leave your phone on airplane mode overnight, again taking note of the battery drain (% drop/hr)
- Post your results here making sure to note your rom.
There are a few ways to accomplish steps 3-5. Place the modded Settings.apk in the root of your sdcard first. Here is how to do the steps through adb:
Code:
adb remount
adb shell cp /system/app/Settings.apk /system/app/Settings.bak
adb shell cp /sdcard/Settings.apk /system/app/Settings.apk
adb shell chmod 644 /system/app/Settings.apk
adb reboot
Through terminal emulator:
Code:
su
mount -o remount,rw -t yaffs2 /system /system
cp /system/app/Settings.apk /system/app/Settings.bak
cp /sdcard/Settings.apk /system/app/Settings.apk
chmod 644 /system/app/Settings.apk
reboot
If you want to restore your backup through adb:
Code:
adb remount
adb shell cp /system/app/Settings.bak /system/app/Settings.apk
adb reboot
Terminal emulator:
Code:
su
mount -o remount,rw -t yaffs2 /system /system
cp /system/app/Settings.bak /system/app/Settings.apk
reboot
If your wallpaper returns to the default, you've done something wrong. Try restoring your old Settings.apk. Once you lose your wallpaper, the only way to restore it is by manually adding the image as your wallpaper again. You have been warned!
Thank you!
Last edited: