diff --git a/wifi/1.6/default/Android.bp b/wifi/1.6/default/Android.bp index a132deed59..0f98e71445 100644 --- a/wifi/1.6/default/Android.bp +++ b/wifi/1.6/default/Android.bp @@ -226,3 +226,13 @@ cc_test { "libwifi-system-iface", ], } + +filegroup { + name: "default-android.hardware.wifi@1.0-service.rc", + srcs: ["android.hardware.wifi@1.0-service.rc"], +} + +filegroup { + name: "default-android.hardware.wifi@1.0-service.xml", + srcs: ["android.hardware.wifi@1.0-service.xml"], +} diff --git a/wifi/apex/Android.bp b/wifi/apex/Android.bp new file mode 100644 index 0000000000..0afb96b85d --- /dev/null +++ b/wifi/apex/Android.bp @@ -0,0 +1,55 @@ +package { + default_applicable_licenses: ["hardware_interfaces_license"], +} + +apex_key { + name: "com.android.hardware.wifi.key", + public_key: "com.android.hardware.wifi.avbpubkey", + private_key: "com.android.hardware.wifi.pem", +} + +android_app_certificate { + name: "com.android.hardware.wifi.certificate", + certificate: "com.android.hardware.wifi", +} + +genrule { + name: "gen-android.hardware.wifi.rc", + srcs: [":default-android.hardware.wifi@1.0-service.rc"], + out: ["com.android.hardware.wifi-service.rc"], + cmd: "sed -e 's@/vendor/bin/@/apex/com.android.hardware.wifi/bin/@' $(in) > $(out)", +} + +prebuilt_etc { + name: "com.android.hardware.wifi.rc", + src: ":gen-android.hardware.wifi.rc", + installable: false, +} + +prebuilt_etc { + name: "com.android.hardware.wifi.xml", + src: ":default-android.hardware.wifi@1.0-service.xml", + installable: false, +} + +apex { + name: "com.android.hardware.wifi", + manifest: "apex_manifest.json", + key: "com.android.hardware.wifi.key", + certificate: ":com.android.hardware.wifi.certificate", + file_contexts: "file_contexts", + vintf_fragments: [":com.android.hardware.wifi.xml"], + use_vndk_as_stable: true, + updatable: false, + soc_specific: true, + binaries: [ + "android.hardware.wifi@1.0-service", + ], + prebuilts: [ + "com.android.hardware.wifi.rc", + "com.android.hardware.wifi.xml", + ], + overrides: [ + "android.hardware.wifi@1.0-service", + ], +} diff --git a/wifi/apex/apex_manifest.json b/wifi/apex/apex_manifest.json new file mode 100644 index 0000000000..cab08149a9 --- /dev/null +++ b/wifi/apex/apex_manifest.json @@ -0,0 +1,4 @@ +{ + "name": "com.android.hardware.wifi", + "version": 1 +} diff --git a/wifi/apex/com.android.hardware.wifi.avbpubkey b/wifi/apex/com.android.hardware.wifi.avbpubkey new file mode 100644 index 0000000000..63fba77bb1 Binary files /dev/null and b/wifi/apex/com.android.hardware.wifi.avbpubkey differ diff --git a/wifi/apex/com.android.hardware.wifi.pem b/wifi/apex/com.android.hardware.wifi.pem new file mode 100644 index 0000000000..9e589ac580 --- /dev/null +++ b/wifi/apex/com.android.hardware.wifi.pem @@ -0,0 +1,52 @@ +-----BEGIN PRIVATE KEY----- +MIIJRAIBADANBgkqhkiG9w0BAQEFAASCCS4wggkqAgEAAoICAQCtT/vNnVVg2QVD +eMdG+YZ8qYz/fbAQF9hnH8dE5RWHXzoYItBG7DSOuVT4T6POBVmFaVKlWDd7tDyw +nFO3MmE2/FzhVSiBPwhMITa7UIERr3od3rWJ5g6oaTCOu4wa98L466Jp60f2fYSZ +M9lGiKaDpLDSpxTU9hexjp7C4PfinnkYnlHBnrFXTmiO6f8AvOEwFFx73/rUNoe7 +F3TkGvjZDqHvE+pjz/nilkhXYuOl3zgSaeznJ9+TO5C/Z+Xr+zRhaJGI4v5Dkgmc +jNy74+0hjwobXO3iWE44InQMvMh8zDKBx9l1oSsFoG3waj9ayqSYD7M74RX3PkUL +QrhgAHZWi5iEnpu50xBzAqZB1ZDVkdZiKiGzweJ8OqltnVpvzlnW3rA3y3HtFyLm +73C4ll9MdLaw266vBxgZfFOcjpphbbh9J9uGjOCJY1AxUzsqKygFD2CyOdb1jab3 +AC6VvRa+bLtv8fd2etp3atXv+Y9ACUX6zNK6Oa8Zktoo2Z//OLtcrk7xhgKKDkUF +OPQrIjW9x0fdClDioIS+y7EHNUrfyRL7XPtUqGCszgz5jK2SMVGMpFaEtfbyNP1H +BTGXdzcDP0RZdOOKTdBFgoRW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IvGnbBmXMv38UOU5NpvlAw+pleJVoCHXjmTKTZq+ +kfohAoIBAQCrEecN8XEPjGdtY71rDYEwHGM6G4czHX0PNhlMjQos3aBVZ/YvVxPG +pkXbms3GRXv4W92u7b2MwEKBPxcBepEdDZN9wSpe63bDFE6gpkipDhgj97JlLEUd +s7h6oOoazdxmsRZyFho99SRQWrvyOiiKdLJCRZiqjUB4roOQmy7f9VAz6+OxyGV9 +XZigwW6bfUzMCmhx5Ss6zW8wZI+gINQh+2sDmiBiMQv14Ya5zlNYN+4/257Sk/jS +o3QUDJITbReq/DNZ6UUzQS+AZ7ztc81rk5kRg0I33FZarRJ7TLAz+XmZZFoIOORz +etEvMk8bJ4u7X89NWW/i2J+kQiDQg819 +-----END PRIVATE KEY----- diff --git a/wifi/apex/com.android.hardware.wifi.pk8 b/wifi/apex/com.android.hardware.wifi.pk8 new file mode 100644 index 0000000000..f4481bf178 Binary files /dev/null and b/wifi/apex/com.android.hardware.wifi.pk8 differ diff --git a/wifi/apex/com.android.hardware.wifi.x509.pem b/wifi/apex/com.android.hardware.wifi.x509.pem new file mode 100644 index 0000000000..c942e71f6c --- /dev/null +++ b/wifi/apex/com.android.hardware.wifi.x509.pem @@ -0,0 +1,36 @@ +-----BEGIN CERTIFICATE----- +MIIGOzCCBCOgAwIBAgIUIEueuBFEoCFmLyEvXDsKVuZeH0EwDQYJKoZIhvcNAQEL +BQAwgasxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQH +DA1Nb3VudGFpbiBWaWV3MRAwDgYDVQQKDAdBbmRyb2lkMRAwDgYDVQQLDAdBbmRy +b2lkMScwJQYDVQQDDB5jb20uYW5kcm9pZC5oYXJkd2FyZS53aWZpLmFwZXgxIjAg +BgkqhkiG9w0BCQEWE2FuZHJvaWRAYW5kcm9pZC5jb20wIBcNMjIxMDA2MTY1MDQy +WhgPNDc2MDA5MDExNjUwNDJaMIGrMQswCQYDVQQGEwJVUzETMBEGA1U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QYJKoZIhvcNAQELBQADggIBAHoTfVBRG0rVE7gkV526gwR5 +/3mXyYA57lKJhZ21fu2qfTE6WYj4DsOTZKrPIAUFv/SnzZ6Rvv7W81XV5M/1m+5R +/1wYvWwm3FBOvvt4VDUiel0Zfc9+nwynjz1seYdXU8fNIOzBcr9hutkYdRZDkNpc +Zcl4NG04TzyedkQ/0SyHnygmq4ZY9OUEvrNaWBFHzw2SQhYvHh8jUrqpPvoJz0Px +avKI8bOgXTJRJ+Pk7hjXDFQY/fbE0RGivorPMLs+XHaEIb+YPyXsX4OZwowG5KL8 +txyvUsH+qZToytdPk4LCuwYBobBlr+AAg7pxOtbDW1ITDhQ9n05UFK2iUwsJecgg +VDA0K3GuCjmGVmkw7SFRYfToCyGWah8sQCUMCCcsof7gS+dMxuWeee+sRxRJcJY+ +xR2uySe8g4ohwNjQ0zLQv7PZOKQh91yEWxRXmhPYVpiVAjpSD2zH7Vd6CJ9xji// +5S1UrxWwQ5igvu8v5veqNAW7uXGXADnxL69HVGTLm0XDIUUOAUIG8waiVkYUo3UU +AzAFbF7ewYMKdg7ylUYcTaMRIsKYW/3/1t3NJv2z99W4V/p8e1kRCeWMPB5C+/Lo +b/hSWj1NF9AJ30ukBndMh6bRprq+G5NLV6OaoCLp606CMdXdT8uw9lYCt7DbQHG9 +Hw3iw61svpUwcaWfN1hI +-----END CERTIFICATE----- diff --git a/wifi/apex/file_contexts b/wifi/apex/file_contexts new file mode 100644 index 0000000000..812d51db58 --- /dev/null +++ b/wifi/apex/file_contexts @@ -0,0 +1,3 @@ +(/.*)? u:object_r:vendor_file:s0 +/bin/hw/android\.hardware\.wifi@1.0-service u:object_r:hal_wifi_default_exec:s0 +