all.
I normally write my own enable/disable usb tether scripts for each Android version I'm on, but 11 got me stumped. It looks like they've moved the tethering modules to a different location and it doesn't appear tethering can be called from "connectivity" (IConnectivityManager.aidl) any longer.
Android 10:
line 113: int setUsbTethering(boolean enable, String callerPkg);
changes in 11:
https://source.android.com/devices/architecture/modular-system/tethering
"service list" brings up tethering on line 191 with reference to "android.net.ITetheringConnector" which I found below.
Tether-related references in 11:
Line 29 Void setUsbTethering(boolean enable, String callerPkg, IIntResultListener receiver); in the above appears to be the command, but I have no idea what needs to happen in the "IIntResultListener receiver" field. I assume something has to happen in this package first:
oneway
interface IIntResultListener {
void onResult(int resultCode);
}
Too much of a newb to figure this one out. Any help is appreciated.