안드로이드 13으로 버전업 되면서 크롬의 base url 입력 실행 adb 명령 오류 발생 시(Error type 3Error)
최근 안드로이드 13으로 버전 업그레이드가 되면서 이전에 작업해두었던 명령어 등이 실행이 안되는 현상이 발생했다. 그 중에 하나로 아래의 명령어가 에러가 나는 것이었다.
adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main -a android.intent.action.VIEW -d www.naver.com
그동안 문제 없이 사용했었던 내용이기에 큰 문제를 모르고 있었으나 이 내용은 기존에 이미 변경되었어야하는 것이었다. 이래서 변경 관련 내용을 숙지해야하나보다. 아래 링크를 참고하여 명령어를 수정하였더니 문제 없이 실행되었다. 여기서 중요한 포인트는 Main 에서 IntentDispatcher 로 변경해야 하며 -d 옵션의 url 에 반드시 http:// 나 https:// 를 붙여야 하는 것이었다.
adb shell am start -n com.android.chrome/com.google.android.apps.chrome.IntentDispatcher -a android.intent.action.VIEW -d https://www.naver.com
참고 : https://automationchronicles.com/error-when-opening-chrome-on-android-13-via-adb/
Error when opening Chrome on Android 13 via adb - Test Automation Chronicles
Recently I’ve started adapting our test framework for new Android release, and encountered an unexpected error when opening Chrome on Android 13 via adb. Since solving this issue required some investigation and a knowledge of Android development, I’ve
automationchronicles.com
아무튼 이런 기록을 남겨두는 습관을 기르도록 해야겠다.
'개발자의삶 > Android' 카테고리의 다른 글
Springboot+JAVA+Webflux+R2DBC 의 db별 성능 비교 (0) | 2024.04.24 |
---|---|
Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported. 를 만났을 때.. 그 외 에러 발생 시.. (0) | 2024.04.15 |
댓글