1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

[Tip] Automatically enable tether on android

Discussion in 'BlackHat Lounge' started by KenWalker, Sep 11, 2019.

  1. KenWalker

    KenWalker Junior Member

    Joined:
    May 28, 2019
    Messages:
    117
    Likes Received:
    61
    I was looking for something like this
    found it after googling
    thought others can use it ..
    this is helpful for people using mobiles to create proxies :)

    run this via a script anytime a new phone is connected
    and it will auto start phone tether

    adb shell am start -n com.android.settings/.TetherSettings
    adb shell input keyevent 20
    adb shell input keyevent 20
    adb shell input keyevent KEYCODE_ENTER
    sleep 2
    adb shell input keyevent 4