release V177
authorsnickersun <scy@incartech.cn>
Sat, 7 Nov 2020 06:16:46 +0000 (14:16 +0800)
committersnickersun <scy@incartech.cn>
Sat, 7 Nov 2020 06:16:46 +0000 (14:16 +0800)
开机自动开启协议服务。

app/release/ICL02Launcher_V177_202011071413_release.apk [moved from app/release/ICL02Launcher_V176_202011061838_release.apk with 57% similarity]
app/release/output.json
app/src/main/java/com/ic/launcher/MainActivity.java
app/version_code.properties

similarity index 57%
rename from app/release/ICL02Launcher_V176_202011061838_release.apk
rename to app/release/ICL02Launcher_V177_202011071413_release.apk
index bc58f40..f51a906 100644 (file)
Binary files a/app/release/ICL02Launcher_V176_202011061838_release.apk and b/app/release/ICL02Launcher_V177_202011071413_release.apk differ
index 6320caf..8e5f670 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":176,"versionName":"202011061838","enabled":true,"outputFile":"ICL02Launcher_V176_202011061838_release.apk","fullName":"release","baseName":"release"},"path":"ICL02Launcher_V176_202011061838_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":177,"versionName":"202011071413","enabled":true,"outputFile":"ICL02Launcher_V177_202011071413_release.apk","fullName":"release","baseName":"release"},"path":"ICL02Launcher_V177_202011071413_release.apk","properties":{}}]
\ No newline at end of file
index 99186b4..8602ac3 100644 (file)
@@ -11,6 +11,7 @@ import androidx.lifecycle.ViewModelProvider;
 import android.app.Activity;
 import android.app.Application;
 import android.content.BroadcastReceiver;
+import android.content.ComponentName;
 import android.content.Context;
 import android.content.Intent;
 import android.content.IntentFilter;
@@ -44,6 +45,7 @@ public class MainActivity extends AppCompatActivity implements
     private static final String TAG = "MainActivity";
 
     private static final String SERVICE_PKG_NAME = "com.enqualcomm.support";
+    public static final String SERVICE_CLS_NAME = "com.enqualcomm.support.CoreService";
 
     private boolean isLowPower = false;
 
@@ -78,6 +80,12 @@ public class MainActivity extends AppCompatActivity implements
 
         ServiceUtil.startServiceUtil(getApplicationContext(),
                 "com.ic.action.WORK_SERVICE", getPackageName());
+
+        //启动协议服务
+        ComponentName componentName = new ComponentName(SERVICE_PKG_NAME, SERVICE_CLS_NAME);
+        Intent intent = (new Intent()).setComponent(componentName);
+        getApplicationContext().startService(intent);
+
     }
 
     @Override
index fa92ac0..f5735c2 100644 (file)
@@ -1,2 +1,2 @@
-#Fri Nov 06 18:38:32 CST 2020\r
-VERSION_CODE=176\r
+#Sat Nov 07 14:13:17 CST 2020\r
+VERSION_CODE=177\r