导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    Tina adb调试

    Linux
    5
    8
    4005
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • S
      shz18877605430 LV 6 最后由 编辑

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

      whycan 1 条回复 最后回复 回复 引用 分享 0
      • whycan
        whycan晕哥 LV 9 @shz18877605430 最后由 编辑

        @shz18877605430
        sdk默认已经开启了。

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

        S W 2 条回复 最后回复 回复 引用 分享 0
        • S
          shz18877605430 LV 6 @whycan 最后由 编辑

          @whycan 已搞定,谢谢

          1 条回复 最后回复 回复 引用 分享 0
          • R
            RayZhang LV 6 最后由 编辑

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

            Y 1 条回复 最后回复 回复 引用 分享 0
            • Y
              YterAA LV 7 @RayZhang 最后由 编辑

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

              1 条回复 最后回复 回复 引用 分享 0
              • W
                wyljkl LV 7 @whycan 最后由 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'
                
                whycan 1 条回复 最后回复 回复 引用 分享 0
                • whycan
                  whycan晕哥 LV 9 @wyljkl 最后由 编辑

                  @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 条回复 最后回复 回复 引用 分享 0
                  • whycan
                    whycan晕哥 LV 9 最后由 编辑

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

                    1 条回复 最后回复 回复 引用 分享 0
                    • 1 / 1
                    • First post
                      Last post

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

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