[pm] restrict max number of components at parsing
Apps with too many components can cause the system to be unresponsive. Adding a max number restriction in the parsing so that such apps will be rejected during installation. The current max number is chosen based on the stats of Play apps. Test: manual $ adb install app-debug.apk Performing Streamed Install adb: failed to install /usr/local/google/home/schfan/Downloads/app-debug.apk: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1065528371.tmp/base.apk (at Binary XML file line #300021): Total number of components has exceeded the maximum number: 30000] BUG: 214397059 Change-Id: Iae22f66db8434533efffa8db2ed72e0d23534100
Loading
Please register or sign in to comment