Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c210fff1 authored by Kangping Dong's avatar Kangping Dong
Browse files

[Thread] define Thread hardware feature

Define Thread hardware feature FEATURE_THREADNETWORK = "android.hardware.threadnetwork"
so that apps/users can know whether the device has Thread support.

This flags is defined as public API but not system API because we
defined TRANSPORT_THREAD as public API and general apps can access
Thread network by adding callback for the Thread network. Adding
the FEATURE_THREADNETWORK as public API allows apps to be more
clear/confident of whether they can retrieve the Thread network
with TRANSPORT_THREAD.

FR: b/235016403

Bug: 284296494
Bug: 292948264
Change-Id: I3bce3458fa721a20d8937a0c70eec2dbc7c54bc6
parent d52e734a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12037,6 +12037,7 @@ package android.content.pm {
    field public static final String FEATURE_TELEPHONY_RADIO_ACCESS = "android.hardware.telephony.radio.access";
    field public static final String FEATURE_TELEPHONY_SUBSCRIPTION = "android.hardware.telephony.subscription";
    field @Deprecated public static final String FEATURE_TELEVISION = "android.hardware.type.television";
    field public static final String FEATURE_THREADNETWORK = "android.hardware.threadnetwork";
    field public static final String FEATURE_TOUCHSCREEN = "android.hardware.touchscreen";
    field public static final String FEATURE_TOUCHSCREEN_MULTITOUCH = "android.hardware.touchscreen.multitouch";
    field public static final String FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT = "android.hardware.touchscreen.multitouch.distinct";
+8 −0
Original line number Diff line number Diff line
@@ -3445,6 +3445,14 @@ public abstract class PackageManager {
    public static final String FEATURE_TELEPHONY_SUBSCRIPTION =
            "android.hardware.telephony.subscription";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and
     * {@link #hasSystemFeature}: The device is capable of communicating with
     * other devices via Thread network.
     */
    @SdkConstant(SdkConstantType.FEATURE)
    public static final String FEATURE_THREADNETWORK = "android.hardware.threadnetwork";

    /**
     * Feature for {@link #getSystemAvailableFeatures} and
     * {@link #hasSystemFeature}: The device is capable of communicating with