@sbdags - the Transformer.apk in CTM is slightly modified to side-step (not fix) a f/c issue of the 'transformerservices' (when connecting the charger to dock) I encountered when I first added the 1% battery for the dock back in CTM v1.3 for CROMI 3.4.1
Here is a message I sent to timberwolf of what I did back then
Transformerservices f/c when plug in charger with 100 battery icons for dock, I had a look at the smali files and the id's look to match the correct ones within framework-res so not sure why the f/c. It only seems to have an issue with the modified stat_sys_dock_battery_charge.xml in framework-res, maybe file size to large not sure. But this is only to display the battery icon on the right side of the "Dock Connected" notification.
So I changed the id#'s in the Transformer.apk smali files to point to the stat_sys_battery.xml & stat_sys_battery_charge.xml in framework-res, it is not a fix but a side-step in order to stop f/c. I figure it's only the icon on the "Dock Connected" notification and if using the no notification mods you won't see it anyway.
The files I modified in Transformer.apk are
Code:
In smali/com/asus/services/dock/DockManagerService.smali
On line 702 I changed "const v2, 0x1080575" to "const v2, 0x01080555" which is the id for "stat_sys_battery" in framework-res public.xml
On line 713 I changed "const v2, 0x1080576" to "const v2, 0x01080563" which is the id for "stat_sys_battery_charge" in framework-res public.xml
Once done you should not get f/c issue when plug in charger to dock.
I have been making the same modification to Transformer.apk since then,
Code:
In smali/com/asus/services/dock/DockManagerService.smali
On line 930 I changed "const v4, 0x10805a5" to "const v4, 0x1080585" which is the id for "stat_sys_battery" in framework-res public.xml
On line 943 I changed "const v4, 0x10805a6" to "const v4, 0x1080593" which is the id for "stat_sys_battery_charge" in framework-res public.xml
Not sure why or when the issue has gone from a f/c of 'transformerservices' to a device reboot as I just continued to modify the Transformer.apk through the CTM updates.
@Hammerhand.17 mentioned that the xposed bluesphere module I made was also rebooting the device when connecting the charger, I thought when I made the bluesphere module I tested on CROMi-X with no CTM and thought it worked fine but I was wrong as I have just flashed through different CROMi-X versions back to 5.0.4 and tested bluesphere and it reboots device as soon as I connect the charger so I must have had CTM already flashed. So I flashed the modified Transformer.apk (on CROMi-X 5.4 no CTM) and tested the bluesphere module and reboot issue is also gone.
So it looks like bluesphere or any 1% battery modules for dock will require the modified Transformer.apk either by flashing it by itself or through CTM. I have added modified transformer zips to OP for those who just want bluesphere module and not CTM.
@sbdags - the Transformer.apk in CTM is slightly modified to side-step (not fix) a f/c issue of the 'transformerservices' (when connecting the charger to dock) I encountered when I first added the 1% battery for the dock back in CTM v1.3 for CROMI 3.4.1