by Lucas VinÃcius Galindo Carvalho
Version 3 (November 7, 2020)
Download (53 downloads)
Shows a notification with the status of your Moto Mod Snap battery
Uses BATTERY_CHANGED broadcast to report Moto Mod battery status.
https://developer.android.com/reference/android/os/BatteryManager
#Mod battery level
-1=disconnected
mod_level: {ext["mod_level"]}
#Status
4=connected but not charging
3=charging the phone
2=charging the module
1=disconnected
mod_status: {ext["mod_status"]}
#Type
0=disconnected
1=remote
2=supplemental
3=emergency
mod_type: {ext["mod_type"]}
#Flag
1=phone is 100% with module in TOPOFF mode
mod_flag: {ext["mod_flag"]}