안드로이드 APK 파일의 패키지명, 버전 정보, 퍼미션 정보 등을 <SDK_PATH>/build_tools 폴더에 있는 aapt를 통하여 확인 할 수 있습니다. 먼저, <SDK_PATH>/build_tools/<VERSION>/ 폴더를 환경변수 path에 등록하여 줍니다. 그리고 명령 프롬프트(실행->cmd)를 실행하여 아래 명령어를 통하여 필요한 정보를 확인 합니다.
1 | aapt dump badging <FILE_NAME.apk> |
안드로이드 APK 파일의 패키지명, 버전 정보, 퍼미션 정보 등을 <SDK_PATH>/build_tools 폴더에 있는 aapt를 통하여 확인 할 수 있습니다. 먼저, <SDK_PATH>/build_tools/<VERSION>/ 폴더를 환경변수 path에 등록하여 줍니다. 그리고 명령 프롬프트(실행->cmd)를 실행하여 아래 명령어를 통하여 필요한 정보를 확인 합니다.
1 | aapt dump badging <FILE_NAME.apk> |
NAS나 홈서버에서 토렌트 클라이언트로 Transmission을 많이 사용하는데 Pushbullet을 이용하여서 다운로드 완료 알림을 스마트폰(안드로이드, 아이폰)이나 크롬 등에서 받아 볼 수 있습니다. 작업환경은 우분투 14.04 입니다. 첫째, Pushbullet 가입 후 Account Settings에서 Access Token을 기록하여 둡니다. 둘째, Shell Script를 작성하여 줍니다.
1 | vi ~/transmission-notification.sh |
1 2 3 4 5 6 7 8 9 10 11 12 | #!/bin/bash # pushbullet access token token="[첫째 과정에서 얻은 ACCESS TOKEN]" # push transmission notification to a pushbullet pushNotification() { curl -u $token: https://api.pushbullet.com/v2/pushes -d type=note -d title="Transmission" -d body="$TR_TORRENT_NAME download completed ($TR_TIME_LOCALTIME)" --insecure } # call function pushNotification |
1 | chmod a+x ~/transmission-notification.sh |
셋째, Transmission 설정을 변경하여 줍니다.
1 2 | sudo service transmission-daemon stop sudo vi /etc/transmission-daemon/settings.json |
1 2 | "script-torrent-done-enabled": true, "script-torrent-done-filename": "/home/[USER_NAME]/transmission-notification.sh", |
1 | sudo service transmission-daemon start |
참조: http://geserkhan.blogspot.kr/2014/08/transmission.html
aapt dump badging <filename.apk> 명령 프롬프트(시작-실행-cmd)에서 위 명령어를 통하여서 APK 파일의 패키지명, 버전코드, 버전네임, sdk버전, 타켓sdk버전, 퍼미션 정보 등을 확인 할 수 있다.
Play Store에 앱을 등록하기 위해서 Sign 작업 후 zipalign 작업이 필요하다. 먼저 Sign 후 생성된 apk를 준비한다. (http://tetjjang.tistory.com/342, http://tetjjang.tistory.com/344) 그리고 명령프롬프트(시작-실행-cmd)에서 아래 명령어 통해 해당 작업을 한다. zipalign -f -v 4 input.apk output.apk -f : output.apk 파일이 존재한다면 덮어쓰기 -v : zipalign 과정 정보 출력 4 : 바이트 정렬 계수를 정의 (단위 byte)
명령 프롬프트(시작메뉴-실행-cmd 입력)를 열어서 아래 명령어를 입력한다. adb shell am broadcast –a android.intent.action.BOOT_COMPLETED 개발 중인 앱에만 보낼 경우 adb shell am broadcast –a android.intent.action.BOOT_COMPLETED –n your.app.packagename/.YourReceiverClassName 출처: http://stackoverflow.com/questions/8497885/start-android-application-without-activity?answertab=votes#tab-top