A real Android app that shows a themed full-screen animation (pulsing cracked heart, battery %, twinkling stars, in the red/black/cream palette) every time you plug in the charger. No root needed — uses the same "Display over other apps" permission that popular Play Store charging- animation apps use.
- Shows reliably once your phone is unlocked. It won't paint over an actively locked screen — that layer needs system-level privileges a sideloaded app can't get without root.
- Auto-dismisses after 6 seconds, on unplug, or on tap (won't block your phone).
- This is a separate app from the icon pack — install both side by side.
- Create a new GitHub repo (or reuse a new folder in the same account).
- Upload every file from this folder, including the hidden
.githubfolder and thedebug.keystorefile at the root. - Commit to
main. - Go to the Actions tab, wait for the green checkmark.
- Open that run → Artifacts → download
obsession-charging-apk, extract the zip to getapp-debug.apk.
- Tap
app-debug.apk→ install (allow unknown sources if prompted). - Open the app.
- Tap "1. Allow Display over other apps" → toggle it on for this app in the settings screen that opens → go back.
- Tap "2. Preview animation now" to see it immediately (don't need to actually plug in the charger to test it).
- On Realme, also go to Settings → Battery → this app and turn off battery optimization for "Obsession Charging" — ColorOS aggressively kills background apps otherwise, which can stop the plug-in trigger from firing.
From then on, it plays automatically every time you connect the charger.
All animation logic is in ChargingAnimationView.java — colors are at the
top as named constants, the shapes are drawn with Canvas paths, and the
6-second duration is set in ChargingOverlay.java (search for 6000).
Tell me what you want changed (duration, colors, adding real illustrated
art as a PNG instead of the drawn heart) and I'll adjust it directly.