OSDN Git Service

Prevent system app upgrading from multi-arch to single-arch
authorwangmingming1 <wangmingming1@xiaomi.com>
Tue, 21 Nov 2017 09:29:38 +0000 (17:29 +0800)
committerTodd Kennedy <toddke@google.com>
Fri, 1 Dec 2017 23:39:59 +0000 (23:39 +0000)
commit03b74909efb0f613b9b3eaca698c55c6f7a163f8
treea21f9f1bb2268f89dda050a686e385ec70047485
parentdb122f90d9e497b64f9e15dfb91fed98fbe18165
Prevent system app upgrading from multi-arch to single-arch

We should not let user to manully upgrade a system app which supports
multi-arch to a newer version which supports only one cpu abi. Take
webview as an example, if the user upgraded the webview to a version
supports only armeabi-v7a on Nexus 5X by mistake, then any app supports
only arm64-v8a and uses webview to display web contents would not work
properly then as loading a 32bit native lib inside a 64bit mode process
is not allowed.

Test: Manual

Change-Id: I567be7707fc18421ff686c1e8b1110dec517e06d
Signed-off-by: wangmingming1 <wangmingming1@xiaomi.com>
services/core/java/com/android/server/pm/PackageManagerService.java