简体   繁体   中英

How to enable USB tethering in android programmatically or guiding user to do that

My application requires USB Tethering.

  • Is there any solution for enabling USB tethering in android programmatically without ADB or root access? I know I can open tethering settings page from my application, BUT I want to enable USB tethering from my own application.
  • If not, how about reverse tethering ? Is it possible to enable it from Linux based system like ubuntu without ADB Enabled or ROOT Access?
  • If this is not possible either, can I at least guide user in Tethering Page to activate usb tethering? like drawing a colorful rectangle around usb tethering option in tethering settings page from my application?

This can be done by using Accessibility Services.

Also it is possible to guide users using TYPE_APPLICATION_OVERLAY.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM