<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/emulator-control-for-adaptive-app-development-fc3wtgfxy" -->

---
title: Emulator control for adaptive app development | daily.dev
description: Android developers can control emulator form factors directly from the terminal using adb emu console commands instead of manually testing with the Resizable...
canonical: https://daily.dev/posts/emulator-control-for-adaptive-app-development-fc3wtgfxy
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Emulator control for adaptive app development | daily.dev
og:description: Android developers can control emulator form factors directly from the terminal using adb emu console commands instead of manually testing with the Resizable...
og:url: https://daily.dev/posts/emulator-control-for-adaptive-app-development-fc3wtgfxy
og:image: https://api.daily.dev/og/posts/FC3wTGFXY.png
og:image:alt: Emulator control for adaptive app development
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Emulator control for adaptive app development

**[Android Developers Blog](https://daily.dev/sources/androiddev)** · 3 min read · 1 upvotes · 0 comments

## Summary

Android developers can control emulator form factors directly from the terminal using adb emu console commands instead of manually testing with the Resizable Emulator in Android Studio. Commands cover folding and unfolding foldable devices, rotating orientation, querying and setting device posture (like tabletop mode), and resizing the display between phone, unfolded, and tablet presets. These fire-and-forget commands return control to the shell immediately, speeding up adaptive layout and state-restoration testing without running multiple emulator instances.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://android-developers.googleblog.com/2026/08/emulator-adaptive.html>

## Questions this post answers

### How do I fold or unfold a foldable Android emulator from the command line?

Use the adb emu fold and adb emu unfold commands. Running adb emu fold collapses the foldable emulator to its smaller external display, while adb emu unfold expands it to the internal display, letting you verify that your app preserves state and adjusts its layout correctly across the transition without manual UI interaction.

_Developers testing foldable layouts can keep adb workflow tips like this close on daily.dev._

### How do I set a specific device posture like tabletop mode on the Android emulator?

Run adb emu posture to list available posture IDs, then invoke the desired one, such as adb emu posture 2 for the half-opened tabletop posture. Standard AVD templates like the Pixel Fold or Resizable AVD only support postures 1 through 3; attempting posture 4 or 5 on these templates returns a 'KO: Failed to set posture' error.

_Anyone scripting foldable device tests can track adb posture commands like these on daily.dev._

### How do I resize the Android emulator display to phone, unfolded, or tablet size via adb?

Query available presets with adb emu resize-display, which returns options 0 for phone, 1 for unfolded, and 2 for tablet. Then apply one with a command like adb emu resize-display 1 to resize the emulator to the unfolded configuration without restarting or launching a separate virtual device.

_Developers automating adaptive layout checks can bookmark adb resize commands like this on daily.dev._

## Similar posts on daily.dev

- [Test Multi-Device Interactions with the Android Emulator](https://daily.dev/posts/test-multi-device-interactions-with-the-android-emulator-ermv4s8dw) · Android Developers Blog · 6 upvotes · 0 comments

---

Tags: [#mobile](https://daily.dev/tags/mobile), [#android](https://daily.dev/tags/android), [#android-development](https://daily.dev/tags/android-development), [#android-studio](https://daily.dev/tags/android-studio)

[View this post on daily.dev](https://daily.dev/posts/emulator-control-for-adaptive-app-development-fc3wtgfxy)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Emulator control for adaptive app development","url":"https://daily.dev/posts/emulator-control-for-adaptive-app-development-fc3wtgfxy","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/emulator-control-for-adaptive-app-development-fc3wtgfxy"},"datePublished":"2026-08-31T16:02:48.839Z","dateModified":"2026-09-14T07:44:11.771Z","description":"Android developers can control emulator form factors directly from the terminal using adb emu console commands instead of manually testing with the Resizable...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8db495a5a79135e0828de11154d7eccb?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8db495a5a79135e0828de11154d7eccb?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Android Developers Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Android Developers Blog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a3d55bb1d63c48e7bd91b833eb5c2c3c","url":"https://daily.dev/sources/androiddev"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/emulator-control-for-adaptive-app-development-fc3wtgfxy","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"mobile,android,android-development,android-studio","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Android Developers Blog","item":"https://daily.dev/sources/androiddev"},{"@type":"ListItem","position":3,"name":"Emulator control for adaptive app development"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/emulator-control-for-adaptive-app-development-fc3wtgfxy#faq","mainEntity":[{"@type":"Question","name":"How do I fold or unfold a foldable Android emulator from the command line?","acceptedAnswer":{"@type":"Answer","text":"Use the adb emu fold and adb emu unfold commands. Running adb emu fold collapses the foldable emulator to its smaller external display, while adb emu unfold expands it to the internal display, letting you verify that your app preserves state and adjusts its layout correctly across the transition without manual UI interaction. Developers testing foldable layouts can keep adb workflow tips like this close on daily.dev."}},{"@type":"Question","name":"How do I set a specific device posture like tabletop mode on the Android emulator?","acceptedAnswer":{"@type":"Answer","text":"Run adb emu posture to list available posture IDs, then invoke the desired one, such as adb emu posture 2 for the half-opened tabletop posture. Standard AVD templates like the Pixel Fold or Resizable AVD only support postures 1 through 3; attempting posture 4 or 5 on these templates returns a 'KO: Failed to set posture' error. Anyone scripting foldable device tests can track adb posture commands like these on daily.dev."}},{"@type":"Question","name":"How do I resize the Android emulator display to phone, unfolded, or tablet size via adb?","acceptedAnswer":{"@type":"Answer","text":"Query available presets with adb emu resize-display, which returns options 0 for phone, 1 for unfolded, and 2 for tablet. Then apply one with a command like adb emu resize-display 1 to resize the emulator to the unfolded configuration without restarting or launching a separate virtual device. Developers automating adaptive layout checks can bookmark adb resize commands like this on daily.dev."}}]}
```

