美文网首页
/system/etc/permissions/简单解析

/system/etc/permissions/简单解析

作者: Wi1ls努力努力再努力 | 来源:发表于2019-03-23 17:07 被阅读0次

现在处理的文件是: /system/etc/permissions/android.hardware.bluetooth_le.xml
tag= feature ,attrib= {'name': 'android.hardware.bluetooth_le'}


现在处理的文件是: /system/etc/permissions/android.hardware.camera.flash-autofocus.xml
tag= feature ,attrib= {'name': 'android.hardware.camera.any'}
tag= feature ,attrib= {'name': 'android.hardware.camera'}
tag= feature ,attrib= {'name': 'android.hardware.camera.autofocus'}
tag= feature ,attrib= {'name': 'android.hardware.camera.flash'}


现在处理的文件是: /system/etc/permissions/android.hardware.camera.front.xml
tag= feature ,attrib= {'name': 'android.hardware.camera.any'}
tag= feature ,attrib= {'name': 'android.hardware.camera.front'}


现在处理的文件是: /system/etc/permissions/android.hardware.consumerir.xml
tag= feature ,attrib= {'name': 'android.hardware.consumerir'}


现在处理的文件是: /system/etc/permissions/android.hardware.ethernet.xml
tag= feature ,attrib= {'name': 'android.hardware.ethernet'}


现在处理的文件是: /system/etc/permissions/android.hardware.location.gps.xml
tag= feature ,attrib= {'name': 'android.hardware.location'}
tag= feature ,attrib= {'name': 'android.hardware.location.network'}
tag= feature ,attrib= {'name': 'android.hardware.location.gps'}


现在处理的文件是: /system/etc/permissions/android.hardware.sensor.accelerometer.xml
tag= feature ,attrib= {'name': 'android.hardware.sensor.accelerometer'}


现在处理的文件是: /system/etc/permissions/android.hardware.sensor.barometer.xml
tag= feature ,attrib= {'name': 'android.hardware.sensor.barometer'}


现在处理的文件是: /system/etc/permissions/android.hardware.sensor.compass.xml
tag= feature ,attrib= {'name': 'android.hardware.sensor.compass'}


现在处理的文件是: /system/etc/permissions/android.hardware.sensor.gyroscope.xml
tag= feature ,attrib= {'name': 'android.hardware.sensor.gyroscope'}


现在处理的文件是: /system/etc/permissions/android.hardware.sensor.light.xml
tag= feature ,attrib= {'name': 'android.hardware.sensor.light'}


现在处理的文件是: /system/etc/permissions/android.hardware.sensor.proximity.xml
tag= feature ,attrib= {'name': 'android.hardware.sensor.proximity'}


现在处理的文件是: /system/etc/permissions/android.hardware.sensor.stepcounter.xml
tag= feature ,attrib= {'name': 'android.hardware.sensor.stepcounter'}


现在处理的文件是: /system/etc/permissions/android.hardware.sensor.stepdetector.xml
tag= feature ,attrib= {'name': 'android.hardware.sensor.stepdetector'}


现在处理的文件是: /system/etc/permissions/android.hardware.telephony.cdma.xml
tag= feature ,attrib= {'name': 'android.hardware.telephony'}
tag= feature ,attrib= {'name': 'android.hardware.telephony.cdma'}


现在处理的文件是: /system/etc/permissions/android.hardware.telephony.gsm.xml
tag= feature ,attrib= {'name': 'android.hardware.telephony'}
tag= feature ,attrib= {'name': 'android.hardware.telephony.gsm'}


现在处理的文件是: /system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml
tag= feature ,attrib= {'name': 'android.hardware.touchscreen'}
tag= feature ,attrib= {'name': 'android.hardware.touchscreen.multitouch'}
tag= feature ,attrib= {'name': 'android.hardware.touchscreen.multitouch.distinct'}
tag= feature ,attrib= {'name': 'android.hardware.touchscreen.multitouch.jazzhand'}
tag= feature ,attrib= {'name': 'android.hardware.faketouch'}


