반응형
반응형
반응형
반응형
반응형

android:exported

이 요소는 어플리케이션 구성요소요서 다른 앱이 Activity에서 시작할 수 있는지 나타납니다.

- exported="true" 인 경우에는 모든 앱에서 위와 같이 설정된 Activity에 접근할 수 있습니다. 정확한 클래스명만 입력하여 호출하면 해당 Activity를 호출할 수 있습니다. 따라서 해당 설정은 주로 Deep Link를 통해 다른 앱과 연결이 되는 Activity에서 주로 설정을 합니다. Android Build 시 TargetSDK Version을 31로 변경할 경우 해당 설정값은 명시적으로 설정을 해야만 합니다. 이는 변경된 Android 보안 정책이며, 변경하지 않을 경우 아래와 같은 Build Error가 발생합니다.

needs to be explicitly specified for element <activity#.MainActivity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. app main manifest (this file), line 64 

- exproted="false" 의 Activity는 모든 앱에서 호출을 할 수 없으며 같은 어플리케이션의 구성요소나 사용자 ID가 같은 어플리케이션,  권한이 있는 시스템 구성요소 이외에는 호출이 되지 않습니다. 따라서 이는 Intent-Filter가 없는 Activity의 기본 설정 값입니다.

 

반응형
반응형
반응형
반응형
반응형

+ Recent posts