├── .gitattributes ├── .github └── FUNDING.yml ├── META-INF └── com │ └── google │ └── android │ ├── update-binary │ └── updater-script ├── README.md ├── customize.sh ├── module.prop ├── optional └── treble-overlay-google-pixel6-systemui-hidenavbarpadding.apk ├── post-fs-data.sh ├── service.sh ├── system.prop └── system └── product ├── media └── audio │ └── ui │ └── camera_click.ogg └── overlay ├── treble-overlay-google-pixel6-systemui-battery.apk ├── treble-overlay-google-pixel6-systemui-hidenavbarpill.apk ├── treble-overlay-google-pixel6-tether.apk └── treble-overlay-google-pixel6.apk /.gitattributes: -------------------------------------------------------------------------------- 1 | # Declare files that will always have LF line endings on checkout. 2 | META-INF/** text eol=lf 3 | *.prop text eol=lf 4 | *.sh text eol=lf 5 | *.md text eol=lf 6 | 7 | # Denote all files that are truly binary and should not be modified. 8 | system/** binary 9 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [AndroPlus-org] 4 | custom: ['https://paypal.me/androplus'] 5 | -------------------------------------------------------------------------------- /META-INF/com/google/android/update-binary: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | ################# 4 | # Initialization 5 | ################# 6 | 7 | umask 022 8 | 9 | # echo before loading util_functions 10 | ui_print() { echo "$1"; } 11 | 12 | require_new_magisk() { 13 | ui_print "*******************************" 14 | ui_print " Please install Magisk v20.0+! " 15 | ui_print "*******************************" 16 | exit 1 17 | } 18 | 19 | ######################### 20 | # Load util_functions.sh 21 | ######################### 22 | 23 | OUTFD=$2 24 | ZIPFILE=$3 25 | 26 | mount /data 2>/dev/null 27 | 28 | [ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk 29 | . /data/adb/magisk/util_functions.sh 30 | [ $MAGISK_VER_CODE -lt 20000 ] && require_new_magisk 31 | 32 | if [ $MAGISK_VER_CODE -ge 20400 ]; then 33 | # New Magisk have complete installation logic within util_functions.sh 34 | install_module 35 | exit 0 36 | fi 37 | 38 | ################# 39 | # Legacy Support 40 | ################# 41 | 42 | TMPDIR=/dev/tmp 43 | PERSISTDIR=/sbin/.magisk/mirror/persist 44 | 45 | is_legacy_script() { 46 | unzip -l "$ZIPFILE" install.sh | grep -q install.sh 47 | return $? 48 | } 49 | 50 | print_modname() { 51 | local authlen len namelen pounds 52 | namelen=`echo -n $MODNAME | wc -c` 53 | authlen=$((`echo -n $MODAUTH | wc -c` + 3)) 54 | [ $namelen -gt $authlen ] && len=$namelen || len=$authlen 55 | len=$((len + 2)) 56 | pounds=$(printf "%${len}s" | tr ' ' '*') 57 | ui_print "$pounds" 58 | ui_print " $MODNAME " 59 | ui_print " by $MODAUTH " 60 | ui_print "$pounds" 61 | ui_print "*******************" 62 | ui_print " Powered by Magisk " 63 | ui_print "*******************" 64 | } 65 | 66 | # Override abort as old scripts have some issues 67 | abort() { 68 | ui_print "$1" 69 | $BOOTMODE || recovery_cleanup 70 | [ -n $MODPATH ] && rm -rf $MODPATH 71 | rm -rf $TMPDIR 72 | exit 1 73 | } 74 | 75 | rm -rf $TMPDIR 2>/dev/null 76 | mkdir -p $TMPDIR 77 | 78 | # Preperation for flashable zips 79 | setup_flashable 80 | 81 | # Mount partitions 82 | mount_partitions 83 | 84 | # Detect version and architecture 85 | api_level_arch_detect 86 | 87 | # Setup busybox and binaries 88 | $BOOTMODE && boot_actions || recovery_actions 89 | 90 | ############## 91 | # Preparation 92 | ############## 93 | 94 | # Extract prop file 95 | unzip -o "$ZIPFILE" module.prop -d $TMPDIR >&2 96 | [ ! -f $TMPDIR/module.prop ] && abort "! Unable to extract zip file!" 97 | 98 | $BOOTMODE && MODDIRNAME=modules_update || MODDIRNAME=modules 99 | MODULEROOT=$NVBASE/$MODDIRNAME 100 | MODID=`grep_prop id $TMPDIR/module.prop` 101 | MODNAME=`grep_prop name $TMPDIR/module.prop` 102 | MODAUTH=`grep_prop author $TMPDIR/module.prop` 103 | MODPATH=$MODULEROOT/$MODID 104 | 105 | # Create mod paths 106 | rm -rf $MODPATH 2>/dev/null 107 | mkdir -p $MODPATH 108 | 109 | ########## 110 | # Install 111 | ########## 112 | 113 | if is_legacy_script; then 114 | unzip -oj "$ZIPFILE" module.prop install.sh uninstall.sh 'common/*' -d $TMPDIR >&2 115 | 116 | # Load install script 117 | . $TMPDIR/install.sh 118 | 119 | # Callbacks 120 | print_modname 121 | on_install 122 | 123 | # Custom uninstaller 124 | [ -f $TMPDIR/uninstall.sh ] && cp -af $TMPDIR/uninstall.sh $MODPATH/uninstall.sh 125 | 126 | # Skip mount 127 | $SKIPMOUNT && touch $MODPATH/skip_mount 128 | 129 | # prop file 130 | $PROPFILE && cp -af $TMPDIR/system.prop $MODPATH/system.prop 131 | 132 | # Module info 133 | cp -af $TMPDIR/module.prop $MODPATH/module.prop 134 | 135 | # post-fs-data scripts 136 | $POSTFSDATA && cp -af $TMPDIR/post-fs-data.sh $MODPATH/post-fs-data.sh 137 | 138 | # service scripts 139 | $LATESTARTSERVICE && cp -af $TMPDIR/service.sh $MODPATH/service.sh 140 | 141 | ui_print "- Setting permissions" 142 | set_permissions 143 | else 144 | print_modname 145 | 146 | unzip -o "$ZIPFILE" customize.sh -d $MODPATH >&2 147 | 148 | if ! grep -q '^SKIPUNZIP=1$' $MODPATH/customize.sh 2>/dev/null; then 149 | ui_print "- Extracting module files" 150 | unzip -o "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2 151 | 152 | # Default permissions 153 | set_perm_recursive $MODPATH 0 0 0755 0644 154 | fi 155 | 156 | # Load customization script 157 | [ -f $MODPATH/customize.sh ] && . $MODPATH/customize.sh 158 | fi 159 | 160 | # Handle replace folders 161 | for TARGET in $REPLACE; do 162 | ui_print "- Replace target: $TARGET" 163 | mktouch $MODPATH$TARGET/.replace 164 | done 165 | 166 | if $BOOTMODE; then 167 | # Update info for Magisk Manager 168 | mktouch $NVBASE/modules/$MODID/update 169 | cp -af $MODPATH/module.prop $NVBASE/modules/$MODID/module.prop 170 | fi 171 | 172 | # Copy over custom sepolicy rules 173 | if [ -f $MODPATH/sepolicy.rule -a -e $PERSISTDIR ]; then 174 | ui_print "- Installing custom sepolicy patch" 175 | # Remove old recovery logs (which may be filling partition) to make room 176 | rm -f $PERSISTDIR/cache/recovery/* 177 | PERSISTMOD=$PERSISTDIR/magisk/$MODID 178 | mkdir -p $PERSISTMOD 179 | cp -af $MODPATH/sepolicy.rule $PERSISTMOD/sepolicy.rule || abort "! Insufficient partition size" 180 | fi 181 | 182 | # Remove stuffs that don't belong to modules 183 | rm -rf \ 184 | $MODPATH/system/placeholder $MODPATH/customize.sh \ 185 | $MODPATH/README.md $MODPATH/.git* 2>/dev/null 186 | 187 | ############# 188 | # Finalizing 189 | ############# 190 | 191 | cd / 192 | $BOOTMODE || recovery_cleanup 193 | rm -rf $TMPDIR 194 | 195 | ui_print "- Done" 196 | exit 0 197 | -------------------------------------------------------------------------------- /META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | #MAGISK 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Google Pixel 向けパッチ 2 | 3 | Google Pixel (Android 12+) にて 4 | 5 | * カメラシャッター音の強制を無効化 6 | * USB ケーブル接続時に画面がオンにならないよう変更 7 | * カラー調整にビビッドを追加 (※画面が乱れる場合あり) 8 | * 電源メニューから緊急通報や機内モードを削除 9 | * SoftBank SIM でのテザリング制限解除 (動作未確認) 10 | * ステータスバーのバッテリーアイコンを非表示に変更 11 | * ナビゲーションバーのバーを非表示に変更 12 | * 壁紙のズームを無効化 13 | 14 | をする Magisk モジュールです。 15 | 必要ないものがあれば overlay フォルダにある apk を削除するかデコンパイルして編集してください。 16 | 17 | Google Pixel 6 Pro で動作確認済みです。Pixel 7シリーズでも動作すると思います。 18 | 19 | ## 更新履歴 20 | 21 | #### v5 22 | * Android 13 に対応 23 | 24 | #### v4 25 | * SystemUI の Overlay を機能毎に分割 26 | (ナビバーの余白をなくしたければ optional フォルダの apk を system/product/overlay に入れてください) 27 | 28 | #### v3 29 | * ステータスバーのバッテリーアイコンを非表示に変更 30 | * 誤反応が多くなるのでナビゲーションバーのスペースを広げてバーは非表示に変更 31 | 32 | #### v2 33 | * カラー調整にビビッドを追加 34 | 35 | #### v1 36 | * リリース 37 | 38 | ## ライセンス 39 | 40 | - [WTFPL](http://www.wtfpl.net/) 41 | 42 | ``` 43 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 44 | Version 2, December 2004 45 | 46 | Copyright (C) 2004 Sam Hocevar 47 | 48 | Everyone is permitted to copy and distribute verbatim or modified 49 | copies of this license document, and changing it is allowed as long 50 | as the name is changed. 51 | 52 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 53 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 54 | 55 | 0. You just DO WHAT THE FUCK YOU WANT TO. 56 | ``` -------------------------------------------------------------------------------- /customize.sh: -------------------------------------------------------------------------------- 1 | REPLACE=" 2 | " -------------------------------------------------------------------------------- /module.prop: -------------------------------------------------------------------------------- 1 | id=pixel6-mod 2 | name=Patch for Google Pixel 3 | version=v05 4 | versionCode=5 5 | author=AndroPlus 6 | description=Patch for Pixel series 7 | -------------------------------------------------------------------------------- /optional/treble-overlay-google-pixel6-systemui-hidenavbarpadding.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroPlus-org/magisk-module-pixel6/afdb07c4599f9fb02650afcd26328db12ea99739/optional/treble-overlay-google-pixel6-systemui-hidenavbarpadding.apk -------------------------------------------------------------------------------- /post-fs-data.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Do NOT assume where your module will be located. 3 | # ALWAYS use $MODDIR if you need to know where this script 4 | # and module is placed. 5 | # This will make sure your module will still work 6 | # if Magisk change its mount point in the future 7 | 8 | setprop audio.camerasound.force false 9 | -------------------------------------------------------------------------------- /service.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # Do NOT assume where your module will be located. 3 | # ALWAYS use $MODDIR if you need to know where this script 4 | # and module is placed. 5 | # This will make sure your module will still work 6 | # if Magisk change its mount point in the future 7 | 8 | setprop audio.camerasound.force false 9 | -------------------------------------------------------------------------------- /system.prop: -------------------------------------------------------------------------------- 1 | audio.camerasound.force=false -------------------------------------------------------------------------------- /system/product/media/audio/ui/camera_click.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroPlus-org/magisk-module-pixel6/afdb07c4599f9fb02650afcd26328db12ea99739/system/product/media/audio/ui/camera_click.ogg -------------------------------------------------------------------------------- /system/product/overlay/treble-overlay-google-pixel6-systemui-battery.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroPlus-org/magisk-module-pixel6/afdb07c4599f9fb02650afcd26328db12ea99739/system/product/overlay/treble-overlay-google-pixel6-systemui-battery.apk -------------------------------------------------------------------------------- /system/product/overlay/treble-overlay-google-pixel6-systemui-hidenavbarpill.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroPlus-org/magisk-module-pixel6/afdb07c4599f9fb02650afcd26328db12ea99739/system/product/overlay/treble-overlay-google-pixel6-systemui-hidenavbarpill.apk -------------------------------------------------------------------------------- /system/product/overlay/treble-overlay-google-pixel6-tether.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroPlus-org/magisk-module-pixel6/afdb07c4599f9fb02650afcd26328db12ea99739/system/product/overlay/treble-overlay-google-pixel6-tether.apk -------------------------------------------------------------------------------- /system/product/overlay/treble-overlay-google-pixel6.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AndroPlus-org/magisk-module-pixel6/afdb07c4599f9fb02650afcd26328db12ea99739/system/product/overlay/treble-overlay-google-pixel6.apk --------------------------------------------------------------------------------