Remove redundant limits in package parser.

Since manifest tag and attribute limits were added we can remove some
redundant limits in package parsing.
  1. Removed the 30k component limit and reduced the activity tag count
     limit to 30k
  2. Removed the permission name attribute length limit of 512 since
     there is already a 1024 length limit for all name attributes.

Fixed a bug where manifest attributes were not being validated if they
were read using TypedArray.getNonResourceString during package parsing.

Bug: 288328797
Test: presubmit
Change-Id: I76ef18f8147c56c7f4f8203f572b79407395d04e
4 files changed