bluetooth: abandon app local certificate
bluetooth app is signed with local certificate ':com.android.bluetooth.certificate'
which is located at 'android/app/certs/*' and is aligned with the certificate in
'build/target/product/security'. However, some vendors may specify their own
certificates path by 'PRODUCT_DEFAULT_DEV_CERTIFICATE' and generate their own
release bluetooth certificates, bluetooth app will fail to load in such scenario
because of the certificate doesn't match and cause selinux error:
...
E SELinux : seapp_context_lookup: No match for app with uid 1002, seinfo default, name com.android.bluetooth
E SELinux : selinux_android_setcontext: Error setting context for app with uid 1002, seinfo default:privapp:targetSdkVersion=33:complete: Success
...
This CL use the certificate name 'bluetooth' so the app can be signed with the
same certificate which is located at 'PRODUCT_DEFAULT_DEV_CERTIFICATE/*'.
Test: Bluetooth on&off.
Signed-off-by:
Ji Luo <ji.luo@nxp.com>
Change-Id: I286aed5a3b895272f5ffc077ecd1d76351e02af7
Loading
Please register or sign in to comment