androidfw: Squash of declare and load lineage sdk resource package w/ id
Author: Adnan Begovic <adnan@cyngn.com> Date: Mon Jul 6 20:06:36 2015 -0700 androidfw: Declare and load cmsdk resource package w/ id. Change-Id: I63b8f3e4a938896dd21999c5b4470573a1da2e52 Author: Steve Kondik <steve@cyngn.com> Date: Wed Aug 31 01:32:13 2016 -0700 androidfw: Fix CMSDK resource handling on N * Consider the CMSDK package identifier in the new dynamic resource conditions. Change-Id: I3e84d12ac86a6eb1d3407aa64234f80a0e945e70 Author: Sam Mortimer <sam@mortimer.me.uk> Date: Wed Aug 15 21:58:12 2018 -0700 fw/b AssetManager: Load lineage resources in constructor *) AssetManager was refactored here: https://android.googlesource.com/platform/frameworks/base/+/bebfcc46a249a70af04bc18490a897888a142fb8 *) Lineage resources are no longer accessible as a result. For example, LineageParts crashes from: 08-15 16:22:04.850 2599 2599 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.lineageos.lineageparts/org.lineageos.lineageparts.PartsActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x3f080008 *) When framework-res.apk is loaded, load org.linageos.platform-res.apk too. Fixes resource loading. Change-Id: I8e3408a1031c0b8e000d78ab59cbcabc860d8b57 Copied system resources apk loading order from lineage-15.1 commit: Author: Ethan Chen <intervigil@gmail.com> Date: Sun Oct 15 23:09:36 2017 -0700 androidfw: Load SDK resources after initial system resources * The existing AssetManager logic assumes a single system resource, as the RRO resource codepath expects to have the system AssetManager discover RRO overlay resources while the system resource is being added to the AssetManager's mAssetPaths. Having multiple system resources already present in the AssetManager's mAssetPaths breaks the expected ordering between the system AssetManager and the non-system AssetManager, as non-system AssetManagers will not need to discover system RRO overlay resources, and already have them in the it's mAssetPaths immediately following the system resource it is supposed to overlay. * Resolve this issue by loading the SDK resources after the system RRO overlay resource is loaded to guarantee consistent ordering between the system AssetManager and non-system AssetManager instances. Change-Id: I274cf9100fbb6215b840617993a7a6d9b7ff336d Change-Id: I383ff3eb35cd8d94bd1aebc5b811948d63da621d
Loading
Please register or sign in to comment