ZFlip3 stock setup
model used: Z Flip 3 SM-F711B, Android 11, October 2021 firmware, Europe (EUX), then Android 12, Februaru 2022.
adding an article in a flagship marathon ..->V30->Note9->6T->Mi9->S10->7T->Tab S6->Tab S4->8Pro->Note20Ultra,->Tab A7->Z Flip3. Returned first Z Flip as it was too crippled, especially when seeing USB2.0 speed. And again, the new generation is on USB2 (dated to year 2000). What a time to be alive. We can charge at whopping 15 watts!
So we be rooting stock firmware, no ROMs, no TWRPs, and keep encryption which is crucial. Samsung is bloated well so the debloat script deserved to be updated and should not throw errors in my region (tho errors don't matter as we mostly disable packages, except vendor group).
So the article includes usual information for the whole process of upgrad--i mean rooting the device. We want:
* better battery feat. instant 96Hz screen freq
* better privacy
* call recording
* disk encryption
* tweaks
Rooting
We want encryption. The era of TWRP encryption access is gone, but it's fine since we even have Magisk and EXposed and literally all extras we need is provided in Magisk/Xposed modules.
Long guides suck, let's make compressed steps again. The steps are standard as per topjohnwu guide so let's add easy links into the compact steps. The links come from here or official sources, so likely virus free (unlike here).
On yer new device in order to get root, lose warranty outside of EU, lose bit of useless Samsung functionality, wipe your data, and get tons of benefits :
- [PC] grab your Android 11-12 firmware in Frija as you do the next step
- [mobile] unlock OEM in dev settings (need to be online for big brother to register your activation)
- [PC<->mobile] when turned off and nowadays rather plugged it to your Windows PC with drivers installed or Linux PC with no drivers needed, hold Vol+ & Vol- til you see download screen, long press Vol+
- [PC<->mobile] after you slap AP*tar file unpacked from step 1 on yer phone, patch it in Magisk 22+
- [PC<->mobile] back in download mode, in ODIN 3.14, slap patched AP into AP slot, BL to BL, CP to CP, CSC to CSC and flash
- [mobile] hold Power & Vol- to exit download mode
- [mobile] install and run Magisk online to finalize rooting and reboot again
- [mobile] check Magisk status, enable USB debugging in dev settings like you always do, and continue the modulefest (below)
Modules
Magisk
In Magisk, we can get stuff from its UI but you can still click on some links FYI:* Magisk - is the client, now without active repo and Hide
* Riru - Core, LSPosed or EdExposed -> brings XPosed to Android11. For either XPosed, you need the manager APK but that one is now included. LSPosed seems more stable, but S A D L Y it requires to preselect affected apps which is highly undesirable for many plugins like XPrivacy, XPosedEdge, 3C, etc.. anything working with all apps.. almost all top plugins
* Bluetooth Library Patcher -> helps us keep the bluetooth pairings
* (optional) Sui -> to run AppOpps as an alternative to XPrivacy as we're kicked out of it by LSPosed
* (optional) Move certificates -> to install certificate for AdGuard, and have a strong proxy mode while still using VPN
* (optional) F-Droid Privilleged Extension -> to make F-Droid updates easy, without interaction!
XPosed
in one of the managers, we can get some plugins:* Xposed Edge Pro -> a fantastic plugin which can do lot of popup menus, edge gestures, control hardware keys, run scripts on triggers.. unbelievable value.
* XPrivacy Lua -> must have. Disabling analytics, tracking, telephony, network, identification for all visible apps and all Google and Samsung apps with some exceptions.
* AppOps -> this is closed source alternative to XPrivacy, not bad actually. You need "Riru - Sui" Magisk extension first. Commercial. It can be slow when recovering permissions.
* (in future) Permission Manager X -> coming with above functionality soon. Let's see!
* Firefds kit -> main customization app for Samsungs. Enables the very important call recording, which is beautifully integrated into call history. Bye bye external apps.
* (optional) afWall -> not needed in Oneplus because there's a firewall, but Samsung doesn't have one. Alternatively you can use Adguard for this task and avoid some issues and too much duplicit apps in memory. This extension should be disabled, just present.
* (optional) Exi for Swiftkey -> you can make Swiftkey great again, GBoard is still the best, Samsung keyboard is very good, but too tall and leaves gap in fullscreen mode
Apps
Root apps you can get from the web, Google Play or F-Droid:* 3C toolbox -> too helpful not to pay for the biggest package. It is a backup solution too. It's mostly commercial and abs(worth) money.
* or TitaniumBackup -> a must since Android was born, however died infamously. Commercial.
* or OAndBackupX -> FYI new open source backup solution, not reliable
* Adaway -> a must but with AdGuard? not so.. but i use both
* or AdGuard -> this is way more superior adblocker and firewall. Can filter more and can amend requests.. that's a game changer. You can have a efficient proxy when rooted thanks to "Move certificates" Magisk extension. Commercial, licences can be aquired very cheaply. With its paid VPN it can solve the problem of who's first "local VPN or VPN", but this is not needed in our root setup.
* Warden -> rips the guts of apps and removes tracking and logging
* YouTube Vanced -> YouTube without ads and sponsor blocks.. now you need manager APK to install it, might not alwasys work. And Google will be happy to overwrite it
* (optional) MiXplorer -> best file manager, replaces spyware ES File explorer you had before. Edits root files comfortably even when other editors don't. It's a great text editor or media player too! Commercial and worth it.
* (optional) FolderSync -> best sync tool. Commercial but works well as a free version.
* (optional) Root Essentials -> a multitool, have a look, it's as useful as 3C
* F-Droid -> open source apps. A must.
Debloating
What the script does:
* choose 8 categories of app removal, in the beginning of the file (bixby, game, accounts, basic, tricky, vendors, google)
for each say 0=skip 1=remove 2=revert back
* use more switch to disable some questionable/helpful stuff
* disable up to 100 apps with possibility to revert back
*
* remove device admin backdoor "Find My Mobile", you won't recover stolen device this way lol, it doesn't work with Secure Startup! it's useful for Govt.
* revert DNS from Google if it's added at boot (minor, AdGuard can also change it btw)
* switch display frequency to 48 / 60 / 96 / 120Hz to improve battery life - you can try [x] Show freq in Dev options
Tested ok on October Android 11 firmware. Error messages will be there for non existing components, and it's ok. It's just a script.
Samsung has too much privacy abusing bloatware installed, as part of nowadays fashion (ideally let's extract phone number and location from users to run file manager). I'd like to disable any Samsung account/cloud nonsense. Most functionality still works. You still can say cheese to camera and use OneUI productivity features. Samsung apps can be updated from their settings even if Galaxy Store was forcing you login.
I've cooked the list based on knowledge of each process, its current presence in the firmware, and what would fit the common usage. Also checked against 2 more knowledge bases. I kill Bixby but keep Bixby Vision, so you can still use camera to extract text. You can edit the script anyway.
Download: (file attached)
Installation (omg! it's not an app!):
- run in su terminal once or add to any startup script (3C\Device mgr\Scheduler can assign scripts from (it needs to be /data now, and chmod +x it), or to magisk
Battery
Battery saving:
- the key is to disable background network activity:
- enable Data Saver and make exceptions for individual apps (there's "Allow data usage with Data Saver" and also nice "Allow background activity" & "Optimize battery usage" choices)
- enforce it with 3C (Device Mgr\Profiler) or Adguard (App Management), vendor love to make exception for adware!
- disable bluetooth, wifi, and nearby scanning
- choose your Power Saving mode, wakelocks like {AOD, fp icon, dt2wake, raise2wake} etc based on yer preference
- reduce display frequency
- didn't test {LSpeed, Naptime, Servicely, FDE, LKT, Universal GMS Doze, Sysconfig patcher} here. Not yet having idea about battery, but previously this article helped to improve battery life.
Other
- there's 2 ugly boot warnings now, and a delay.. the boot screen could probably be changed
- for call recording make sure XPosed manager whitelists call components
- no boot keys needed like on S10 generation
- not using multidisabler as i'm on stock and i do want encryption on every device ever
- don't be afraid to use another device (mobile) as USB drive.. this way you can restore your apps directly without copying it first! Slow on ZFlip because of pathetic USB2 - and there's no way out (USB flash drive, WiFi.. all slow). Also Smart Switch can be used from non-Samsung phones, but it is as weak as Google backup ever was - no data restore
Attachments
Last edited: