{"id":1029,"date":"2026-10-26T16:13:12","date_gmt":"2026-10-26T16:13:12","guid":{"rendered":"https:\/\/phonefarm.tech\/?st-import=899668a8753df7dea647bdd1b9ebf1ad"},"modified":"2026-10-27T10:10:51","modified_gmt":"2026-10-27T10:10:51","slug":"api-execute-adb-shell-command","status":"publish","type":"post","link":"https:\/\/phonefarm.tech\/es\/api-execute-adb-shell-command\/","title":{"rendered":"adb_shell: Execute ADB Shell Command"},"content":{"rendered":"<p>Execute shell commands directly on target devices without typing the <code>adb shell<\/code> prefix.<\/p>\n<h2>Request Example<\/h2>\n<pre><code class=\"\\\"language-json\\\"\">{\n  \\\"action\\\": \\\"adb_shell\\\",\n  \\\"devices\\\": \\\"all\\\",\n  \\\"data\\\": {\n    \\\"command\\\": \\\"input keyevent KEYCODE_VOLUME_UP\\\"\n  }\n}<\/code><\/pre>\n<h2>Response Example<\/h2>\n<pre><code class=\"\\\"language-json\\\"\">{\n  \\\"code\\\": 10000,\n  \\\"message\\\": \\\"adb_shell command executed\\\",\n  \\\"data\\\": null\n}<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>Execute shell commands directly on target devices without typing the adb shell prefix. Request Example { \\&#8221;action\\&#8221;: \\&#8221;adb_shell\\&#8221;, \\&#8221;devices\\&#8221;: \\&#8221;all\\&#8221;, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3789,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[72],"tags":[73,115,74],"class_list":["post-1029","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-adb-and-terminal","tag-adb","tag-script","tag-shell"],"_links":{"self":[{"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/posts\/1029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/comments?post=1029"}],"version-history":[{"count":2,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/posts\/1029\/revisions"}],"predecessor-version":[{"id":3896,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/posts\/1029\/revisions\/3896"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/media\/3789"}],"wp:attachment":[{"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/media?parent=1029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/categories?post=1029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/tags?post=1029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}