yashsingh1/xdaforums huggingface dataset:
[LG V30 Questions & Answers] TheDannemand:
I did grant usage stats permission to GSAM. Otherwise it wouldn't have shown the details in those screenshots.

GSAM can show stats for various time periods, including custom ones. I generally check it in the morning after it's been lying on my desk or nightstand overnight for 8-9 hours. That's the ultimate Deep Sleep condition.

MY cell radio uses a bit more after switching to AT&T and returning the signal booster that T-Mobile provided me. The booster didn't improve T-Mo weak's reception in my apartment, but it DID provide a stronger signal to the phone, so it doesn't have to work so hard to maintain it.

I'll take you up on that. I haven't used BBS in years (different phone) so not up-to-date on it at all. I'll follow your procedure, just tell me what to do.

Thanks again. Much appreciate your help!

Edit: I downloaded and installed BBS 2.2.2.0. Holy crab, I can't believe that thread is now 3300+ pages!
[LG V30 Questions & Answers] One Twelve:
Good, this will allow you to compare both tools and see which one is more useful.

Now you need to give BBS the permission in ADB as shown

here

adb shell

pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS/

That's it. Switch off Developer options.

Then go into BBS-Settings-Advanced- (scroll to the bottom and click System App) and verify it says BATTERY_STATS granted. Cannot proceed further otherwise.

If ok, back out of advanced and tap 'Watchdog' then enable

Next, try a dry run. AOD off. Let the cell be on since that's how you use it and wifi.

What battery level is when you start the idle test matters. Can be anywhere between 50 to 95 but not over or under. More consistent data between those two points.

Let it rest for an hour. Do not touch it during this time. if the phone rings and you answer it then your log is going to get polluted with irrelevant info. It's useless, have to redo the idle test. The not touching it matters a lot.

When time is up, in the app under summary there are a couple of dropdown menus. Select 'Screen Off' instead of 'Boot' for the left and the menu next to it, select 'Screen On' instead of Current. Telling it to print data only during the time screen last switched off and turned back on. Very handy. As you can use your phone before the test and when ready to do the test it doesn't matter where you start within the limits mentioned. Screen off to screen on, That's what watchdog does.

After that, Look for the share button at top and select Dumpfile then Save. The txt file will be saved in emulated/0 so in LG's file manager, Internal storage, scroll down, it should be there by default. file name betterbatterystats- date-time.txt

Post that txt file as an attachment in your next post. Hopefully, on the V30, BBS will record under the sections, partial wakelocks, alarms, network which are required to understand where wakes are coming from. If this part is successful then you can go on to do a real idle test.

There are three key points here,

- idle test done when battery between 50 - 95

- your screen on during the idle test cannot exceed 1 minute. No touching

- getting the correct start and end points meaning you selected screen off to screen on to record in the dump.

Get this down right and you will be ready to do a real idle, test. There is one extra condition now. Test cannot be less than six hours. Can certainly be longer but not less than 6h. This is where the no touch rule starts to grate but that is the minimum time required for any wake locks to make themselves known. Getting the procedure right means you don't waste runs. And you will be doing several as you hone things

A bit rigourous but this is what the creator of BBS and the guys in that 3k+ thread insist you do to get the most out of BBS. They won't look at your dump file otherwise. Redo it they will say
[LG V30 Questions & Answers] TheDannemand:
Thank you. I'd already granted it permissions (BATTERY_STATS and DUMP). But I cannot install it as System app, since I am not rooted -- which it promptly tells me if I try. I was looking for somewhere to confirm the permission, but didn't find it.

Anyways, I started the Watchdog. I'll be charging it overnight, then do the dry run tomorrow after the battery has dropped below 95%.

Thanks again. This will be interesting!
[LG V30 Questions & Answers] One Twelve:
Ah, i wasn't clear, install as a system app isn't required, that screen is just to check if the permissions took.

A popup appears saying root is required and disappears after a second or two, if you see the word 'granted' then you're good to go. Fingers crossed the right sections get data
[LG V30 Questions & Answers] TheDannemand:
Got it. The no-root popup doesn't go away, but I can see the permissions confirmation on the darkened screen behind.

Thanks again!
[LG V30 Questions & Answers] One Twelve:
All good. Post a dumpfile
[LG V30 Questions & Answers] TheDannemand:
Didn't get a chance to leave the phone alone until tonight. But here we go, 2:45 hrs of sound deep sleep (attached).

I am puzzled BBS doesn't record any battery drop during this time at all. If all my phone's idle time was like this, I'd be perfectly happy. The only difference between this nap and nighttime is location of the phone (living room vs bedroom) and the fact I turned AOD off manually, where at night it's set to turn off automatically.

Just glanced through the log file. Quite instructive I must say, seeing the activity of apps like Netflix, LG Music, Google Music and others, which I haven't used in weeks.

Im still at 78% battery, so going to do a "real run" overnight. Busy all day tomorrow, but have to remember to save the dump when I get up.

Thanks again.
[LG V30 Questions & Answers] One Twelve:
All sections populated without root. You're good to go :)

So long as your battery didn't really drop during that period then all is good. I wouldn't read too much into this log as its too short a duration, the purpose was to ensure BBS works with the V30. And from what i can see it is. This app has to work with all phones and some can be quirky.

For now keep AOD off when testing so you get a baseline that is repeatable. The fewer variables to deal with easier it becomes to detect if and where the problem is. You can then make small changes and monitor for differences. Change, test, change test. u'll have a good handle of what does and doesn't make a difference. Too often people offer recipes on these boards and without any way to monitor or systematically measure it just remains a country remedy.

Networks is an important section and we see now why your battery didn't drop. Less than half a MB transferred in 3h. Will that hold over a longer period is tbd but your apps are well behaved. No action required.

Alarms you had a total of just 4 in 3h. Another reason

Good, we'll know then whether your drain rate really is 0.5%/h or actually lower.
[LG V30 Questions & Answers] TheDannemand:
Well, good morning to you!

During the 9hrs overnight run, battery actually dropped 0.6%/hr. Exactly the same setup as the dry run (AOD, Location, Bluetooth, NFC off) except on my nightstand where cell reception is weaker AND Comfort view and DnD are automatically enabled.

I haven't had time to study it, and prolly won't today. But I am attaching for your analysis.

Thanks again for your help!
[LG V30 Questions & Answers] One Twelve:
1) I take it you have bluetooth & wifi scanning set to off. Go to location, check the three dots on right, Scanning, both wifi and Bluetooth should be off.

Do you have location history reporting set. Turn on GPS, scroll to the bottom. tap google location history, set to off. Check if location sharing is sharing with anyone. Turn GPS off.

You will lose the ability to track your phone, so apps like 'find my phone' will not work.

2) if you want to prevent any transfers when the phone is resting, Wifi - Advanced - useful settings - keep wifi on when screen off - 'only when plugged in' instead of yes as it is currently

Wifi only comes on when the screen is on and stays on only so long as screen is on or if plugged in. This way updating apps when charging will work.

Depending on how often you use your phone this switch may help reduce drain, it would be counter productive for someone that couldn't stay away from the phone for more than five minutes.

It can also create the impression that the battery is draining faster with screen on as when the apps detect wifi is on there can be this frenzy where they all try to get their work done. You want this as it keeps your radio on only when required and off otherwise. But the gauge might go down faster than usual momentarily due to the backlog. With podcasts i notice if i start listening, playback will continue until the podcast is over when the screen goes off. But it won't play the next item in the list. So you can expect similar behaviour with other networking apps. Downloads will likely pause after screen off when the file in question completes only to resume at screen on if there is a queue.

This works so long as data isn't used or the apps will just use data instead and there will be no gain and in fact the opposite. If you spend more time on data, this switch isn't going to help. You have to go to the source, meaning app by app and see whether they have any checking for update or similar and turn it off

3) Do you have Sync on ? gmail & contacts were syncing. As a result of step 2, sync should in theory now only take place when your screen is on or when plugged in. I think this means your syncs if any scheduled will complete at screen on but updates only at next screen on. Your call whether sync on a regular basis is important or not.

4)

com.google.android.gms (Google Play services): Uid: 10088 [COLOR="Red"]Sys: 50 s Us: 1 m 35 s[/COLOR] Starts: 0
*wakelock* (com.android.vending.Google Play Store): Uid: 10143 [COLOR="red"]Sys: 53 s Us: 1 m 28 s[/COLOR] Starts: 0
*wakelock* (Google Play services): Uid: 10088 Sys: 24 s [COLOR="Red"]Us: 44 s[/COLOR] Starts: 0
com.android.vending (com.android.vending.Google Play Store): Uid: 10143 [COLOR="Red"]Sys: 19 s Us: 32 s[/COLOR] Starts: 0

Google playstore apps on auto update by any chance ? manual update means it won't check

Try those and see whether your next idle test gets lower drain
[LG V30 Questions & Answers] TheDannemand:
Sorry for the lack of response yesterday. Zero time to play on weekdays. But I did capture another dump overnight, this time with phone in living room where reception is better. Otherwise same settings. Drop is 0.4%/hr.

Location Reporting was already disabled, along with most other Google reporting features. In fact GPS is off, as well as Bluetooth and NFC.

I keep sync on. WiFi scanning is off (of course) but WiFi Always on because cell signal is too weak in my home, it uses more power. On my Nexus I had Smart Radio switch to 2G when on WiFi, that saved a lot. Also aiming to keep data consumption low.

I hope to get a little time tomorrow to look into these stats if there are more apps and services to pinch. My main target has been LG services that duplicate Google's. There's still a few left.

Thanks again for your help.
[LG V30 Questions & Answers] One Twelve:
Can you post that dumpfile ?

I have my phone set to 2G only and switch to 3/4G only when i need data. This is because my 4G is on band 40 which doesn't have the range of 2G.

On T-mo with band 12, if you have band 12, battery should be better as that frequency is even lower than std 2G and has more range.

The lists posted on the board are very comprehensive so as to apply to as many possible with various use cases.

My approach is to only look at those that show up in the process list. These take up memory in RAM and preventing them at start up will make the phone faster. However pay attention to how much memory you win as a result of disabling them. Small apps won't make much difference. and if they aren't causing unnecessary wakelocks then leave them alone. The difficult bit is just because an app requests a wakelock doesn't mean its draining power not unless there is a corresponding service that acts on that wakelock. Figuring out this call response play can take a while.

With BBS you will be able to spot which ones to remove. You cannot reclaim any space without root anyway.

It's also unclear to me what happens when an update becomes available. Some say all apps must be renabled before the update otherwise there can be trouble, others say uninstall only makes apps invisible to the user and they are still visible at the system level and can be updated without issue.

Which is it :)
[LG V30 Questions & Answers] TheDannemand:
Silly me :silly: Good thing you caught me before heading out for the day.

Dump file attached
[LG V30 Questions & Answers] One Twelve:
looks identical to your last idle log. Only difference being the drain rate.
[LG V30 Questions & Answers] TheDannemand:
Exactly! Which is why my conclusion is that radios are the biggest factor, with the first run being from bedroom, and the second from living room. As elaborated on my post from earlier today.
[LG V30 Questions & Answers] One Twelve:
If you boot into recovery do you see a wipe cache option too or is it only factory reset ?
[LG V30 Questions & Answers] TheDannemand:
I imagine you mean to suggest this as an alternative to Factory Reset in order to restore accidentally uninstalled system apps? (I ask because you quoted my sentence about the radios being the biggest battery drain, kind of a different topic.) If so that is a good suggestion, although I wonder if some of those restored system apps could get messed up without a data wipe before their first boot.

But in any case, regrettably, the only Recovery Mode I can get to on my H932 has a plain Factory Reset Yes/No menu, and not a Cache Wipe option.

New Android phones are getting so restricted and locked down, I it really sucks. Of course there is the Open Market US998, but even with that one I am getting the impression LG is treating it like Fort Knox. Between that and the bloatware, I might end up selling my V30 and get a Dev friendly phone like the OnePlus 5T instead. My wife would keep her V30 as it works well for her use.
[LG V30 Questions & Answers] One Twelve:
Ah, it was a misquote. Nothing to do with system apps.

Pity, thought you get custom recovery from these operators.

Exactly the same with stock LG that does not have wipe cache either. Very handy at fixing lag and battery drain.

