Add ":sphal" as required in apex_manifest.json
mediaswcodec binary requires "sphal" linker namespace at runtime.
Previously, the dependency was hard-coded in linkerconfig itself.
With ":sphal" declared as required in apex_manifest, linkerconfig can
handle swcodec APEX without hard-coded APEX name.
Q-Compatibility:
- "requireNativeLibs" key in the apex_manifest is stripped out. When the
APEX is installed in Q system, ld.config.txt in the apex will be used.
R-Compatibility:
- ":sphal" is silently ignored by linkerconfig in R. But because
linkerconfig in R hard-coded the dependency to "sphal" namespace, it
will work correctly.
Bug: 162456867
Test: build & device boots
Change-Id: Ibc0e0eee46762dac2825f2ff4c2cf6dcbeaea320
diff --git a/apex/manifest_codec.json b/apex/manifest_codec.json
index 2320fd7..1f05d2e 100644
--- a/apex/manifest_codec.json
+++ b/apex/manifest_codec.json
@@ -1,4 +1,7 @@
{
"name": "com.android.media.swcodec",
- "version": 300000000
+ "version": 300000000,
+ "requireNativeLibs": [
+ ":sphal"
+ ]
}