BatteryFu icon indicating copy to clipboard operation
BatteryFu copied to clipboard

not working on android 8.1

Open duub opened this issue 5 years ago • 3 comments

has anyone tested on android 8.1? I'm using lineageOS 15.1 (unnoficial) with aamsung galaxy s6 and is not disabling the data connection

duub avatar Apr 16 '19 13:04 duub

Yup, as far as I know, mobile data toggling is no longer supported by the OS. Only WiFi toggle will work.

tobykurien avatar Apr 16 '19 16:04 tobykurien

I'm not an Android developer... to put in context... I've been reading your code and I can see in MobileDataSwitcher that there are different classes for some of android releases... Maybe there is a way to fix it creating and OreoSwitch with the function calls comented here: https://stackoverflow.com/questions/31120082/latest-update-on-enabling-and-disabling-mobile-data-programmatically

Here there's the reference to the library referenced in the second answer but updated to android 8.1: http://androidxref.com/8.1.0_r33/xref/frameworks/opt/telephony/src/java/com/android/internal/telephony/PhoneInternalInterface.java

thanks for readind this, I find your app very usefull!

duub avatar Apr 17 '19 17:04 duub

Yup, as far as I know, mobile data toggling is no longer supported by the OS. Only WiFi toggle will work.

It's wrong. Mobile data toggling work in LineageOS 17.1 (Android 10).

ioctl-user avatar May 17 '20 10:05 ioctl-user