Some devices are not good about being consistent with who is suppose to be defining a permission. For example, on the Kindle Fire (FireOS), mulitple applications define the same permission, with completely different definitions. An example:
I'm going to migrate the parse_permissions( .. ) method of the sysappdb module to use dumpsys to determine who the OS has picked for the true permission holder.
Some devices are not good about being consistent with who is suppose to be defining a permission. For example, on the Kindle Fire (FireOS), mulitple applications define the same permission, with completely different definitions. An example:
In package
com.amazon.kindle.otter
:But in
com.amazon.kindle
it's completely different:I'm not 100% sure how the OS determins which one to use, but Android has picked one of them:
I'm going to migrate the
parse_permissions( .. )
method of thesysappdb
module to usedumpsys
to determine who the OS has picked for the true permission holder.