Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable/disable USB tethering not working from within the app sometimes #27

Closed
anzetal opened this issue Jul 5, 2018 · 2 comments
Closed
Labels

Comments

@anzetal
Copy link

anzetal commented Jul 5, 2018

Device: Redmi Note 4
OS: Lineage OS 15.1
Rooted with LOS su
vpnhotspot-7953976211293013073.log

When I launch the app and enable USB tethering, it gives a toast saying Neither user 15013 nor current process has android.permission.MANAGE_USB. It then opens the hotspot settings menu. After I enable tethering manually and try to turn it off from the app, it gives the same toast and opens the hotspot settings, but now the USB tethering is turned off.
Here's the weird part:
Now if I return back to the app and enable USB tethering, it turns it on correctly. If I try turning it off, it displays the same toast and opens the hotspot settings but USB tethering has been turned off

@Mygod
Copy link
Owner

Mygod commented Jul 5, 2018

Toggling USB tethering only works if you install this app as a system app (/system/priv-app).

I also observed that sometimes this functionality works following the steps you mentioned. I suspect that this is a bug of Android.

@Mygod Mygod added the question label Jul 5, 2018
@anzetal
Copy link
Author

anzetal commented Jul 5, 2018

Alright then. Thanks
Closing this issue

@anzetal anzetal closed this as completed Jul 5, 2018
Mygod added a commit that referenced this issue Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants