Merge branch 'albertoLocale' of Karl/MiWatchKleaner into master

This commit is contained in:
Karl 2020-06-24 03:20:34 -05:00 committed by Gogs
commit ca11c8ac35
4 changed files with 10 additions and 7 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ data/apps/*.apk
release/ release/
data/*.log data/*.log
logger.lock logger.lock
logger.lock

View File

@ -5,7 +5,7 @@
"pid": 26780 "pid": 26780
}, },
"RunTIme": { "RunTIme": {
"startTime": 1588233573984, "startTime": 1592986481974,
"pid": 17884 "pid": 25068
} }
} }

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');
}); });
} }
}); });