No internet connection
  1. Home
  2. General

Debugging is broken since version 4.12

By @an124
    2022-12-30 08:35:35.344Z

    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:

    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.
    
    • 0 replies