Closed ericksli closed 3 years ago
hi @ericksli - did you go through the readme and grant the app the required permissions to work?
Please check this in the "Caveats" section for reference: https://github.com/theappbusiness/android-proxy-toggle#write_secure_settings-permission
Already executed adb shell pm grant com.kinandcarta.create.proxytoggle android.permission.WRITE_SECURE_SETTINGS
but still crash.
➜ ~ adb devices
List of devices attached
TA93302A6T device
➜ ~ adb shell pm grant com.kinandcarta.create.proxytoggle android.permission.WRITE_SECURE_SETTINGS
➜ ~
Hey @ericksli thanks for raising this. I had a deeper look and it turns out I didn't test the app pre-API 23 😬 and you're using API 22. My fault!
The error appears to be the old android permission system. For some reason, on API 22 and below, apart from the WRITE_SECURE_SETTINGS
permission, you also need the WRITE_SETTINGS
permission. Apparently, this was dropped on API 23 onwards.
The quickest way to make it work for you is to get this modified apk.zip and install it with the provided command. If that still fails, you'll need to grant the secure permission manually:
$ adb shell pm grant com.kinandcarta.create.proxytoggle android.permission.WRITE_SECURE_SETTINGS
Alternatively, you can clone the project, add the WRITE_SETTINGS
permission in the AndroidManifest.xml
and build the app from there.
I will try to fix this and make a new release to support older Android versions ASAP.
Many thanks again and apologies for the inconveniences!
@ericksli thanks to @fmontesino there's a new release (https://github.com/theappbusiness/android-proxy-toggle/releases/tag/v1.0.1) that addresses the issue, and new instructions in the readme for 5.x devices: https://github.com/theappbusiness/android-proxy-toggle#android-5x 🎉
Using Motorola XT1033, Android 5.1 and First stable release of the app.
Already executed
adb shell pm grant com.kinandcarta.create.proxytoggle android.permission.WRITE_SECURE_SETTINGS
After filling in the IP address and port number, click on the enable button and then the app crashed: