r/Oppo • Find X Series • 21d ago • Bravo 12 Mindblown 1

Discussion Claude finally solved my battery drain

TL;DR: My Find X9 Pro was getting about 7h SOT per charge while people here report 10-12h. I connected it to Claude Code on my PC over ADB and let it audit the phone. The hardware was fine; background apps weren't. The biggest find was my Santander UK banking app keeping the gyroscope and accelerometer at 400 Hz in the background, and it never showed up in Battery usage. Also found that ColorOS's battery toggle didn't actually restrict apps at the Android level for me; I had to use a hidden Android menu. Fixed with a few toggles, no root. Early days on the results, see below. I just wanted to state that I'm not a heavy user, I don't game or stream videos, just causal browsing and social media.

UPDATE: A full step by step guide can be found here https://www.reddit.com/r/Oppo/s/gPC7YKLsCh

Phone: Find X9 Pro (CPH2791, EU), ColorOS 17.0.0.102, 7500 mAh, 122 cycles, battery health Good.

Method: With USB debugging on, Claude read battery stats, wakelocks, alarms, background jobs and sensor registrations through dumpsys, then asked me before changing anything.

WHAT IT FOUND

  1. Santander UK: background sensor leak

- The app bundles a fraud-detection SDK (BioCatch), plus a periodic IBM Trusteer job (TasService, every 15 min) that relaunches the app in the background.

- When the process starts that way, with no screen open, BioCatch registers the accelerometer and gyro at 400 Hz, rotation vector at 200 Hz and proximity at 1 kHz, all unbatched, and never unregisters them.

- Android cuts off delivery to the cached app, but the sensors stay switched on at the hardware level.

- That day I'd opened the app once, for about 40 seconds. It was relaunched 14 times anyway, and Android killed it twice for "excessive CPU usage".

- A/B test (unplugged, screen on, 6 alternating rounds): +21 to 23 mA, about 7% more drain while it was running. Sensor-HAL CPU dropped from 204 to 13 ticks per 30 seconds once it was stopped.

- Opening the app normally is fine: BioCatch unregisters its sensors 8 seconds after you leave. Only the background relaunch leaks.

2) Instagram background Reels prefetch (ClipsTabBackgroundPrefetchWorker)

- 25 min of job time and 15 min holding a wakelock in under 2 hours on battery, mostly with the screen off. About 3.6h a day in the background.

3) WhatsApp (XmppLifecycleWorker)

- 36 job runs in under 2 hours, 26 of them with the screen off. It was on "Don't optimise".

4) OPPO-preinstalled Facebook services (App Manager / Services / Installer)

- System-exempt from Doze, about 114 wakeup alarms a day.

6) Google Play services Bluetooth scanning

- 19 min in under 2 hours with Bluetooth off, via the "Bluetooth scanning" setting under Location services.

WHY BATTERY SETTINGS NEVER SHOWED IT

- The cost lands on the system, not the app. Santander's sensor drain was billed to Android's sensor service, so batterystats blamed Santander for 0.19 mAh in a window where it was costing about 22 mA whenever it ran.

- The battery accounting itself looks broken on this phone. It seems to ship a generic power profile: its CPU frequency tables are Snapdragon values, on a MediaTek chip. In one session Android could only attribute about 60 of 298 mAh (around 20%) to specific apps; the rest went unattributed. So "Battery usage by app" can't be trusted to show what's actually draining.