Yes either that or detective work with BBS
[LG V30 Questions & Answers] TheDannemand:
Here is an interesting one:

After using ADB to disable LG and T-Mobile bloat on my V30+ (H932) it was clear that my cell radio is the main cause of idle battery drain, which my BBS stats confirmed. For some reason my phone prefers connecting to LTE Band 2 (1900 MHz) in the North part of my home (including my bedroom) even though both B12 (700 MHz) and B5 (850 MHz) have the same or better signal strength on both sides, and would require less power by the modem.

So I went to the TMO Hidden menu and disabled LTE Band 2. Or rather, in the LTE Band Selection menu I enabled all official LTE bands of the AT&T V30 (1, 2, 3, 4, 5, 7, 12, 20, 29, 30, 38, 39, 40, 41, 66) EXCEPT B2. The phone instantly switched from B2 to B12.

The next overnight BBS run had only 0.3%/hr battery drain -- the lowest I have seen yet. Previous overnight runs in my bedroom had 0.6% and 0.7% drain, while an overnight run in my living room (closer to B12 tower) had 0.4% drain. Of course all other settings are the same on these runs.

The question is whether keeping B2 disabled is workable when I am out and about. My LTE Discovery log shows a lot of B2 connections around this area. I cannot say why B2 seems to be preferred. Maybe it's my RedPocket APN (APN=RESELLER); or maybe AT&T (or the phone) is trying to reserve capacity on the lower frequency bands (which have better wall penetration) for those who cannot receive the higher frequency ones. I'll keep testing the coming days.

For those who wonder: While my phone is a TMO H932, I unlocked it and switched to AT&T MVNO because TMO has very poor reception in my home. On TMO the phone ALSO seemed to prefer higher frequency bands B2 and B4, but often because there was no lower frequency band available or it's signal was too weak. That situation should hopefully improve in coming years as TMO rolls out B71 (600 MHz).

The TMO Hidden menu can be accessed by entering 277634#*# in the dialer (see this thread among others). On models where this dialer code doesn't work, but which have root, a shortcut to com.lge.hiddenmenu.tmo can be used instead (see this thread). In the LTE Band Selection menu, check ALL the bands you want the phone to scan for, and remember to hit the Save button. The Reset button clears all the bands in the menu and reverts to the phone's default band selection.

Warning: As described in various threads, there is another LTE Band Selection menu with no checkboxes, which locks the phone onto a single band. This menu has been known to cause trouble with users being unable to restore the phone to automatic scanning of multiple bands, even after factory reset. See the threads linked above to get to the right menu.

There is still discussion in these other threads about whether all bands displayed in the menu are actually supported by hardware. Most specifically, whether non-TMO models (such as the open market US998) can use TMO B71 simply by enabling it in the menu. As I understand, the jury is still out on that.

Not to get off topic. My point here was really about the effect on battery.
[LG V30 Questions & Answers] alexcb101:
Hey, which LG and TMO apps did you disable? My V30 was doing great on battery for the first few days, then tanked hard. It's displaying the same behavior as your V30 in the beginning.
[LG V30 Questions & Answers] TheDannemand:
Member [MENTION=290344]edmondt[/MENTION] has since created the following excellent thread and guide, which I would recommend you follow:

https://xdaforums.com/lg-v30/how-to/apps-to-debloat-root-t3746391

I can give you a list of the apps I uninstalled with ADB, but edmondt's list in that post is a better summary. Some apps I simply disabled under Settings-Apps (several of which can be re-installed with LG's Update Manager), and some of the first I ADB uninstalled I didn't make proper notes of. I fully expected to have to Factory Restore at least once while experimenting, but I didn't have to, as everything I need is working. I have not experienced any lagging, as some have reported. On the contrary, my phone is significantly smoother than before I debloated.

In addition to debloating, key battery changers for me were:

1) Location. Even with Google Location History and WiFi scanning disabled (in the dot-menu), is uses an awful lot of battery. This is particularly true whenever the phone is moving around, but even when lying still on a desk. So I keep Location disabled, except when I actually need it. This is obviously a trade-off between battery and convenience.

2) The phone constantly scanning for (and seemingly preferring) high frequency LTE bands, which I disabled using the TMO Hidden Menu (as described in my previous post).

3) Excessive background data traffic from various apps: I went through the Mobile Data settings screen and disabled background data for all apps with any significant data usage, except the ones where I actually need them to update in the background. Most of them are just busy "phoning home" with telemetry every few seconds or downloading ads for future display. This also saves a ton of mobile data of course. I wish I could do the same for background WiFi data to save battery while on WiFi. Even better, I wish Android would give me a way to completely prevent selected apps from running in the background.

My overnight battery drain is now consistently 0.2-0.3% depending on how much Play Store activity takes place. WiFi and Bluetooth are always on, just because it's easier that way. I recharge every 3rd night and rarely get below 20% battery. SOT is typically 5-7 hours during those three days.

I hope this is of some help.

Edit: Oh, and I owe great thanks (again) to [MENTION=5512893]One Twelve[/MENTION] for his help in using BetterBatteryStats to diagnose my battery usage. BBB is now my preferred battery app, although I still keep GSAM on the phone for a few things, and AccuBattery for monitoring long term battery health: After 4+ months of phone use it reports my Estimated Battery Capacity to 3401 mAh (103% of Design Capacity) :)
[LG V30 Questions & Answers] alexcb101:
So I ran BBS overnight after debloating my phone and found that the primary culprit seems to be com.android.phone.

it says the intent is com.android.internal.telephony.data-reconnect.vtims. I have no idea what this means. The only way I have gotten this to stop is by applying airplane mode. Any insight would be welcome.
[LG V30 Questions & Answers] TheDannemand:
This is just speculation, but do you have WiFi Calling enabled, and if so, does it connect properly (notification icon is white, not red)?

That's all I can think of.
[LG V30 Questions & Answers] alexcb101:
Welp, figured it out. I had two APNs on my phone, one for T-mobile and another for mintsim. I had tried switching between the two and saw no differences. So I figured screw the mintsim APN, it didn't improve anything about their service anyways, then deleted it altogether. After a reboot, the com.android.phone wakelock/alarm and a couple other wakelocks were gone. This remains so after an hour BBS test as well.
[LG V30 Questions & Answers] mandar_ez:
Lg v30 plus battery drain

Turn off face unlock feature and delete any saved profile. Idle battery drain significantly improved.
[Galaxy S II Q&A, Help & Troubleshooting] coyazuu:
I followed the following guide to get my I9100 back to stock: https://xdaforums.com/showpost.php?p=71481676&postcount=587

I followed the version with the repartition but got an error during the installation of the PIT. I restarted the phone in download mode mode again, restarted ODIN, tried the version without the repartition, got another error, this time during the upload of data.img (unfortunately I didn't write it down).

Now the screen remains black when I try to boot normally, or in a recovery or in download.

Is there anything I can try to resurrect my phone? Thanks
[Lenovo Yoga Book Questions & Answers] fighting4fun:
Hi guys,

I know there is a way to disable the package "Floating Window" but this also disable the note feature while you are using another app.

Is there a way to use the Note-Feature while the preview is in background? i have to take much notes while I am in different apps like Skype and the preview is blocking content.

If not it seems the yoga is nice to have but not really usefull cause I already need a piece of paper to take the notes.

Best wishes
[Lenovo Yoga Book Questions & Answers] Broomfundel:
The best I found is to use a package disabler to toggle the floating window. It takes a bit of setting up, but I have an icon on my home screen which lets me turn it on and off at will. It is such a silly thing, but really ruins the usability of the tablet.
[Moto G5S Plus Questions & Answers] d3m0n114:
I had rooted with superSU than switched to magisk root which is now updated to Magisk v15.2(Magisk Manager 5.5.3) and I have some problems

Every Modules I intall gives Installation error(magisk_merge.img merge failed)

tried flashing modules via recovery but not showing into magisk manager

safetynet check failed what to do?

can i install viper4android or ARISE sound system(cant install from magisk modules)

If anybody can help would be great
[Moto G5S Plus Questions & Answers] Phazmos:
Odds are good you didn't remove su properly
[Moto G5S Plus Questions & Answers] xSpartacusx:
flash the unSU zip file to uninstall superSU
[Moto G5S Plus Questions & Answers] d3m0n114:
doesnt work