본문 바로가기
프로그래밍 놀이터/안드로이드, Java

[android] Safe Browsing 에 대해 알아보자.

by 돼지왕 왕돼지 2023. 1. 7.
반응형

 

-

Google Play Protect 가 Safe Browsing 이 기본으로 탑재된 WebView 를 제공한다.

2018년 4월부터이며, 이는 WebView 66 부터이다.

WebView 의 Safe Browsing 은 Android 8.0 (API 26, OOS) 부터 Chrome on Android 기술을 통해 가능하다.

 

-

개발자들이 Safe Browsing 의 이득을 얻기 위해 추가로 해줘야 할 건 없다.

Safe Browsing 이 trigger 되면 app 은 warning 과 함께 network error 를 받는다.

 

API 27 (O MR1) 이상부터는 Safe Browsing API 들을 사용해서 이를 customize 할 수 있다.

 

-

https://developer.android.com/reference/android/webkit/WebView

Safe browsing 을 disable 시킬 수도 있다. (SafeBrowsing 이라는 명칭을 가진 함수들이 추가되었다.)

 

-

Reference : https://android-developers.googleblog.com/2018/04/protecting-webview-with-safe-browsing.html

 

Protecting WebView with Safe Browsing

Today, we’re announcing that Google Play Protect is bringing Safe Browsing to WebView by default, starting in April 2018 with the release of WebView 66. Developers of Android apps using WebView no longer have to make any changes to benefit from this prot

android-developers.googleblog.com

 

 

반응형

댓글