[Guide] Get a debloated Oneplus 6 with Magisk Hide on both slots A/B

Testerofroms

Senior Member
Feb 27, 2017
62
65
0
This is a guide to get Oneplus 6 stock to my best efforts cleaned system from Oneplus,Google,Qualcomm spyware, hidden doors, bloatware
with a working magisk hide.
I made links in the guide to the threads I was referring to .

Good to know (according to my experiences):
  1. I am a hacker not a developer.
  2. Magisk hide (only hide) needs a kernel which supports f2fs. The kernel of stock ROM seems to have issues with f2fs of magisk.
    Activating with stock kernel, causes issues with Magisk (root losses after boot with notices of magisk manager to install an update)
  3. Slot A/B mechanism causes switch of slot in case of any issues with the installed images (don't know which exactly boot/system/recovery)
    I think the slots are related to recovery boot and system, and also the mechanism to recover system partition with data of system image partition.
  4. Corrupt boot image can cause issues with system image caused by 2.) following by 3.) (e.g. parameters of system images a not readable)
  5. I tried to edit system image (delete apps see below) within TWRP file manager.
    My experience was, that this cause a Slot changer because of corrupt system image/boot/recovery.
    So I debloated the system after initial setup with a system app remover with root rights.
  6. if you have already made app installations/configuration on the mobile, data partition is not related by 3.)
    You can rescue an installation with preserving your efforts on data partitions with fastboot flashall (without erasing user data parameter '-w')
    If you made a backup of your system image with TWRP/Nandroid you can also preserve your efforts on system partition. copy system_image.emmc.win to fastboot rom folder and rename it to system.img
    see 99.) and execute a fastboot flashall.
  7. How to check recent slot:
    Within fastboot mode:
    fastboot --set-active
    Within TWRP:
    visible in TWRP at restart menu
  8. check overview of current versions
  9. A slot changer can cause that the 'system image' partition will be activated to be the new main 'system' partition.
    So don't be irritated if you boot up with pre-installed apps you have already removed.
    Make sure, TWRP don't show a mount error for /system with fastboot flashall and a copy of your TWRP backup system.img see Good to know 6.) above and 99.) below.
Steps to debloat and get a running magisk hide:
  • 0. Downloads
    - Newest ADB Version => 1.0.40 (execute adb without parameter to get version)
    - TWRP recovery image
    Optional: If you want to install TWRP permanently download zip (installer) too. see Good to know 3.).
    I experienced that TWRP ZIP installing is not always safe meaning. After slot switch, I still had stock recovery hand had to re-install twrp again.
  • - Kernel which is supporting clean f2fs (I used blu_spark kernel from eng.stk, because he mentioned the f2fs support in his description)
  • - Magisk version => v16.4 (code: 1642)
  • - Stock ROM for fastboot flash as provided by mauronofrio Good to know 5.)

  • unlock bootloader (will cause a data partition wipe!)
  • boot TWRP
    - boot in fastboot mode (Power + Volume Up without being connected via USB)
    Code:
    fastboot boot twrp-3.2.1-0-enchilada.img
    (depends on actual version of TWRP team)
  • in TWRP: Install kernel zip
    Code:
    adb push blu_spark_r18-oos_op6_cd2084b.zip /sdcard/
    install via TWRP menu
  • in TWRP: Install Magisk zip
    Code:
    adb push Magisk-v16.4.zip /sdcard/
    install via TWRP menu
  • reboot system
    and be aware: the stock rom have oneplus and qualcomm apps which is collecting your data.
    advice: make initials settings without SIM card and without wifi (if you coming from fresh install) .
  • check if you got root.
  • debloat your system
  • make a NAndroid Backup with TWRP
  • do 2.) if you didn't install TWRP
    and backup your system
  • if you want to make sure that both slots are having same debloated system image, switch the slot with TWRP restart menu
  • see 98.) 99.) with Good to know 4.)
  • flash fastboot ROM with new system image
  • do steps 2.- 5.)
98. if you see issues mounting /system recover with fastboot image: Good to know 4.)
99. if you want to save the efforts on system replace the fastboot ROM system.img with your TWRP backup system file
copy system_image.emmc.win to fastboot rom folder and rename it to system.img


Thanks to:
Didgeridoohan
mauronofrio
topjohnwu
eng.stk
TeamWin
WoZZeR999
quangtran1
Rajeev