THE HIDDEN ANDROID BATTERY MENU (AND WHY THE COLOROS TOGGLE WASN'T ENOUGH)

ColorOS replaces Android's battery screens with its own. Android's original per-app battery page still exists, with the real "Allow background usage" switch and the Optimised / Unrestricted choice, but you can't reach it from the normal ColorOS menus.

In my case, turning off background usage for Instagram through ColorOS's normal App battery management did NOT restrict it at the Android level. Its background jobs, including the Reels prefetch, were still allowed to run. The restriction only took effect once the switch was off on Android's own page and I backed out of it.

How to open the hidden page:

- Without a PC: install Activity Launcher from the Play Store, search "AppBatteryUsage", open Settings > "Battery optimisation" (.Settings$AppBatteryUsageActivity). You can also make it a home-screen shortcut. It opens Android's own list of every app, with a filter for All / Unrestricted / Optimised / Restricted. Tap an app for its page.

- With ADB, the whole list:

adb shell am start -a android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS

- With ADB, one app's page:

adb shell am start -a android.settings.VIEW_ADVANCED_POWER_USAGE_DETAIL -d package:com.instagram.android

On that page, the switch on the right is "Allow background usage" (off = Restricted). Tapping the words instead lets you choose Optimised or Unrestricted. Back out of the page afterwards; the change only commits when you leave.

How to check it actually worked:

adb shell cmd appops get com.instagram.android RUN_ANY_IN_BACKGROUND

"ignore" means restricted; "allow" or "No operations" means it isn't.

adb shell cmd appops query-op RUN_ANY_IN_BACKGROUND ignore

That lists every app that's actually restricted.

WHAT I CHANGED (NO ROOT)

- Santander and Instagram: Allow background usage OFF on Android's own battery page, confirmed restricted (their background jobs are now blocked)

- Every third-party app moved back to Optimised

- Disabled Facebook App Manager, Services and App Installer (pm disable-user)

- Location: Wi-Fi scanning and Bluetooth scanning OFF

RESULTS SO FAR

- Before (10-day average): about 7h SOT per 100%, about 52h per charge, screen-on drain about 9.3%/h, overnight standby 0.6-0.95%/h.

- After, day 1: 1h16m screen-on with 90% left.

CHECK YOUR OWN PHONE

BioCatch is used by a lot of banks, so if you have a banking app installed, it's worth running the sensorservice check.

641 Upvotes

170 comments sorted by

View all comments

Show parent comments

64

u/moah11 Find X Series 21d ago • Bravo

Sure! Here's exactly how I did it, no coding needed, you just chat with it.

WHAT YOU NEED

  • A Windows PC (Haven't tried on Mac but I assume it's the same)

  • A USB cable for your phone

  • A paid Claude plan (Claude Code isn't on the free plan)

STEP 1: GET A CLAUDE PLAN

STEP 2: INSTALL THE CLAUDE DESKTOP APP

  • Download it from claude.com/download (Windows or Mac) and sign in with the same account.

  • Open the "Code" tab at the top. That's Claude Code: the mode where Claude can run commands on your PC, which is what lets it talk to your phone.

STEP 3: START A SESSION

  • In the Code tab, start a new session and pick a folder on your PC for it to work in. I made an empty folder; it saves any scripts or files there.

  • Choose a model in the model picker. I used Opus 5.5, the most capable one, which is good for this kind of digging. Use the best one your plan offers.

STEP 4: PREPARE YOUR PHONE (OPPO / ColorOS)

  • Settings > About device > Version > tap "Build number" 7 times to unlock Developer options. You may need to enter your PIN.

  • Settings > System & update > Developer options > turn on "USB debugging".

  • Plug the phone into the PC. When the phone asks "Allow USB debugging?", tap Allow. Tick "Always allow from this computer" so it doesn't keep asking.

STEP 5: ASK IT This is roughly what I typed: "My Oppo Find X9 Pro is connected to this PC. I'm getting way less screen-on time than other users report. Please run an audit to find the core cause."

It figured out the rest. It needed Google's ADB tools to talk to the phone, so it asked before downloading them from Google.

STEP 6: APPROVE AS YOU GO

  • It asks before downloading anything or changing a setting. Read each prompt and say yes or no.

  • Most of the audit is read-only: it pulls battery stats, wakelocks, alarms and sensor data, then explains what it found in plain English.

  • It also told me which settings I should change myself, and why.

STEP 7: FOLLOW-UPS I ASKED FOR

  • "Apply the fixes" (it showed me each change and made an undo script)

  • "Measure how much [app] is actually using" (that's how I got the mA numbers: an A/B test with the phone unplugged over Wi-Fi)

  • "Run a full settings check" and "run a privacy check"

  • "Show me all apps with unrestricted battery use"

TIPS

  • Don't use the phone while it's tapping through screens for you; let it finish.

  • Keep the phone unlocked and on the home screen when it asks.

  • It can also work over Wi-Fi if you need to unplug, but set that up while you're still plugged in.

  • When you're done, turn USB debugging off again (Developer options) and restart your phone.

Whole thing took me around 1h, mostly because I kept asking follow-up questions. Good luck!

7

u/0wed12 20d ago

Also work with DeepSeek Coder and it's free

3

u/Puzzleheaded-Ad5347 20d ago

Same steps with DeepSeek coder? For free?

5

u/0wed12 18d ago

Sorry the name is Deepseek Harness and you literally have to do everything the same except you replace Claude with Deepseek, there is no extra step, you have to install Deepseek Harness on your computer, log in to your DS account and thats all.

→ More replies (4)

4

u/boogie96six 19d ago

Yes i did it and it actually worked same guide used

1

u/24kayc Find X Series 20d ago

curious about this aswell

1

u/tehhanlin Find X Series 17d ago

This turn failedRequest quota exhausted.

ACCOUNT_QUOTA

Available only on the last message of a completed turn

How is it free? Or is there a way to use it for free? Thanks.

3

u/Aswin832 17d ago

I guess it is free. I ran the whole battery and privacy check and only used 23% of the quota

2

u/tehhanlin Find X Series 17d ago

It said web is free but API is not. I'm running it for 2 phones, it ran out of token when I asked how to use other launcher in CN ROM lol

→ More replies (2)
→ More replies (3)

1

u/Papakitou 19d ago

Provide some info please.

→ More replies (2)

1

u/yomieks 18d ago

unfortunately this do nto work for me, harness keeps asking me to purchase tokens.

→ More replies (1)

5

u/soyalemujica Find X Series 20d ago

Tried it with my X9 Ultra, Claude insists it's okay (it really is) it literally didnt want to change anything, says battery is amazing, at 1% every 10 minutes lol

1

u/Dramatic-Button2434 11d ago

it is amazing..?

4

u/Nylaant 21d ago

I'm going to test this at Samsung and see if it works too.

2

u/ill_us_ions 21d ago

keep me updated on how it goes. my s23 ultra is a pain in the ass. the SOT time is so less

1

u/Nopski 21d ago

Yes please

1

u/Stunning-Touch1122 Find X Series 21d ago

Did it work?

1

u/Nylaant 20d ago

I haven't had time to test yet; I've arrived very tired of the work and I'm still going to need to sign Claude, since I don't have it.

1

u/Watbrupls 19d ago

running it right now ❤️‍🩹

1

u/Watbrupls 19d ago

Update: after the full run it made some changes, and also pointed out that randomly overnight expressvpn spiked to 97% cpu usage, safe to say im not gonna be using them any longer, but here is the summary it gave me:

Over adb, I analyzed your Galaxy S26 Ultra's battery drain using Android's and Samsung's own logs. Your battery is healthy and drain while you use the phone is normal. Idle drain runs about 1.3%/hr, a bit high, and "Switch to mobile data" is the top suspect for that. Brave's camera session, Spotify streaming over cellular, and Link to Windows were the heaviest apps. I then made these changes:

- Set the screen timeout to 1 minute.

- Turned battery optimization back on for WeChat.

- Disabled 12 preinstalled bloat apps, leaving Samsung telemetry alone as you asked.

- Uninstalled Forward SMS.

- Turned on clipboard access alerts.

- Blocked Facebook from using data in the background.

- Locked your home WiFi to the 5 GHz band (about 7× faster upload).

I also ran full settings and privacy checks. Still open from those: Private DNS isn't actually using NextDNS and developer options plus wireless debugging are still on. Everything I changed can be undone.

→ More replies (2)

1

u/HugoBossPT 21d ago

One question, I've been using Claude for a while to study: it helped me create presentations and summaries (pptx and pdfs) from scratch and scan information from the lessons and papers I give him. It seems to work pretty well and its still code based (every step and task involves coding of some sort). In the projects tab I can still choose the context and give him acess to local folders and files

For this type of stuff do you think the Claude Code terminal works better and is different in any way?

1

u/Aygul12345 OnePlus Club 21d ago

Sure! Here's exactly how I did it, no coding needed, you just chat with it. WHAT YOU NEED • A Windows PC (Haven't tried on Mac but I assume it's the same) • A USB cable for your phone • A paid Claude plan (Claude Code isn't on the free plan) STEP 1: GET A CLAUDE PLAN STEP 2: INSTALL THE CLAUDE DESKTOP APP • Download it from claude.com/download (Windows or Mac) and sign in with the same account. • Open the "Code" tab at the top. That's Claude Code: the mode where Claude can run commands on your PC, which is what lets it talk to your phone. STEP 3: START A SESSION • In the Code tab, start a new session and pick a folder on your PC for it to work in. I made an empty folder; it saves any scripts or files there. • Choose a model in the model picker. I used Opus 5.5, the most capable one, which is good for this kind of digging. Use the best one your plan offers. STEP 4: PREPARE YOUR PHONE (OPPO / ColorOS) • Settings > About device > Version > tap "Build number" 7 times to unlock Developer options. You may need to enter your PIN. • Settings > System & update > Developer options > turn on "USB debugging". • Plug the phone into the PC. When the phone asks "Allow USB debugging?", tap Allow. Tick "Always allow from this computer" so it doesn't keep asking. STEP 5: ASK IT This is roughly what I typed: "My Oppo Find X9 Pro is connected to this PC. I'm getting way less screen-on time than other users report. Please run an audit to find the core cause." It figured out the rest. It needed Google's ADB tools to talk to the phone, so it asked before downloading them from Google. STEP 6: APPROVE AS YOU GO • It asks before downloading anything or changing a setting. Read each prompt and say yes or no. • Most of the audit is read-only: it pulls battery stats, wakelocks, alarms and sensor data, then explains what it found in plain English. • It also told me which settings I should change myself, and why. STEP 7: FOLLOW-UPS I ASKED FOR • "Apply the fixes" (it showed me each change and made an undo script) • "Measure how much [app] is actually using" (that's how I got the mA numbers: an A/B test with the phone unplugged over Wi-Fi) • "Run a full settings check" and "run a privacy check" • "Show me all apps with unrestricted battery use" TIPS • Don't use the phone while it's tapping through screens for you; let it finish. • Keep the phone unlocked and on the home screen when it asks. • It can also work over Wi-Fi if you need to unplug, but set that up while you're still plugged in. • When you're done, turn USB debugging off again (Developer options) and restart your phone. Whole thing took me around 1h, mostly because I kept asking follow-up questions. Good luck! C

Many thanks! Gonna try it tonight!