Skip to content

Commit

Permalink
modules/signing.nix: Add additional keys
Browse files Browse the repository at this point in the history
I'm not sure what the exact conditions are for requiring these keys,
but they seem to be at least required for a LineageOS instantnoodlep
build with signing without MicroG.
  • Loading branch information
CyberShadow committed Mar 10, 2024
1 parent 9ef93b5 commit 33d5ef1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/signing.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ let
++ (lib.optionals (config.androidVersion >= 10) [ "${config.device}/networkstack" ])
++ (lib.optionals (config.androidVersion >= 11) [ "com.android.hotspot2.osulogin" "com.android.wifi.resources" ])
++ (lib.optionals (config.androidVersion >= 12) [ "com.android.connectivity.resources" ])
++ (lib.optionals (config.androidVersion >= 13) [ "com.android.adservices.api" "com.android.safetycenter.resources"
"com.android.nearby.halfsheet" "com.android.uwb.resources"
"com.android.wifi.dialog"])
++ (lib.optional config.signing.apex.enable config.signing.apex.packageNames)
++ (lib.mapAttrsToList
(name: prebuilt: prebuilt.certificate)
Expand Down Expand Up @@ -182,6 +185,13 @@ in
"packages/modules/Wifi/service/ServiceWifiResources/resources-certs/com.android.wifi.resources" = "com.android.wifi.resources";
"packages/modules/Connectivity/service/ServiceConnectivityResources/resources-certs/com.android.connectivity.resources" = "com.android.connectivity.resources";
}
// lib.optionalAttrs (config.androidVersion >= 13) {
"packages/modules/AdServices/adservices/apk/com.android.adservices.api" = "com.android.adservices.api";
"packages/modules/Permission/SafetyCenter/Resources/com.android.safetycenter.resources" = "com.android.safetycenter.resources";
"packages/modules/Connectivity/nearby/halfsheet/apk-certs/com.android.nearby.halfsheet" = "com.android.nearby.halfsheet";
"packages/modules/Uwb/service/ServiceUwbResources/resources-certs/com.android.uwb.resources" = "com.android.uwb.resources";
"packages/modules/Wifi/WifiDialog/certs/com.android.wifi.dialog" = "com.android.wifi.dialog";
}
# App-specific keys
// lib.mapAttrs'
(name: prebuilt: lib.nameValuePair "robotnix/prebuilt/${prebuilt.name}/${prebuilt.certificate}" prebuilt.certificate)
Expand Down

0 comments on commit 33d5ef1

Please sign in to comment.