-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":61,"versionName":"202012251632","enabled":true,"outputFile":"FactoryMode_V61_202012251632_release.apk","fullName":"release","baseName":"release"},"path":"FactoryMode_V61_202012251632_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":62,"versionName":"202012311503","enabled":true,"outputFile":"FactoryMode_V62_202012311503_release.apk","fullName":"release","baseName":"release"},"path":"FactoryMode_V62_202012311503_release.apk","properties":{}}]
\ No newline at end of file
import android.telephony.TelephonyManager;
import android.util.Log;
+import java.io.File;
import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
import java.lang.reflect.Method;
import java.net.NetworkInterface;
import java.net.SocketException;
return Build.MODEL.toUpperCase();
}
+ private static final String mConfigFilePath="/system/etc/factorymode.cfg";
+ public static String isUsingConfigFile(){
+ String retempty="";
+ File cfgf=new File(mConfigFilePath);
+ if( cfgf.exists()){
+ try {
+ FileInputStream cfgIS=new FileInputStream(cfgf);
+ StringBuilder sb=new StringBuilder();
+ byte[] buffer=new byte[1024];
+ int readcount=0;
+ while((readcount=cfgIS.read(buffer,0,buffer.length))>0){
+ sb.append(new String(buffer,0,readcount));
+ }
+ if(sb.length()>0){
+ return sb.toString();
+ }
+ } catch (FileNotFoundException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+ return retempty;
+ }
/**
* 展讯猎豹项目
* @return
public static boolean isQ3FT(){
- if ( SystemProperties.get("persist.sys.customname","").equalsIgnoreCase("VitracK")) {
+ if ( SystemProperties.get("persist.sys.customname","").equalsIgnoreCase("VitracK") ||
+ SystemProperties.get("persist.sys.customname","").equalsIgnoreCase("wtsrui")
+ ) {
return true;
}
return false;