From b9edaeedc004e131f36ace43d995bd8800a08892 Mon Sep 17 00:00:00 2001 From: "karl.hudgell" Date: Wed, 24 Jun 2020 09:17:36 +0100 Subject: [PATCH] 2.0.5 AL --- package.json | 2 +- pages/pages.js | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ad5da50..780b777 100644 --- a/package.json +++ b/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", diff --git a/pages/pages.js b/pages/pages.js index f1322d4..b172d3f 100644 --- a/pages/pages.js +++ b/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'); }); } });