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

Commit 2e96de9c authored by Atneya Nair's avatar Atneya Nair
Browse files

Permissions: remove bt, telephony package names

These uids have actual associated package names, so remove the
corresponding fixed package-name special casing in the permission
controller, to correctly match with appops.

Test: Compiles
Bug: 350861310
Flag: com.android.media.audio.audioserver_permissions
Change-Id: I667e79561b72459aa037f1674882e4055483f380
parent 4c1bdd07
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -44,11 +44,6 @@ static std::optional<std::string> getFixedPackageName(uid_t uid) {
            return "audioserver";
        case AID_CAMERASERVER:
            return "cameraserver";
        // These packages are not handled by AppOps, but labeling may be useful for us
        case AID_RADIO:
            return "telephony";
        case AID_BLUETOOTH:
            return "bluetooth";
        default:
            return std::nullopt;
    }