Reject compressed DCLA
We need to acitvate both system and upgraded copy anyway, there is no
point in compression.
Bug: 169780183
Test: atest ApexTestCases
Change-Id: Ic3737c2a4a2644d3328407b6560bdc5498a77bef
diff --git a/apexd/apex_file.cpp b/apexd/apex_file.cpp
index 5b62d3a..a4db2fe 100644
--- a/apexd/apex_file.cpp
+++ b/apexd/apex_file.cpp
@@ -157,6 +157,10 @@
return manifest.error();
}
+ if (is_compressed && manifest->providesharedapexlibs()) {
+ return Error() << "Apex providing sharedlibs shouldn't be compressed";
+ }
+
// b/179211712 the stored path should be the realpath, otherwise the path we
// get by scanning the directory would be different from the path we get
// by reading /proc/mounts, if the apex file is on a symlink dir.