questionable pre-installed apps in my knowledge
Code:
App			System folder	reason
CalendarGoogle		app	I don't trust google apps with ability of google cloud
Chrome			app	don't need to be in system-app because updated on regular basis by google
Drive			app	I don't use google cloud: don't need to be in system-app because updated on regular basis by google
Duo			app	don't need to be in system-app because updated on regular basis by google
Gmail2			app	don't need to be in system-app because updated on regular basis by google
GoogleContactsSyncAdapter app	I don't trust google apps with ability of google cloud
GooglePrintRecommendationService app	bloat ? I don't need it
LogKitSdService		app	suspicous:eek:neplus Analytics Logger
Maps			app	don't need to be in system-app because updated on regular basis by google
Music2			app	I don't trust google apps with ability of google cloud
OemAutoTestServer	app	suspicous
OEMLogKit		app	suspicous Oneplus Analytics Logger
OPBugReportLite		app	suspicous Oneplus Analytics Logger
OpenWnn			app	No need of asian fonts
OPPush			app	bloat software - I check XDA forums with browers
OPSocialNetworkHub	app	bloat software - I check oneplus forums with browers
Photos			app	I don't trust google apps with ability of google cloud
PhotosOnline		app	I don't use google cloud: online saved pics
talkback		app	don't need to be in system-app because updated on regular basis by google
uimremoteclient		app	suspicous: Qualcomm UI remote software
uimremoteserver		app	suspicous: Qualcomm UI remote software
Videos			app	Google Videos: don't need to be in system-app because updated on regular basis by google
YouTube			app	don't need to be in system-app because updated on regular basis by google
NVBackupUI		app	I don't use Oneplus Backup
OPForum			reserve	don't need to be in system-reserve because updated by Oneplus
OPIconpackCircle	reserve	I don't use Oneplus Icons
OPIconpackSquare	reserve	I don't use Oneplus Icons
OPBackupRestore		reserve	I don't use Oneplus Backup
BackupRestoreConfirmation priv-app	I don't use Oneplus Backup
GoogleBackupTransport	priv-app	I don't use Google Backup
OPDeviceManager		priv-app	suspicous Oneplus Analytics Logger
OPDeviceManagerProvider	priv-app	suspicous Oneplus Analytics Logger
ManagedProvisioning	priv-app	I don't use external configs
OPSettingsProvider	priv-app	I don't use external configs
Velvet			priv-app	Google app: I don't use
in /vendor/app: needs to be deactivated:
SSGTelemetryService vendor/app suspicous com.qualcomm.qti.qms.service.telemetry
Correction: Engieering apps seems to be needed for entering USSD-Codes:
EngineeringMode app suspicous USSD-Codes
EngSpecialTest app suspicous

Another correction removing of following app results a shut down immediately after boot
OPOnlineConfig app I don't use online saved configs

Another correction this app checks for OTA updates
OPBackup app I don't use Oneplus Backup
 
Last edited:

iElvis

Senior Member
May 24, 2012
5,012
2,824
253
Modville
Damn, that is a lot of apps to be removing at once. I would strongly recommend any trying this to freeze the apps first, and furthermore freeze a few at time in case things start breaking, so you know what may have caused it.
 

Testerofroms

Senior Member
Feb 27, 2017
62
65
0
Damn, that is a lot of apps to be removing at once. I would strongly recommend any trying this to freeze the apps first, and furthermore freeze a few at time in case things start breaking, so you know what may have caused it.
yes, indeed.
Since many apps are known to me from older oneplus devices, it was easier for me.

these apps in reserve folder are safe to remove and can be reinstalled from playstore
Code:
OPForum			reserve	don't need to be in system-reserve because updated by Oneplus
OPIconpackCircle	reserve	I don't use Oneplus Icons
OPIconpackSquare	reserve	I don't use Oneplus Icons
apps from google like maps/chrome/duo can also be reinstalled from playstore.
Code:
CalendarGoogle		app	I don't trust google apps with ability of google cloud
Chrome			app	don't need to be in system-app because updated on regular basis by google
Drive			app	I don't use google cloud: don't need to be in system-app because updated on regular basis by google
Duo			app	don't need to be in system-app because updated on regular basis by google
Gmail2			app	don't need to be in system-app because updated on regular basis by google
Maps			app	don't need to be in system-app because updated on regular basis by google
Music2			app	I don't trust google apps with ability of google cloud
PhotosOnline		app	I don't use google cloud: online saved pics
talkback		app	don't need to be in system-app because updated on regular basis by google
Videos			app	Google Videos: don't need to be in system-app because updated on regular basis by google
YouTube			app	don't need to be in system-app because updated on regular basis by google
Velvet			priv-app	Google app: I don't use
the rest should be deactived and checked if device is running as expected
Code:
GoogleContactsSyncAdapter app	I don't trust google apps with ability of google cloud
GooglePrintRecommendationService app	bloat ? I don't need it
LogKitSdService		app	suspicous:eek:neplus Analytics Logger
OemAutoTestServer	app	suspicous
OEMLogKit		app	suspicous Oneplus Analytics Logger
OPBugReportLite		app	suspicous Oneplus Analytics Logger
OpenWnn			app	No need of asian fonts
OPOnlineConfig		app	I don't use online saved configs
OPPush			app	bloat software - I check XDA forums with browers
OPSocialNetworkHub	app	bloat software - I check oneplus forums with browers
Photos			app	I don't trust google apps with ability of google cloud
uimremoteclient		app	suspicous: Qualcomm UI remote software
uimremoteserver		app	suspicous: Qualcomm UI remote software
NVBackupUI		app	I don't use Oneplus Backup

OPBackupRestore		reserve	I don't use Oneplus Backup
BackupRestoreConfirmation priv-app	I don't use Oneplus Backup
GoogleBackupTransport	priv-app	I don't use Google Backup
OPDeviceManager		priv-app	suspicous Oneplus Analytics Logger
OPDeviceManagerProvider	priv-app	suspicous Oneplus Analytics Logger
ManagedProvisioning	priv-app	I don't use external configs
OPSettingsProvider	priv-app	I don't use external configs
not system image based: vendor image based -> to be deactivated:
Code:
SSGTelemetryService vendor/app suspicous com.qualcomm.qti.qms.service.telemetry
Correction:
EngineeringMode app (suspicous) Used to enter USSD codes
EngSpecialTest app suspicous
Another correction removing of following app results a shut down immediately after boot
OPOnlineConfig app I don't use online saved configs
OPBackup app (I don't use Oneplus Backup) OTA Update checker
 
Last edited:
  • Like
Reactions: x111

amithiel

Senior Member
Nov 9, 2011
194
71
58
I used titanium backup to remove some google apps (gmail, playmusic etc....), then i rebooted the device. What the hell, they're still on my phone asking to be updated on playstore? how is that even possible? Titanium backup removes the system APK, so i'm confused
 
Last edited:

Testerofroms

Senior Member
Feb 27, 2017
62
65
0
I used titanium backup to remove some google apps (gmail, playmusic etc....), then i rebooted the device. What the hell, they're still on my phone asking to be updated on playstore? how is that even possible? Titanium backup removes the system APK, so i'm confused
Why ?
Option 1.) Titianium is deleting not completly
Option 2.) You removed the wrong one.

Do it again and check with file explorer with root, like ES file explorer or Total commander.
if it's still there try another method see above.
 

carlos67

Senior Member
Oct 29, 2010
1,716
632
0
SSGTelemetryService vendor/app suspicous com.qualcomm.qti.qms.service.telemetry

How do you de-activate/get rid of this??

I tried deleting it in solid explorer (rooted) but it wouldn't delete??
 

Testerofroms

Senior Member
Feb 27, 2017
62
65
0
SSGTelemetryService vendor/app suspicous com.qualcomm.qti.qms.service.telemetry

How do you de-activate/get rid of this??

I tried deleting it in solid explorer (rooted) but it wouldn't delete??
It's on the vendor image not system image... so the system app remover are only specialized to mount r/w/ system partition... not vendor image.
Other image other app :)

Deactivate it with Titanium Backup...
or go with your explorer - installed apps and search for telemetryjservice
Click on it, and the App-view opens.
deactivate there..
 

brown1178

Senior Member
Dec 16, 2016
155
34
28
I freezed the following Apps without any issues. I hope freezing is enough, because if uninstalled, they are reinstalled after each update. A freezed app should stay freezed...

Code:
AutoTestServer 1.0
BugReportLite
com.oem.logkitsdservice
com.qualcomm.uimremoteclient 8.1.0
com.qualcomm.uimremoteserer 8.1.0
Card Package
NVBackupUI
OnePlus Account
OnePlusLogKit
OpenWnn
OPSocialNetworkHub
Push
TelemetryJService
Weather
Since I'm using Google Services, I only uninstalled some of Google Apps.
 

amithiel

Senior Member
Nov 9, 2011
194
71
58
Why ?
Option 1.) Titianium is deleting not completly
Option 2.) You removed the wrong one.

Do it again and check with file explorer with root, like ES file explorer or Total commander.
if it's still there try another method see above.
I tried countless times. Anyway, i ended up freezing all of them, and worked. But i'll check with filemanager whats going on. Thanks
 

x111

Senior Member
Jul 3, 2009
1,247
336
113
I freezed over 30 apps with "titanium backup".
I wish this app could save freezing list to keep it and restore later on fresh rom.
So much trash in Oneplus phone as well as in stock Android os.
Huge shame on Oneplus and Google !!
 
Last edited:

brown1178

Senior Member
Dec 16, 2016
155
34
28
I freezed over 30 apps with "titanium backup".
I wish this app could save freezing list to keep it and restore later on fresh rom.
So much trash in Oneplus phone as well as in stock Android os.
Huge shame on Oneplus and Google !!
You should take a look at Samsung or Huawei phones, Oneplus is not that much bloated.
If you freeze an app, it will stay freezed after an update, only if you uninstall it, it will be reinstalled.
 
Last edited:

brown1178

Senior Member
Dec 16, 2016
155
34
28
I tried countless times. Anyway, i ended up freezing all of them, and worked. But i'll check with filemanager whats going on. Thanks
If you uninstall a system app like Google Chrome or YouTube, every time the app gets an update it will be reinstalled. Before uninstalling, go to the Playstore page of that app, hit the three dots in the upper right corner and uncheck automatic update, then uninstall the app.
 

iElvis

Senior Member
May 24, 2012
5,012
2,824
253
Modville
I freezed the following Apps without any issues. I hope freezing is enough, because if uninstalled, they are reinstalled after each update. A freezed app should stay freezed...
It's almost always better to freeze apps like this instead of deleting them, especially on a phone with this much storage space. If something goes haywire, defrosting is a lot easier than doing a full system reflash.
 

DocRambone

Retired Recognized Developer
Jan 7, 2010
6,834
3,446
0
Stockholm
My hardcore script to clean up an OOS rom :)

Code:
delete_recursive("/system/system/app/Account");
delete_recursive("/system/system/app/AndroidPay");
delete_recursive("/system/system/app/AntHalService");
delete_recursive("/system/system/app/BasicDreams");
delete_recursive("/system/system/app/BluetoothMidiService");
delete_recursive("/system/system/app/BookmarkProvider");
delete_recursive("/system/system/app/BTtestmode");
delete_recursive("/system/system/app/Bugle");
delete_recursive("/system/system/app/card");
delete_recursive("/system/system/app/CalendarGoogle");
delete_recursive("/system/system/app/CaptivePortalLogin");
#delete_recursive("/system/system/app/Chrome");
delete_recursive("/system/system/app/CtsShimPrebuilt");
delete_recursive("/system/system/app/DeskClock");
delete_recursive("/system/system/app/DivesIconPack");
delete_recursive("/system/system/app/DocumentsUI");
delete_recursive("/system/system/app/DMAgent");
delete_recursive("/system/system/app/Drive");
#delete_recursive("/system/system/app/EngineeringMode");
#delete_recursive("/system/system/app/EngSpecialTest");
delete_recursive("/system/system/app/EasterEgg");
delete_recursive("/system/system/app/FaceLock");
delete_recursive("/system/system/app/Galaxy4");
delete_recursive("/system/system/app/GooglePay");
delete_recursive("/system/system/app/Gmail2");
delete_recursive("/system/system/app/GmailExchange");
delete_recursive("/system/system/app/GoogleTTS");
delete_recursive("/system/system/app/GoogleContactsSyncAdapter");
#delete_recursive("/system/system/app/GmsSampleLayout");
delete_recursive("/system/system/app/GooglePrintRecommendationService");

#delete_recursive("/system/system/app/HTMLViewer");
delete_recursive("/system/system/app/Hangouts");
delete_recursive("/system/system/app/HoloSpiralWallpaper");
#delete_recursive("/system/system/app/LiveWallpapers");
#delete_recursive("/system/system/app/LiveWallpapersPicker");
delete_recursive("/system/system/app/LogKitSdService");
delete_recursive("/system/system/app/LatinImeGoogle");
delete_recursive("/system/system/app/Maps");
delete_recursive("/system/system/app/Music");
delete_recursive("/system/system/app/Music2");
delete_recursive("/system/system/app/NoiseField");
#delete_recursive("/system/system/app/NfcNci");
#delete_recursive("/system/system/app/NFCTestMode");
delete_recursive("/system/system/app/NVBackupUI");
delete_recursive("/system/system/app/OemAutoTestServer");
delete_recursive("/system/system/app/OPBackup");
delete_recursive("/system/system/app/OPBackupRestore");
delete_recursive("/system/system/app/OEMLogKit");
delete_recursive("/system/system/app/OPBugReportLite");
delete_recursive("/system/system/app/OPMusic");
delete_recursive("/system/system/app/OPLauncher2");
delete_recursive("/system/system/app/OPSocialNetworkHub");
delete_recursive("/system/system/app/OPWallpaperResources");
delete_recursive("/system/system/app/OPWidget");
#delete_recursive("/system/system/app/OPOnlineConfig");
#delete_recursive("/system/system/app/OPPush");
#delete_recursive("/system/system/app/OpenWnn");
delete_recursive("/system/system/app/OnePlusWizard");
delete_recursive("/system/system/app/SetupWizard");
delete_recursive("/system/system/app/com.quicinc.wbcserviceapp");


delete_recursive("/system/system/app/PartnerBookmarksProvider");
delete_recursive("/system/system/app/PhaseBeam");
delete_recursive("/system/system/app/Photos");
delete_recursive("/system/system/app/PhotosOnline");
delete_recursive("/system/system/app/Protips");
#delete_recursive("/system/system/app/PrintSpooler");
#delete_recursive("/system/system/app/RifonIconPack");
delete_recursive("/system/system/app/SensorTestTool");
delete_recursive("/system/system/app/SwiftKey");
delete_recursive("/system/system/app/SwiftKeyFactorySettings");

delete_recursive("/system/system/app/talkback");
delete_recursive("/system/system/app/Videos");
delete_recursive("/system/system/app/YouTube");
delete_recursive("/system/system/app/Weather");
delete_recursive("/system/system/app/VoicePrintService");
delete_recursive("/system/system/app/WifiRfTestApk");
delete_recursive("/system/system/com.touchtype");
delete_recursive("/system/system/app/SoundRecorder");
#delete_recursive("/system/system/app/CtsShimPrebuilt");
delete_recursive("/system/system/app/Duo");
#delete_recursive("/system/system/app/WfdService");
#delete_recursive("/system/system/app/LiveWallpapersPicker");
delete_recursive("/system/system/app/OPLauncher");
delete_recursive("/system/system/app/OPWallpapers");

delete_recursive("/system/system/vendor/app/Perfdump");
delete_recursive("/system/system/etc/usb_drivers.iso");
delete_recursive("/system/system/vendor/pittpatt");
#delete_recursive("/system/system/usr/srec");
delete_recursive("/system/system/media/bootanimation.zip");

delete_recursive("/system/system/reserve");


delete_recursive("/system/system/etc/wigig_logcollector.ini");
delete_recursive("/system/system/bin/wigig_remoteserver");
delete_recursive("/system/system/vendor/bin/WifiLogger_app");

delete_recursive("/system/system/priv-app/MusicFX");
delete_recursive("/system/system/priv-app/Tag");
delete_recursive("/system/system/priv-app/Velvet");

delete_recursive("/system/system/priv-app/GmsCore");
delete_recursive("/system/system/priv-app/GoogleBackupTransport");
delete_recursive("/system/system/priv-app/GoogleFeedback");
delete_recursive("/system/system/priv-app/GoogleLoginService");
delete_recursive("/system/system/priv-app/GoogleOneTimeInitializer");
delete_recursive("/system/system/priv-app/GooglePartnerSetup");
delete_recursive("/system/system/priv-app/GoogleServicesFramework");
delete_recursive("/system/system/priv-app/Phonesky");

#delete_recursive("/system/system/priv-app/OPDeviceManager");
#delete_recursive("/system/system/priv-app/OPDeviceManagerProvider");
#delete_recursive("/system/system/priv-app/OPCellBroadcastReceiver");
#delete_recursive("/system/system/priv-app/CtsShimPrivPrebuilt");
#delete_recursive("/system/system/priv-app/OnePlusGallery");


delete_recursive("/system/system/app/Books");
delete_recursive("/system/system/app/CalculatorGoogle");
delete_recursive("/system/system/app/CalendarGooglePrebuilt");
delete_recursive("/system/system/app/CloudPrint2");
delete_recursive("/system/system/app/EditorsDocs");
delete_recursive("/system/system/app/EditorsSheets");
delete_recursive("/system/system/app/EditorsSlides");
delete_recursive("/system/system/app/FaceLock");
delete_recursive("/system/system/app/FitnessPrebuilt");
delete_recursive("/system/system/app/GoogleCalendarSyncAdapter");
delete_recursive("/system/system/app/GoogleCamera");
delete_recursive("/system/system/app/GoogleCamera");
delete_recursive("/system/system/app/GoogleContactsSyncAdapter");
delete_recursive("/system/system/app/GoogleEars");
delete_recursive("/system/system/app/GoogleEarth");
delete_recursive("/system/system/app/GoogleHindiIME");
delete_recursive("/system/system/app/GoogleHome");
delete_recursive("/system/system/app/GoogleJapaneseInput");
delete_recursive("/system/system/app/GooglePinyinIME");
delete_recursive("/system/system/app/GoogleTTS");
delete_recursive("/system/system/app/GoogleZhuyinIME");
delete_recursive("/system/system/app/Hangouts");
delete_recursive("/system/system/app/KoreanIME");
delete_recursive("/system/system/app/Newsstand");
delete_recursive("/system/system/app/PlayGames");
delete_recursive("/system/system/app/PlusOne");
delete_recursive("/system/system/app/PrebuiltBugle");
delete_recursive("/system/system/app/PrebuiltDeskClockGoogle");
delete_recursive("/system/system/app/PrebuiltExchange3Google");
delete_recursive("/system/system/app/PrebuiltGmail");
delete_recursive("/system/system/app/PrebuiltKeep");
delete_recursive("/system/system/app/PrebuiltNewsWeather");
delete_recursive("/system/system/app/Street");
delete_recursive("/system/system/app/TranslatePrebuilt");
delete_recursive("/system/system/app/Tycho");
delete_recursive("/system/system/app/Videos");
delete_recursive("/system/system/app/Wallet");



#delete_recursive("/system/system/priv-app/ConfigUpdater");
delete_recursive("/system/system/priv-app/GCS");
delete_recursive("/system/system/priv-app/GoogleBackupTransport");
delete_recursive("/system/system/priv-app/GoogleContacts");
delete_recursive("/system/system/priv-app/GoogleDialer");
delete_recursive("/system/system/priv-app/GoogleFeedback");
delete_recursive("/system/system/priv-app/GoogleLoginService");
delete_recursive("/system/system/priv-app/GoogleOneTimeInitializer");
delete_recursive("/system/system/priv-app/GooglePartnerSetup");
delete_recursive("/system/system/priv-app/GoogleServicesFramework");
delete_recursive("/system/system/priv-app/HotwordEnrollment");
delete_recursive("/system/system/priv-app/Phonesky");
delete_recursive("/system/system/priv-app/PrebuiltGmsCore");
delete_recursive("/system/system/priv-app/TagGoogle");

delete_recursive("/system/system/priv-app/HotwordEnrollmentOKGoogleWCD9340");
delete_recursive("/system/system/priv-app/HotwordEnrollmentXGoogleWCD9340");
delete_recursive("/system/system/priv-app/SetupWizard");
delete_recursive("/system/system/priv-app/OnePlusWizard");
delete_recursive("/system/system/priv-app/DocumentsUI");
 

80s Baby

Senior Member
Jun 15, 2014
295
56
28
My hardcore script to clean up an OOS rom :)

Code:
delete_recursive("/system/system/app/Account");
delete_recursive("/system/system/app/AndroidPay");
delete_recursive("/system/system/app/AntHalService");
delete_recursive("/system/system/app/BasicDreams");
delete_recursive("/system/system/app/BluetoothMidiService");
delete_recursive("/system/system/app/BookmarkProvider");
delete_recursive("/system/system/app/BTtestmode");
delete_recursive("/system/system/app/Bugle");
delete_recursive("/system/system/app/card");
delete_recursive("/system/system/app/CalendarGoogle");
delete_recursive("/system/system/app/CaptivePortalLogin");
#delete_recursive("/system/system/app/Chrome");
delete_recursive("/system/system/app/CtsShimPrebuilt");
delete_recursive("/system/system/app/DeskClock");
delete_recursive("/system/system/app/DivesIconPack");
delete_recursive("/system/system/app/DocumentsUI");
delete_recursive("/system/system/app/DMAgent");
delete_recursive("/system/system/app/Drive");
#delete_recursive("/system/system/app/EngineeringMode");
#delete_recursive("/system/system/app/EngSpecialTest");
delete_recursive("/system/system/app/EasterEgg");
delete_recursive("/system/system/app/FaceLock");
delete_recursive("/system/system/app/Galaxy4");
delete_recursive("/system/system/app/GooglePay");
delete_recursive("/system/system/app/Gmail2");
delete_recursive("/system/system/app/GmailExchange");
delete_recursive("/system/system/app/GoogleTTS");
delete_recursive("/system/system/app/GoogleContactsSyncAdapter");
#delete_recursive("/system/system/app/GmsSampleLayout");
delete_recursive("/system/system/app/GooglePrintRecommendationService");

#delete_recursive("/system/system/app/HTMLViewer");
delete_recursive("/system/system/app/Hangouts");
delete_recursive("/system/system/app/HoloSpiralWallpaper");
#delete_recursive("/system/system/app/LiveWallpapers");
#delete_recursive("/system/system/app/LiveWallpapersPicker");
delete_recursive("/system/system/app/LogKitSdService");
delete_recursive("/system/system/app/LatinImeGoogle");
delete_recursive("/system/system/app/Maps");
delete_recursive("/system/system/app/Music");
delete_recursive("/system/system/app/Music2");
delete_recursive("/system/system/app/NoiseField");
#delete_recursive("/system/system/app/NfcNci");
#delete_recursive("/system/system/app/NFCTestMode");
delete_recursive("/system/system/app/NVBackupUI");
delete_recursive("/system/system/app/OemAutoTestServer");
delete_recursive("/system/system/app/OPBackup");
delete_recursive("/system/system/app/OPBackupRestore");
delete_recursive("/system/system/app/OEMLogKit");
delete_recursive("/system/system/app/OPBugReportLite");
delete_recursive("/system/system/app/OPMusic");
delete_recursive("/system/system/app/OPLauncher2");
delete_recursive("/system/system/app/OPSocialNetworkHub");
delete_recursive("/system/system/app/OPWallpaperResources");
delete_recursive("/system/system/app/OPWidget");
#delete_recursive("/system/system/app/OPOnlineConfig");
#delete_recursive("/system/system/app/OPPush");
#delete_recursive("/system/system/app/OpenWnn");
delete_recursive("/system/system/app/OnePlusWizard");
delete_recursive("/system/system/app/SetupWizard");
delete_recursive("/system/system/app/com.quicinc.wbcserviceapp");


delete_recursive("/system/system/app/PartnerBookmarksProvider");
delete_recursive("/system/system/app/PhaseBeam");
delete_recursive("/system/system/app/Photos");
delete_recursive("/system/system/app/PhotosOnline");
delete_recursive("/system/system/app/Protips");
#delete_recursive("/system/system/app/PrintSpooler");
#delete_recursive("/system/system/app/RifonIconPack");
delete_recursive("/system/system/app/SensorTestTool");
delete_recursive("/system/system/app/SwiftKey");
delete_recursive("/system/system/app/SwiftKeyFactorySettings");

delete_recursive("/system/system/app/talkback");
delete_recursive("/system/system/app/Videos");
delete_recursive("/system/system/app/YouTube");
delete_recursive("/system/system/app/Weather");
delete_recursive("/system/system/app/VoicePrintService");
delete_recursive("/system/system/app/WifiRfTestApk");
delete_recursive("/system/system/com.touchtype");
delete_recursive("/system/system/app/SoundRecorder");
#delete_recursive("/system/system/app/CtsShimPrebuilt");
delete_recursive("/system/system/app/Duo");
#delete_recursive("/system/system/app/WfdService");
#delete_recursive("/system/system/app/LiveWallpapersPicker");
delete_recursive("/system/system/app/OPLauncher");
delete_recursive("/system/system/app/OPWallpapers");

delete_recursive("/system/system/vendor/app/Perfdump");
delete_recursive("/system/system/etc/usb_drivers.iso");
delete_recursive("/system/system/vendor/pittpatt");
#delete_recursive("/system/system/usr/srec");
delete_recursive("/system/system/media/bootanimation.zip");

delete_recursive("/system/system/reserve");


delete_recursive("/system/system/etc/wigig_logcollector.ini");
delete_recursive("/system/system/bin/wigig_remoteserver");
delete_recursive("/system/system/vendor/bin/WifiLogger_app");

delete_recursive("/system/system/priv-app/MusicFX");
delete_recursive("/system/system/priv-app/Tag");
delete_recursive("/system/system/priv-app/Velvet");

delete_recursive("/system/system/priv-app/GmsCore");
delete_recursive("/system/system/priv-app/GoogleBackupTransport");
delete_recursive("/system/system/priv-app/GoogleFeedback");
delete_recursive("/system/system/priv-app/GoogleLoginService");
delete_recursive("/system/system/priv-app/GoogleOneTimeInitializer");
delete_recursive("/system/system/priv-app/GooglePartnerSetup");
delete_recursive("/system/system/priv-app/GoogleServicesFramework");
delete_recursive("/system/system/priv-app/Phonesky");

#delete_recursive("/system/system/priv-app/OPDeviceManager");
#delete_recursive("/system/system/priv-app/OPDeviceManagerProvider");
#delete_recursive("/system/system/priv-app/OPCellBroadcastReceiver");
#delete_recursive("/system/system/priv-app/CtsShimPrivPrebuilt");
#delete_recursive("/system/system/priv-app/OnePlusGallery");


delete_recursive("/system/system/app/Books");
delete_recursive("/system/system/app/CalculatorGoogle");
delete_recursive("/system/system/app/CalendarGooglePrebuilt");
delete_recursive("/system/system/app/CloudPrint2");
delete_recursive("/system/system/app/EditorsDocs");
delete_recursive("/system/system/app/EditorsSheets");
delete_recursive("/system/system/app/EditorsSlides");
delete_recursive("/system/system/app/FaceLock");
delete_recursive("/system/system/app/FitnessPrebuilt");
delete_recursive("/system/system/app/GoogleCalendarSyncAdapter");
delete_recursive("/system/system/app/GoogleCamera");
delete_recursive("/system/system/app/GoogleCamera");
delete_recursive("/system/system/app/GoogleContactsSyncAdapter");
delete_recursive("/system/system/app/GoogleEars");
delete_recursive("/system/system/app/GoogleEarth");
delete_recursive("/system/system/app/GoogleHindiIME");
delete_recursive("/system/system/app/GoogleHome");
delete_recursive("/system/system/app/GoogleJapaneseInput");
delete_recursive("/system/system/app/GooglePinyinIME");
delete_recursive("/system/system/app/GoogleTTS");
delete_recursive("/system/system/app/GoogleZhuyinIME");
delete_recursive("/system/system/app/Hangouts");
delete_recursive("/system/system/app/KoreanIME");
delete_recursive("/system/system/app/Newsstand");
delete_recursive("/system/system/app/PlayGames");
delete_recursive("/system/system/app/PlusOne");
delete_recursive("/system/system/app/PrebuiltBugle");
delete_recursive("/system/system/app/PrebuiltDeskClockGoogle");
delete_recursive("/system/system/app/PrebuiltExchange3Google");
delete_recursive("/system/system/app/PrebuiltGmail");
delete_recursive("/system/system/app/PrebuiltKeep");
delete_recursive("/system/system/app/PrebuiltNewsWeather");
delete_recursive("/system/system/app/Street");
delete_recursive("/system/system/app/TranslatePrebuilt");
delete_recursive("/system/system/app/Tycho");
delete_recursive("/system/system/app/Videos");
delete_recursive("/system/system/app/Wallet");



#delete_recursive("/system/system/priv-app/ConfigUpdater");
delete_recursive("/system/system/priv-app/GCS");
delete_recursive("/system/system/priv-app/GoogleBackupTransport");
delete_recursive("/system/system/priv-app/GoogleContacts");
delete_recursive("/system/system/priv-app/GoogleDialer");
delete_recursive("/system/system/priv-app/GoogleFeedback");
delete_recursive("/system/system/priv-app/GoogleLoginService");
delete_recursive("/system/system/priv-app/GoogleOneTimeInitializer");
delete_recursive("/system/system/priv-app/GooglePartnerSetup");
delete_recursive("/system/system/priv-app/GoogleServicesFramework");
delete_recursive("/system/system/priv-app/HotwordEnrollment");
delete_recursive("/system/system/priv-app/Phonesky");
delete_recursive("/system/system/priv-app/PrebuiltGmsCore");
delete_recursive("/system/system/priv-app/TagGoogle");

delete_recursive("/system/system/priv-app/HotwordEnrollmentOKGoogleWCD9340");
delete_recursive("/system/system/priv-app/HotwordEnrollmentXGoogleWCD9340");
delete_recursive("/system/system/priv-app/SetupWizard");
delete_recursive("/system/system/priv-app/OnePlusWizard");
delete_recursive("/system/system/priv-app/DocumentsUI");
Can I use this via terminal or adb?
 

Testerofroms

Senior Member
Feb 27, 2017
62
65
0
My hardcore script to clean up an OOS rom :)
Code:
...
delete_recursive("/system/system/app/CaptivePortalLogin");
#delete_recursive("/system/system/app/Chrome");
..
delete_recursive("/system/system/app/OPBackup");
CaptivePortal is a mechanism to login at airports at free or paid WIFI etc.
OPBackup is the OTA Update checker...

Code:
#delete_recursive("/system/system/app/OpenWnn");
delete_recursive("/system/system/app/GoogleJapaneseInput");
delete_recursive("/system/system/app/GooglePinyinIME");
delete_recursive("/system/system/app/GoogleTTS");
delete_recursive("/system/system/app/GoogleZhuyinIME");
delete_recursive("/system/system/app/KoreanIME");
You are deleting some other asian languages but not the Openwnn ?
Link to OpenWnn is a Japanese keyboard/IME from the Android Open Source Project
I don't have these except OpenWnn..
Code:
delete_recursive("/system/system/priv-app/Tag");
#delete_recursive("/system/system/priv-app/OPDeviceManager");
#delete_recursive("/system/system/priv-app/OPDeviceManagerProvider");
I think, Tag is the app to read out the MP3/MP4 tags as description..
OPDeviceManager is the dataminer from Oneplus
Read here

Code:
delete_recursive("/system/system/app/PrebuiltBugle");
delete_recursive("/system/system/app/PrebuiltDeskClockGoogle");
delete_recursive("/system/system/app/PrebuiltExchange3Google");
delete_recursive("/system/system/app/PrebuiltGmail");
delete_recursive("/system/system/app/PrebuiltKeep");
delete_recursive("/system/system/app/PrebuiltNewsWeather");
delete_recursive("/system/system/app/Street");
delete_recursive("/system/system/app/TranslatePrebuilt");
delete_recursive("/system/system/app/Tycho");
delete_recursive("/system/system/app/Wallet");
I don't have these folders/app...

Well take a further look in /system/media/
I removed also most of the Oneplus themes there ...
Code:
delete_recursive("/system/media/themes/oneplus_4");
delete_recursive("/system/media/themes/oneplus_5");
delete_recursive("/system/media/themes/oneplus_6");
delete_recursive("/system/media/themes/oneplus_7");
delete_recursive("/system/media/themes/oneplus_8");
delete_recursive("/system/media/themes/oneplus_9");
delete_recursive("/system/media/themes/oneplus_10");
delete_recursive("/system/media/themes/oneplus_11");
delete_recursive("/system/media/themes/oneplus_12");
delete_recursive("/system/media/themes/oneplus_13");
delete_recursive("/system/media/themes/oneplus_14");
delete_recursive("/system/media/themes/oneplus_15");
delete_recursive("/system/media/themes/oneplus_black");
delete_recursive("/system/media/themes/oneplus_white");
 

Testerofroms

Senior Member
Feb 27, 2017
62
65
0
Can I use this via terminal or adb?
I think he used an alias or a function "delete_recursive"
delete_recursive("/system/system/app/OPPush");
to be used in a script tool

the correct command would be
rm -rf /system/system/app/OPPush

rm = command remove
option -r = recursive
option -f = attempt to remove the files without prompting for confirmation
 
Last edited:
  • Like
Reactions: 80s Baby

carlos67

Senior Member
Oct 29, 2010
1,716
632
0
My hardcore script to clean up an OOS rom :)
:eek: and I thought that I was aggressive in freezing out the crap. I've got nothing on you!!!

Is there anything left on your phone? :D

How did you find out what most of the stuff does?? One thing that would really benefit the android development community massively would be a google software engineer to release a description of what all this crap is for. Then we could make our own informed decision about what to get rid of, instead of most people using phones bloated with all sorts of useless crap.

Maybe oneday my prayers will be answered and we will have answers to what all these packages do.

Edit: maybe the only way to know what a package does it to de-compile it and look at it's dark heart to see what it does. I'm surprised nobody has done such a project yet on XDA
 
Last edited:
  • Like
Reactions: Jinnn92