본문 바로가기
  • Tried. Failed. Logged.
728x90

ADB6

안드로이드 - ADB 사용자 마지막 위치 가져오기 명령어 adb shell dumpsys location > dumpsys.txt 편집기에서 Ctrl + F(페이지 찾기) > "last location=Location[network " 검색 > 마지막 위치(위도, 경도) 추출 출처: https://android.stackexchange.com/questions/85279/a-way-to-get-location-coordinates-from-command-line A way to get location coordinates from command line I'm looking for a command line, or a series of commands that can dump or list the latitude and longitude on a roo.. 2023. 9. 1.
안드로이드 - adb로 앱 실행 시키기 ex) 카카오톡 실행 명령어 adb shell am start com.kakao.talk 앱의 패키지명 찾는 방법 구글 플레이스토어에 앱 이름을 검색해서 공유 버튼을 눌러 URL 주소를 확인하면 앱의 패키지명이 나온다(com.kakao.talk) 참고: https://colalove5562.tistory.com/31 [Android] 어플 패키지명 확인하는 방법 안드로이드 어플의 패키지명 확인하기 : 패키지명(Package name) 이란? 안드로이드 앱 각각의 고유한 이름이라고 할 수 있습니다. 사용자에게 직접적으로 보이지는 않지만, 이 이름은 중복될 수 없 colalove5562.tistory.com 출처 https://stackoverflow.com/questions/4567904/how-to-st.. 2023. 1. 15.
안드로이드 - adb 터치&스와이프(스크롤) 이벤트 터치 adb shell input tap 500 500 스와이프(스크롤) adb shell input swipe 500 500 100 1000 100 # adb shell input swipe xSource, ySource, xDestination, yDestination, Duration(ms) 뒤로가기 input keyevent 4 //혹은 input keyevent 187 자세한 터치 x, y 좌표를 얻고 싶다면 개발자 옵션에서 입력 메뉴에 "포인터 위치" 옵션을 켜주면 된다. 출처: https://code-clipping.tistory.com/4 안드로이드 터치 이벤트 (adb shell input tap) adb shell input tap 500 500 Command: adb shell inp.. 2023. 1. 14.
안드로이드 - adb 무선 디버깅 연결 pair 연결 방법 페어링 코드로 기기 페어링 adb pair [아이피]:[포트] [Wi-Fi 페어링 코드 번호 입력] IP 주소 및 포트 adb connect [아이피]:[포트] 기존 무선 연결 방법 1. 휴대폰을 PC에 USB 연결 2. 명령어 입력 adb tcpip 5555 adb connect [IP주소]:5555 3. USB 연결 해제후 사용 # 만약 devices에서 offline으로 나오는 경우 "adb kill-server" 실행 출처: https://kwonkyo.tistory.com/515 ADB(Android Debug Bridge) 연결하기 (무선 & 유선) 안드로이드 디바이스를 사용하면서 조금 특이한 뭔가를 해야 할 때 "ADB"를 어쩌고 저쩌고 한다는 그런 설명을 보신 적 있으실.. 2022. 9. 28.
안드로이드 - adb 앱 실행, 앱 리스트 불러오기 명령어 앱 실행 adb shell am start com.android.chrome 앱 리스트 불러오기 adb shell pm list packages -f 2022. 9. 28.
셀레니움 - 안드로이드 모바일 크롬 조작 디바이스가 한 개인 경우 # -*- coding: utf-8 -*- from selenium import webdriver import time options = webdriver.ChromeOptions() options.add_experimental_option('androidPackage', 'com.android.chrome') driver = webdriver.Chrome(options=options) driver.implicitly_wait(15) driver.get('https://www.naver.com') time.sleep(1) print(driver.current_url) driver.execute_script('alert(1)') 나중에 알게된 사실인데 driver = webdriv.. 2022. 4. 9.
728x90