Skip to content

Conversation

FranAguilera
Copy link
Contributor

@FranAguilera FranAguilera commented Sep 30, 2025

Setting minSdk to 23. This is inline with androidx minSdk level

The most relevant changes:

  • JankStatsMonitor to run again sendJankFrameData outside main thread <24
  • NetworkAttributes to use registerNetworkCallback below <24

Verification

Verified on API 23 device. Timeline session

@github-actions
Copy link

github-actions bot commented Sep 30, 2025

Size Comparison Report (x86_64)

Metric APK (KB) SO (KB)
Baseline 3318 1204
Current 3318 1204
Difference 0 0

APK size unchanged. SO size unchanged.

@FranAguilera FranAguilera changed the title [Android] Set min sdk to 21 [Android] Set min sdk to 23 Oct 3, 2025
@FranAguilera FranAguilera marked this pull request as draft October 3, 2025 11:46
@FranAguilera FranAguilera force-pushed the franjam/set-back-to-min-sdk-21 branch 2 times, most recently from 0f59b78 to f1f368b Compare October 9, 2025 13:25
@FranAguilera FranAguilera marked this pull request as ready for review October 9, 2025 13:25
@FranAguilera FranAguilera requested a review from murki October 9, 2025 13:25
@FranAguilera FranAguilera force-pushed the franjam/set-back-to-min-sdk-21 branch from f1f368b to 28624d2 Compare October 9, 2025 13:36
@FranAguilera FranAguilera changed the title [Android] Set min sdk to 23 [Android] Set minSdk to 23 Oct 9, 2025
updateNetworkType(connectivityManager.getNetworkCapabilities(network))
}
connectivityManager.registerDefaultNetworkCallback(this)
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
Copy link
Contributor

Choose a reason for hiding this comment

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

does this mean <23 devices will not receive networking info at all? sounds like we should fallback to the more expensive polling logic in these cases

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh I just reverted to what we had prior to 24 6e6eff47

Copy link
Contributor Author

Choose a reason for hiding this comment

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

also to clarify we won't be supporting below 23

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do more testing with various testing of network con

Copy link
Contributor

Choose a reason for hiding this comment

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

oops yeah sorry I meant <24

Copy link
Contributor Author

Choose a reason for hiding this comment

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

verified on this session, callbacks still happening due to older API call connectivityManager.registerNetworkCallback(NetworkRequest.Builder().build(), this)

Screenshot 2025-10-14 at 10 31 36

@FranAguilera FranAguilera reopened this Oct 9, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2025
@FranAguilera FranAguilera force-pushed the franjam/set-back-to-min-sdk-21 branch from 16479a4 to b16ddfb Compare October 14, 2025 08:16
@FranAguilera FranAguilera requested a review from murki October 14, 2025 08:54
@FranAguilera FranAguilera merged commit dcbbd26 into main Oct 14, 2025
15 checks passed
@FranAguilera FranAguilera deleted the franjam/set-back-to-min-sdk-21 branch October 14, 2025 11:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants