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

Commit e95b4fa6 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6852881 from c3f71bc4 to rvc-qpr1-release

Change-Id: I928117c8c938e377dc6d504de77a6d001d19b05e
parents a3e1f434 c3f71bc4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -108,9 +108,12 @@ static void drop_privileges(int server_port) {
    // AID_NET_BW_STATS to read out qtaguid statistics
    // AID_READPROC for reading /proc entries across UID boundaries
    // AID_UHID for using 'hid' command to read/write to /dev/uhid
    // AID_EXT_DATA_RW for writing to /sdcard/Android/data (devices without sdcardfs)
    // AID_EXT_OBB_RW for writing to /sdcard/Android/obb (devices without sdcardfs)
    gid_t groups[] = {AID_ADB,          AID_LOG,          AID_INPUT,    AID_INET,
                      AID_NET_BT,       AID_NET_BT_ADMIN, AID_SDCARD_R, AID_SDCARD_RW,
                      AID_NET_BW_STATS, AID_READPROC,     AID_UHID};
                      AID_NET_BW_STATS, AID_READPROC,     AID_UHID,     AID_EXT_DATA_RW,
                      AID_EXT_OBB_RW};
    minijail_set_supplementary_gids(jail.get(), arraysize(groups), groups);

    // Don't listen on a port (default 5037) if running in secure mode.