This commit is contained in:
karl.hudgell 2020-06-24 09:17:36 +01:00
parent a2906b5a36
commit b9edaeedc0
2 changed files with 7 additions and 5 deletions

View File

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

View File

@ -122,10 +122,12 @@ module.exports = {
} }
console.log(element + ' - ' + result.stdout); console.log(element + ' - ' + result.stdout);
logger.info(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) { if (element === "data\\apps\\com.alberto.locale.apk") {
console.log('moreLocale Activated On Watch'); 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) {
logger.info('moreLocale Activated On Watch'); console.log(result)
console.log('Alberto Locale Activated On Watch');
logger.info('Alberto Locale Activated On Watch');
}); });
} }
}); });