MuntashirAkon / AppManager

A full-featured package manager and viewer for Android
https://muntashirakon.github.io/AppManager/
Other
4.74k stars 265 forks source link

Ability to set custom description for permissions #1379

Open scruel opened 4 months ago

scruel commented 4 months ago

Please check before submitting an issue

Describe a description of the new feature

For example, MIUI has its own permission table, for some already-known.

// MIUI app ops taken from framework.jar
public static final int MIUI_OP_START = 10000;
public static final int OP_WIFI_CHANGE = 10001;
public static final int OP_BLUETOOTH_CHANGE = 10002;
public static final int OP_DATA_CONNECT_CHANGE = 10003;
public static final int OP_SEND_MMS = 10004;
public static final int OP_READ_MMS = 10005;
public static final int OP_WRITE_MMS = 10006;
public static final int OP_BOOT_COMPLETED = 10007;
public static final int OP_AUTO_START = 10008;
public static final int OP_NFC_CHANGE = 10009;
public static final int OP_DELETE_SMS = 10010;
public static final int OP_DELETE_MMS = 10011;
public static final int OP_DELETE_CONTACTS = 10012;
public static final int OP_DELETE_CALL_LOG = 10013;
public static final int OP_EXACT_ALARM = 10014;
public static final int OP_ACCESS_XIAOMI_ACCOUNT = 10015;
public static final int OP_NFC = 10016;
public static final int OP_INSTALL_SHORTCUT = 10017;
public static final int OP_READ_NOTIFICATION_SMS = 10018;
public static final int OP_GET_TASKS = 10019;
public static final int OP_SHOW_WHEN_LOCKED = 10020;
public static final int OP_BACKGROUND_START_ACTIVITY = 10021;
public static final int OP_GET_INSTALLED_APPS = 10022;
public static final int OP_SERVICE_FOREGROUND = 10023;
public static final int OP_GET_ANONYMOUS_ID = 10024;
public static final int OP_GET_UDEVICE_ID = 10025;
public static final int OP_DEAMON_NOTIFICATION = 10026;
public static final int OP_BACKGROUND_LOCATION = 10027;
public static final int OP_READ_SMS_REAL = 10028;
// MIUI 12 start?
public static final int OP_READ_CONTACTS_REAL = 10029;
public static final int OP_READ_CALENDAR_REAL = 10030;
public static final int OP_READ_CALL_LOG_REAL = 10031;
public static final int OP_READ_PHONE_STATE_REAL = 10032;
// MIUI 12
public static final int OP_POST_LOCAL_NOTIFICATION = 10033;
public static final int OP_ACCESS_GALLERY = 10034;
public static final int OP_ACCESS_SOCIALITY = 10035;
public static final int OP_ACCESS_LOCATION_REAL = 10036;
10044 Get device action and direction
10045 Live wallpaper service
...

Additional context

Ref: https://github.com/MuntashirAkon/AppManager/blob/b06b608996a79e01a633d159c1bae128329b6d93/app/src/main/java/io/github/muntashirakon/AppManager/appops/AppOpsManager.java#L371-L410 Related code had been removed by: https://github.com/MuntashirAkon/AppManager/commit/4c9e83d9e5ef70f7d7bd0a408105467b1ea9058f

MuntashirAkon commented 3 months ago

Sorry, it's not possible for a single person like me to catalogue every changes made by every vendors, especially when we're struggling with the AOSP permissions themselves.

scruel commented 3 months ago

Aha, it's totally fine, I'd like to add that what I want is not ask you or somebody to maintenance an OEM permission description list, but provide a built-in list liked thing that allows other people to append.