Tethering: Enable TETHERING_AND_P2P_GO_LOCAL_AGENT for 25Q4+
This change enables the TETHERING_AND_P2P_GO_LOCAL_AGENT feature
on devices running Android 25Q4 or newer, in addition to being
controlled by the existing feature flag.
A new SdkUtil.isAtLeast25Q4() method is introduced to check for
the specific SDK version.
Flag: com.android.tethering.mainline.beta.tethering_and_p2p_go_local_agent
Test: atest ConnectivityCoverageTests --update-device \
--test-filter '.*Tethering.*'
Test: TH
Bug: 420590461
Fix: 428098654
Fix: 420592689
Change-Id: I7ef79a201116de84f2c4973c4c360fd3d1ef0c4c
This commit is contained in:
parent
1c513a6a6f
commit
bf75afdcd1
1 changed files with 54 additions and 7 deletions
|
|
@ -54,4 +54,9 @@ public class SdkUtil {
|
|||
public static boolean isAtLeast25Q2() {
|
||||
return SDK_INT >= 36 || (SDK_INT == 35 && "Baklava".equals(Build.VERSION.CODENAME));
|
||||
}
|
||||
|
||||
/** Checks if the device is running on a release version of Android 25Q4 or newer */
|
||||
public static boolean isAtLeast25Q4() {
|
||||
return Build.VERSION.SDK_INT_FULL >= Build.VERSION_CODES_FULL.BAKLAVA_1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue