Skip to content

Instantly share code, notes, and snippets.

@mrmike
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save mrmike/fecbd109a02e8b972d9d to your computer and use it in GitHub Desktop.

Select an option

Save mrmike/fecbd109a02e8b972d9d to your computer and use it in GitHub Desktop.
Android apps remover
#!/bin/bash
for package_name in `adb shell pm list packages | grep -o com.wikia.[a-zA-Z\.]*` ; do
adb devices | tail -n +2 | awk '{print $1}' | xargs -i adb -s {} uninstall $package_name > /dev/null 2>&1
status=$?
if [ $status -eq 0 ] ; then
echo "[REMOVED] $package_name"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment