본문 바로가기
#2 취약점 진단 및 분석 도구 part 1. - 안드로이드 모바일 앱 모의해킹 2.1. ADB 살펴보기 -ADB 는 Android Debug Bridge.안드로이드 에뮬레이터나 PC 에 실제 연결된 장치를 제어하기 위한 안드로이드 디버깅 도구 중 하나이다. -ADB 는 클라이언트, 서버, 데몬의 세 요소를 포함하는 클라이언트-서버 프로그램이다. ADB 클라이언트는 ADB 명령을 입력하는 개발 PC 이다.ADB 서버는 안드로이드 개발 시스템의 백그라운드 프로세서로, 장치의 ADB 데몬 사이의 통신을 관리한다.ADB 데몬은 장치의 백그라운드 프로세서로 동작하는 인스턴스다. -ADB 클라이언트가 시작되면 가장 먼저 ADB 서버 프로세서가 실행 중인지 점검한다.실행 상태가 아니면 서버 프로세스를 구동하며, TCP 5037 포트에 바인드 시키고, 모든 클라이언트는 5037 포트를 통해 AD.. 2020. 11. 18.
[android] 잘 쓰지 않지만 유용한 android library 들 ( Spell Checker,Text Recognizer, TimeLogger, MediaProjection, PDF Creation ) [android] 잘 쓰지 않지만 유용한 android library 들 ( Spell Checker,Text Recognizer, TimeLogger, MediaProjection, PDF Creation ) https://blog.autsoft.hu/discovering-the-android-api-part-1/ Spell Checker -TextServicesManager 를 통해 접근 가능하며, API Level 14 부터 사용 가능하며, API Level 16 부터는 문장에 대해서도 check 가능하다. -TextServicesManager.newSpellCheckerSessionhttps://developer.android.com/reference/android/view/textservice/.. 2018. 3. 14.
[android] Doze 모드와 App standby 모드 + GCM High priority message [android] Doze 모드와 App standby 모드 + GCM High priority message https://developer.android.com/training/monitoring-device-state/doze-standby.html -MOS ( 6.0 ) 부터 등장 Doze 모드 -device 가 unplug 된 상태로 오랜 시간 움직여지지 않으면 screen 이 꺼지고, 이 상태에서 시간이 지나면 Doze(깜빡 잠이 들다, 졸다) 모드에 들어간다. -Doze mode 에서는 device 는 주기적으로 아주 짧은 시간동안 resume 되어 보통의 operation 들을 수행한다.이 resume time 에는 app sync 나 pending operation 을 수행하곤 한다. -.. 2017. 9. 17.
[android] Useful ADB commands [android] Useful ADB commands # Start an activity adb shell am start / # Power Button adb shell input keyevent 26 # Menu Button adb shell input keyevent 82 # Print all installed packages adb shell pm list packages [-f] // -f 옵션이 있으면 apk 위치까지 함께 표시된다. # Logcat filter by tagname adb logcat -s TAG_NAME_1 TAG_NAME_2 # Logcat filter by priority adb logcat "*:E" # Logcat filter by tagname and priority.. 2015. 12. 12.
[android] login test 를 쉽게 하자! [android] login test 를 쉽게 하자! adb 는 신비롭다.현재 focus 를 가지고 있는 edittext 에 adb 로 input 도 가능하다. adb shell input text [typing]adb shell input keyevent 66 // enteradb shell input text [typing] 위의 typing 부분에 각각 id, password 를 넣으면 쉽게 login 테스트를 할 수 있다. batch 파일로 만들어서 로그인 할 때마다 실행하면 손쉽게 로그인 시킬 수 있다. 몰론.. debug 개발시에는 그냥 id, password 를 코드에 상수로 박아도 되지만,이렇게 adb 로 입력할 수 있다는 것을 안다는 것은 다른 곳에도 활용할 수 있어 알아야 할 지식 중 .. 2015. 12. 1.
[android] volley library 에 대해 알아보자! 안드로이드, Volley Library 에 대해 알아보자! Android Volley Libary 의 장점 1. 모든 network request 를 자동으로 스케쥴링한다.2. 보이지 않게 disk, memory caching 을 한다.3. 강력한 request 취소 API 도 제공한다.4. customization 도 쉽게 할 수 있다.5. debugging 과 tracing tool 을 제공한다. 써보고 싶어! library 를 구할 수 있는 주소를 알려줘. git clone https://android.googlesource.com/platform/frameworks/volley 2개의 main class. 1. Request queuerequest 를 dispatch 할 때 사용되는 녀석.보통 s.. 2013. 12. 10.
[android] adb 명령어로 clear data ( 데이타 지우기 ) 안드로이드, adb 명령어로 clear data ( 데이타 지우기 ) 개발을 하다보면 데이터를 날려버리고 테스트 하는 경우가 자주 발생한다.그런데 그 때마다 설정 -> 앱 -> 어플리케이션 선택 -> 데이터 지우기 를 수행하기는 너무 귀찮다. 그래서 찾아보았다. 역시나 adb 로 해결하는 방법이 있었다. adb shell pm clear [packageName] 자 이제 조금 더 즐겁게 개발하자~ adb, adb shell, adb shell pm clear, Android, BAT, bat 파일, batch, batch 파일, clear data, packageName, 데이터 지우기, 설정, 안드로이드, 앱, 어플리케이션 2013. 8. 3.
[android] Strict Mode 에 대해 알아보자. 안드로이드, Strict Mode 에 대해 알아보자. 참조 : http://dev.kthcorp.com/2012/01/31/android-strict-mode-howto/ Strict Mode 가 뭐야? * Main Thread 에서 사용성을 떨어뜨리는 작업들( 대표적으로 IO )을 하지 않도록 개발자에게 Log, 강제 종료, dropbox, dialog, splash 등의 방법으로 알려주는 API 이다. * GingerBread 부터 소개되었다. * IO 작업 중에서도 file, network access 는 특히 위험하다. 그 이유는 android file system ( YAFFS, Yet Another Flash File System ) 의 경우 한 process 가 해당 파일에 접속하면, 다른 .. 2013. 7. 17.
반응형