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

Commit 8bfc5108 authored by Tanguy Pruvot's avatar Tanguy Pruvot Committed by Ricardo Cerqueira
Browse files

handle motorola user ids, if MOTOROLA_UIDS is defined

some of these are required by proprietary binary apps
and tools like lsof which report errors on unknown user 9000

A lot of projects use this android_filesystem_config.h,
so a global CFLAGS is better to handle this in BoardConfig.mk

Added latest ones for OSH (webtop) and whisper (used in pds)

Change-Id: I7e92bacfcac418cd9f21e67543a5789a292137a3
parent 973311bf
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -78,6 +78,22 @@
#define AID_NET_BW_ACCT   3007  /* change bandwidth statistics accounting */
#define AID_QCOM_ONCRPC   3008  /* can read/write /dev/oncrpc files */

#if defined(MOTOROLA_UIDS)
#define AID_MOT_OSH       5000  /* OSH */
#define AID_MOT_ACCY      9000  /* access to accessory */
#define AID_MOT_PWRIC     9001  /* power IC */
#define AID_MOT_USB       9002  /* mot usb */
#define AID_MOT_DRM       9003  /* can access DRM resource. */
#define AID_MOT_TCMD      9004  /* mot_tcmd */
#define AID_MOT_SEC_RTC   9005  /* mot cpcap rtc */
#define AID_MOT_TOMBSTONE 9006
#define AID_MOT_TPAPI     9007  /* mot_tpapi */
#define AID_MOT_SECCLKD   9008  /* mot_secclkd */
#define AID_MOT_WHISPER   9009  /* Whisper Protocol access */
#define AID_MOT_CAIF      9010  /* can create CAIF sockets */
#define AID_MOT_DLNA      9011  /* DLNA native */
#endif // MOTOROLA_UIDS

#define AID_MISC          9998  /* access to misc storage */
#define AID_NOBODY        9999

@@ -134,6 +150,21 @@ static const struct android_id_info android_ids[] = {
    { "net_bw_stats", AID_NET_BW_STATS, },
    { "net_bw_acct", AID_NET_BW_ACCT, },
    { "qcom_oncrpc", AID_QCOM_ONCRPC, },
#if defined(MOTOROLA_UIDS)
    { "mot_osh",   AID_MOT_OSH, },
    { "mot_accy",  AID_MOT_ACCY, },
    { "mot_pwric", AID_MOT_PWRIC, },
    { "mot_usb",   AID_MOT_USB, },
    { "mot_drm",   AID_MOT_DRM, },
    { "mot_tcmd",  AID_MOT_TCMD, },
    { "mot_sec_rtc",   AID_MOT_SEC_RTC, },
    { "mot_tombstone", AID_MOT_TOMBSTONE, },
    { "mot_tpapi",     AID_MOT_TPAPI, },
    { "mot_secclkd",   AID_MOT_SECCLKD, },
    { "mot_whisper",   AID_MOT_WHISPER, },
    { "mot_caif",  AID_MOT_CAIF, },
    { "mot_dlna",  AID_MOT_DLNA, },
#endif
    { "misc",      AID_MISC, },
    { "nobody",    AID_NOBODY, },
};