Skip to content

Instantly share code, notes, and snippets.

@6f70
Last active November 16, 2015 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 6f70/b6dba10c32b22e3eefda to your computer and use it in GitHub Desktop.
Save 6f70/b6dba10c32b22e3eefda to your computer and use it in GitHub Desktop.
Script for removing/blocking unneeded preinstalled apps of Xperia Z3 Tablet Compact
#!/bin/bash
# Script for removing/blocking unneeded preinstalled apps of Xperia Z3 Tablet Compact
# USE THIS AT YOUR OWN RISK
# Tested on SGP612 23.0.1.A.0.167
# pm list packages -3
UNINST=(
'jp.sony.petamap.spot.sp'
'com.sonymobile.androidapp.mora.dashboardextension'
'com.facebook.katana'
'com.sonyericsson.trackid'
'com.sonyericsson.androidapp.appnavi'
'jp.co.labelgate.moratouch'
'com.sony.nfx.app.sfrc'
'com.sonymobile.xperialink'
'com.sonymobile.smallbrowser'
'com.sonymobile.androidapp.diagnostics'
'com.trendmicro.tmmspersonal.jp'
'com.dropbox.android'
'com.sony.drbd.reader.other.jp'
'com.mobisystems.office'
'com.twitter.android'
'com.skype.raider'
'com.sonymobile.androidapp.audiorecorder'
'com.scee.psxandroid'
'com.sony.tvsideview.phone'
'com.sonymobile.acr'
)
# my choices
BLOCK=(
'com.mobisystems.fileman'
'com.sonymobile.lifelog'
'com.sonymobile.moviecreator'
'com.sonymobile.moviecreator.rmm'
'com.sony.snei.vu' # Video Unlimited
'com.sonymobile.advancedwidget.entrance' # Whats New
'com.sonymobile.wifichecker'
'com.sonymobile.sketch'
'com.realvnc.android.remote' # ???
'com.sonymobile.simplehome'
'com.sony.smallapp.launcher' # A launcher you see when you open Recents screen
'com.sonymobile.androidapp.cameraaddon.arfun'
'com.sonymobile.androidapp.cameraaddon.areffect'
)
for p in ${UNINST[@]}; do
echo "[*] Removing '$p'..."
adb shell "pm uninstall $p"
done
for p in ${BLOCK[@]}; do
echo "[*] Blocking '$p'..."
adb shell "pm block $p"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment