--- a/system/core/init/init.cpp
+++ b/system/core/init/init.cpp
@@ -376,19 +376,78 @@ static void export_oem_lock_status() {
}
}
+
+std::string DecIntToHexStr(unsigned long int num)
+{
+ std::string str;
+ unsigned long int Temp = num / 16;
+ int left = num % 16;
+ if (Temp > 0)
+ str += DecIntToHexStr(Temp);
+ if (left < 10)
+ str += (left + '0');
+ else
+ str += ('A' + left - 10);
+ return str;
+}
+
+std::string get_chip_id()
+{
+ FILE *fd;
+ char buf[32];
&#