current status
This commit is contained in:
parent
7a55599d72
commit
96536414c0
5
package-lock.json
generated
5
package-lock.json
generated
@ -503,6 +503,11 @@
|
|||||||
"to-regex-range": "^5.0.1"
|
"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": {
|
"forever-agent": {
|
||||||
"version": "0.6.1",
|
"version": "0.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
|
"resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
"clui": "^0.3.6",
|
"clui": "^0.3.6",
|
||||||
"download-file-with-progressbar": "^1.2.3",
|
"download-file-with-progressbar": "^1.2.3",
|
||||||
"figlet": "^1.3.0",
|
"figlet": "^1.3.0",
|
||||||
|
"foreachasync": "^5.1.3",
|
||||||
"fs": "0.0.1-security",
|
"fs": "0.0.1-security",
|
||||||
"inquirer": "^7.1.0",
|
"inquirer": "^7.1.0",
|
||||||
"lodash": "^4.17.15",
|
"lodash": "^4.17.15",
|
||||||
|
@ -8,11 +8,12 @@ module.exports = {
|
|||||||
removeApps: async () => {
|
removeApps: async () => {
|
||||||
common.header('Remove Apps')
|
common.header('Remove Apps')
|
||||||
const value = await inquirer.removeAppsList();
|
const value = await inquirer.removeAppsList();
|
||||||
value.removeAppsList.forEach(element => {
|
value.removeAppsList.forEach(async (element) => {
|
||||||
shellExec('adb shell pm uninstall -k --user 0 ' + element).then(async function (result) {
|
await shellExec('adb shell pm uninstall -k --user 0 ' + element).then(async function (result) {
|
||||||
console.log('Removing ' + element + ' - ' + result.stdout)
|
console.log('Removing ' + element + ' - ' + result.stdout)
|
||||||
}).catch()
|
}).catch()
|
||||||
});
|
});
|
||||||
|
console.log('complete')
|
||||||
},
|
},
|
||||||
restoreApps: async () => {
|
restoreApps: async () => {
|
||||||
common.header('Restore Apps')
|
common.header('Restore Apps')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user