Simplify checking for the dump permission

Bug: 145171640
Test: compile
Change-Id: Ia1fb733716c28c2b56202fac01418c6e9364809e
2 files changed