Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Unverified Commit ae4e017e authored by Ji Luo's avatar Ji Luo Committed by Michael Bestas
Browse files

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: default avatarJi Luo <ji.luo@nxp.com>
Change-Id: I286aed5a3b895272f5ffc077ecd1d76351e02af7
parent 84f57cd7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment