No internet connection
  1. Home
  2. General

Debugging is broken on Havoc-OS v4.12 ... 4.19

By @an124
    2022-12-30 08:36:54.336Z2022-12-30 08:43:49.457Z

    Hi there!
    It seems applications debugging is broken since 4.12 version of Havoc-OS.

    What happens:
    Debugger from Android Studio cannot connect to smartphone both via USB and WiFi. It trying to connect for several seconds and then fails. TCP port on smartphone (in case debugging over WiFi, is closed).
    Checked on Windows 10 x64 (two laptops) and Debian Linux (one laptop).

    How to reproduce error with USB:

    1. install Havoc-OS v4.13 ... 4.19 on smartphone (no install Gapps for speed).
    2. create simple project in Android Studio and set debugger breakpoint inside any method, for example, inside onCreate().
    3. go to Settings -> About on phone and touch "build number" line many times to become developer.
    4. to to Settings -> System -> Developer options and enable debugging via USB.
    5. connect phone to PC.
    6. confirm allowing debugging from your PC in smaptphone popup dialog.
    7. run "Debug app (Shift+F9)" in Android Studio.
    8. open "Run" tool window and see following log.
    12/30 09:16:57: Launching 'app' on Xiaomi Redmi 8.
    Install successfully finished in 6 s 220 ms.
    $ adb shell am start -n "com.github.abc.custom_touch_listener/com.github.abc.custom_touch_listener.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Waiting for application to come online: com.github.abc.custom_touch_listener
    Could not connect to remote process. Aborting debug session.
    

    How to reproduce error with WiFi debugging:

    1. disconnect smartphone from PC.
    2. enable debug over WiFi in Developer options.
    3. connect phone and PC with same WiFi network.
    4. pair device with Android Studio over WiFi.
    5. run "Debug app (Shift+F9)" in Android Studio.
    6. see the same result as with USB debugging.
      Optional:
    7. open "Debug over WiFi" details in smartphone and check TCP port dedicated for wireless debugging.
    8. scan this port with some port scanner app and you will see this port on smartphone is closed.
    • 0 replies