Testers Wanted - AirplaneMode Bug Fix for Froyo

mmarz

Well-known member
Mar 9, 2011
1,130
447
0
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:

  1. Leave your phone on airplane mode overnight and take note of the battery drain (% drop/hr)
  2. Download the modded Settings.apk.
    Nameless Rom
    Reborn Rom
    Bumblebee Rom
    Harmonia Rom
  3. Back up your Settings.apk located in /system/app/.
  4. Push the modded Settings.apk to /system/app/ and change the access permissions to "rw-r--r--".
  5. Reboot
  6. Leave your phone on airplane mode overnight, again taking note of the battery drain (% drop/hr)
  7. 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:
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:

  1. Leave your phone on airplane mode overnight and take note of the battery drain (% drop/hr)
  2. Download the modded Settings.apk.
  3. Back up your Settings.apk located in /system/app/.
  4. Push the modded Settings.apk to /system/app/ and change the access permissions to "rw-r--r--".
  5. Reboot
  6. Leave your phone on airplane mode overnight, again taking note of the battery drain (% drop/hr)
  7. 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!
I'll download and test this out for you, I often leave my phone in airplane mode at work because I don't get any single there. I work an average of 8 to 10 hours so I can give you that time and overnight.
 
  • Like
Reactions: mmarz
I'll download and test this out for you, I often leave my phone in airplane mode at work because I don't get any single there. I work an average of 8 to 10 hours so I can give you that time and overnight.

Sweet! Thanks.
 
another quick question I take it you want the info from a full charge? Or dose it not matter? Also I use juice defender did you want that data with it off and with it on?

As long as all of the variables are the same for both of the tests, it doesn't matter. So whatever you do for the test for the regular settings.apk, do the same for the modded settings.apk.
 
Love to help test this for you but right now don't have pc access. If you have any tips on how to install via terminal I'll send you some data.
 
Wouldn't the test results be inaccurate since most of us use different apps? Meaning background apps running

Sent from my VM670 using Tapatalk
 
Love to help test this for you but right now don't have pc access. If you have any tips on how to install via terminal I'll send you some data.

Thanks! If you look again, I posted directions on how to use terminal emulator instead of adb and even how to restore the original settings.apk using terminal emulator.

Wouldn't the test results be inaccurate since most of us use different apps? Meaning background apps running

Sent from my VM670 using Tapatalk

No, because I'm not comparing results on different phones/setups. I'm looking at the results on your phone with the regular settings.apk vs the modded settings.apk. Unless you change apps between tests, it should be fine.
 
I'll have to wait a week. I work offshore and have no signal for days at a time. I go back next week. When I do I'll set it up, and give some feedback. Should be good data, I usually go for 3-4 days at a time without any signal on airplane mode, so I should get good info on Harmonia with and without your mod.
 
  • Like
Reactions: mmarz
FYI, I updated the main post with rom specific Settings.apk files. I haven't tested them all. The worst thing that can happen is that the settings menu won't load and your wallpaper will disappear. If that happens, load your backup Settings.apk and let me know. Your wallpaper wll have to be reloaded manually.
 
Left it on airplane mode from 10:30 PM till 9:30 AM. The battery went from 68% to 66%. This was with the modded settings.apk

With the regular settings I left it on from 12:30 PM to 7:30 AM and the percent droped from 70% to 68%
Sent from my VM670 using Tapatalk
 
Last edited:
  • Like
Reactions: mmarz
Down loaded and tested. 48 hours on airplane mode prior to installing, 9% drop in battery. Installed mods, 48 hours on airplane mode, 9% drop in battery. I'm running Harmonia 1.3 with the picasticks kernel. I can't see any difference in standby battery use. Just out of curiosity, ran the same test on the 0601 build of aosp. I got an 8% drain on the first one and 7% on the second. From what I can see, aosp doesn't do that much better than froyo.
 
No one reported back :-(

FWIW: I've got an EVO with 2.3 that I leave in Airplane mode always. I only use it as an MP3 player for my son and even then rarely (once a week). The standby life has been ~12 days. I don't know what magic people are doing to get "weeks" of battery life...
 
Down loaded and tested. 48 hours on airplane mode prior to installing, 9% drop in battery. Installed mods, 48 hours on airplane mode, 9% drop in battery. I'm running Harmonia 1.3 with the picasticks kernel. I can't see any difference in standby battery use. Just out of curiosity, ran the same test on the 0601 build of aosp. I got an 8% drain on the first one and 7% on the second. From what I can see, aosp doesn't do that much better than froyo.

That pretty much matches up with my results too. Thank you for helping out! I did some tests on the Optimus S too with the same outcome. I guess that talk of the optimus lasting for two weeks and only losing 50% with aosp was bogus. I still don't understand why my Froyo experiments showed a large power drain while in airplane mode.
 

Trending Posts

Forum statistics

Threads
956,928
Messages
6,970,681
Members
3,163,659
Latest member
Jokerman