Commit 892ded1
DO NOT MERGE Don't throw exception in AppOpsManager.checkOp
In Q we handled the case where the op does not match the package name by
returning the default state. NoteOp and StartOp returned errored.
Fix up these scenarios.
Test: - atest CtsAppOpsTestCases
- backported new test to Q to verify the behavior is the same in Q
and master
Bug: 132885449
Bug: 146463528
Bug: 146590200
Bug: 147649036
Change-Id: I5b94e92af759580f2d2644ece49f159bd006b31c1 parent 73e2690 commit 892ded1
1 file changed
Lines changed: 12 additions & 5 deletions
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1809 | 1809 | | |
1810 | 1810 | | |
1811 | 1811 | | |
1812 | | - | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
1813 | 1820 | | |
1814 | 1821 | | |
1815 | 1822 | | |
| |||
1999 | 2006 | | |
2000 | 2007 | | |
2001 | 2008 | | |
2002 | | - | |
2003 | | - | |
| 2009 | + | |
| 2010 | + | |
2004 | 2011 | | |
2005 | 2012 | | |
2006 | 2013 | | |
| |||
2177 | 2184 | | |
2178 | 2185 | | |
2179 | 2186 | | |
2180 | | - | |
2181 | | - | |
| 2187 | + | |
| 2188 | + | |
2182 | 2189 | | |
2183 | 2190 | | |
2184 | 2191 | | |
| |||
0 commit comments