Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    Tina adb调试

    Linux
    5
    8
    644
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      shz18877605430 LV 5 last edited by

      请问各位大佬,tina(F133)怎么开启adb功能。求指教!!1

      W 1 Reply Last reply Reply Quote Share 0
      • W
        whycan晕哥 LV 9 @shz18877605430 last edited by

        @shz18877605430
        sdk默认已经开启了。

        ①usb切换到device,②运行adbd。

        S W 2 Replies Last reply Reply Quote Share 0
        • S
          shz18877605430 LV 5 @whycan last edited by

          @whycan 已搞定,谢谢

          1 Reply Last reply Reply Quote Share 0
          • RayZhang
            RayZhang LV 5 last edited by

            借个楼请教一下: 如何通过APP 动态地 开启与关闭 adbd 且避免变砖😊

            Y 1 Reply Last reply Reply Quote Share 0
            • Y
              YterAA LV 7 @RayZhang last edited by

              @rayzhang 两个方法,第一个:控制usb otg。第二个,控制adbd服务

              1 Reply Last reply Reply Quote Share 0
              • W
                wyljkl LV 5 @whycan last edited by whycan

                @whycan 你好,我现在按照这个方式出现如下报错:

                root@TinaLinux:/# cat /sys/devices/platform/soc@3000000/soc@3000000\:usbc0@0/usb
                _device 
                [  593.130091] 
                [  593.130091] rmmod_device_driver
                [  593.130091] 
                [  593.136883] rmmod_device_driver()222 WARN: get power supply failed
                [  593.143937] android_work: sent uevent USB_STATE=DISCONNECTED
                [  593.150587] 
                [  593.150587] insmod_device_driver
                [  593.150587] 
                device_chose finished!
                root@TinaLinux:/# [  593.320672] sunxi_set_cur_vol_work()489 WARN: get power supply failed
                [  593.357447] android_work: sent uevent USB_STATE=CONNECTED
                [  593.370148] sunxi_set_cur_vol_work()489 WARN: get power supply failed
                [  593.429780] configfs-gadget gadget: high-speed config #1: c
                [  593.436336] android_work: sent uevent USB_STATE=CONFIGURED
                
                root@TinaLinux:/# adb
                adb_shell  adbd
                root@TinaLinux:/# adb
                adb_shell  adbd
                root@TinaLinux:/# adbd
                init adb main
                [adbd D]qemu_pipe_open: Could not open /dev/qemu_pipe: No such file or directory[adbd D]Handling main()
                Handling main()
                [adbd D]Warning: ADB_EXTERNAL_STORAGE is not set.  Leaving EXTERNAL_STORAGE unchanged.
                cannot bind 'tcp:5037'
                root@TinaLinux:/# adbd
                init adb main
                [adbd D]qemu_pipe_open: Could not open /dev/qemu_pipe: No such file or directory[adbd D]Handling main()
                Handling main()
                [adbd D]Warning: ADB_EXTERNAL_STORAGE is not set.  Leaving EXTERNAL_STORAGE unchanged.
                cannot bind 'tcp:5037'
                root@TinaLinux:/# adbd -D
                init adb main
                [adbd D]qemu_pipe_open: Could not open /dev/qemu_pipe: No such file or directory[adbd D]Handling main()
                Handling main()
                [adbd D]Warning: ADB_EXTERNAL_STORAGE is not set.  Leaving EXTERNAL_STORAGE unchanged.
                cannot bind 'tcp:5037'
                
                W 1 Reply Last reply Reply Quote Share 0
                • W
                  whycan晕哥 LV 9 @wyljkl last edited by

                  @wyljkl 在 Tina adb调试 中说:

                  root@TinaLinux:/# adbd
                  init adb main
                  [adbd D]qemu_pipe_open: Could not open /dev/qemu_pipe: No such file or directory[adbd D]Handling main()
                  Handling main()
                  [adbd D]Warning: ADB_EXTERNAL_STORAGE is not set. Leaving EXTERNAL_STORAGE unchanged.
                  cannot bind 'tcp:5037'

                  执行 /etc/init.d/adbd start 是不是这样:

                  root@TinaLinux:/# /etc/init.d/adbd start
                  root@TinaLinux:/# error: Function not implemented: cannot open transport registration socketpair
                  
                  1 Reply Last reply Reply Quote Share 0
                  • W
                    whycan晕哥 LV 9 last edited by

                    @wyljkl
                    刚刚我也出现这个问题,发现 adb_socketpair() 无法执行,检查发现内核里面把CONFIG_NET选项屏蔽了,把这个选购开起来就正常了.

                    1 Reply Last reply Reply Quote Share 0
                    • 1 / 1
                    • First post
                      Last post

                    Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                    行为准则 | 用户协议 | 隐私权政策