{"id":20769101,"url":"https://github.com/balsikandar/adb-commands","last_synced_at":"2025-06-15T03:02:34.261Z","repository":{"id":50217705,"uuid":"211917283","full_name":"balsikandar/ADB-Commands","owner":"balsikandar","description":"This Repo leverages all the things we can do with ADB commands. ","archived":false,"fork":false,"pushed_at":"2021-06-01T18:45:28.000Z","size":32,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-04-30T12:21:14.131Z","etag":null,"topics":["adb","adb-commands","android","broadcasting","intent"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/balsikandar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-30T17:35:24.000Z","updated_at":"2024-12-31T03:58:03.000Z","dependencies_parsed_at":"2022-09-24T08:40:35.528Z","dependency_job_id":null,"html_url":"https://github.com/balsikandar/ADB-Commands","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/balsikandar/ADB-Commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balsikandar%2FADB-Commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balsikandar%2FADB-Commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balsikandar%2FADB-Commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balsikandar%2FADB-Commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balsikandar","download_url":"https://codeload.github.com/balsikandar/ADB-Commands/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balsikandar%2FADB-Commands/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259914868,"owners_count":22931323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adb","adb-commands","android","broadcasting","intent"],"created_at":"2024-11-17T11:42:24.198Z","updated_at":"2025-06-15T03:02:34.237Z","avatar_url":"https://github.com/balsikandar.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Most useful ADB commands\nThis Repo contains a list of most useful everyday ADB commands. \n\n### ADB Pull and Push files from Device to PC\n\nFirst check all the connected devices using\n```\nadb devices\n```\n\nIf multiple devices are connected check below image then use command with device id\n\n\u003cimg src = https://github.com/balsikandar/ADB-Commands/blob/master/assets/devices-list.png\u003e\n\nRun schell script with Device Id\n```\nadb -s RZ8M60W2LCH shell\n```\n\nSince we're connected to device now we can browse code using commands like **ls, pwd, cd**\n```\n$ ls\n\n$ cd sdcard/ \n```\n\nFinally once you find the file you want to pull just use pull command\n```\ne.g: adb pull /sdcard/screenshots/screen.png \n```\n\n### ADB am (Activity Manager)\nActivity Manager *(am)* can be used to stuffs like broadcasting intent to start an activity or making calls etc...\n\n#### Making a call\n```\nadb shell am start -a android.intent.action.CALL -d tel:88******97\n```\n\n#### Open Google Map\n```\nadb shell am start -a android.intent.action.VIEW -d 'geo:28.65381,77.22897'\n```\n\n#### Broadcasting an Intent\n```\nadb shell am broadcast android.net.conn.CONNECTIVITY_CHANGE\n```\n\n### ADB Screen Record\nRecord video while testing or debugging your app.\n\n#### Record screen video on device\n```\nadb shell screenrecord /path-on-device/recording.mp4\n```\n\n#### We can set *time-limit* for minimum recording time\n```\nadb shell screenrecord /sdcard/recording.mp4 --time-limit 20\n```\n\n#### To check all the available options\n```\nadb shell screenrecord --help\n```\n\n### ADB pm (Package Manager)\nPackage Manager can be used to do things like clear app data, uninstall an app, restart an app all these things at package level\n\n#### ADB command to clear app data\n```\nadb shell pm clear packageName\n```\n\n#### ADB command to install an apk\n```\nadb install path/your_app.apk\n```\n\n#### ADB command to update a release apk\n```\nadb install -r path/release.apk\n```\n\n#### ADB command to uninstall an apk\n```\nadb uninstall packageName\n```\n\n\n### License\n\n   ```\n   Copyright (C) 2016 Bal Sikandar\n   Copyright (C) 2011 Android Open Source Project\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalsikandar%2Fadb-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalsikandar%2Fadb-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalsikandar%2Fadb-commands/lists"}