samson.lai 发表于 2017-4-20 16:22:42

Android Studio No serial number

請問為什麼rk3399的板子沒有serial number

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

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

vincejia 发表于 2017-4-20 17:20:27

我遇到同样的问题,系统设置还原一次就好了,目前不清楚原因

samson.lai 发表于 2017-4-20 17:35:03

終於可以了, 謝謝了

mansson 发表于 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...

繧餤﹍.風輕. 发表于 2017-12-5 18:15:32

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", },

页: [1]
查看完整版本: Android Studio No serial number