Chrome remote debug Samsung Galaxy s4

后端 未结 3 1627
半阙折子戏
半阙折子戏 2020-12-13 07:43

I tried to use the remote debugging tool of Google Chrome for my Samsung Galaxy S4 (https://developers.google.com/chrome-developer-tools/docs/remote-debugging?hl=nl). But my

相关标签:
3条回答
  • 2020-12-13 08:33

    I stumbled over this exact problem. The solution above work's like a charm for me. But I'm lazy as hell, so I created a .bat file:

    @ECHO OFF 
    cmd.exe /K "cd C:\Users\YOUR_USERNAME\AppData\Local\Android\sdk\platform-tools && C: & adb.exe kill-server & adb.exe start-server"
    

    The directory depends on your installation of your ADT.

    Save as killstart_adb.bat and run this. Works for me.

    0 讨论(0)
  • 2020-12-13 08:34

    workaround if you don't have ADT (Android Development Toolkit) installed:

    Managed to detect android based Samsung Galaxy phone after downloading andorid SDK platform-tools.zip and running the following command: "adb devices". It started some deamon, found attached device, and I was also able to see it in chrome canary inspect tab.

    previously I also installed "Universal ADB driver" but not sure if this was required

    0 讨论(0)
  • 2020-12-13 08:46

    Do you have ADT (Android Development Toolkit) installed? If so, you may have to restart the ADB server. Follow these steps: (from this answer).

    1. Open a command prompt (Win+R, "cmd.exe", Enter)
    2. Go to the platform-tools directory of your locally installed ADT. In my case:

      cd /d D:\apps\adt-bundle-windows-x86_64-20131030\sdk\platform-tools
      
    3. Restart the ADT server by running the following commands:

      adb.exe kill-server
      adb.exe start-server
      
    4. Now observe that your tablet will ask for remote debugging permission (by checking a fingerprint) upon connection.

    5. The device should now be found if you open chrome://inspect.
    0 讨论(0)
提交回复
热议问题