다음을 통해 공유


Intent.UriAllowUnsafe 필드

정의

주의

This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.

사용할 #toUri 플래그 및 #parseUri: 안전하지 않은 정보의 구문 분석을 허용합니다.

[Android.Runtime.Register("URI_ALLOW_UNSAFE", ApiSince=22)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.", true)]
public const Android.Content.IntentUriType UriAllowUnsafe = 4;
[<Android.Runtime.Register("URI_ALLOW_UNSAFE", ApiSince=22)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.", true)>]
val mutable UriAllowUnsafe : Android.Content.IntentUriType

필드 값

Value = 4

구현

특성

설명

사용할 #toUri 플래그 및 #parseUri: 안전하지 않은 정보의 구문 분석을 허용합니다. 특히 생성된 의도로 인해 예기치 않은 데이터 액세스가 발생하지 않도록 플래그#FLAG_GRANT_READ_URI_PERMISSION#FLAG_GRANT_WRITE_URI_PERMISSION, 플래그 #FLAG_GRANT_PERSISTABLE_URI_PERMISSION#FLAG_GRANT_PREFIX_URI_PERMISSION 플래그를 설정할 수 없습니다.

구문 분석 중인 URI의 원본을 신뢰하지 않는 경우에도 추가 처리를 수행하여 자신을 보호해야 합니다. 특히 활동을 시작하는 데 사용할 때는 일반적으로 작업을 처리할 수 있는 #CATEGORY_BROWSABLE 활동을 제한하기 위해 추가해야 합니다.

에 대한 android.content.Intent.URI_ALLOW_UNSAFEJava 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상