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

Commit 2654c8ed authored by Nick Chalko's avatar Nick Chalko
Browse files

Turn on extcon event observing

selinux policy now includes sysfs_extcon
Submit after
https://android-review.googlesource.com/c/platform/system/sepolicy/+/907257
is merged

Bug: 124364409
Test: m services.core
Change-Id: I5401e36b5e752387cf7794dcca55da2270d46f66
parent 5a9da780
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -162,15 +162,6 @@ public abstract class ExtconUEventObserver extends UEventObserver {
    /** Does the {@link /sys/class/extcon} directory exist */
    public static boolean extconExists() {
        File extconDir = new File("/sys/class/extcon");
        boolean retVal = extconDir.exists() && extconDir.isDirectory();
        // TODO(b/124364409): return the correct value after selinux policy is updated.
        if (retVal) {
            Slog.w(TAG, extconDir + " exists " + extconDir.exists() + " isDir "
                    + extconDir.isDirectory()
                    + " but reporting it does not exist until selinux policies are updated."
                    + " see b/124364409"
            );
        }
        return false;
        return extconDir.exists() && extconDir.isDirectory();
    }
}