karl.hudgell 4 年之前
父節點
當前提交
b9edaeedc0
共有 2 個文件被更改,包括 7 次插入5 次删除
  1. 1 1
      package.json
  2. 6 4
      pages/pages.js

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "miwatchkleaner2.0",
-  "version": "2.0.4",
+  "version": "2.0.5",
   "description": "MiWatch Cleaning Tool",
   "main": "app.js",
   "bin": "app.js",

+ 6 - 4
pages/pages.js

@@ -122,10 +122,12 @@ module.exports = {
                 }
                 console.log(element + ' - ' + result.stdout);
                 logger.info(element + ' - ' + result.stdout);
-                if (element === "data\\apps\\MoreLocale.apk") {
-                    await shellExec(adbRun + ' shell pm grant jp.co.c_lis.ccl.morelocale android.permission.CHANGE_CONFIGURATION').then(function (result) {
-                        console.log('moreLocale Activated On Watch');
-                        logger.info('moreLocale Activated On Watch');
+
+                if (element === "data\\apps\\com.alberto.locale.apk") {
+                    await shellExec(adbRun + ' shell pm grant com.alberto.locale android.permission.CHANGE_CONFIGURATION && ' + adbRun + ' shell am start -n com.alberto.locale/com.alberto.locale.MainActivity && ' + adbRun + ' shell pm grant com.alberto.locale android.permission.CHANGE_CONFIGURATION').then(function (result) {
+                        console.log(result)
+                        console.log('Alberto Locale Activated On Watch');
+                        logger.info('Alberto Locale Activated On Watch');
                     });
                 }
             });