diff --git a/README.md b/README.md index 660ac1c..230d13a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# systemappremover - -Delete junk built-in android apps. Needs ADB in PATH. \ No newline at end of file +# systemappremover + +Deletes built-in android apps. Like ader but more manual. Needs ADB in PATH. diff --git a/main.ps1 b/main.ps1 new file mode 100644 index 0000000..130c860 --- /dev/null +++ b/main.ps1 @@ -0,0 +1,13 @@ +[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 +} \ No newline at end of file