Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

filipebatista/gdgporto-meetup-adb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

GDG Porto Android Sessions

Meetup #4 - ADB (Android Debug Bridge) - how can it help you

Summary of the adb commands used in the talk:


List attached devices

adb devices

Install APK's

adb install [-r] apk_to_install

Uninstall APK’s

adb uninstall package

List installed applications

All applications
adb shell pm list packages
Third party applications
adb shell pm list packages -3
Installed system applications with installer name
adb shell pm list packages -s -i

Get APK file path

Method #1
adb shell pm list packages -f
Method #2
adb shell pm path package

Pull an APK

adb pull remote_path  local_path

dumpsys

All Services
adb shell dumpsys
Activity top
adb shell dumpsys activity top

Find receivers by Intent Action

adb shell cmd package query-receivers [--brief] –a intent_action

Send broadcast Intent

adb shell am broadcast –a intent_action [--es] extra_key  extra_string_value  –p package
Example with demo_app
adb shell am broadcast -p com.filipebaptista.gdgportomeetup -a com.filipebaptista.gdgportomeetup.ACTION_HELLO 
adb shell am broadcast -p com.filipebaptista.gdgportomeetup -a com.filipebaptista.gdgportomeetup.ACTION_HELLO_WITH_EXTRA \
\ --es extra_name Filipe

See scheduled alarms

adb shell dumpsys alarm

About

GDG Porto Android Session Meetup #4 - ADB (Android Debug Bridge) - how can it help you

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages