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):
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
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
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):
- I am a hacker not a developer.
- 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) - 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. - Corrupt boot image can cause issues with system image caused by 2.) following by 3.) (e.g. parameters of system images a not readable)
- 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. - 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. - How to check recent slot:
Within fastboot mode:
fastboot --set-active
Within TWRP:
visible in TWRP at restart menu - check overview of current versions
- 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.
- 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)
(depends on actual version of TWRP team)Code:fastboot boot twrp-3.2.1-0-enchilada.img - in TWRP: Install kernel zip
install via TWRP menuCode:adb push blu_spark_r18-oos_op6_cd2084b.zip /sdcard/ - in TWRP: Install Magisk zip
install via TWRP menuCode:adb push Magisk-v16.4.zip /sdcard/ - 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.)
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
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: