activate moreLocale

This commit is contained in:
karl.hudgell 2020-04-27 12:20:12 +01:00
parent 4ce21de180
commit f531e0641f

View File

@ -59,20 +59,31 @@ module.exports = {
for (let element of apkList) {
console.log('Installing ' + element)
if (process.platform === 'win32' || process.platform === 'win64') {
await shellExec('adb install -r ' + element).then(function (result) {
await shellExec('adb install -r ' + element).then(async function (result) {
console.log(element + ' - ' + result.stdout);
if (element === "data\\apps\\MoreLocale.apk") {
await shellExec('adb shell pm grant jp.co.c_lis.ccl.morelocale android.permission.CHANGE_CONFIGURATION').then(function (result) {
console.log('moreLocale Activated On Watch');
});
}
});
} else {
await shellExec('./adb install -r ' + element).then(function (result) {
console.log(element + ' - ' + result.stdout);
if (element === "data\\apps\\MoreLocale.apk") {
await shellExec('./adb shell pm grant jp.co.c_lis.ccl.morelocale android.permission.CHANGE_CONFIGURATION').then(function (result) {
console.log('moreLocale Activated On Watch');
});
}
});
});
}
console.log(chalk.green('Compatible Apps Installed'))
await common.pause(2000)
module.exports.mainMenu()
},
removeApps: async () => {
}
console.log(chalk.green('Compatible Apps Installed'))
await common.pause(2000)
module.exports.mainMenu()
},
removeApps: async () => {
common.header('Remove Apps')
const value = await inquirer.removeAppsList();
for (let element of value.removeAppsList) {