Repository navigation
test(nav3): [Part 5] Verify the SerialNameAndProperties mapper after R8 minification - #6708
Open
0xadam-brown wants to merge 1 commit into
Open
0xadam-brown wants to merge 1 commit into
0xadam-brown wants to merge 1 commit into
Conversation
This was referenced Nov 20, 2026
Contributor
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
4 of 9 tasks
📲 Install BuildsAndroid
|
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-10
branch
from
November 20, 2026 14:00
7a34760 to
f7b850a
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-11
branch
from
November 20, 2026 14:00
5ddd798 to
7d85cf6
Compare
0xadam-brown
marked this pull request as ready for review
November 20, 2026 16:01
0xadam-brown
requested review from
romtsn and
runningcode
and removed request for
a team
November 20, 2026 16:01
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-10
branch
from
November 24, 2026 10:21
091733a to
901b1f1
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-11
branch
from
November 24, 2026 10:21
24ef3e6 to
51fc800
Compare
5 of 9 tasks
0xadam-brown
marked this pull request as draft
November 25, 2026 15:37
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-11
branch
from
December 1, 2026 01:31
51fc800 to
aa0479e
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-10
branch
from
December 1, 2026 01:31
901b1f1 to
48f7f66
Compare
0xadam-brown
marked this pull request as ready for review
December 1, 2026 01:50
The R8 check now launches each APK once per built-in mapper, chosen with an intent extra, as only one SentryNavEffect records an Activity's back stack. With SerialNameAndProperties, it also checks the arguments SentryNavEffect records for each key, including a key that uses every encoding rule and sensitive-data filtering, and that R8 renamed that key's fields. It fails if the properties encoder's compatibility check reports an incompatible kotlinx.serialization version. Co-Authored-By: Claude Opus 5.5 <[email protected]>
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-10
branch
from
December 1, 2026 10:01
48f7f66 to
95b051d
Compare
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-11
branch
from
December 1, 2026 10:01
aa0479e to
95adbb9
Compare
runningcode
approved these changes
Dec 1, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Stack (Nav3 SerialNameAndProperties Mapper)
This stack follows the
SerialNamestack (#6780) and is based on its last PR, #6783.📜 Description
Extends the R8 check app from #6783 to cover
SerialNameAndProperties. Ordinary unit tests don't exercise shrinking, optimization, or obfuscation, so they can't establish whether property encoding and sensitive-key filtering still work in a release build.SentryNavEffectrecords an Activity's back stack. The script fails if a launch ran a different mapper than the one it requested.SerialNameAndProperties, it also checks the argumentsSentryNavEffectrecords for each key, including a key that uses every encoding rule and sensitive-data filtering, and that R8 renamed that key's fields.The workflow that #6783 added runs the check; it needed no changes beyond its comments.
💡 Motivation and Context
The built-in mappers must still work after an app's code has been minified. #6783 checks that entries keep their names. This PR checks that
SerialNameAndPropertiesstill records the right arguments and still filters sensitive keys; if it didn't, arguments would be dropped withencoding_failed, or worse, sensitive values could be recorded.addresses: JAVA-787 (link)
See callout 2 and the "Implementation Deep Dive" in #6705 for our use of the experimental
AbstractEncoderAPI, which is why checkingSerialNameAndPropertiesin minified builds matters.💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
This is the last PR in the stack.
#skip-changelog