systemappremover/main.ps1

13 lines
496 B
PowerShell
Raw Permalink Normal View History

2022-03-19 21:02:55 +00:00
[void][Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')
$package = [Microsoft.VisualBasic.Interaction]::InputBox("Enter the package name/Google Play Store link:", "Package Name")
if ($package -like "*play.google.com/store/apps/details*") {
$package += "&dummy=1"
$id = $package -split "\?id="
$id = $id[1] -split "\&"
$id = $id[0]
$package = $id
adb shell pm uninstall --user 0 $package
}
else {
adb shell pm uninstall --user 0 $package
}