55

Development - [MOD/magisk/root] GoogleWiz - my magical Magisk module (for devs/s...

 2 years ago
source link: https://forum.xda-developers.com/t/mod-magisk-root-googlewiz-my-magical-magisk-module-for-devs-sharing.4363125/#post-85958065
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Development [MOD/magisk/root] GoogleWiz - my magical Magisk module (for devs/sharing !!!)

I'm posting this here for the benefit of the (developer) community.

Attached is my personal "magical" Magisk module for P6P.

I strongly suggest that you DO NOT INSTALL this ... first read below ... If you don't understand what is written below, stop reading and go back playing with your phone ;-)

What is this module doing:
- it "hides" a lot (> 80) of system APKs which I do not use (e.g. NFC, Pixel Tips, Security Hub, MusicFX, ...) - so these literally "disappear" from your phone (Magisk hiding); this works by "bind-mounting" an empty directory over the APKs' file system
- it has a bash shell for "su"
- ad blocking (hosts file, mounted as /etc/hosts)
- it has a series of init.d (mounted as /etc/init.d) and service.d (mounted as /etc/services.d) scripts that do various things (e.g. kernel tuning, disable various debugging, disable swap, run sqlite optimizer, charling limit, ext4 tweaks ...), some things will NOT be relevant to you (e.g. there are scripts that install obf maps for OSMAND)
- a number of binaries (e.g. bash, busybox, xmlstarlet, find, (g)parted, ...)
- a number of scripts (mounted in /system/bin) for my personal usage (e.g. a script to make all my settings "stick")
- enables VoLTE (check properties in system.prop file)

So, you need to unzip this module and check the stuff inside, modify as per your liking !!!

This module is a (long lived) decendent from an old (2018) Magisk based ROM on Galaxy S8 (https://forum.xda-developers.com/t/...iz-pixelize-your-s8-end-of-life-crj5.3750641/). That ROM was quite popular as it turned the Galaxy S8 into a Pixel like phone. For me personally it was a journey to learn how to develop Magisk modules and gradually became bigger and bigger ...

You CAN install it ... but it may NOT be to your liking (!!!) ... then just uninstall it from Magisk ... no harm done (except that you will have my settings) - check out the script LS99execonce to understand this

Devs: feel free to (re)use for whatever purpose ... sharing for the benefit of the community ... if you do use it, no need to mention me (but you can of course) ;-)

Most of the code is "sh" scripting (and a few "bash" scripts).

If you do run it, there will be logging info in /data/googlewiz, just do:
Code:
> adb shell
$ su
# cat /data/googlewiz/*

... and

# cat /data/LS00* (init.d scripts logging)
# cat /data/LS99* (services.d scripts logging)
Hopefully some of this can help you in developing your own magisk module.

Attachments

  • mm-googlewiz.zip
    8.7 MB · Views: 0
Last edited: 15 minutes ago
Which file in your module lists which app get disabled/hidden?
I would prefer to go through them manually first
Unzip the module, then check all the directories which have an ".replace" file, e.g. on linux do:
Code:
> cd mydir
> unzip googlewiz.zip
> find . -name '.replace'
That wil show you the paths of the APKs which are hidden.

Sorry, I'm not a Windows guy ...

This is the list:
Code:
./system/product/app/YouTubeMusicPrebuilt/.replace
./system/product/app/SoundAmplifierPrebuilt/.replace
./system/product/app/VoiceAccessPrebuilt/.replace
./system/product/app/SafetyRegulatoryInfo/.replace
./system/product/app/PixelWallpapers2021/.replace
./system/product/app/talkback/.replace
./system/product/app/Videos/.replace
./system/product/app/VZWAPNLib/.replace
./system/product/app/DiagnosticsToolPrebuilt/.replace
./system/product/app/LocationHistoryPrebuilt/.replace
./system/product/app/MicropaperPrebuilt/.replace
./system/product/overlay/DisplayCutoutEmulationCorner/.replace
./system/product/overlay/CellBroadcastServiceOverlay/.replace
./system/product/overlay/CellBroadcastReceiverOverlay/.replace
./system/product/overlay/NavigationBarModeGesturalExtraWideBack/.replace
./system/product/overlay/DisplayCutoutAvoidAppsInCutout/.replace
./system/product/overlay/DisplayCutoutNoCutout/.replace
./system/product/overlay/FontNotoSerifSource/.replace
./system/product/overlay/NavigationBarModeGesturalNarrowBack/.replace
./system/product/overlay/OneHandedModeGestural/.replace
./system/product/overlay/NavigationBarModeGesturalWideBack/.replace
./system/product/overlay/NavigationBarMode3Button/.replace
./system/product/overlay/DisplayCutoutEmulationDouble/.replace
./system/product/overlay/DisplayCutoutEmulationWaterfall/.replace
./system/product/overlay/DisplayCutoutEmulationTall/.replace
./system/product/overlay/DisplayCutoutEmulationHole/.replace
./system/product/priv-app/Showcase/.replace
./system/product/priv-app/HotwordEnrollmentXGoogleFUSION/.replace
./system/product/priv-app/ScribePrebuilt/.replace
./system/product/priv-app/OTAConfigNoZeroTouchPrebuilt/.replace
./system/product/priv-app/OemDmTrigger/.replace
./system/product/priv-app/BetterBug/.replace
./system/product/priv-app/PartnerSetupPrebuilt/.replace
./system/product/priv-app/PixelLiveWallpaperPrebuilt/.replace
./system/product/priv-app/HelpRtcPrebuilt/.replace
./system/product/priv-app/DCMO/.replace
./system/product/priv-app/TipsPrebuilt/.replace
./system/product/priv-app/DreamlinerPrebuilt/.replace
./system/product/priv-app/AppDirectedSMSService/.replace
./system/product/priv-app/ConnMO/.replace
./system/product/priv-app/SafetyHubPrebuilt/.replace
./system/product/priv-app/CbrsNetworkMonitor/.replace
./system/product/priv-app/WellbeingPrebuilt/.replace
./system/product/priv-app/MaestroPrebuilt/.replace
./system/product/priv-app/CarrierMetrics/.replace
./system/product/priv-app/DiagMon/.replace
./system/product/priv-app/DreamlinerUpdater/.replace
./system/product/priv-app/DMService/.replace
./system/product/priv-app/HotwordEnrollmentOKGoogleFUSION/.replace
./system/app/GooglePrintRecommendationService/.replace
./system/app/PacProcessor/.replace
./system/app/BasicDreams/.replace
./system/app/NfcNci/.replace
./system/app/EasterEgg/.replace
./system/app/PartnerBookmarksProvider/.replace
./system/app/BookmarkProvider/.replace
./system/app/WallpaperBackup/.replace
./system/app/LiveWallpapersPicker/.replace
./system/app/BluetoothMidiService/.replace
./system/app/HTMLViewer/.replace
./system/system_ext/app/EmergencyInfoGoogleNoUi/.replace
./system/system_ext/priv-app/GoogleFeedback/.replace
./system/system_ext/priv-app/QuickAccessWallet/.replace
./system/system_ext/priv-app/MyVerizonServices/.replace
./system/system_ext/priv-app/obdm_stub/.replace
./system/system_ext/priv-app/StorageManagerGoogle/.replace
./system/system_ext/priv-app/WallpaperPickerGoogleRelease/.replace
./system/system_ext/priv-app/OBDM_Permissions/.replace
./system/system_ext/priv-app/LLKAgent/.replace
./system/system_ext/priv-app/PixelNfc/.replace
./system/priv-app/BuiltInPrintService/.replace
./system/priv-app/Traceur/.replace
./system/priv-app/LocalTransport/.replace
./system/priv-app/ManagedProvisioning/.replace
./system/priv-app/AppDirectedSMSService/.replace
./system/priv-app/TagGoogle/.replace
./system/priv-app/CellBroadcastLegacyApp/.replace
./system/priv-app/CallLogBackup/.replace
./system/priv-app/SharedStorageBackup/.replace
./system/priv-app/MmsService/.replace
./system/priv-app/MusicFX/.replace
./system/priv-app/BackupRestoreConfirmation/.replace

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK