commit | bb815f25dd764b9654ab9e37138745cd0ff9feae | [log] [tgz] |
---|---|---|
author | Yuyang Huang <yuyanghuang@google.com> | Fri Nov 29 15:37:28 2024 +0900 |
committer | Yuyang Huang <yuyanghuang@google.com> | Fri Nov 29 15:38:21 2024 +0900 |
tree | acabc0989dfb3af487916c5da1d20270b5ca99e7 | |
parent | c3a2764012603f8124713d1562436afa83d7bd05 [diff] |
Add isDebuggable() to DeviceInfoUtils for Android R compatibility Introduced the isDebuggable() helper method in DeviceInfoUtils. This method provides a consistent way to determine if the device is in debuggable mode across different Android versions. Since Build.isDebuggable() is not available in Android R, the method checks the "ro.debuggable" system property as a fallback, ensuring compatibility. Bug: 381327071 Test: TH Change-Id: Ibf77bcfc50378d88458baf07683e7bf2065734de