current status

This commit is contained in:
karl.hudgell 2020-04-25 11:48:56 +01:00
parent 7a55599d72
commit 96536414c0
3 changed files with 10 additions and 3 deletions

5
package-lock.json generated
View File

@ -503,6 +503,11 @@
"to-regex-range": "^5.0.1"
}
},
"foreachasync": {
"version": "5.1.3",
"resolved": "https://registry.npmjs.org/foreachasync/-/foreachasync-5.1.3.tgz",
"integrity": "sha512-q3/l5D2pyZG8aYe9xZQDAnS/KyP7QJakLUNrU/qGkd4bQUTzCUmvVFjagRggoxxjtb1ZrJB+jQeG4ojOLWkztw=="
},
"forever-agent": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",

View File

@ -18,6 +18,7 @@
"clui": "^0.3.6",
"download-file-with-progressbar": "^1.2.3",
"figlet": "^1.3.0",
"foreachasync": "^5.1.3",
"fs": "0.0.1-security",
"inquirer": "^7.1.0",
"lodash": "^4.17.15",

View File

@ -7,12 +7,13 @@ const files = require('../lib/files')
module.exports = {
removeApps: async () => {
common.header('Remove Apps')
const value = await inquirer.removeAppsList();
value.removeAppsList.forEach(element => {
shellExec('adb shell pm uninstall -k --user 0 ' + element).then(async function (result) {
const value = await inquirer.removeAppsList();
value.removeAppsList.forEach(async (element) => {
await shellExec('adb shell pm uninstall -k --user 0 ' + element).then(async function (result) {
console.log('Removing ' + element + ' - ' + result.stdout)
}).catch()
});
console.log('complete')
},
restoreApps: async () => {
common.header('Restore Apps')