Skip to content

Instantly share code, notes, and snippets.

@H3xano
Last active April 30, 2021 12:36
Show Gist options
  • Save H3xano/eb0c361a2733607048f60a12c65a6185 to your computer and use it in GitHub Desktop.
Save H3xano/eb0c361a2733607048f60a12c65a6185 to your computer and use it in GitHub Desktop.
DebloatYourOP
How to use this?
Install the USB drivers for your device (Google has a list of some universal USB drivers here)
Download the ADB binary for your particular OS (Windows, Mac, Linux)
Extract the zip file into a folder that you can quickly access.
On your phone, go to Settings and tap on About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
Now enter Developer Options and find USB Debugging. Enable it.
On your computer, browse to the directory where you extracted the ADB binary.
Launch a Command Prompt in your ADB folder. For Windows users, this can be done by holding Shift and Right-clicking then selecting the “open command prompt here” option.
Once you’re in the command prompt/terminal, enter the following command: adb devices
You will see that the system is starting the ADB daemon. If this is your first time running ADB, you will see a prompt on your phone asking you to authorize a connection with the computer. Grant it.
Now if you re-run the adb devices command, the terminal will print the serial number of your device. If so, then you’re ready to move on.
Enter the following command: adb shell
You should now see on the far left: OnePlus7Pro:/ $ when using a OnePlus 7 Pro for example.
Then copy past any of the following lines and hit enter. That particaler app will now be disabled. NOTE: It is still installed. If you want to completly remove it use: pm uninstall -k --user 0 <name of package>
Note: this has to be redone after a system update (OTA)
To disable oneplus analytics disable the follow app for sure: (connects to: open.oneplus.net)
pm disable-user --user 0 net.oneplus.odm
OPTIONAL
oneplus test apps
pm disable-user --user 0 com.oneplus.bttestmode
pm disable-user --user 0 com.oneplus.factorymode.specialtest
pm disable-user --user 0 com.oneplus.opbugreportlite
pm disable-user --user 0 com.oneplus.ses
Disable oneplus buds app (NEEDED IF YOU USE THE BUDS!)
pm disable-user --user 0 com.oneplus.twspods
Disable logkit (needed for enable volte and vowifi for example)
pm disable-user --user 0 com.oem.oemlogkit
pm disable-user --user 0 com.oneplus.factorymode
removes Shot on OnePlus
pm disable-user --user 0 cn.oneplus.photos
removes oneplus account syncing
pm disable-user --user 0 com.oneplus.account
disables work account options
pm disable-user --user 0 com.android.managedprovisioning
Soter Is kinda like Google pay but used in China to authorize payment inside WeChat and other Chinese services. so not needed outside of china
pm disable-user --user 0 com.tencent.soter.soterserver
enable call recording: (resets after a reboot)
settings put global op_voice_recording_supported_by_mcc 1
older apps for older oneplus phones but not found on OxygenOS 10 and higher
pm disable-user --user 0 cn.oneplus.oem_tcma
pm disable-user --user 0 com.oneplus.diagnoseManager
To enable anything use:
pm enable PACKAGE
not sure what this does so I place it all the way here. It looks a lot like the telemtry app.
pm disable-user --user 0 net.oneplus.odm.provider
All installed oneplus apps
Used command: pm list packages | grep oneplus to get all the apps installed on a fresh installation of OxygenOS 10.0.8:
package:com.oneplus.calculator
package:net.oneplus.weather
package:com.oneplus.note.black.overlay
package:com.oneplus.gamespace
package:com.oneplus.card.black.overlay
package:com.oneplus.soundrecorder.black.overlay
package:com.oneplus.asti
package:com.oneplus.card
package:com.oneplus.note
package:net.oneplus.weather.basiccolorwhite.overlay
package:com.oneplus.account
package:com.oneplus.geoiptime
package:com.oneplus.soundrecorder
package:com.oneplus.camera.resources
package:com.oneplus.overlay
package:com.oneplus.aod.basiccolorwhite.overlay
package:com.oneplus.chargingpilar.black.overlay
package:cn.oneplus.photos
package:com.oneplus.wallpaper
package:com.oneplus.opbackup.white.overlay
package:net.oneplus.wallpaperresources
package:com.oneplus.twspods
package:com.oneplus.gamespace.black.overlay
package:com.oneplus.opsports.white.overlay
package:com.oneplus.screenshot
package:com.oneplus.brickmode
package:com.oneplus.deskclock
package:com.oneplus.setupwizard
package:com.oneplus.sdcardservice
package:com.oneplus.security
package:net.oneplus.weather.basiccolorblack.overlay
package:cn.oneplus.nvbackup
package:com.oneplus.factorymode.specialtest
package:com.oneplus.wifiapsettings
package:com.oneplus.iconpack.circle
package:com.oneplus.aod.basiccolorblack.overlay
package:net.oneplus.odm
package:com.oneplus.aodnotification.overlay.purple
package:com.oneplus.opbackup.black.overlay
package:com.oneplus.coreservice
package:com.oneplus.applocker
package:com.oneplus.gallery
package:com.oneplus.sms.smscplugger
package:com.oneplus.opsports.black.overlay
package:com.oneplus.telephonyoptimization
package:com.oneplus.factorymode
package:com.oneplus.opwlb.white.overlay
package:com.oneplus.iconpack.square
package:com.oneplus.camera.service
package:cn.oneplus.opmms
package:com.oneplus.wifiapsettings.basiccolorwhite.overlay
package:net.oneplus.odm.provider
package:com.oneplus.simcontacts
package:net.oneplus.push
package:com.oneplus.aodnotification.overlay.red
package:com.oneplus.cloud.basiccolorwhite.overlay
package:com.oneplus.account.basiccolorwhite.overlay
package:com.oneplus
package:com.oneplus.opwlb.black.overlay
package:com.oneplus.sound.tuner
package:com.oneplus.mms.basiccolorwhite.overlay
package:com.oneplus.iconpack.oneplus
package:com.oneplus.deskclock.white.overlay
package:com.oneplus.aodnotification.overlay.gold
package:com.oneplus.wifiapsettings.basiccolorblack.overlay
package:com.oneplus.contacts.basiccolorwhite.overlay
package:net.oneplus.launcher.white.overlay
package:net.oneplus.widget
package:cn.oneplus.oemtcma
package:com.oneplus.filemanager
package:com.oneplus.diagnosemanager
package:com.oneplus.filemanager.white.overlay
package:com.oneplus.houston
package:com.oneplus.faceunlock
package:com.oneplus.sound.tuner.basiccolorwhite.overlay
package:com.oneplus.cloud.basiccolorblack.overlay
package:com.oneplus.opbugreportlite
package:com.oneplus.account.basiccolorblack.overlay
package:com.oneplus.calendar.white.overlay
package:com.oneplus.screenrecord
package:com.oneplus.mms.basiccolorblack.overlay
package:com.oneplus.deskclock.black.overlay
package:com.oneplus.bttestmode
package:com.oneplus.backuprestore.remoteservice
package:com.oneplus.contacts.basiccolorblack.overlay
package:net.oneplus.launcher.black.overlay
package:net.oneplus.commonlogtool
package:com.oneplus.aod
package:com.oneplus.mms
package:com.oneplus.ses
package:com.oneplus.ifaaservice
package:com.oneplus.filemanager.black.overlay
package:com.oneplus.screenrecord.white.overlay
package:com.oneplus.sound.tuner.basiccolorblack.overlay
package:com.oneplus.appupgrader
package:com.oneplus.calendar.black.overlay
package:com.oneplus.simcontacts.basiccolorwhite.overlay
package:com.oneplus.security.white.overlay
package:android.autoinstalls.config.oneplus
package:com.oneplus.opbackup
package:com.oneplus.contacts
package:net.oneplus.provider.appcategoryprovider
package:com.oneplus.note.white.overlay
package:com.oneplus.card.white.overlay
package:com.oneplus.soundrecorder.white.overlay
package:com.oneplus.screenrecord.black.overlay
package:com.oneplus.camera
package:com.oneplus.config
package:net.oneplus.launcher
package:com.oneplus.chargingpilar.white.overlay
package:com.oneplus.simcontacts.basiccolorblack.overlay
package:com.oneplus.security.black.overlay
package:com.oneplus.gamespace.white.overlay
package:com.oneplus.calculator.basiccolorblack.overlay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment