{"id":2093,"date":"2024-10-31T13:39:18","date_gmt":"2024-10-31T13:39:18","guid":{"rendered":"https:\/\/meghtechnologies.com\/blog\/?p=2093"},"modified":"2025-01-07T07:44:41","modified_gmt":"2025-01-07T07:44:41","slug":"fastboot-mode-commands-with-examples","status":"publish","type":"post","link":"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/","title":{"rendered":"Android Fastboot Mode Commands with Examples"},"content":{"rendered":"\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><tbody><tr><td>Unlock Bootloader:<\/td><td>fastboot oem unlock<\/td><td>(Allows flashing of custom images. Some devices may require additional steps or confirmation.)<\/td><\/tr><tr><td><\/td><td>fastboot flashing unlock<\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Lock Bootloader:<\/td><td>fastboot oem lock<\/td><td><\/td><\/tr><tr><td><\/td><td>fastboot flashing lock<\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Flash Recovery:<\/td><td>fastboot flash recovery &lt;filename&gt;.img<\/td><td>(Replaces the current recovery with a new one, usually a custom recovery like TWRP.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Flash System Image:<\/td><td>fastboot flash system &lt;filename&gt;.img<\/td><td>(Flashes a new system image, often used to install a new OS version or custom ROM.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Reboot Device:<\/td><td>fastboot reboot<\/td><td>(Restarts the device normally.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Reboot to Fastboot:<\/td><td>adb reboot fastboot<\/td><td>(Reboots the device into fastboot mode.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Reboot to Recovery:<\/td><td>fastboot reboot recovery<\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Erase Partition Data:<\/td><td>fastboot erase &lt;partition&gt;<\/td><td>(Clears data from a specific partition, like userdata, cache, etc.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Format Partition:<\/td><td>fastboot format &lt;partition&gt;<\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Check Device Connection:<\/td><td>fastboot devices<\/td><td>(Lists devices connected in fastboot mode.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Get Device Information:<\/td><td>fastboot getvar all<\/td><td>(Displays detailed device information like serial number, hardware info, etc.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Flash Specific Partitions (e.g., Bootloader, Radio):<\/td><td><\/td><td><\/td><\/tr><tr><td>Bootloader:<\/td><td>fastboot flash bootloader &lt;filename&gt;.img<\/td><td><\/td><\/tr><tr><td>Radio (for devices with separate radio firmware):<\/td><td>fastboot flash radio &lt;filename&gt;.img<\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Boot an Image Temporarily (without Flashing):<\/td><td>fastboot boot &lt;filename&gt;.img<\/td><td>(Boots an image without flashing it, useful for testing custom recoveries or kernels.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Set Active Slot (for devices with A\/B Partitions):<\/td><td>fastboot &#8211;set-active=&lt;slot&gt;<\/td><td>(Sets the active partition slot to either a or b.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Flash Multiple Partitions at Once:<\/td><td>fastboot -w update &lt;filename&gt;.zip<\/td><td>(Flashes all partitions listed in a specified update package, typically used for full OTA updates.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Display Variable Information (like current slot or partition layout):<\/td><td>fastboot getvar &lt;variable&gt;<\/td><td>(Examples of &lt;variable&gt;: current-slot, partition-size:&lt;partition&gt;, version-bootloader, version-baseband.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Resize a Partition (for devices that support it):<\/td><td>fastboot resize-partition &lt;partition&gt; &lt;size&gt;<\/td><td>(Resizes a specified partition to a new size. Requires compatible firmware and device support.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Erase Specific User Data (Useful for a Factory Reset):<\/td><td>fastboot -w<\/td><td>(Performs a full wipe of userdata and cache partitions.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Enable\/Disable Verity (used for device integrity checks):<\/td><td><\/td><td><\/td><\/tr><tr><td>To disable:<\/td><td>fastboot disable-verity<\/td><td><\/td><\/tr><tr><td>To enable:<\/td><td>fastboot enable-verity<\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Reboot to Bootloader (Useful if chaining commands):<\/td><td>fastboot reboot bootloader<\/td><td>(Restarts the device back into bootloader mode without fully booting it up.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Flash a Partition with Sparse Images:<\/td><td>fastboot flash &lt;partition&gt; &lt;filename&gt;.img_sparsechunk&lt;N&gt;<\/td><td>(Flashes a sparse image chunk by chunk. Often used with images for Moto and Nexus devices.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Erase Cache Partition:<\/td><td>fastboot erase cache<\/td><td>(Clears the cache partition, sometimes useful for fixing boot issues.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Continue Boot (Use if Boot Process is Paused by Bootloader):<\/td><td>fastboot continue<\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>OEM Commands (Device-Specific):<\/td><td>fastboot oem &lt;command&gt;<\/td><td>(For example, fastboot oem unlock-critical to unlock additional partitions on some devices.)<\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><tr><td>Bootloader Lock Status Check:<\/td><td>fastboot getvar unlocked<\/td><td>(Checks if the bootloader is currently locked or unlocked.)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/meghtechnologies.com\/blog\/custom-android-app-development-company\/\">For More On Android App Development Visit our Page here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unlock Bootloader: fastboot oem unlock (Allows flashing of custom images. Some devices may require additional steps or confirmation.) fastboot flashing unlock Lock Bootloader: fastboot oem lock fastboot flashing lock Flash Recovery: fastboot flash recovery &lt;filename&gt;.img (Replaces the current recovery with a new one, usually a custom recovery like TWRP.) Flash System Image: fastboot flash system [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[808],"class_list":["post-2093","post","type-post","status-publish","format-standard","hentry","category-android-apps","tag-android-apps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Android Fastboot Mode Commands with Examples - Megh Technologies - News &amp; Updates<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Fastboot Mode Commands with Examples - Megh Technologies - News &amp; Updates\" \/>\n<meta property=\"og:description\" content=\"Unlock Bootloader: fastboot oem unlock (Allows flashing of custom images. Some devices may require additional steps or confirmation.) fastboot flashing unlock Lock Bootloader: fastboot oem lock fastboot flashing lock Flash Recovery: fastboot flash recovery &lt;filename&gt;.img (Replaces the current recovery with a new one, usually a custom recovery like TWRP.) Flash System Image: fastboot flash system [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"Megh Technologies - News &amp; Updates\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/p\/Megh-Technologies-100063466556921\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-31T13:39:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-07T07:44:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/meghtechnologies.com\/blog\/wp-content\/uploads\/2024\/03\/Next-Gen-Application-Development.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1380\" \/>\n\t<meta property=\"og:image:height\" content=\"776\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nitin Patel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nitin Patel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android Fastboot Mode Commands with Examples - Megh Technologies - News &amp; Updates","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/","og_locale":"en_US","og_type":"article","og_title":"Android Fastboot Mode Commands with Examples - Megh Technologies - News &amp; Updates","og_description":"Unlock Bootloader: fastboot oem unlock (Allows flashing of custom images. Some devices may require additional steps or confirmation.) fastboot flashing unlock Lock Bootloader: fastboot oem lock fastboot flashing lock Flash Recovery: fastboot flash recovery &lt;filename&gt;.img (Replaces the current recovery with a new one, usually a custom recovery like TWRP.) Flash System Image: fastboot flash system [&hellip;]","og_url":"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/","og_site_name":"Megh Technologies - News &amp; Updates","article_publisher":"https:\/\/www.facebook.com\/p\/Megh-Technologies-100063466556921\/","article_published_time":"2024-10-31T13:39:18+00:00","article_modified_time":"2025-01-07T07:44:41+00:00","og_image":[{"width":1380,"height":776,"url":"https:\/\/meghtechnologies.com\/blog\/wp-content\/uploads\/2024\/03\/Next-Gen-Application-Development.jpg","type":"image\/jpeg"}],"author":"Nitin Patel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nitin Patel","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/#article","isPartOf":{"@id":"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/"},"author":{"name":"Nitin Patel","@id":"https:\/\/meghtechnologies.com\/blog\/#\/schema\/person\/a81f03f495ea08f38ee7e67562e070e2"},"headline":"Android Fastboot Mode Commands with Examples","datePublished":"2024-10-31T13:39:18+00:00","dateModified":"2025-01-07T07:44:41+00:00","mainEntityOfPage":{"@id":"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/"},"wordCount":490,"commentCount":0,"publisher":{"@id":"https:\/\/meghtechnologies.com\/blog\/#organization"},"keywords":["Android Apps"],"articleSection":["Android Apps"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/","url":"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/","name":"Android Fastboot Mode Commands with Examples - Megh Technologies - News &amp; Updates","isPartOf":{"@id":"https:\/\/meghtechnologies.com\/blog\/#website"},"datePublished":"2024-10-31T13:39:18+00:00","dateModified":"2025-01-07T07:44:41+00:00","breadcrumb":{"@id":"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/meghtechnologies.com\/blog\/fastboot-mode-commands-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/meghtechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Android Fastboot Mode Commands with Examples"}]},{"@type":"WebSite","@id":"https:\/\/meghtechnologies.com\/blog\/#website","url":"https:\/\/meghtechnologies.com\/blog\/","name":"Megh Technologies","description":"Website Design &amp; Development Company","publisher":{"@id":"https:\/\/meghtechnologies.com\/blog\/#organization"},"alternateName":"Megh Technologies India Pvt. Ltd.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/meghtechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/meghtechnologies.com\/blog\/#organization","name":"Megh Technologies","alternateName":"Megh Technologies India Pvt. Ltd.","url":"https:\/\/meghtechnologies.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/meghtechnologies.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/meghtechnologies.com\/blog\/wp-content\/uploads\/2024\/08\/logo.jpg","contentUrl":"https:\/\/meghtechnologies.com\/blog\/wp-content\/uploads\/2024\/08\/logo.jpg","width":100,"height":100,"caption":"Megh Technologies"},"image":{"@id":"https:\/\/meghtechnologies.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/p\/Megh-Technologies-100063466556921\/"]},{"@type":"Person","@id":"https:\/\/meghtechnologies.com\/blog\/#\/schema\/person\/a81f03f495ea08f38ee7e67562e070e2","name":"Nitin Patel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e9ab420b4317dcde4c96b32c7bf8ed2c11e6d0e10892a93dbce18c85c4ecd31f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9ab420b4317dcde4c96b32c7bf8ed2c11e6d0e10892a93dbce18c85c4ecd31f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9ab420b4317dcde4c96b32c7bf8ed2c11e6d0e10892a93dbce18c85c4ecd31f?s=96&d=mm&r=g","caption":"Nitin Patel"},"sameAs":["https:\/\/meghtechnologies.com\/blog","https:\/\/in.linkedin.com\/in\/nitin-patel-8b8b2219"],"url":"https:\/\/meghtechnologies.com\/blog\/author\/admin\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/meghtechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meghtechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meghtechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meghtechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meghtechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=2093"}],"version-history":[{"count":3,"href":"https:\/\/meghtechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2093\/revisions"}],"predecessor-version":[{"id":2097,"href":"https:\/\/meghtechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2093\/revisions\/2097"}],"wp:attachment":[{"href":"https:\/\/meghtechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=2093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meghtechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=2093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meghtechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=2093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}