Fix HistoricalAppopsTest.

Adopt shell permission identity only for operations which require
permissions. Do not use shell permission identity when blaming
AppOps (appOpManager.note()), otherwise shell gets blamed instead of
the app.

Test: atest HistoricalAppopsTest
Fixes: 157886905
Fixes: 157886256
Change-Id: I63c2c4c782c9c60b3b6312aa45984eb2c3122e55
1 file changed