现在处理的文件是: /system/etc/permissions/android.hardware.usb.accessory.xml
tag= feature ,attrib= {'name': 'android.hardware.usb.accessory'}
tag= library ,attrib= {'name': 'com.android.future.usb.accessory', 'file': '/system/framework/com.android.future.usb.accessory.jar'}


现在处理的文件是: /system/etc/permissions/android.hardware.usb.host.xml
tag= feature ,attrib= {'name': 'android.hardware.usb.host'}


现在处理的文件是: /system/etc/permissions/android.hardware.wifi.direct.xml
tag= feature ,attrib= {'name': 'android.hardware.wifi.direct'}


现在处理的文件是: /system/etc/permissions/android.hardware.wifi.xml
tag= feature ,attrib= {'name': 'android.hardware.wifi'}


现在处理的文件是: /system/etc/permissions/android.software.live_wallpaper.xml
tag= feature ,attrib= {'name': 'android.software.live_wallpaper'}


现在处理的文件是: /system/etc/permissions/android.software.midi.xml
tag= feature ,attrib= {'name': 'android.software.midi'}


现在处理的文件是: /system/etc/permissions/android.software.sip.voip.xml
tag= feature ,attrib= {'name': 'android.software.sip'}
tag= feature ,attrib= {'name': 'android.software.sip.voip'}


现在处理的文件是: /system/etc/permissions/android.software.webview.xml
tag= feature ,attrib= {'name': 'android.software.webview'}


现在处理的文件是: /system/etc/permissions/btmultisim.xml
tag= library ,attrib= {'name': 'org.codeaurora.btmultisimlibrary', 'file': '/system/framework/btmultisimlibrary.jar'}


现在处理的文件是: /system/etc/permissions/cneapiclient.xml
tag= library ,attrib= {'name': 'com.quicinc.cneapiclient', 'file': '/system/framework/cneapiclient.jar'}


现在处理的文件是: /system/etc/permissions/com.android.location.provider.xml
tag= library ,attrib= {'name': 'com.android.location.provider', 'file': '/system/framework/com.android.location.provider.jar'}


现在处理的文件是: /system/etc/permissions/com.android.media.remotedisplay.xml
tag= library ,attrib= {'name': 'com.android.media.remotedisplay', 'file': '/system/framework/com.android.media.remotedisplay.jar'}


现在处理的文件是: /system/etc/permissions/com.android.mediadrm.signer.xml
tag= library ,attrib= {'name': 'com.android.mediadrm.signer', 'file': '/system/framework/com.android.mediadrm.signer.jar'}


现在处理的文件是: /system/etc/permissions/com.google.android.maps.xml
tag= library ,attrib= {'name': 'com.google.android.maps', 'file': '/system/framework/com.google.android.maps.jar'}


现在处理的文件是: /system/etc/permissions/com.qti.dpmframework.xml
tag= library ,attrib= {'name': 'com.qti.dpmframework', 'file': '/system/framework/com.qti.dpmframework.jar'}


现在处理的文件是: /system/etc/permissions/com.qti.location.sdk.xml
tag= library ,attrib= {'name': 'com.qti.location.sdk', 'file': '/system/framework/com.qti.location.sdk.jar'}


现在处理的文件是: /system/etc/permissions/com.qualcomm.location.vzw_library.xml
tag= library ,attrib= {'name': 'com.qualcomm.location.vzw_library', 'file': '/system/framework/com.qualcomm.location.vzw_library.jar'}


现在处理的文件是: /system/etc/permissions/com.qualcomm.location.xml
tag= permission ,attrib= {'name': 'com.qualcomm.permission.IZAT'}
tag= group ,attrib= {'gid': 'gps'}
tag= group ,attrib= {'gid': 'net_raw'}
tag= group ,attrib= {'gid': 'net_admin'}
tag= group ,attrib= {'gid': 'system'}
tag= group ,attrib= {'gid': 'diag'}
tag= group ,attrib= {'gid': 'qcom_diag'}
tag= group ,attrib= {'gid': 'sdcard_rw'}
tag= group ,attrib= {'gid': 'media_rw'}
tag= group ,attrib= {'gid': 'wifi'}


