안드로이드

Android 설치된 앱(패키지) 등록된 permission 확인

IT꿈나무 2021. 9. 29. 13:21
반응형

설치된 앱의 퍼미션이 정상적으로 권한을 받았는지 확인이 필요하다.

$ adb shell dumpsys package [package name]

 

아래와 같이 결과 나오고, Install permission: 항목해서 해당 퍼미션의 grant:true를 통해서 할당된 퍼미션을 확인 한다.

......
Packages:
  Package [com.samsung.knox.example.gettingstarted] (4d9d885):
    userId=10247
    pkg=Package{c97e6da com.samsung.knox.example.gettingstarted}
    codePath=/data/app/com.samsung.knox.example.gettingstarted-pt0GAF9z5qJHAmYZIgP9GA==
    resourcePath=/data/app/com.samsung.knox.example.gettingstarted-pt0GAF9z5qJHAmYZIgP9GA==
    legacyNativeLibraryDir=/data/app/com.samsung.knox.example.gettingstarted-pt0GAF9z5qJHAmYZIgP9GA==/lib
    primaryCpuAbi=null
    secondaryCpuAbi=null
    versionCode=2 minSdk=22 targetSdk=28
    versionName=2.0
    splits=[base]
    apkSigningVersion=2
    applicationInfo=ApplicationInfo{b9fe70b com.samsung.knox.example.gettingstarted}
    flags=[ DEBUGGABLE HAS_CODE ALLOW_CLEAR_USER_DATA TEST_ONLY ALLOW_BACKUP ]
    privateFlags=[ PRIVATE_FLAG_ACTIVITIES_RESIZE_MODE_RESIZEABLE_VIA_SDK_VERSION PRIVATE_FLAG_REQUEST_LEGACY_EXTERNAL_STORAGE ]
    dataDir=/data/user/0/com.samsung.knox.example.gettingstarted
    supportsScreens=[small, medium, large, xlarge, resizeable, anyDensity]
    timeStamp=2021-01-27 16:14:56
    firstInstallTime=2021-01-27 16:14:57
    lastUpdateTime=2021-01-27 16:14:57
    signatures=PackageSignatures{8fce9e8 version:2, signatures:[303fc823], past signatures:[]}
    installPermissionsFixed=true
    pkgFlags=[ DEBUGGABLE HAS_CODE ALLOW_CLEAR_USER_DATA TEST_ONLY ALLOW_BACKUP ]
    declared permissions:
      com.example.supportlibclient.SUPPORT_PERMISSION: prot=signature, INSTALLED
    requested permissions:
      com.samsung.android.knox.permission.KNOX_HW_CONTROL
      com.samsung.android.knox.permission.KNOX_TIMA_KEYSTORE
      com.example.supportlibclient.SUPPORT_PERMISSION
    install permissions:
      android.permission.sec.MDM_REMOTE_CONTROL: granted=true
      com.samsung.android.knox.permission.KNOX_ROAMING: granted=true
      com.example.supportlibclient.SUPPORT_PERMISSION: granted=true
      android.permission.sec.ENTERPRISE_DEVICE_ADMIN: granted=true
      com.samsung.android.knox.permission.KNOX_BROWSER_SETTINGS: granted=true
      com.samsung.android.knox.permission.KNOX_GLOBALPROXY: granted=true
      com.samsung.android.knox.permission.KNOX_DATE_TIME: granted=true
      com.sec.enterprise.permission.MDM_SPDCONTROL: granted=true
      com.samsung.android.knox.permission.KNOX_DUAL_SIM: granted=true
      android.permission.sec.MDM_LICENSE_LOG: granted=true
      com.samsung.android.knox.permission.KNOX_LICENSE_LOG: granted=true
      com.sec.enterprise.knox.permission.KNOX_DEACTIVATE_LICENSE: granted=true
      com.samsung.android.knox.permission.KNOX_LOCATION: granted=true
      android.permission.sec.MDM_EMAIL: granted=true
      com.samsung.android.knox.permission.KNOX_EXCHANGE: granted=true
      android.permission.sec.MDM_LOCKSCREEN: granted=true
      android.permission.sec.MDM_APP_PERMISSION_MGMT: granted=true
      com.samsung.android.knox.permission.KNOX_HW_CONTROL: granted=true
      .....
반응형