What's new

Tutorial Check Battery Information on Xiaomi devices using LADB app

Raddddjur

Forum Veteran
Joined
Sep 9, 2018
Posts
2,395
Solutions
2
Reaction
896
Points
776
Requirements:
  • any Xiaomi/POCO smartphone with Floating window tab feature (window tab in between Wireless Debugging & LADB app during Pair Device)
  • LADB app (ρáíd app), use google search
  • Must be connected already with any WiFi AP or Tether/Hotspot AP (for Wireless Debugging)

Steps:
1. Activate Developer Options: Go to Settings -> About Phone -> Tap MIUI Version 7 times until with pop-up message goes "You are already a developer".
2. Back to Settings menu -> Go to Additional Settings -> Developer Options
3. Scroll down a bit & Turn on USB Debugging & wait 10 seconds, check the disclaimer message and tap OK.
Enable USB Debugging (Security Settings), must link your Mi Account to activate it.
4. Scroll down a bit and search for Wireless Debugging setting
5. Turn on Wireless Debugging & Tap Wireless Debugging to enter to its settings (stay at Wireless Debugging)
6. Then Download & Install LADB apk
7. Open LADB app, it shows Pairing Information
  • Port (get port number by accessing Wireless Debugging)
  • Pairing (get pairing code by accessing Wireless Debugging)
8. Go back to Wireless Debugging and use floating windows, choose LADB (2 apps running in overlap)
9. Tap Pair with Device in Wireless Debugging, it shows
Input Port (get the last 5-digit port number from IP address & Port & add it to LADB)
Pairing Code (6-digit Wi-Fi pairing code & add it to LADB)
Once it is done, tap Okay in the LADB app to connect to ADB shell (wait 10 to 30 seconds), it creates a command with Success!
10. To show battery information, in shell command, type dumpsys battery without quotes.

Decoding values in response to a command:
  • Charge counter: only first 4 number you need. I have 3760 (that's mean my battery have 3760 mAh when it fully charged). After you find the current capacity, take the declared capacity from the manufacturer and subtract the current one from it. You will find what is the loss of capacity of your smartphone. Example Mi 9T (4000 mAh - 3760 mAh = 140 mAh this figure is the lost battery capacity, but do not forget about the error in the battery capacity from the manufacturer 0.5%).
* Status have 5 stages:
1 - issues with reading battery info
2 - charged (not full)
3 - uncharged, but connected to usb or charger
4 - uncharged
5 - Fully charged

* Health also have 5 stages:
1 - Excellent
2 - Good
3 - Normal
4 - Poor (need new battery)
5 - Very bad (need new battery)

  • Level - How much is currently charged
  • Scale - at what charge will the maximum battery capacity be

Additional note: For accurate measurement, do shell command dumpsys battery for newly calibrated battery (0 to 100% charge)

Screenshots will be uploaded later.

Screenshot_2022-09-06-13-24-25-126_com.draco.ladb.jpg Screenshot_2022-09-06-13-24-30-754_com.draco.ladb.jpg Screenshot_2022-09-06-13-24-35-557_com.draco.ladb.jpg Screenshot_2022-09-06-13-24-43-420_com.draco.ladb.jpg Screenshot_2022-09-06-13-24-59-381_com.draco.ladb.jpg Screenshot_2022-09-06-13-25-08-392_com.draco.ladb.jpg
 

Attachments

Btw, does 2 mean na may maliit na damage na ang battery?

Bagong bili kasi tong phone then hinahard game ko. Nadamage ko kaya yung battery?
 
Btw, does 2 mean na may maliit na damage na ang battery?

Bagong bili kasi tong phone then hinahard game ko. Nadamage ko kaya yung battery?
2 on Battery Health status means Good.
If you are unsure of your battery health status, you can calibrate your battery again by discharging it to 0% and charge it to a 100%
baka mag 1 ang status yan means Excellent, otherwise yan na talaga (playing a game produces heat e, saka charging cycle)
 
Last edited:

Similar threads

Back
Top