现在处理的文件是: /system/etc/permissions/com.quicinc.cne.xml
tag= library ,attrib= {'name': 'com.quicinc.cne', 'file': '/system/framework/com.quicinc.cne.jar'}


现在处理的文件是: /system/etc/permissions/com.securespaces.android.feature.encryption.xml
tag= feature ,attrib= {'name': 'com.securespaces.android.feature.encryption'}


现在处理的文件是: /system/etc/permissions/com.securespaces.android.feature.hidden_space.xml
tag= feature ,attrib= {'name': 'com.securespaces.android.feature.hidden_space'}


现在处理的文件是: /system/etc/permissions/com.securespaces.android.feature.notification_badges.xml
tag= feature ,attrib= {'name': 'com.securespaces.android.feature.notification_badges'}


现在处理的文件是: /system/etc/permissions/com.securespaces.android.platform.full.xml
tag= feature ,attrib= {'name': 'com.securespaces.android.platform.full'}


现在处理的文件是: /system/etc/permissions/com.securespaces.android.platform.version.xml
tag= feature ,attrib= {'name': 'com.securespaces.android.platform.v34'}
tag= feature ,attrib= {'name': 'com.securespaces.android.platform.v35'}
tag= feature ,attrib= {'name': 'com.securespaces.android.platform.v40'}
tag= feature ,attrib= {'name': 'com.securespaces.android.platform.v40.103'}


现在处理的文件是: /system/etc/permissions/com.securespaces.android.sdk.xml
tag= feature ,attrib= {'name': 'com.securespaces.android.sdk10'}
tag= feature ,attrib= {'name': 'com.securespaces.android.sdk11'}
tag= feature ,attrib= {'name': 'com.securespaces.android.sdk12'}


现在处理的文件是: /system/etc/permissions/ConnectivityExt.xml
tag= library ,attrib= {'name': 'ConnectivityExt', 'file': '/system/framework/ConnectivityExt.jar'}


现在处理的文件是: /system/etc/permissions/diag_permissions.xml
tag= permission ,attrib= {'name': 'com.miui.virtualsim.permission.DIAG'}
tag= group ,attrib= {'gid': 'net_raw'}
tag= group ,attrib= {'gid': 'qcom_diag'}


现在处理的文件是: /system/etc/permissions/dpmapi.xml
tag= library ,attrib= {'name': 'com.qti.dpmapi', 'file': '/system/framework/dpmapi.jar'}


现在处理的文件是: /system/etc/permissions/embms.xml
tag= library ,attrib= {'name': 'com.qualcomm.embmslibrary', 'file': '/system/framework/embmslibrary.jar'}


现在处理的文件是: /system/etc/permissions/handheld_core_hardware.xml
tag= feature ,attrib= {'name': 'android.hardware.audio.output'}
tag= feature ,attrib= {'name': 'android.hardware.camera'}
tag= feature ,attrib= {'name': 'android.hardware.location'}
tag= feature ,attrib= {'name': 'android.hardware.location.network'}
tag= feature ,attrib= {'name': 'android.hardware.sensor.compass'}
tag= feature ,attrib= {'name': 'android.hardware.sensor.accelerometer'}
tag= feature ,attrib= {'name': 'android.hardware.bluetooth'}
tag= feature ,attrib= {'name': 'android.hardware.touchscreen'}
tag= feature ,attrib= {'name': 'android.hardware.microphone'}
tag= feature ,attrib= {'name': 'android.hardware.screen.portrait'}
tag= feature ,attrib= {'name': 'android.hardware.screen.landscape'}
tag= feature ,attrib= {'name': 'android.software.app_widgets'}
tag= feature ,attrib= {'name': 'android.software.connectionservice'}
tag= feature ,attrib= {'name': 'android.software.voice_recognizers', 'notLowRam': 'true'}
tag= feature ,attrib= {'name': 'android.software.backup'}
tag= feature ,attrib= {'name': 'android.software.home_screen'}
tag= feature ,attrib= {'name': 'android.software.input_methods'}
tag= feature ,attrib= {'name': 'android.software.print'}
tag= feature ,attrib= {'name': 'android.software.device_admin'}
tag= feature ,attrib= {'name': 'android.software.managed_users'}


现在处理的文件是: /system/etc/permissions/imscm.xml
tag= library ,attrib= {'name': 'com.qti.ims.connectionmanager.imscmlibrary', 'file': '/system/framework/imscmlibrary.jar'}


现在处理的文件是: /system/etc/permissions/platform-miui.xml
tag= library ,attrib= {'name': 'cloud-common.jar', 'file': '/system/framework/cloud-common.jar'}
tag= library ,attrib= {'name': 'yellowpage-common.jar', 'file': '/system/framework/yellowpage-common.jar'}
tag= library ,attrib= {'name': 'miui-update.jar', 'file': '/system/framework/miui-update.jar'}
tag= library ,attrib= {'name': 'activation.jar', 'file': '/system/framework/activation.jar'}
tag= library ,attrib= {'name': 'gson.jar', 'file': '/system/framework/gson.jar'}
tag= library ,attrib= {'name': 'microlog4android.jar', 'file': '/system/framework/microlog4android.jar'}
tag= library ,attrib= {'name': 'protobuf.jar', 'file': '/system/framework/protobuf.jar'}
tag= library ,attrib= {'name': 'zxing.jar', 'file': '/system/framework/zxing.jar'}
tag= library ,attrib= {'name': 'android-support-v4.jar', 'file': '/system/framework/android-support-v13.jar'}
tag= library ,attrib= {'name': 'android-support-v7-recyclerview.jar', 'file': '/system/framework/android-support-v7-recyclerview.jar'}
tag= library ,attrib= {'name': 'android-support-v13.jar', 'file': '/system/framework/android-support-v13.jar'}
tag= library ,attrib= {'name': 'volley.jar', 'file': '/system/framework/volley.jar'}
tag= library ,attrib= {'name': 'picasso.jar', 'file': '/system/framework/picasso.jar'}
tag= library ,attrib= {'name': 'miui-push.jar', 'file': '/system/framework/miuipushsdkshared.jar'}
tag= library ,attrib= {'name': 'miui-stat.jar', 'file': '/system/framework/miuistatssdkshared.jar'}
tag= library ,attrib= {'name': 'eventbus.jar', 'file': '/system/framework/eventbus.jar'}


现在处理的文件是: /system/etc/permissions/platform.xml
tag= permission ,attrib= {'name': 'android.permission.BLUETOOTH_ADMIN'}
tag= group ,attrib= {'gid': 'net_bt_admin'}
tag= permission ,attrib= {'name': 'android.permission.BLUETOOTH'}
tag= group ,attrib= {'gid': 'net_bt'}
tag= permission ,attrib= {'name': 'android.permission.BLUETOOTH_STACK'}
tag= group ,attrib= {'gid': 'net_bt_stack'}
tag= permission ,attrib= {'name': 'android.permission.NET_TUNNELING'}
tag= group ,attrib= {'gid': 'vpn'}
tag= permission ,attrib= {'name': 'android.permission.INTERNET'}
tag= group ,attrib= {'gid': 'inet'}
tag= permission ,attrib= {'name': 'android.permission.READ_LOGS'}
tag= group ,attrib= {'gid': 'log'}
tag= permission ,attrib= {'name': 'android.permission.WRITE_MEDIA_STORAGE'}
tag= group ,attrib= {'gid': 'media_rw'}
tag= group ,attrib= {'gid': 'sdcard_rw'}
tag= permission ,attrib= {'name': 'android.permission.ACCESS_MTP'}
tag= group ,attrib= {'gid': 'mtp'}
tag= permission ,attrib= {'name': 'android.permission.NET_ADMIN'}
tag= group ,attrib= {'gid': 'net_admin'}
tag= permission ,attrib= {'name': 'android.permission.ACCESS_CACHE_FILESYSTEM'}
tag= group ,attrib= {'gid': 'cache'}
tag= permission ,attrib= {'name': 'android.permission.DIAGNOSTIC'}
tag= group ,attrib= {'gid': 'input'}
tag= group ,attrib= {'gid': 'diag'}
tag= permission ,attrib= {'name': 'android.permission.READ_NETWORK_USAGE_HISTORY'}
tag= group ,attrib= {'gid': 'net_bw_stats'}
tag= permission ,attrib= {'name': 'android.permission.MODIFY_NETWORK_ACCOUNTING'}
tag= group ,attrib= {'gid': 'net_bw_acct'}
tag= permission ,attrib= {'name': 'android.permission.LOOP_RADIO'}
tag= group ,attrib= {'gid': 'loop_radio'}
tag= permission ,attrib= {'name': 'android.permission.MANAGE_VOICE_KEYPHRASES'}
tag= group ,attrib= {'gid': 'audio'}
tag= permission ,attrib= {'name': 'android.permission.ACCESS_FM_RADIO'}
tag= group ,attrib= {'gid': 'media'}
tag= assign-permission ,attrib= {'name': 'android.permission.MODIFY_AUDIO_SETTINGS', 'uid': 'media'}
tag= assign-permission ,attrib= {'name': 'android.permission.ACCESS_SURFACE_FLINGER', 'uid': 'media'}
tag= assign-permission ,attrib= {'name': 'android.permission.WAKE_LOCK', 'uid': 'media'}
tag= assign-permission ,attrib= {'name': 'android.permission.UPDATE_DEVICE_STATS', 'uid': 'media'}
tag= assign-permission ,attrib= {'name': 'android.permission.UPDATE_APP_OPS_STATS', 'uid': 'media'}
tag= assign-permission ,attrib= {'name': 'android.permission.ACCESS_SURFACE_FLINGER', 'uid': 'graphics'}
tag= library ,attrib= {'name': 'android.test.runner', 'file': '/system/framework/android.test.runner.jar'}
tag= library ,attrib= {'name': 'javax.obex', 'file': '/system/framework/javax.obex.jar'}
tag= library ,attrib= {'name': 'org.apache.http.legacy', 'file': '/system/framework/org.apache.http.legacy.jar'}
tag= allow-in-power-save-except-idle ,attrib= {'package': 'com.android.providers.downloads'}


现在处理的文件是: /system/etc/permissions/qcnvitems.xml
tag= library ,attrib= {'name': 'com.qualcomm.qcnvitems', 'file': '/system/framework/qcnvitems.jar'}


现在处理的文件是: /system/etc/permissions/qcrilhook.xml
tag= library ,attrib= {'name': 'com.qualcomm.qcrilhook', 'file': '/system/framework/qcrilhook.jar'}


附上 python 代码

import os
import xml.etree.ElementTree as ET

# 这个是我从小米手机中/system/etc/permissions/路径下拷贝出来的文件
permissionPath = "/Users/wi1ls/Desktop/mi/permissions/"
xmlFiles = os.listdir(permissionPath)


def handle():
    for xmlFile in xmlFiles:
        handleName="/system/etc/permissions/"+xmlFile
        xmlFile = permissionPath + xmlFile
        print("现在处理的文件是:", handleName)
        xmlTree = ET.parse(xmlFile)
        xmlRoot = xmlTree.getroot()
        for child in xmlRoot:
            handleSub(child)
        print("--------------------")


def handleSub(child):
    if child != None:
        print('tag=', child.tag, ',attrib=', child.attrib)
        for sub in child:
            handleSub(sub)

if __name__ == '__main__':
    handle()

相关文章

网友评论

      本文标题:/system/etc/permissions/简单解析

      本文链接:https://www.haomeiwen.com/subject/dsisvqtx.html