Skip to content

Permission Teseter update sdk37 - #57

Merged
KVVat merged 22 commits into
android:masterfrom
KVVat:niap-permission-update-sdk37
Oct 27, 2026
Merged

KVVat merged 22 commits into
android:masterfrom
KVVat:niap-permission-update-sdk37

Conversation

@KVVat

@KVVat KVVat commented May 28, 2026

Copy link
Copy Markdown
Contributor

Here's Permission Tester updates for sdk 37

@KVVat
KVVat marked this pull request as draft May 28, 2026 07:38
@KVVat
KVVat requested a review from mpgroover May 28, 2026 07:39
@KVVat
KVVat marked this pull request as ready for review May 28, 2026 07:39

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 mpgroover left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me, just some questions about some of the tests and content below.

Comment thread niap-cc/Permissions/.agent/agent.yaml Resolved
Comment thread niap-cc/Permissions/.agent/agent.yaml Resolved
Comment thread README.md Resolved
Comment thread niap-cc/Permissions/README.md Resolved

@mpgroover mpgroover left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@KVVat
KVVat merged commit eee3851 into android:master Oct 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants