Repository navigation
Permission Teseter update sdk37 - #57
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the Permission Test Tooling and Companion app to support Android 17 / SDK 37 (CinnamonBun). Key changes include upgrading compileSdk and targetSdk to 37, adding several new services and permissions (such as CAPTURE_KEYBOARD, ACCESS_LOCAL_NETWORK, and various BIND_* permissions), implementing CinnamonBun-specific test suites, and introducing instrumentation tests like CaptureKeyboardTest and InjectKeyEventsTest. Feedback from the reviewer highlights several critical issues: a potential NoSuchMethodError on devices below API 33 due to the direct use of stopForeground(int) when minSdk is 28; a major regression in SignatureTestSuite where legacy signature test modules were accidentally removed; thread-safety concerns with receivedKeyCodes in MainActivity being accessed across threads; and multiple potential NullPointerException crashes in exception handling and system service lookups (e.g., CompanionDeviceManager and DevicePolicyManager).
mpgroover
left a comment
There was a problem hiding this comment.
Changes look good to me, just some questions about some of the tests and content below.
mpgroover
left a comment
There was a problem hiding this comment.
Updates look good to me, just one minor comment, but granting approval now. If a change is warranted for the comment, feel free to either resolve in this PR or merge and create a new PR for the change.
|
|
||
| @RequiresApi(api = Build.VERSION_CODES.UPSIDE_DOWN_CAKE) | ||
| @PermissionTest(permission="MIGRATE_HEALTH_CONNECT_DATA", sdkMin=34) | ||
| // @PermissionTest(permission="MIGRATE_HEALTH_CONNECT_DATA", sdkMin=34) |
There was a problem hiding this comment.
Here and the testStageHealthConnectRemoteData test below, instead of commenting out this annotation, should a maximum SDK version be set so that these tests can still run on previous platform releases?
There was a problem hiding this comment.
Thank you for the approval and for catching this! I have updated both testMigrateHealthConnectData and testStageHealthConnectRemoteData in SignatureTestModuleU.java to use sdkMax = 36 instead of commenting them out. Merging now!
Here's Permission Tester updates for sdk 37