theappbusiness / android-proxy-toggle

Small application to help android developers to quickly enable and disable proxy settings
MIT License
425 stars 59 forks source link

Installation #49

Open abdulhameed446 opened 2 months ago

abdulhameed446 commented 2 months ago

Here's a streamlined process to ensure you get everything right:

  1. Clone the Repository on Your Laptop:

    • Open a terminal on your laptop.
    • Run the following commands:
      git clone https://github.com/theappbusiness/android-proxy-toggle.git
      cd android-proxy-toggle
  2. Find the APK:

    • The proxy-toggle.apk file is already in the cloned repository. You don't need to download it separately.
  3. Connect Your Android Device:

    • Connect your Android phone to your laptop using a USB cable.
    • Enable USB debugging on your phone by going to Settings > Developer options > USB debugging.
  4. Install the APK:

    • From your terminal on your laptop, navigate to the directory where proxy-toggle.apk is located (it should be in the root of the cloned repository).
    • Run the following command to install the APK:
      adb install -t -r proxy-toggle.apk
  5. Grant Permissions:

    • After the APK is installed, grant the necessary permissions by running:
      adb shell pm grant com.kinandcarta.create.proxytoggle android.permission.WRITE_SECURE_SETTINGS

Alternatively, you can use the provided script to install the APK and grant permissions in one go:

This script will handle both the installation and the permission granting.

Summary

This should ensure the android-proxy-toggle app is properly installed and configured on your phone.