Firefly开源社区

打印 上一主题 下一主题

Android Studio No serial number

75

积分

0

威望

0

贡献

技术小白

积分
75

Android Studio No serial number

发表于 2017-4-20 16:22:42      浏览:8818 | 回复:4        打印      只看该作者   [复制链接] 楼主
請問為什麼rk3399的板子沒有serial number

下面是studio所顯示的錯誤訊息

com.android.ddmlib.AdbCommandRejectedException: device '(no serial number)' not found
Error while Installing APK
回复

使用道具 举报

63

积分

10

威望

12

贡献

游客

积分
63
发表于 2017-4-20 17:20:27        只看该作者  沙发
我遇到同样的问题,系统设置还原一次就好了,目前不清楚原因
回复

使用道具 举报

75

积分

0

威望

0

贡献

技术小白

积分
75
发表于 2017-4-20 17:35:03        只看该作者  板凳
終於可以了, 謝謝了
回复

使用道具 举报

27

积分

0

威望

0

贡献

游客

积分
27
发表于 2017-12-1 17:15:54        只看该作者  地板
The factory reset trick only worked once for me. Now it looks like the serial number is lost permanently. This is a huge problem because not only Android Studio but also systrace.py refuses to cooperate with anonymous boards. I really would like a permanent solution to this issue. I connected a fresh ff board with factory firmware, and it also did not present any serial number to ADB. The HiKey 960 board has some information regarding serial number on https://source.android.com/setup/devices Perhaps we need a similar process?  I think the empty string produced by the 'lsusb' command is a clue. It's USB that can't get hold of the proper string. Why? This is important, the boards are quickly becoming useless...
回复

使用道具 举报

15

积分

0

威望

0

贡献

技术小白

积分
15
发表于 2017-12-5 18:15:32        只看该作者  5#
mansson 发表于 2017-12-1 17:15
The factory reset trick only worked once for me. Now it looks like the serial number is lost permane ...

revert this commit
commit cfe088b8e25e93339895434ce8a0c5f24101ec2d
Author: Firefly-RK3288 <service@t-firefly.com>
Date:   Thu Nov 23 10:57:25 2017 +0800

    1.support EC20 4G dongle    2.fix status information    3.fix the seq of display

diff --git a/system/core/drmservice/drmservice.c b/system/core/drmservice/drmservice.c
index b40403b..4e23f8c 100644
--- a/system/core/drmservice/drmservice.c
+++ b/system/core/drmservice/drmservice.c
@@ -81,7 +81,7 @@ typedef               unsigned char       uint8;

#define DEBUG_LOG 0   //open debug info

-#define SERIALNO_FROM_IDB 0  //if 1 read sn from idb3;  if 0 generate sn auto
+#define SERIALNO_FROM_IDB 1  //if 1 read sn from idb3;  if 0 generate sn auto

#define SET_IFACE_DELAY                 300000
#define SET_IFACE_POLLING_LOOP          20





or take this patch,then use UpgradeDllTool.exe to burn the sn
--- a/system/core/init/init.cpp
+++ b/system/core/init/init.cpp
@@ -468,7 +468,7 @@ static void export_kernel_boot_props() {
         const char *dst_prop;
         const char *default_value;
     } prop_map[] = {
-        //{ "ro.boot.serialno",   "ro.serialno",   "", },
+        { "ro.boot.serialno",   "ro.serialno",   "", },
         { "ro.boot.mode",       "ro.bootmode",   "unknown", },
         { "ro.boot.baseband",   "ro.baseband",   "unknown", },
         { "ro.boot.bootloader", "ro.bootloader", "unknown", },

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表