Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Androidフォンでカメラを使用する権限を持つすべてのアプリケーションを一覧表示する方法を教えてください。
「カメラにアクセスできる」とはどういう意味か正確にはわかりません。
を使用PackageManagerして、インストールされているすべてのパッケージを反復処理できますgetInstalledPackages()。そこから、取得したオブジェクトのフィールドをCAMERA介して、どのオブジェクトが権限を持っているかを確認できます。requestedPermissionsPackageInfogetInstalledPackages()
PackageManager
getInstalledPackages()
CAMERA
requestedPermissions
PackageInfo