Firefly开源社区

打印 上一主题 下一主题

Android Studio No serial number

15

积分

0

威望

0

贡献

技术小白

积分
15
发表于 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", },

回复

使用道具 举报

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

本版积分规则

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