npem: fix permissions not being granted
I messed up with the last fix. While that solved the case where there were both 'granted=true' and 'granted=false' entries, it introduced a regression. It was written with the assumption that whenever a permission is not granted, there will be 'granted=false' entries. That assumption was not tested well at the time, and further testing has revealed that there are also many situations where there are no 'granted=' entries for permissions at all, not even 'false'. Since there is no defined spec for the output of dumpsys, we just do a pessimistic case-by-case parsing of its output.pull/30/head
parent
e4543b1e39
commit
969e15e982
Loading…
Reference in New Issue