DIGITory/Android2014. 4. 16. 13:56

* Android(Nexus) 에서 Chrome Remote Inspector 사용하기


https://developers.google.com/chrome-developer-tools/docs/remote-debugging#remote-debugging-overview


1. ADB 연결 가능한 환경을 만든다.

- USB debugging 활성화 등등....

2. Target Device 와 USB로 연결한 상태에서 PC의 chrome browser 실행

3. about:inspect 로 진입

- "chrome://inspect/#devices" 뭐 이런 페이지로 리다이렉션 될거임.

4. 'Discover USB devices'에 체크하고 나면... 아래 연결된 devices 목록에 연결된 기기가 뜸.

5. Target Device 에 뜬 허가 팝업에서 Yes 선택

6. 이 상태에서 Target Device의 크롬을 실행하면 PC Chrome 화면에 Target Device의 tab 상황이 보임

7. Inspect!!!

Posted by Joe.C
DIGITory/Android2014. 4. 8. 08:56

Nexus 5........ -_-; 내가 왜 이걸 하고 있지;;

간단한 링크부터 공유 "http://schier.co/post/how-to-root-nexus-5-in-ubuntu-linux"

이거 보면 아래 글 필요 없을지도....


1. 새 바이너리 설치하기

A. 바이너리 다운로드

'https://developers.google.com/android/nexus/images'  여기 가면 다운로드 받을 수 있다.

일단 요놈...  '4.4.2 (KOT49H)' 을 다운로드.

B. fastboot 설치

리눅스에서는 fastboot를 설치해 줘야함.  'sudo apt-get install android-tools-fastboot'

혹은 이렇게도 된단다 'sudo apt-get install android-tools*' 

참고로 'If you installed the Android SDK, this will usually be located in <path to SDK>\sdk\platform-tools\fastboot.exe'

출처:  'http://wiki.cyanogenmod.org/w/Doc:_fastboot_intro'

C. 바이너리 flashing 하기

폰을 fastboot mode로 만든다. "볼륨 아래 키 + 전원 키"

USB로 PC와 연결하고 A에서 다운로드 받은 파일의 압축을 풀면 'flash-all.sh' 이라는 파일을 볼 수 있음.

그냥 쉘에서 실행만 해주면 flashing 시작됨.


2. Rooting 하기

A. ADB 연결하기

대체 developer menu를 찾을 수가 없다.  아.. 편하게 되는게 없다. 평생 구글링 할 운명인가.....

아래의 순서로 USB debugging mode를 enable하고 adb 를 사용할 수 있다.

Go to settings on your phone

Go to "About Phone"

Tap "Built Number" a bunch of times (7 times?)

Go back

Go to "Developer Options"

Check "USB Debugging"

Click "OK"


B. 부트로더 상태로 만들기

'adb reboot bootloader' 하면 되는가 보다.. 이게 더 편한듯...

뭐 그냥 껐다가 볼륨 down 키 + 전원 키.. 로 해도 된다.

C. 루팅 파일 다운로드

아래 링크에서 파일 다운로드

http://download.chainfire.eu/363/CF-Root/CF-Auto-Root/CF-Auto-Root-hammerhead-hammerhead-nexus5.zip

D. Flashing

다운로드 받은 파일의 압축을 풀면 'root-linux.sh' 파일을 볼 수 있다. 

(물론 플랫폼 별로 실행파일이 다 따로 있음)

Device를 Boot loader 상태로 진입 후 PC와 연결 한 다음 실행. 

Fail 어쩌구 뜨기도 하고 빨간 안드로이드 로고가 나왔다 사라지지만 어쨌든 자동으로 재부팅 됨.

재부팅된 다음에도 뭔가 이상하긴 했지만 한 번 껐다 켜니 자동으로 Super SU 앱이 깔린다.

거기서 마구마구 rooting 권한 설정.

adb shell로 들어간 후 su 치면 폰에서 허가하겠냐는 팝업이 뜬다. 루팅 완료.


3. 파일 실행시키기

A. 안드로이드에서 파일 실행시키기

맨날 까먹는거라서 여기 써놓음.;;;;;

따로 빌드한 실행파일을 안드로이드에서 실행할 때 맨날 권한이 안된단다..

이게 뭐 루팅이나 이런 문제가 아니라.. 디렉토리 별로 실행이 안되고, 되고... 함.

결론적으로 /data/local/ 에 push 하고 실행하면 됨.

이걸 맨날 까먹어서 한참 찾는다 -_-;;; 





Posted by Joe.C
DIGITory/Android2013. 11. 11. 17:44

The status of devices always are 'offline' in adb like below

------------------------------------------------------------------

List of devices attached 

XXXXXXXXXXXXXX offline

------------------------------------------------------------------

There are something to try to fix it.

1. reboot devices and PC.

2. do.
adb kill-server
adb start-server

3. If your adb's version is 1.0.29, update it. over 1.0.31


Posted by Joe.C
DIGITory/Android2013. 7. 17. 20:05



1. creating a file.

sudo vi /etc/udev/rules.d/51-android.rules

2. enter this to the file

SUBSYSTEMS=="usb", ATTRS{idVendor}=="19d2", MODE="0666", GROUP="plugdev"


the 'idVendor' value is in this page "http://developer.android.com/tools/device.html#VendorIds"

19d2 is for ZTE.


Posted by Joe.C
DIGITory/Android2012. 10. 8. 16:20
adb devices에 '???????????? no permissions" 라고만 나올 때.......... 출처 : "http://truthseekernz.blogspot.kr/2009/11/ubuntu-910-and-adt-094-tangle.html" 10d) In Ubuntu, create a new rules file for these vendor:device IDs. Type this command to create the file. $ sudo gedit /etc/udev/rules.d/51-android.rules Add the following blue lines (rules) to it and save the file. If your lsusb command reports other, newer product IDs for vendor 0bb4, add them also to the file. SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c01", MODE="0666" SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c02", MODE="0666" If this helps anyone, please let me know in the comments.]
Posted by Joe.C
DIGITory/Android2012. 6. 21. 18:20

참고 : http://blog.naver.com/metzenbaum1?Redirect=Log&logNo=30138517275


Google과 Calendar 연동 시 Jorte.. 혹은 기본 캘린더에서도  한 달? 두 달만 동기화 되는 경우.


그냥 Google calendar가서 내보내기 했다가 다시 가져오기 하고 나서 동기화 하면 됨...


왜 이런지는 모름;;;;

Posted by Joe.C