Skip to content

Commit da915b3

Browse files
grapheneos: replace bluetooth key via key mapping
Otherwise, the `ReplaceCerts` function in `sign_target_files_apks.py` doesn't replace the `bluetooth` cert in the `*mac_permissions.xml` files, resulting in the SELinux metadata being set incorrectly in the zygote fork invocation.
1 parent 18699d9 commit da915b3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

flavors/grapheneos/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,16 @@
171171
(lib.mkIf (lib.versionAtLeast config.grapheneos.release "2026021200") {
172172
"build/make/target/product/security/sdk_sandbox" = "${config.device}/sdk_sandbox";
173173
"build/make/target/product/security/nfc" = "${config.device}/nfc";
174+
"build/make/target/product/security/bluetooth" = "${config.device}/bluetooth";
174175
})
175176
];
176177

177178
# Extra packages that should use releasekey
178179
extraApks = {
179180
"OsuLogin.apk" = "${config.device}/releasekey";
180181
"ServiceWifiResources.apk" = "${config.device}/releasekey";
182+
"Bluetooth.apk" = "${config.device}/bluetooth";
181183
"com.android.appsearch.apk.apk" = "${config.device}/releasekey";
182-
"Bluetooth.apk" = "${config.device}/releasekey";
183184
"HealthConnectBackupRestore.apk" = "${config.device}/releasekey";
184185
"HealthConnectController.apk" = "${config.device}/releasekey";
185186
"FederatedCompute.apk" = "${config.device}/releasekey";

0 commit comments

Comments
 (0)