Image

Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

How can I correct an AVD Emulator's inconsistent display size?

+0
−0

How can I extend the length of an emulator? I ask because, when I invoked android-studio today, my AVD emulator was incorrectly sized, to the extent that input tap events are mis-calibrated, rendering it nigh unusable:

A Screenshot

$HOME/Android/Sdk/emulator/emulator -avd $($HOME/Android/Sdk/emulator/emulator -list-avds) -verbose, initially, appears to operate as expected, except that its touch remains mis-calibrated:

A Screenshot

My Environment
    1. #!/usr/bin/env sh
      rpm -qf $(command -v android-studio) \
      	--queryformat "$(
      		cat <<'EOF'
      Name: %{NAME}
      Version: %{VERSION}
      Release: %{RELEASE}
      Architecture: %{ARCH}
      Install Date: %{INSTALLTIME:date}
      Size: %{SIZE}
      Signature: %{SIGPGP:pgpsig}
      Source RPM: %{SOURCERPM}
      Build Date: %{BUILDTIME:date}
      Build Host: %{BUILDHOST}
      Packager: %{PACKAGER}
      Vendor: %{VENDOR}
      EOF
      	)"$'\n' | yq -P
      
    2. Name: android-studio
      Version: 2025.3.2.6
      Release: 1.fc43
      Architecture: x86_64
      Install Date: Tue 03 Mar 2026 19:03:14 GMT
      Size: 3389182154
      Signature: EdDSA/SHA256, Tue 03 Mar 2026 15:54:11 GMT, Key ID e43dbfe05c4f92a3
      Source RPM: android-studio-2025.3.2.6-1.fc43.src.rpm
      Build Date: Tue 03 Mar 2026 15:28:25 GMT
      Build Host: d98174fd17b5
      Packager: veuxit <[email protected]>, like-engels <[email protected]>
      Vendor: Terra
      
    1. #!/usr/bin/env sh
      cat $HOME/.android/avd/$($HOME/Android/Sdk/emulator/emulator -list-avds).avd/config.ini
      
    2. AvdId=Pixel_Tablet
      PlayStore.enabled=true
      abi.type=x86_64
      avd.ini.displayname=Pixel Tablet
      avd.ini.encoding=UTF-8
      disk.dataPartition.size=6G
      fastboot.chosenSnapshotFile=
      fastboot.forceChosenSnapshotBoot=no
      fastboot.forceColdBoot=no
      fastboot.forceFastBoot=yes
      hw.accelerometer=yes
      hw.arc=false
      hw.audioInput=yes
      hw.battery=yes
      hw.camera.back=virtualscene
      hw.camera.front=emulated
      hw.cpu.arch=x86_64
      hw.cpu.ncore=4
      hw.dPad=no
      hw.device.hash2=MD5:4eeb2eb720b193342b0f2b948e427ed5
      hw.device.manufacturer=Google
      hw.device.name=pixel_tablet
      hw.gps=no
      hw.gpu.enabled=yes
      hw.gpu.mode=auto
      hw.gyroscope=yes
      hw.initialOrientation=portrait
      hw.keyboard=yes
      hw.lcd.density=320
      hw.lcd.height=1600
      hw.lcd.width=2560
      hw.mainKeys=no
      hw.ramSize=2048
      hw.sdCard=yes
      hw.sensors.light=yes
      hw.sensors.magnetic_field=yes
      hw.sensors.orientation=yes
      hw.sensors.pressure=no
      hw.sensors.proximity=no
      hw.trackBall=no
      image.sysdir.1=system-images/android-CANARY/google_apis_playstore_ps16k/x86_64/
      runtime.network.latency=none
      runtime.network.speed=full
      sdcard.size=512M
      showDeviceFrame=yes
      skin.dynamic=yes
      skin.name=pixel_tablet
      skin.path=/home/RokeJulianLockhart/Android/Sdk/skins/pixel_tablet
      tag.display=Google APIs PlayStore
      tag.displaynames=Google APIs PlayStore,Page Size 16KB,AI Glasses Compatible
      tag.id=google_apis_playstore
      tag.ids=google_apis_playstore,page_size_16kb,ai_glasses_compatible
      target=android-CANARY
      vm.heapSize=192
      
History

0 comment threads

1 answer

+0
−0
  1. Install the Command-Line Tools (alongside the SDK):

    A Screenshot

  2. Insofar as it's the sole AVD emulator (not image) installed:

    #!/usr/bin/env sh
    $HOME/Android/Sdk/cmdline-tools/latest/bin/avdmanager delete avd -n $($HOME/Android/Sdk/emulator/emulator -list-avds)
    $HOME/Android/Sdk/cmdline-tools/latest/bin/sdkmanager "system-images;android-CANARY;google_apis_playstore_ps16k;$(uname -m)"
    $HOME/Android/Sdk/cmdline-tools/latest/bin/avdmanager create avd -k "system-images;android-CANARY;google_apis_playstore_ps16k;$(uname -m)" -d pixel_tablet --name CANARY_google_apis_playstore_ps16k_pixel_tablet
    $HOME/Android/Sdk/emulator/emulator -avd $($HOME/Android/Sdk/emulator/emulator -list-avds) -verbose
    

    Otherwise, specify the name.

My suspicion of the cause is that, because the new version of the emulator is rotated, and does not include a border, when it was updated, this caused the previous image to become inconsistent:

A Screenshot

History

0 comment threads

Sign up to answer this question »