<orderEntry type="library" name="Gradle: com.kymjs.rxvolley:rxvolley:1.1.3@aar" level="project"/>\r
<orderEntry type="library" name="Gradle: io.reactivex:rxandroid:1.1.0@aar" level="project"/>\r
<orderEntry type="module" module-name="dNSCache"/>\r
+ <orderEntry type="module" module-name="dNSCache"/>\r
<orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK"/>\r
</component>\r
</module>\r
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":460,"versionName":"2007231643","enabled":true,"outputFile":"ICSer_V460_2007231643_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V460_2007231643_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":461,"versionName":"2007280710","enabled":true,"outputFile":"ICSer_V461_2007280710_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V461_2007280710_release.apk","properties":{}}]
\ No newline at end of file
android:theme="@style/AppTheme">
<activity android:name=".toolActivity"></activity>
<activity android:name=".GPSActivity"></activity>
+ <activity android:name=".DeviceInfoActivity"></activity>
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
--- /dev/null
+package com.enqualcomm.support;
+
+import android.content.ComponentName;
+import android.content.Intent;
+import android.os.Build;
+import android.os.Bundle;
+import android.support.v7.app.AppCompatActivity;
+import android.view.View;
+import android.widget.Button;
+import android.widget.TextView;
+
+import com.enqualcomm.support.utils.DeviceInfoUtil;
+import com.enqualcomm.support.utils.SimSignalUtil;
+import com.enqualcomm.support.utils.Util;
+
+import chestnut.utils.PhoneUtils;
+
+import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
+
+public class DeviceInfoActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_showinfo);
+
+ TextView tv_Version=(TextView)findViewById(R.id.tv_versionname);
+ TextView tv_imei=(TextView)findViewById(R.id.tv_imei);
+ TextView tv_serveraddr=(TextView)findViewById(R.id.tv_serveraddr);
+
+ tv_imei.setText(PhoneUtils.getIMEI(this));
+ tv_Version.setText(Build.DISPLAY);
+ tv_serveraddr.setText(Config.getProtocolServerHost(this)+":"+Config.getProtocolServerPort(this));
+
+
+ }
+
+}
import android.app.Activity;\r
import android.app.PendingIntent;\r
import android.content.BroadcastReceiver;\r
+import android.content.ComponentName;\r
import android.content.ContentResolver;\r
import android.content.Context;\r
import android.content.Intent;\r
import rx.Observable;\r
import rx.functions.Action1;\r
\r
+import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;\r
import static com.enqualcomm.support.Config.upload_logs_via_ftp;\r
import static com.enqualcomm.support.Constants.ACTION_SMSCMD;\r
import static com.enqualcomm.support.Constants.ACTION_SMSCMD_Reply;\r
\r
if (sms == null || sms.trim().isEmpty()) return false;\r
\r
+ ICLogger.i("received SMSCMD "+sms);\r
sms=sms.trim();\r
if (sms.equals(ENCRYPED_HEADER + "#logctl#=upload,all")){\r
sms=ENCRYPED_HEADER+"#logctl#=upload,SDLog:Android/ic";\r
} else {\r
sendSMS(phonenumber, "USB cmd format error!");\r
}\r
+\r
+ }else if (sms.startsWith(ENCRYPED_HEADER+"#ShowInfo#")) {\r
+ Intent intent=new Intent();\r
+ ComponentName var3 = new ComponentName("com.enqualcomm.support", "com.enqualcomm.support.DeviceInfoActivity");\r
+ intent.addFlags(FLAG_ACTIVITY_NEW_TASK);\r
+ intent.setComponent(var3);\r
+ runtime.getContextProxy().context.startActivity(intent);\r
+ }else if (sms.startsWith(ENCRYPED_HEADER+"#FactoryResetCheckSim#")) {\r
+ sendSMS(phonenumber, "do FactoryResetCheckSim ok!");\r
+ CoreService.DevliverStringMessage("FactoryResetCheckSim");\r
+ }else if (sms.startsWith(ENCRYPED_HEADER+"#poweroffCheckSim#")) {\r
+ sendSMS(phonenumber, "do poweroffCheckSim ok!");\r
+ CoreService.DevliverStringMessage("poweroffCheckSim");\r
}else if (sms.startsWith(ENCRYPED_HEADER+"#factoryreset#")|| sms.startsWith(ENCRYPED_HEADER+"#reset#")) {\r
sendSMS(phonenumber, "do factoryreset ok!");\r
CoreService.DevliverStringMessage("FactoryReset");\r
ICLogger.i("voicepacket " + voicepacket.getName() + " " + voicepacket.getPacketTime() + " sent Done!");\r
}\r
return true;\r
+ } else if ("poweroffCheckSim".equals(paramStringMessage.cmd())) {\r
+ paramRuntime.setShutdown(true);\r
+\r
+ if (SimSignalUtil.hasSimCard(paramRuntime.getContextProxy().context))\r
+ {\r
+ ICLogger.i("Has Sim Card Skip poweroff!");\r
+ Util.ShowToast(paramRuntime,"Has Sim Card Skip poweroff!");\r
+ return true;\r
+ }else{\r
+ Util.ShowToast(paramRuntime,"Do poweroff!");\r
+ }\r
+\r
+ Observable.timer(1000L, TimeUnit.MILLISECONDS).subscribe(new Action1<Long>() {\r
+ public void call(Long param1Long) {\r
+ Util.shutdown();\r
+ }\r
+ });\r
+ return true;\r
+ } else if ("FactoryResetCheckSim".equals(paramStringMessage.cmd())) {\r
+\r
+ if (SimSignalUtil.hasSimCard(paramRuntime.getContextProxy().context))\r
+ {\r
+ ICLogger.i("Has Sim Card Skip FactoryReset!");\r
+ Util.ShowToast(paramRuntime,"Has Sim Card Skip FactoryReset!");\r
+\r
+ return true;\r
+ }else{\r
+ Util.ShowToast(paramRuntime,"Do FactoryReset!");\r
+ }\r
+\r
+ Observable.timer(1000L, TimeUnit.MILLISECONDS).subscribe(new Action1<Long>() {\r
+ public void call(Long param1Long) {\r
+ Util.doMasterClear(paramRuntime.getContextProxy().context);\r
+ }\r
+ });\r
+ return true;\r
} else if ("poweroff".equals(paramStringMessage.cmd())) {\r
paramRuntime.setShutdown(true);\r
- Observable.timer(60000L, TimeUnit.MILLISECONDS).subscribe(new Action1<Long>() {\r
+ Observable.timer(500L, TimeUnit.MILLISECONDS).subscribe(new Action1<Long>() {\r
public void call(Long param1Long) {\r
Util.shutdown();\r
}\r
});\r
return true;\r
} else if ("FactoryReset".equals(paramStringMessage.cmd())) {\r
- Observable.timer(5000L, TimeUnit.MILLISECONDS).subscribe(new Action1<Long>() {\r
+ Observable.timer(500L, TimeUnit.MILLISECONDS).subscribe(new Action1<Long>() {\r
public void call(Long param1Long) {\r
Util.doMasterClear(paramRuntime.getContextProxy().context);\r
}\r
return true;\r
} else if ("Reboot".equals(paramStringMessage.cmd())) {\r
\r
- Observable.timer(5000L, TimeUnit.MILLISECONDS).subscribe(new Action1<Long>() {\r
+ Observable.timer(500L, TimeUnit.MILLISECONDS).subscribe(new Action1<Long>() {\r
public void call(Long param1Long) {\r
Util.reboot(paramRuntime.getContextProxy().context);\r
}\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".GPSActivity"
+ android:background="@color/colorIcBg">
+
+ <RelativeLayout
+ android:id="@+id/ic_lc_fix_name"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:id="@+id/ic_lc_fix_nametxt"
+ style="@style/IcTextStyle"
+ android:text="Version:"
+ android:textSize="20sp" />
+
+ <TextView
+ android:id="@+id/tv_versionname"
+ style="@style/IcTextStyle"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/ic_lc_fix_nametxt"
+ android:layout_marginStart="10dp"
+ android:autoText="true"
+ android:textSize="20sp" />
+ </RelativeLayout>
+
+ <RelativeLayout
+ android:id="@+id/ic_lc_star_name"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/ic_lc_fix_name">
+
+ <TextView
+ android:id="@+id/ic_lc_star_nametxt"
+ style="@style/IcTextStyle"
+ android:text="IMEI:"
+ android:textSize="20sp" />
+
+ <TextView
+ android:id="@+id/tv_imei"
+ style="@style/IcTextStyle"
+ android:layout_below="@id/ic_lc_star_nametxt"
+ android:layout_marginStart="10dp"
+ android:textSize="20sp" />
+ </RelativeLayout>
+
+ <RelativeLayout
+ android:id="@+id/ic_lc_hoop_name"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/ic_lc_star_name">
+
+ <TextView
+ android:id="@+id/ic_lc_hoop_nametxt"
+ style="@style/IcTextStyle"
+ android:text="ServerIP:"
+ android:textSize="20sp" />
+ <TextView
+ android:id="@+id/tv_serveraddr"
+ style="@style/IcTextStyle"
+ android:layout_below="@id/ic_lc_hoop_nametxt"
+ android:layout_marginStart="10dp"
+ android:textSize="20sp" />
+ </RelativeLayout>
+
+
+</RelativeLayout>
\ No newline at end of file
-#Thu Jul 23 16:43:39 CST 2020\r
-VERSION_CODE=460\r
+#Tue Jul 28 07:10:49 CST 2020\r
+VERSION_CODE=461\r