• Stars
    star
    116
  • Rank 302,139 (Top 6 %)
  • Language
  • Created over 10 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Android Command Note

Android Command Note

Logcat

adb logcat -v time

adb logcat -v time -b main

adb logcat -v time -b system

adb logcat -v time -b events

adb logcat -v time -b radio

adb shell logcat -b all

adb logcat -B

Android 6.0〜

adb shell logcat -v color

Android 7.0〜

adb logcat -e android

adb logcat -m 100

log

adb shell log [message]

adb shell log -t [tag name] [message]

adb shell log -p [log level] [message]

Bugreport

adb bugreport

Bugreportz

adb shell bugreportz

Application

adb install [Apk File]

adb uninstall [Package Name]

pm - PackageManager

adb shell pm list packages

adb shell pm list packages -e

adb shell pm list packages -d

adb shell pm list packages -s

adb shell pm list packages -3

adb shell pm path [Package Name]

adb shell pm clear [Package Name]

dumpsys

adb shell dumpsys

adb shell dumpsys -l

adb shell dumpsys [system service]

adb shell dumpsys service [service name]

adb shell dumpsys activity activities

adb shell dumpsys activity top

adb shell dumpsys activity all

adb shell dumpsys activity provider

adb shell dumpsys activity provider all

adb shell dumpsys gfxinfo

adb shell dumpsys jobscheduler

adb shell dumpsys netpolicy

adb shell dumpsys alarm

adb shell dumpsys dbinfo

adb shell dumpsys dbinfo [Package Name]

run-as

adb shell run-as [Package Name]

Root

adb root

Input Text

adb shell input text [string]

Input Key Event

adb shell input keyevent [event key]

adb shell input keyevent KEYCODE_HOME

adb shell input keyevent KEYCODE_BACK

adb shell input keyevent KEYCODE_MENU

am

adb shell am start -a android.intent.action.VIEW -d [DATA_URI]

adb shell am start -a android.settings.WEBVIEW_SETTINGS

adb shell am broadcast -a [Intent]

adb shell am hang

アプリケーションのデータとキャッシュを残したままアンインストールする

adb shell cmd package uninstall -k [Package Name]

System properties

adb shell getprop

adb shell getprop [property name]

adb shell setprop [property name] [property value]

screenrecord

adb shell screenrecord /sdcard/test.mp4

adb shell screenrecord --size 720x1080 /sdcard/test.mp4

adb shell screenrecord --bit-rate 10000000 /sdcard/test.mp4

adb shell screenrecord --time-limit 120 /sdcard/test.mp4

adb shell screenrecord --bugreport /sdcard/test.mp4

"unofficial" options

adb shell screenrecord --rotate /sdcard/test.mp4

adb shell screenrecord --output-format raw-frames /sdcard/test

screenrecordの"unofficial" optionsは夢がいっぱいだった

Date

adb shell date -s YYYYMMDD.hhmmss

YYYYMMDD:年月日 hhmmss:時分秒

要Root

【Android】adb shell date は System User or radio Groupじゃないと反映されない

Windows

adb shell date -s %date:~0,4%%date:~5,2%%date:~8,2%.%time:~0,2%%time:~3,2%%time:~6,2%

Linux or Mac

adb shell date -s $(date +"%Y%m%d.%H%M%S")

Dropbox

adb shell dumpsys dropbox

adb shell dumpsys dropbox --print

adb shell dumpsys dropbox --file

Lint

lint [application directory] --html [file name].html

lint [application directory] --simplehtml [file name].html

Windows

lint [application directory] --fullpath --quiet --html lint_%date:~0,4%%date:~5,2%%date:~8,2%-%time:~0,2%%time:~3,2%%time:~6,2%.html

Linux or Mac

lint [application directory] --fullpath --quiet --html lint_$(date +"%Y%m%d-%H%M%S").html

Kernal

adb shell dmesg

adb shell cat /proc/kmsg

Permission

adb shell pm list permissions -d -g

adb shell pm grant [permission.name] ...

adb shell pm revoke [permission.name] ...

システム設定アプリで特定のアプリの設定画面を開く

shell am start -a android.settings.APPLICATION_DETAILS_SETTINGS -d package:[Package Name]

Example

shell am start -a android.settings.APPLICATION_DETAILS_SETTINGS -d package:com.android.chrome

dumpsys activity activitiesとpecoでゴニョゴニョして端末からapkを簡単に引っこ抜く

adb shell dumpsys activity activities | grep apk | sed -e 's/ *baseDir=//g' | peco | xargs adb pull

http://qiita.com/operandoOS/items/6fa77037560e52d11352

Other

adb shell printenv

adb reboot

adb shell reboot recovery

adb pull [Unit Path] [Local Path]

adb push [File Path] [Unit Path]

adb jdwp

More Repositories

1

DroidKaigi

DroidKaigiの資料もろもろ
74
star
2

tonkotsu

Google Play Application & App Store Application & Kindle Store Application Update Checker in Go
Go
57
star
3

Garum

Annotation style SharedPreferences
Java
50
star
4

Android-Studio-Sample-Projects

Android Studio Sample Projects
Java
42
star
5

Notes

Notes
19
star
6

google_play_update_checker

[Deprecated] Google Play Application & App Store Application Update Checker in Go
Go
13
star
7

advertising_id

A Flutter plugin to access advertising ID.
Kotlin
13
star
8

english

12
star
9

JobScheduler-Code-Reading

JobScheduler Code Reading
11
star
10

Meteorite

(alpha) This library provides the ability to upload a screenshot of your app to Slack.
Java
11
star
11

EspressoSpoonSample

Espresso + Spoon Sample
Java
10
star
12

Meteoroid

Uploading files to Slack. Simple Java Library.
Java
9
star
13

Guild

Simple java and kotlin tuples.
Java
9
star
14

android-debug-menu-sample

Android debug menu sample
Java
8
star
15

Andorid-M-App-Permissions

Andorid M App Permissions
Java
7
star
16

React-Native-Sample

React Native Sample
JavaScript
7
star
17

NavigationViewActionsSample

Espresso NavigationViewActions Sample
Java
7
star
18

AndroidDangerSample

Android Danger Sample
Java
7
star
19

AsyncLayoutInflater-Sample

AsyncLayoutInflater Sample
Java
7
star
20

Google-Play-Install-Referrer-API-Sample

Google Play Install Referrer API Sample
Kotlin
6
star
21

gradle-zundokokiyoshi-plugin

gradle zundokokiyoshi plugin
Groovy
6
star
22

golack

Simple Incoming Webhooks in Go
Go
5
star
23

miyo

Convert slack thread to crowi page.
Go
5
star
24

Neko-Atsume-Launcher

Android N EasterEgg Neko Atsume Launcher
Java
4
star
25

FirebaseRemoteConfigUpdateNotice

Implement application update notice with Firebase Remote Config
Java
4
star
26

TwitterClient

TwitterClient
Java
3
star
27

Meteor

(alpha) This library provides the ability to take a screenshot of your app from the notification.
Java
3
star
28

RxJavaPlayground

RxJava Playground
Java
3
star
29

TakoSan

TakoSan - Android O EasterEgg Ocquarium Launcher 🐙
Kotlin
3
star
30

OpenDroid

Chrome Extension - Open another version of Android OpenGrok
HTML
3
star
31

JSON-RPC-OkHttp-Logging-Interceptor

JSON-RPC OkHttp Logging Interceptor
Java
2
star
32

TextInputLayout-Password-Visibility-Toggle-Sample

TextInputLayout Password Visibility Toggle Sample
Java
2
star
33

gummi

gummi - JSON-RPC 2.0 Client Library
Java
2
star
34

M-Preview-Sample

Android M Preview Sample
Java
2
star
35

Data-Saver-Sample

Android N Data Saver Sample
Java
2
star
36

Architecture-Components-Playground

Architecture Components Playground
Java
2
star
37

gradle-twitter-plugin

Groovy
2
star
38

slack-deno-reaction-ranking

自身がSlackで使ったリアクション上位 20位のランキングを出してくれるBot
TypeScript
2
star
39

Android-P-Restrictions-on-non-SDK-interfaces-Sample

Android P Restrictions on non-SDK interfaces Sample https://developer.android.com/preview/restrictions-non-sdk-interfaces
Kotlin
2
star
40

danger-homete

danger-homete
Ruby
2
star
41

chrome-custom-tabs-starterkit

Chrome custom tabs starterkit
Java
1
star
42

AndroidGradleCiSample

Android Gradle Ci Sample
Java
1
star
43

gopen-grok

GopenGrok
Go
1
star
44

Google-App-Script-with-TypeScript

Google App Script with TypeScript
TypeScript
1
star
45

Intent-FLAG_ACTIVITY_FORWARD_RESULT-Sample

Intent.FLAG_ACTIVITY_FORWARD_RESULT Sample
Java
1
star
46

Android-N-Memo

Android N Memo
1
star
47

MyAndroidTemplate

Java
1
star
48

OS-Event

OS Event
Ruby
1
star
49

Android-Sushi

Android Sushi🍣
Java
1
star
50

Dagger2Playground

Dagger2 Playground
Java
1
star
51

Try-Android-N-The-JSON1-Extension

Try Android N The JSON1 Extension
Java
1
star
52

gson-playground

gson playground
Java
1
star
53

Moo

android simple logging library
Java
1
star
54

zenzen

zenzen
Dart
1
star
55

flutter_plugin_sample

flutter plugin sample
Ruby
1
star
56

JobScheduler-Sample

JobScheduler Sample
Java
1
star
57

PagerViewSample

UIPageViewController Sample
Swift
1
star
58

Auto-reset-permissions

Android Auto-reset permissions
Kotlin
1
star
59

send_fultter_error_to_slack

send fultter error to slack sample
Dart
1
star
60

Application-Interoperability-Sample

Application Interoperability Sample
Java
1
star
61

dart-test-CircleCI-timing-data

CircleCIでtiming dataに基づいたテスト分割をDartで利用できるようにするサンプルプロジェクト
Dart
1
star