Advertisement
metalx1000

Moto G Stylus Minifier

Jan 10th, 2022 (edited)
1,435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.01 KB | None | 0 0
  1. #these notes are on minifying a stock install for the moto G stylus
  2. #although most of this will work on many phones
  3. #there will still be some Google and Motorola apps installed
  4. #but this will get rid of most of them and still leave you with a working system
  5. #stock firmware can be downloaded here: https://mirrors.lolinet.com/firmware/moto/sofiap/
  6.  
  7. #get a simple keyboard and launcher
  8. #there are newer versions of lawnchair, this is just the easiest to grab with a script
  9. #https://lawnchair.app/
  10.  
  11. wget "https://f-droid.org/repo/rkr.simplekeyboard.inputmethod_92.apk"
  12. adb install rkr.simplekeyboard.inputmethod_92.apk
  13. wget "https://f-droid.org/repo/ch.deletescape.lawnchair.plah_2001.apk"
  14. adb install ch.deletescape.lawnchair.plah_2001.apk
  15.  
  16. #uninstall unwanted packages
  17. adb shell pm uninstall --user 0 com.google.android.apps.walletnfcrel #google wallet
  18. adb shell pm uninstall --user 0 com.google.android.apps.chromecast.app # google home
  19. adb shell pm uninstall --user 0 com.google.android.apps.docs.editors.sheets
  20. adb shell pm uninstall --user 0 com.google.android.apps.docs.editors.slides
  21. adb shell pm uninstall --user 0 com.google.android.apps.magazines
  22. adb shell pm uninstall com.android.chrome || adb shell pm uninstall --user 0 com.android.chrome
  23. adb shell pm uninstall com.google.android.apps.docs || adb shell pm uninstall --user 0 com.google.android.apps.docs
  24. adb shell pm uninstall com.google.android.apps.googleassistant || adb shell pm uninstall --user 0 com.google.android.apps.googleassistant
  25. adb shell pm uninstall com.google.android.apps.nbu.files || adb shell pm uninstall --user 0 com.google.android.apps.nbu.files
  26. adb shell pm uninstall com.google.android.apps.photos || adb shell pm uninstall --user 0 com.google.android.apps.photos
  27. adb shell pm uninstall com.google.android.apps.tachyon || adb shell pm uninstall --user 0 com.google.android.apps.tachyon
  28. adb shell pm uninstall com.google.android.apps.wellbeing || adb shell pm uninstall --user 0 com.google.android.apps.wellbeing
  29. adb shell pm uninstall com.google.android.apps.youtube.music || adb shell pm uninstall --user 0 com.google.android.apps.youtube.music
  30. adb shell pm uninstall com.google.android.apps.youtube.music.setupwizard || adb shell pm uninstall --user 0 com.google.android.apps.youtube.music.setupwizard
  31. adb shell pm uninstall com.google.android.calculator || adb shell pm uninstall --user 0 com.google.android.calculator
  32. adb shell pm uninstall com.google.android.calendar || adb shell pm uninstall --user 0 com.google.android.calendar
  33. adb shell pm uninstall com.google.android.contacts || adb shell pm uninstall --user 0 com.google.android.contacts
  34. adb shell pm uninstall com.google.android.deskclock || adb shell pm uninstall --user 0 com.google.android.deskclock
  35. adb shell pm uninstall com.google.android.documentsui || adb shell pm uninstall --user 0 com.google.android.documentsui
  36. adb shell pm uninstall com.google.android.googlequicksearchbox || adb shell pm uninstall --user 0 com.google.android.googlequicksearchbox
  37. adb shell pm uninstall com.google.android.keep || adb shell pm uninstall --user 0 com.google.android.keep
  38. adb shell pm uninstall com.google.android.marvin.talkback || adb shell pm uninstall --user 0 com.google.android.marvin.talkback
  39. adb shell pm uninstall com.google.android.overlay.modules.documentsui || adb shell pm uninstall --user 0 com.google.android.overlay.modules.documentsui
  40. adb shell pm uninstall com.google.android.projection.gearhead || adb shell pm uninstall --user 0 com.google.android.projection.gearhead
  41. adb shell pm uninstall com.google.android.setupwizard || adb shell pm uninstall --user 0 com.google.android.setupwizard
  42. adb shell pm uninstall com.google.android.videos || adb shell pm uninstall --user 0 com.google.android.videos
  43. adb shell pm uninstall com.google.android.youtube || adb shell pm uninstall --user 0 com.google.android.youtube
  44. adb shell pm uninstall com.motorola.actions || adb shell pm uninstall --user 0 com.motorola.actions
  45. adb shell pm uninstall com.motorola.android.fmradio || adb shell pm uninstall --user 0 com.motorola.android.fmradio
  46. adb shell pm uninstall com.motorola.android.fota || adb shell pm uninstall --user 0 com.motorola.android.fota
  47. adb shell pm uninstall com.motorola.brapps || adb shell pm uninstall --user 0 com.motorola.brapps
  48. adb shell pm uninstall com.motorola.camera2 || adb shell pm uninstall --user 0 com.motorola.camera2
  49. adb shell pm uninstall com.motorola.ccc.notification || adb shell pm uninstall --user 0 com.motorola.ccc.notification
  50. adb shell pm uninstall com.motorola.ccc.ota || adb shell pm uninstall --user 0 com.motorola.ccc.ota
  51. adb shell pm uninstall com.motorola.demo || adb shell pm uninstall --user 0 com.motorola.demo
  52. adb shell pm uninstall com.motorola.dolby.dolbyui || adb shell pm uninstall --user 0 com.motorola.dolby.dolbyui
  53. adb shell pm uninstall com.motorola.easyprefix || adb shell pm uninstall --user 0 com.motorola.easyprefix
  54. adb shell pm uninstall com.motorola.fmplayer || adb shell pm uninstall --user 0 com.motorola.fmplayer
  55. adb shell pm uninstall com.motorola.gamemode || adb shell pm uninstall --user 0 com.motorola.gamemode
  56. adb shell pm uninstall com.motorola.genie || adb shell pm uninstall --user 0 com.motorola.genie
  57. adb shell pm uninstall com.motorola.gesture || adb shell pm uninstall --user 0 com.motorola.gesture
  58. adb shell pm uninstall com.motorola.help || adb shell pm uninstall --user 0 com.motorola.help
  59. adb shell pm uninstall com.motorola.livewallpaper3 || adb shell pm uninstall --user 0 com.motorola.livewallpaper3
  60. adb shell pm uninstall com.motorola.moto || adb shell pm uninstall --user 0 com.motorola.moto
  61. adb shell pm uninstall com.motorola.motocare || adb shell pm uninstall --user 0 com.motorola.motocare
  62. adb shell pm uninstall com.motorola.motodisplay || adb shell pm uninstall --user 0 com.motorola.motodisplay
  63. adb shell pm uninstall com.motorola.nfwlocationattribution || adb shell pm uninstall --user 0 com.motorola.nfwlocationattribution
  64. adb shell pm uninstall com.motorola.photoeditor || adb shell pm uninstall --user 0 com.motorola.photoeditor
  65. adb shell pm uninstall com.motorola.setup || adb shell pm uninstall --user 0 com.motorola.setup
  66. adb shell pm uninstall com.motorola.stylus || adb shell pm uninstall --user 0 com.motorola.stylus
  67. adb shell pm uninstall com.google.android.apps.fitness|| adb shell pm uninstall --user 0 om.google.android.apps.fitness
  68. adb shell pm uninstall com.google.android.apps.docs.editors.docs || adb shell pm uninstall --user 0 com.google.android.apps.docs.editors.docs
  69. adb shell pm uninstall com.google.android.apps.subscriptions.red || adb shell pm uninstall --user 0 com.google.android.apps.subscriptions.red
  70. adb shell pm uninstall com.motorola.gamemode || adb shell pm uninstall --user 0 com.motorola.gamemode
  71. adb shell pm uninstall --user 0 com.motorola.timeweatherwidget
  72. adb shell pm uninstall --user 0 com.motorola.stylus
  73. adb shell pm uninstall --user 0 com.motorola.moto
  74. adb shell pm uninstall --user 0 com.motorola.securityhub
  75. adb shell pm uninstall --user 0 com.swishme.moto
  76. adb shell pm uninstall --user 0 com.motorola.ccc.notification
  77. adb shell pm uninstall --user 0 com.motorola.audiorecorder
  78.  
  79. #others
  80. adb shell pm uninstall com.google.android.apps.maps || adb shell pm uninstall --user 0 com.google.android.apps.maps
  81. adb shell pm uninstall com.google.android.apps.messaging || adb shell pm uninstall --user 0 com.google.android.apps.messaging
  82. adb shell pm uninstall com.android.vending || adb shell pm uninstall --user 0 com.android.vending
  83. adb shell pm uninstall com.google.android.dialer || adb shell pm uninstall --user 0 com.google.android.dialer
  84. # Google Fi
  85. adb shell pm uninstall com.google.android.apps.tycho || adb shell pm uninstall --user 0 com.google.android.apps.tycho
  86. #Google Play
  87. adb shell pm uninstall com.google.android.gms || adb shell pm uninstall --user 0 com.google.android.gms
  88. adb shell pm uninstall com.google.android.gm || adb shell pm uninstall --user 0 com.google.android.gm
  89. adb shell pm uninstall com.google.android.inputmethod.latin || adb shell pm uninstall --user 0 com.google.android.inputmethod.latin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement