No Magisk. I believe CyanogenMod is rooted by default. When BCL is started there is a popup that shows it is granted superuser rights.
BCL shows only one control file, /sys/class/power_supply/battery/status with states Charging and Discharging, nominally for a Motorola Defy+ MB526 (experimental). That file exists, but its value is always Charging even when the battery is at 100% and the lock screen shows "Charged".
Here are the contents of /sys/class/power_supply/battery:
Code:
root@gio:/sys/class/power_supply/battery # ls -la
-rw-rw---- root root 4096 2021-05-17 11:38 amp_down
-rw-rw---- root root 4096 2021-05-17 11:38 batt_low_noty
-r--r--r-- root root 4096 2021-05-17 00:37 batt_temp
-r--r--r-- root root 4096 2021-05-17 11:38 batt_temp_adc
-r--r--r-- root root 4096 2021-05-17 11:38 batt_temp_adc_aver
-r--r--r-- root root 4096 2021-05-17 11:38 batt_temp_aver
-r--r--r-- root root 4096 2021-05-17 11:38 batt_vf_adc
-r--r--r-- root root 4096 2021-05-17 11:38 batt_vol
-r--r--r-- root root 4096 2021-05-17 11:38 batt_vol_adc
-r--r--r-- root root 4096 2021-05-17 11:38 batt_vol_adc_aver
-r--r--r-- root root 4096 2021-05-17 11:38 batt_vol_aver
-rw-rw---- root root 4096 2021-05-17 11:38 bt_down
-rw-rw---- root root 4096 2021-05-17 11:38 camcoder_down
-rw-rw---- root root 4096 2021-05-17 11:38 camera_down
-rw-rw---- root root 4096 2021-05-17 11:38 camera_flash_down
-r--r--r-- root root 4096 2021-05-17 00:37 capacity
-rw-rw---- root root 4096 2021-05-17 11:38 control_tmp
lrwxrwxrwx root root 2021-05-17 11:38 device -> ../../../msm-battery
-r--r--r-- root root 4096 2021-05-17 00:37 health
-rw-rw---- root root 4096 2021-05-17 11:38 keypad_backlight
-rw-rw---- root root 4096 2021-05-17 11:38 lcd_backlight
-rw-rw---- root root 4096 2021-05-17 11:38 lcd_dimming
drwxr-xr-x root root 2021-05-17 11:38 power
-r--r--r-- root root 4096 2021-05-17 00:37 present
-r--r--r-- root root 4096 2021-05-17 00:37 status
lrwxrwxrwx root root 2021-05-17 11:38 subsystem -> ../../../../../class/power_supply
-rw-rw---- root root 4096 2021-05-17 11:38 talk_gsm
-rw-rw---- root root 4096 2021-05-17 11:38 talk_wcdma
-r--r--r-- root root 4096 2021-05-17 00:37 technology
-r--r--r-- root root 4096 2021-05-17 11:38 type
-rw-r--r-- root root 4096 2021-05-17 11:38 uevent
-rw-rw---- root root 4096 2021-05-17 11:38 vibrator
-rw-rw---- root root 4096 2021-05-17 11:38 video_down
-r--r--r-- root root 4096 2021-05-17 11:38 voltage_max_design
-r--r--r-- root root 4096 2021-05-17 11:38 voltage_min_design
-r--r--r-- root root 4096 2021-05-17 00:37 voltage_now
There is also /sys/class/power_supply/ac:
Code:
root@gio:/sys/class/power_supply/ac # ls -la
lrwxrwxrwx root root 2021-05-17 11:53 device -> ../../../msm-battery
-r--r--r-- root root 4096 2021-05-17 00:37 online
drwxr-xr-x root root 2021-05-17 11:53 power
lrwxrwxrwx root root 2021-05-17 11:53 subsystem -> ../../../../../class/power_supply
-r--r--r-- root root 4096 2021-05-17 11:53 type
-rw-r--r-- root root 4096 2021-05-17 11:53 uevent
Is there a way to tell if the current kernel is suitable? There aren't many options for a different newish ROM on this ancient phone.