<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
     xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Linuxソフト on Ivon&#39;s Blog</title>
    <link>https://ivonblog.com/ja-jp/categories/linux%E3%82%BD%E3%83%95%E3%83%88/</link>
    <description>Recent content in Linuxソフト on Ivon&#39;s Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja-jp</language>
    <managingEditor>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</managingEditor>
    <webMaster>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</webMaster>
    <copyright>Ivon&#39;s Blog（ivonblog.com）の記事はご自由に共有いただけます。引用の際は、記事のURLを明記してください。特に明記されていない限り、すべての記事CC BY-SA 4.0 表示-継承 4.0 国際 ライセンスの下で提供されています。商用利用をご希望の場合は、お問い合わせください。</copyright>
    <lastBuildDate>Sat, 07 Jun 2025 15:00:00 +0800</lastBuildDate><atom:link href="https://ivonblog.com/ja-jp/categories/linux%E3%82%BD%E3%83%95%E3%83%88/index.xml" rel="self" type="application/rss+xml" />
    <follow_challenge>
      <feedId>56005902658351104</feedId>
      <userId>1132431067563556864</userId>
    </follow_challenge>
    
    
    <item>
      <title>LinuxでAndroid Studioエミュレーターをスマホゲーム用に使う考え方（Playストア＋Nvidia GPUアクセラレーション＋AVD単独実行）</title>
      <link>https://ivonblog.com/ja-jp/posts/linux-android-studio-avd-as-a-gaming-emulator/</link>
      <pubDate>Sat, 07 Jun 2025 15:00:00 +0800</pubDate>
      <author>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</author>
      <guid>https://ivonblog.com/ja-jp/posts/linux-android-studio-avd-as-a-gaming-emulator/</guid>
      
      <description>&lt;!-- Co-translated by ChatGPT --&gt;&#xA;&lt;p&gt;Using AVD of Android Studio on Linux as a Android gaming emulator.&lt;/p&gt;&#xA;&lt;p&gt;Ubuntu LinuxシステムでAndroid StudioのAVDエミュレーターを使ってゲームを遊び、さらに重たいIDEを一緒に起動せずAVDエミュレーターだけを起動する設定方法を共有します。&lt;/p&gt;</description>
      <content:encoded>&lt;!-- Co-translated by ChatGPT --&gt;&#xA;&lt;p&gt;Using AVD of Android Studio on Linux as a Android gaming emulator.&lt;/p&gt;&#xA;&lt;p&gt;Ubuntu LinuxシステムでAndroid StudioのAVDエミュレーターを使ってゲームを遊び、さらに重たいIDEを一緒に起動せずAVDエミュレーターだけを起動する設定方法を共有します。&lt;/p&gt;&#xA;&lt;p&gt;Android StudioはGoogleが提供するIDEで、Linux、Windows、macOSをサポートし、Androidアプリ開発に使われます。ライセンスはプロプライエタリソフトウェアです。&lt;/p&gt;&#xA;&lt;p&gt;最大の特徴は、各バージョンのAndroidエミュレーター（Android Virtual Devices、以下AVD）を内蔵していることです。このエミュレーターでゲームは遊べるのでしょうか？理論上は可能です。Android Studioのエミュレーターはスマホ機種のエミュレート、内蔵GAPPS、GPUアクセラレーション、内蔵ARMトランスレーターlibndk、ウィンドウサイズの動的リサイズに対応しています。&lt;/p&gt;&#xA;&lt;p&gt;例：AVDエミュレーターを使ってLinuxでGoogle Playのウマ娘ゲームをプレイ&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;title.webp&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/title.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;では、なぜAndroid StudioのAVDを使うのでしょう？Ivonは&lt;a href=&#34;https://ivonblog.com/ja-jp/posts/android-emulators-for-linux/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Linux Android Emulators&lt;/a&gt;を共有しました。その中でAndroid StudioのAVDは、Genymotion以外では、Linux上でNvidia GPUを正常に使ってAndroidスマホゲームを遊べる唯一のエミュレーターかもしれません。Google公式が提供している以上、公開前に多くのテストを経ているはずです。品質は信頼できるはずです。&lt;/p&gt;&#xA;&lt;p&gt;LinuxでAndroidスマホゲームを実行したい場合、Waydroidが比較的よく推薦される方案で、Steam Deckで使っている人もいます。ただしWindows上のBluestacksエミュレーターに近い使用体験を求めるなら、AVDの方が近いです。&lt;/p&gt;&#xA;&lt;p&gt;本来、&lt;a href=&#34;https://ivonblog.com/ja-jp/posts/ubuntu-waydroid/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Waydroid&lt;/a&gt;の方がより良い方案のはずでした。完全にオープンソースコミュニティで維持され、Waydroid（LXCコンテナ）はAVDエミュレーター（QEMU/KVM仮想マシン）より性能が良いです。AVDエミュレーターはいつも少しもたつきます。&lt;/p&gt;&#xA;&lt;p&gt;実際にGeekbenchでベンチマークしたところ、同じIntel i5-10210U CPUで同じコア数を割り当てた場合、Waydroid（上）は確かにAVDエミュレーター（下）より性能が良く、Waydroidはほぼネイティブ速度でAndroidアプリを実行します。AVDには仮想化による性能損失があります。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/compare.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;しかしWaydroidの致命的な弱点は、IntelとAMD GPUしかサポートしていないことです。開発者によると、Nvidiaを一時的にサポートしていない理由は、NvidiaがオープンソースのAndroid側ドライバーを提供しておらず、Linux側のMesaドライバーにも問題があるためです。一方Googleは何らかのOpenGL ES変換の魔法を使い、Nvidiaドライバーを動かしています。&lt;/p&gt;&#xA;&lt;p&gt;AVDエミュレーターの中では、LinuxホストのNvidia GPUが正常に表示されているのを確認できます。AVDエミュレーターはIntel、AMD、NvidiaのいずれでもOpenGL ESへ変換できます。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/screenshot_20250606_154849.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;したがってNvidiaユーザーにとって、AVDはGPUアクセラレーション付きで実用可能な唯一のAndroidエミュレーター方案です。&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;1. 仮想化とグラフィックドライバーを確認&#xA;    &lt;div id=&#34;1-仮想化とグラフィックドライバーを確認&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#1-%e4%bb%ae%e6%83%b3%e5%8c%96%e3%81%a8%e3%82%b0%e3%83%a9%e3%83%95%e3%82%a3%e3%83%83%e3%82%af%e3%83%89%e3%83%a9%e3%82%a4%e3%83%90%e3%83%bc%e3%82%92%e7%a2%ba%e8%aa%8d&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Android StudioはQEMU/KVMでエミュレーターを高速化するため、まずUbuntu PCで仮想化が有効か確認します。CPUが仮想化に対応しているか確認し、戻り値は0であってはいけません：&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo grep -E -c &lt;span class=&#34;s1&#34;&gt;&amp;#39;(vmx|svm)&amp;#39;&lt;/span&gt; /proc/cpuinfo&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;KVMカーネルモジュールが読み込まれているか確認します：&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;sudo lsmod &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; grep kvm&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Nvidiaグラフィックカードを使っている場合は、&lt;a href=&#34;https://ivonblog.com/posts/ubuntu-install-nvidia-drivers/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Nvidiaクローズドソースドライバーをインストール&lt;/a&gt;することを忘れないでください。&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;2. Android Studioをインストール&#xA;    &lt;div id=&#34;2-android-studioをインストール&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#2-android-studio%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Android Studioはx86_64アーキテクチャのLinux PCのみ対応しています。ディスク容量64GB以上、RAM 8GB以上、CPU 4コア以上をおすすめします。&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://developer.android.com/studio&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;公式サイト&lt;/a&gt;からダウンロードします。Flatpak方式ではインストールしないでください。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;tarファイルを展開し、任意のディレクトリに置きます。私は個人的に&lt;code&gt;~/Applications&lt;/code&gt;に置いています&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;android-studio/bin/studio&lt;/code&gt;をダブルクリックしてAndroid Studioを起動し、初期化パッケージの完了を待ちます。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;New Projectを押して適当なプロジェクトを作成します&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;左上のTools →  Create Desktop Entryを押すと、Linuxデスクトップアイコンを作成できます&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;screenshot_20250607_142315.webp&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/screenshot_20250607_142315.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;3. AVDエミュレーターを追加&#xA;    &lt;div id=&#34;3-avdエミュレーターを追加&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#3-avd%e3%82%a8%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc%e3%82%92%e8%bf%bd%e5%8a%a0&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;左上 → Tools → Device Managerをクリック&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;screenshot_20250606_143929.webp&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/screenshot_20250606_143929.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;画面左側にダウンロード済みのエミュレーターが表示されるはずです。執筆時点ではAndroid 16のイメージです&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;screenshot_20250606_144035.webp&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/screenshot_20250606_144035.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;他のバージョンが必要な場合は＋をクリックし、Create New Virtual Deviceで追加します。たとえば私はPixel 9 Pro XLを選び、Android 16バージョンを設定し、Google Play内蔵イメージを選択しました。（注：この端末はパンチホール画面で、AVDエミュレーターもパンチホール画面を一緒にエミュレートします。完全な画面が欲しい場合は古い機種を選んでください。）&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Additional Settingsを押してエミュレーター性能を調整します。少なくとも64GBのストレージ、さらに4GB以上のRAMと4つのCPUコアを割り当てます。ただしGoogle Playを含むイメージは全速で使えないため、設定ファイルを手動で変更する必要があります。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;screenshot_20250607_142737.webp&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/screenshot_20250607_142737.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;ダウンロード後、Show on diskをクリックし、設定ファイル&lt;code&gt;config.ini&lt;/code&gt;を編集します&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;screenshot_20250607_142815.webp&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/screenshot_20250607_142815.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;以下の内容を変更します（なければ自分で追加）&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;disk.dataPartition.size&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;64G &lt;span class=&#34;c1&#34;&gt;# エミュレーター仮想ディスク容量&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;hw.audioInput&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;yes &lt;span class=&#34;c1&#34;&gt;# 音声入力&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;hw.audioOutput&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;yes &lt;span class=&#34;c1&#34;&gt;# 音声出力&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;hw.cpu.ncore&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;4&lt;/span&gt; &lt;span class=&#34;c1&#34;&gt;# エミュレーターのコア数。PC性能に応じて調整&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;hw.ramSize&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;6144&lt;/span&gt; &lt;span class=&#34;c1&#34;&gt;# エミュレーターRAM&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;PlayStore.enabled&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;true&lt;/span&gt; &lt;span class=&#34;c1&#34;&gt;# Google Playを強制有効化&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;tag.display&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;Google Play&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;tag.id&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;google_apis_playstore&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# エミュレーターにスマホ枠を表示したくない場合は以下3行を削除&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;skin.name&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;skin.path&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ol start=&#34;7&#34;&gt;&#xA;&lt;li&gt;その後起動し、Googleアカウントにログインして初期化を完了し、シャットダウンします。&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;4. IDEを起動せずAVDエミュレーターだけを起動&#xA;    &lt;div id=&#34;4-ideを起動せずavdエミュレーターだけを起動&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#4-ide%e3%82%92%e8%b5%b7%e5%8b%95%e3%81%9b%e3%81%9aavd%e3%82%a8%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc%e3%81%a0%e3%81%91%e3%82%92%e8%b5%b7%e5%8b%95&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Android Studioの問題は重すぎることです。IDE実行時は非常にリソースを食います。IDEを開かず、AVDだけを単独実行できます。&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Android Studioの依存パッケージは&lt;code&gt;~/Android/&lt;/code&gt;に置かれます&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;エミュレーター一覧を表示します。例：&lt;code&gt;Pixel_9_Pro_XL&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;~/Android/Sdk/emulator/emulator -list-avds&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;IDEを開かずAVDだけを起動したい場合は、このコマンドで起動します：&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;~/Android/Sdk/emulator/emulator -avd &lt;span class=&#34;s2&#34;&gt;&amp;#34;模擬器機型&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;GPUが2つある場合は、&lt;a href=&#34;https://ivonblog.com/posts/linux-nvidia-prime/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Nvidia PRIME&lt;/a&gt;の方式で、エミュレーターのグラフィックアクセラレーションにNvidia GPUを指定できます。&lt;/p&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;これをLinuxデスクトップショートカットにして、Linuxアプリケーション一覧へ追加します&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim ~/.local/share/applications/emulator_pixel_9_pro_xl.desktop&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ol start=&#34;5&#34;&gt;&#xA;&lt;li&gt;以下のコマンドを入力します。Wayland下でAVDがおかしい場合は、&lt;code&gt;Exec=&lt;/code&gt;の後ろに環境変数&lt;code&gt;env WAYLAND_DISPLAY=&lt;/code&gt;を追加し、XWaylandで起動するようにします。&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;Desktop Entry&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;Categories&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;Development&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;IDE&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;Exec&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;/home/user/Android/Sdk/emulator/emulator&amp;#34;&lt;/span&gt; -avd &lt;span class=&#34;s2&#34;&gt;&amp;#34;Pixel_9_Pro_XL&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;Icon&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/home/user/Android/Sdk/skins/pixel_9_pro_xl/back.png&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;Name&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;Pixel &lt;span class=&#34;m&#34;&gt;9&lt;/span&gt; Pro Emulator&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;NoDisplay&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;false&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;Type&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;Application&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ol start=&#34;6&#34;&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;これでLinuxデスクトップのショートカットをクリックしてAVDエミュレーターを起動できます。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;screenshot_20250607_143901.webp&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/screenshot_20250607_143901.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;AVDエミュレーター右上の三点をクリックして設定を開き、Show window frame around deviceをクリックすると枠が表示され、AVDエミュレーターウィンドウをリサイズできます。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;screenshot_20250607_144248.webp&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/screenshot_20250607_144248.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;5. QtScrcpyと組み合わせてキーマッピングを使う&#xA;    &lt;div id=&#34;5-qtscrcpyと組み合わせてキーマッピングを使う&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#5-qtscrcpy%e3%81%a8%e7%b5%84%e3%81%bf%e5%90%88%e3%82%8f%e3%81%9b%e3%81%a6%e3%82%ad%e3%83%bc%e3%83%9e%e3%83%83%e3%83%94%e3%83%b3%e3%82%b0%e3%82%92%e4%bd%bf%e3%81%86&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;主な接続手段としてScrcpyに切り替えます。&lt;a href=&#34;https://ivonblog.com/posts/android-qtscrcpy-usage/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;QTScrcpy&lt;/a&gt;はキーマッピングに対応しており、キーボードでタッチ操作を制御できます。&lt;/p&gt;&#xA;&lt;p&gt;AVDエミュレーター起動コマンドに&lt;code&gt;-no-window -gpu host&lt;/code&gt;パラメータを追加すると、エミュレーターのウィンドウを出さず、GPUアクセラレーションを維持できます。&lt;/p&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;~/Android/Sdk/emulator/emulator -avd &lt;span class=&#34;s2&#34;&gt;&amp;#34;模擬器機型&amp;#34;&lt;/span&gt; -no-window -gpu host&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;次にADBで現在PC上のデバイスを一覧表示します&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;screenshot_20250607_140947.webp&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/screenshot_20250607_140947.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;接続をクリック&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;screenshot_20250607_141637.webp&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/screenshot_20250607_141637.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;6. 複数アプリを起動&#xA;    &lt;div id=&#34;6-複数アプリを起動&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#6-%e8%a4%87%e6%95%b0%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92%e8%b5%b7%e5%8b%95&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;複数のAVDを同時実行する必要はありません。リソースを食いすぎます。&lt;/p&gt;&#xA;&lt;p&gt;Android 15の仮想デュアルディスプレイ機能を使えば十分です。&lt;/p&gt;&#xA;&lt;p&gt;AVDエミュレーターの設定 → Displayをクリックし、画面を1つ追加します。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;screenshot_20250607_144619.webp&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/linux-android-studio-avd-as-a-gaming-emulator/images/screenshot_20250607_144619.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;追加された画面で他のアプリを実行できます。ただし大型ゲームを動かす場合は、エミュレーターに割り当てたRAMが十分かどうかも考慮する必要があります。サブ画面は画面方向に追従して回転しないようです。&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;7. アプリがクラッシュする場合&#xA;    &lt;div id=&#34;7-アプリがクラッシュする場合&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#7-%e3%82%a2%e3%83%97%e3%83%aa%e3%81%8c%e3%82%af%e3%83%a9%e3%83%83%e3%82%b7%e3%83%a5%e3%81%99%e3%82%8b%e5%a0%b4%e5%90%88&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;AVDにはlibndkが内蔵されており、ARM変換の問題でクラッシュすることがあります。&lt;/p&gt;&#xA;&lt;p&gt;できるだけx86_64アーキテクチャのAPKを探し、ARMトランスレーターのクラッシュによる可能性を減らしてください。&lt;/p&gt;&#xA;&lt;p&gt;ゲームがエミュレーターを検出してクラッシュしている可能性もあります。AVDはあくまで開発用エミュレーターです。ゲームがエミュレーター疑いで遊ばせてくれないなら、まあどうしようもありません～&lt;/p&gt;&#xA;&lt;p&gt;Play Integrity APIはハードウェア対応が必要なので、エミュレーター内で通過することは不可能です。&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;參考資料&#xA;    &lt;div id=&#34;參考資料&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#%e5%8f%83%e8%80%83%e8%b3%87%e6%96%99&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://developer.android.com/studio/run/emulator-acceleration&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Configure hardware acceleration for the Android Emulator - Android Developers&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://stackoverflow.com/questions/42718973/run-avd-emulator-without-android-studio&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Run AVD Emulator without Android Studio - stackoverflow&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://stackoverflow.com/questions/71815181/how-can-i-get-google-play-to-work-on-android-emulator-in-android-studio-bumblebe&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;How Can I Get Google Play to Work on Android Emulator in Android Studio Bumblebee + - stackoverflow&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</content:encoded>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://ivonblog.com/ja-jp/posts/linux-android-studio-avd-as-a-gaming-emulator/featured.webp" />
    </item>
    
    <item>
      <title>PCでAndroidアプリを動かしたい？Linux向け「Androidゲームエミュレーター」ソリューション紹介</title>
      <link>https://ivonblog.com/ja-jp/posts/android-emulators-for-linux/</link>
      <pubDate>Fri, 06 Jun 2025 16:00:00 +0800</pubDate>
      <author>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</author>
      <guid>https://ivonblog.com/ja-jp/posts/android-emulators-for-linux/</guid>
      
      <description>&lt;!-- Co-translated by ChatGPT --&gt;&#xA;&lt;!--類別：導航文--&gt;&#xA;&lt;p&gt;この記事では、LinuxシステムでAndroidアプリを動かしたり、スマホゲームを遊んだりするための、無料の「Androidエミュレーター」ソリューションをいくつか紹介します。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/android-emulators-for-linux/images/android-x86-qemu.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;figcaption&gt;Gentoo LinuxのKDE PlasmaデスクトップでAndroid-x86仮想マシンを使ってFGOをプレイ&lt;/figcaption&gt;&lt;/figure&gt;&#xA;&lt;/p&gt;</description>
      <content:encoded>&lt;!-- Co-translated by ChatGPT --&gt;&#xA;&lt;!--類別：導航文--&gt;&#xA;&lt;p&gt;この記事では、LinuxシステムでAndroidアプリを動かしたり、スマホゲームを遊んだりするための、無料の「Androidエミュレーター」ソリューションをいくつか紹介します。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/android-emulators-for-linux/images/android-x86-qemu.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;figcaption&gt;Gentoo LinuxのKDE PlasmaデスクトップでAndroid-x86仮想マシンを使ってFGOをプレイ&lt;/figcaption&gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;概論&#xA;    &lt;div id=&#34;概論&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#%e6%a6%82%e8%ab%96&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;市場にはBlueStacks、NOX、LDPlayer、MEmu、Google Play Games on PCなど、多くの商用Androidエミュレーターがあります。形はいろいろですが、結局のところx86 PC上でx86またはARMアーキテクチャのスマホゲームを遊べるというものです。多重起動、放置周回、キーボードマッピングも難しくありません。&lt;/p&gt;&#xA;&lt;p&gt;Windowsに多数存在するAndroidエミュレーターと比べると、GNU/Linuxシステム（Ubuntu、Fedora、Arch Linux、openSUSE、Gentoo、ChromeOSを除く）の選択肢はかなり少ないです。Windowsで有名なAndroidエミュレーターの多くはLinux版を出していません。初期のLinuxでは「Genymotion」と「Android Studio」くらいしか使えず、この2つは基本的に開発者向けで、ゲーム用途には使いにくいものでした。&lt;/p&gt;&#xA;&lt;p&gt;また、上で述べたWindows向けAndroidエミュレーターは、Wineを使ってもLinuxでは動きません。&lt;/p&gt;&#xA;&lt;p&gt;幸い、近年は状況が改善してきました。LXCコンテナ技術を使うAnboxとWaydroidの登場により、LinuxでもAndroidアプリを実行できるようになりました。LinuxのQEMU/KVM技術を利用して、高効率なAndroid-x86仮想マシンをインストールするのも堅実で実用的な方法です。&lt;/p&gt;&#xA;&lt;p&gt;いまでは、LinuxユーザーがPC上でAndroidアプリを動かしたりゲームを遊んだりしたい場合、オープンソースソフトウェアで構成されたソリューションを使って「Androidエミュレーター」に近い効果を実現できます。ついでに商用Androidエミュレーターにありがちな企業案件や広告表示からも離れられます。&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;1. Waydroid&#xA;    &lt;div id=&#34;1-waydroid&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#1-waydroid&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;WaydroidはCanonicalが開発したAnboxに由来し、LXC技術を採用しています。コンテナはLinuxとカーネルを共有し、Androidシステムを実行します。開発チームはBliss OSの開発も担当しています。&lt;/p&gt;&#xA;&lt;p&gt;Anboxは基本的に開発が停止しており、Waydroidがそれに代わる最も有名なAnbox後継となっています。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/android-emulators-for-linux/images/waydroid.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;特徴：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ライセンス：GPLv3&lt;/li&gt;&#xA;&lt;li&gt;LXCコンテナは非常に軽量で、実行効率は仮想マシンやエミュレーターよりかなり高く、PCのGPUを有効活用してゲーム性能を加速できます&lt;/li&gt;&#xA;&lt;li&gt;LinuxシステムとAndroidクリップボードを共有し、アプリをウィンドウモードで操作できます。まるでネイティブLinuxアプリのような操作感で、MicrosoftのWSAに似ています&lt;/li&gt;&#xA;&lt;li&gt;Google Playストアを内蔵&lt;/li&gt;&#xA;&lt;li&gt;x86とARMのイメージを提供しており、x86 PCでもRaspberry Piでもデプロイできます&lt;/li&gt;&#xA;&lt;li&gt;Waydroidを動かすにはWayland表示プロトコルのデスクトップが必要です&lt;/li&gt;&#xA;&lt;li&gt;Waydroidは多重起動に向いておらず、1台のPCにインストールできるAndroidバージョンは1つだけです&lt;/li&gt;&#xA;&lt;li&gt;ARMトランスレーターを手動でインストールする必要があります&lt;/li&gt;&#xA;&lt;li&gt;現在Nvidia GPUには対応しておらず、Mesaオープンソースドライバーを使うIntelとAMDなどのGPUのみ対応しています&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;インストール手順は&lt;a href=&#34;https://ivonblog.com/ja-jp/posts/ubuntu-waydroid/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;こちら&lt;/a&gt;をご覧ください。&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;2. ReDroid&#xA;    &lt;div id=&#34;2-redroid&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#2-redroid&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;DockerコンテナでAndroidシステムを実行し、さらにScrcpyでデスクトップに接続します。開発者の本来の意図はサーバー上にクラウドスマホを構築することですが、デスクトップユーザーもこの方法を参考にできます。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/android-emulators-for-linux/images/redroid.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;特徴：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ライセンス：Apache&lt;/li&gt;&#xA;&lt;li&gt;x86とARMアーキテクチャのイメージを提供しており、x86 PCでもRaspberry Piでもデプロイできます&lt;/li&gt;&#xA;&lt;li&gt;GPUハードウェアアクセラレーションに対応&lt;/li&gt;&#xA;&lt;li&gt;ARMトランスレーターを提供&lt;/li&gt;&#xA;&lt;li&gt;Google Playストアは自分でインストールする必要があります&lt;/li&gt;&#xA;&lt;li&gt;Dockerコンテナの特性によりサーバーへ素早くデプロイでき、Scrcpyでリモート接続できます&lt;/li&gt;&#xA;&lt;li&gt;Dockerコンテナはリソース消費が少なく複製も容易なので、多重起動も可能です&lt;/li&gt;&#xA;&lt;li&gt;インストール手順はやや煩雑で、うまく使うにはDockerの操作知識がある程度必要です&lt;/li&gt;&#xA;&lt;li&gt;現在Nvidia GPUには対応しておらず、Mesaオープンソースドライバーを使うIntelとAMDなどのGPUのみ対応しています&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;インストール方法は&lt;a href=&#34;https://ivonblog.com/ja-jp/posts/redroid-android-docker/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;ReDroid&lt;/a&gt;をご覧ください&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;3. Android-x86仮想マシン&#xA;    &lt;div id=&#34;3-android-x86仮想マシン&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#3-android-x86%e4%bb%ae%e6%83%b3%e3%83%9e%e3%82%b7%e3%83%b3&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Android-x86仮想マシンは、長く開発されてきた同名プロジェクトに由来します。物理PCにインストールできるだけでなく、仮想マシンにもインストールできます。&lt;/p&gt;&#xA;&lt;p&gt;ただし、オリジナルのAndroid-x86はAndroid 9以降ほとんど更新されていません。&lt;/p&gt;&#xA;&lt;p&gt;近年はAndroid-x86ベースの「Bliss OS」が登場し、非常に活発に更新され、Android 15まで対応しています。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/android-emulators-for-linux/images/blissos.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;特徴は以下の通りです：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ライセンス：Apache&lt;/li&gt;&#xA;&lt;li&gt;Android-x86は完全なOSで、Android 7からAndroid 15までISOがあります&lt;/li&gt;&#xA;&lt;li&gt;ほぼオープンソースソフトウェアで構成されたソリューションで、システムはクリーンかつ広告なしです&lt;/li&gt;&#xA;&lt;li&gt;仮想マシンにデプロイできるほか、Microsoft Surfaceなどの物理機にメインシステムとしてインストールすることもできます&lt;/li&gt;&#xA;&lt;li&gt;ARM → x86アーキテクチャ変換に対応し、より多くのスマホゲームをサポートします&lt;/li&gt;&#xA;&lt;li&gt;GPUパススルーなしでもVirGLで3Dハードウェアアクセラレーションを実現でき、Intel、AMD、Nvidia GPUに対応します&lt;/li&gt;&#xA;&lt;li&gt;多重起動の可能性があります&lt;/li&gt;&#xA;&lt;li&gt;Google Playストアを内蔵&lt;/li&gt;&#xA;&lt;li&gt;仮想マシンのバックエンドにはQEMU/KVM、VirtualBox、VMwareなどを選べます&lt;/li&gt;&#xA;&lt;li&gt;仮想マシンなのでGPUアクセラレーション能力には限界があります&lt;/li&gt;&#xA;&lt;li&gt;x86アーキテクチャのPCのみ対応&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;QEMU/KVMでAndroid-x86仮想マシンを動かす手順はこちら：&lt;a href=&#34;https://ivonblog.com/ja-jp/posts/bliss-os-qemu-installation/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Bliss OS QEMU VM&lt;/a&gt;。&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;4. Android StudioのAVDエミュレーター&#xA;    &lt;div id=&#34;4-android-studioのavdエミュレーター&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#4-android-studio%e3%81%aeavd%e3%82%a8%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Android Virtual Device、略してAVDは、Google公式が開発するAndroidエミュレーターで、Android Studioに付属しています。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/android-emulators-for-linux/images/avd.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;特徴：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ライセンス：プロプライエタリソフトウェア&lt;/li&gt;&#xA;&lt;li&gt;主にAndroidアプリ開発用で、他の方案と比べると比較的成熟しています&lt;/li&gt;&#xA;&lt;li&gt;クロスプラットフォームで、同じソフトウェア一式をWindowsとmacOSでも使えます&lt;/li&gt;&#xA;&lt;li&gt;ADBとRootを使用できます&lt;/li&gt;&#xA;&lt;li&gt;複数のスマホ機種をエミュレートでき、技術的には多重起動も可能です&lt;/li&gt;&#xA;&lt;li&gt;Google PlayとARMトランスレーターlibndkを内蔵&lt;/li&gt;&#xA;&lt;li&gt;GPUグラフィックアクセラレーションを提供し、Intel、AMD、Nvidia GPUに対応します。&lt;/li&gt;&#xA;&lt;li&gt;Android Studio実行時は非常にリソースを食いますが、AVDエミュレーターはAndroid Studioに依存せず単独で実行するよう設定できます&lt;/li&gt;&#xA;&lt;li&gt;x86アーキテクチャのPCのみ対応&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;参考手順：&lt;a href=&#34;https://ivonblog.com/ja-jp/posts/linux-android-studio-avd-as-a-gaming-emulator&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Linux + Android AVD&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;5. Genymotionエミュレーター&#xA;    &lt;div id=&#34;5-genymotionエミュレーター&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#5-genymotion%e3%82%a8%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;クロスプラットフォームの商用Androidエミュレーターです。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/android-emulators-for-linux/images/genoymotion.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;特徴：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ライセンス：プロプライエタリソフトウェア&lt;/li&gt;&#xA;&lt;li&gt;インストールが最も簡単&lt;/li&gt;&#xA;&lt;li&gt;実行時にQEMU/KVMまたはVirtualBoxに依存します&lt;/li&gt;&#xA;&lt;li&gt;さまざまなスマホ機種のエミュレーションを提供&lt;/li&gt;&#xA;&lt;li&gt;スクリーンショット、録画、ジェスチャーのシミュレーションに便利なクイックボタン操作を提供&lt;/li&gt;&#xA;&lt;li&gt;ARMトランスレーターを内蔵&lt;/li&gt;&#xA;&lt;li&gt;Intel、AMD、Nvidia GPUグラフィックアクセラレーションに対応。&lt;/li&gt;&#xA;&lt;li&gt;使用には登録が必要&lt;/li&gt;&#xA;&lt;li&gt;無料版では画面上にウォーターマークが表示され、使用の妨げになります。ライセンス購入が必要です&lt;/li&gt;&#xA;&lt;li&gt;x86アーキテクチャのPCのみ対応&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Linux版Genymotionのインストール手順は&lt;a href=&#34;https://ivonblog.com/ja-jp/posts/genymotion-for-linux&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;こちら&lt;/a&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;どれを選ぶべきか？&#xA;    &lt;div id=&#34;どれを選ぶべきか&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#%e3%81%a9%e3%82%8c%e3%82%92%e9%81%b8%e3%81%b6%e3%81%b9%e3%81%8d%e3%81%8b&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Nvidiaグラフィックカードのユーザーで、内蔵GPUがなく、面倒な調整もしたくない場合、選択肢はAndroid StudioのAVDとGenymotionだけです。&lt;/p&gt;&#xA;&lt;p&gt;IntelやAMDグラフィックカードのユーザーなら、選択肢は増えます。Linuxの各種「Androidエミュレーター」方案を比較すると、Waydroidは間違いなく最高性能です。LXCコンテナ技術を使い、Linuxとカーネルを共有するため、計算時の性能損失がほとんどありません。Waydroidの性能は、物理PCにAndroidをインストールしたようなものです。&lt;/p&gt;&#xA;&lt;p&gt;Android StudioのAVDエミュレーターやAndroid-x86仮想マシン方案と比べると、Waydroidの性能はかなり高いです。特に低スペックPCでは、Waydroidが最も経済的な選択です。私がGeekbenchでベンチマークしたところ、仮想化を一層挟んだAndroidの性能は、最大でほぼ半分近く失われます！つまり仮想マシンの性能を支えるには、より多くのCPUコアを割り当てる必要があります。PCのCPUが4コア以下なら、Android-x86仮想マシンを起動すると全リソースを食い尽くしてしまいます！それに比べ、Waydroidのリソース消費は低いです。&lt;/p&gt;&#xA;&lt;p&gt;Android-x86仮想マシンのグラフィックアクセラレーションはVirGLに依存しており、この性能はAndroid StudioのAVDエミュレーターよりやや弱いです。&lt;/p&gt;&#xA;&lt;p&gt;ReDroidについては上級者向けで、クラウドスマホへリモート接続したいプレイヤーに向いています。&lt;/p&gt;&#xA;</content:encoded>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://ivonblog.com/ja-jp/posts/android-emulators-for-linux/featured.webp" />
    </item>
    
    <item>
      <title>Linux版Genymotionのインストール手順：クロスプラットフォームAndroidゲームエミュレーター</title>
      <link>https://ivonblog.com/ja-jp/posts/genymotion-for-linux/</link>
      <pubDate>Wed, 14 Feb 2024 20:00:00 +0800</pubDate>
      <author>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</author>
      <guid>https://ivonblog.com/ja-jp/posts/genymotion-for-linux/</guid>
      
      <description>&lt;!-- Co-translated by ChatGPT --&gt;&#xA;&lt;p&gt;Genymobileが開発する「Genymotion Android Emulator」は、機能豊富なクロスプラットフォームAndroidエミュレーターソフトです。ゲームも遊べ、現在Linuxをサポートする唯一の商用Androidエミュレーターです。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/genymotion-for-linux/images/genymotion.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;</description>
      <content:encoded>&lt;!-- Co-translated by ChatGPT --&gt;&#xA;&lt;p&gt;Genymobileが開発する「Genymotion Android Emulator」は、機能豊富なクロスプラットフォームAndroidエミュレーターソフトです。ゲームも遊べ、現在Linuxをサポートする唯一の商用Androidエミュレーターです。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/genymotion-for-linux/images/genymotion.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;多くの&lt;a href=&#34;https://ivonblog.com/ja-jp/posts/android-emulators-for-linux&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Linux Android Emulators&lt;/a&gt;方案の中で、Genymotionの機能はAndroid StudioのAVDと肩を並べます。同じくGPUアクセラレーションとARMトランスレーションに対応し、多くのAndroidデバイスをエミュレートできます。&lt;/p&gt;&#xA;&lt;p&gt;さらにGenymotionはAndroid Studioほど実行時にリソースを食わず、ゲームも気軽に遊べます。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240215_024744.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;ただし、Genymotionでゲームを遊ぶというより、Genymotionは企業顧客向けの研究開発、大規模なテスト開発用エミュレーターという性格が強いです。クラウドスマホのサービスも提供しています。&lt;/p&gt;&#xA;&lt;p&gt;ついでに言うと、Genymobileは有名なスマホ遠隔操作プログラム「Scrcpy」の開発元です。&lt;/p&gt;&#xA;&lt;p&gt;Genymotionは混合オープンソースライセンスのクローズドソースソフトウェアです。一般ユーザーが使うにはアカウント登録が必要で、機能にも制限があります。すべての機能を解放するには有料サブスクリプションライセンスが必要です。&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;1. Genymotion Desktopをインストール&#xA;    &lt;div id=&#34;1-genymotion-desktopをインストール&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#1-genymotion-desktop%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;テスト環境：Ubuntu 22.04 LTS&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Linux版GenymotionはKVMまたはVirtualBoxを仮想化バックエンドとして選べます。私は前者を使います。そのため、まずUbuntuに&lt;a href=&#34;https://ivonblog.com/posts/ubuntu-virt-manager&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;QMEU/KVM&lt;/a&gt;をインストールしてください&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.genymotion.com/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Genymotion公式サイト&lt;/a&gt;でアカウントを登録します。会社名は適当に入力して構いません。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.genymotion.com/product-desktop/download/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Genymotion Desktopページ&lt;/a&gt;からLinuxインストーラーをダウンロードします&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Genymotionのbinファイルは本質的には圧縮ファイルで、中にメインプログラムが入っています。私はそれを&lt;code&gt;~/Applications&lt;/code&gt;ディレクトリに移動してから展開します&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; ~/Downloads&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mkdir ~/Applications&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;mv genymotion-3.6.0-linux_x64.bin  ~/Applications&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; ~/Applications&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;./genymotion-3.6.0-linux_x64.bin&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ol start=&#34;5&#34;&gt;&#xA;&lt;li&gt;genymotionのバイナリパスをPATHに追加します&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;echo&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;PATH=&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$PATH&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;:~/Applications/genymotion/genymotion&amp;#34;&lt;/span&gt; &amp;gt;&amp;gt; ~/.bashrc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;source&lt;/span&gt; ~/.bashrc&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ol start=&#34;6&#34;&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;genymotion&lt;/code&gt;コマンドを実行するか、&lt;code&gt;~/Applications/genymotion/&lt;/code&gt;でgenymotion実行ファイルをダブルクリックしてメインプログラムを開きます。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;起動後、Genymotionアカウントにログインし、Personal Useを選択します&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240214_214016.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Genymotionはインストール後、自動的にアプリケーション一覧へ追加されます。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;2. Androidエミュレーターを追加&#xA;    &lt;div id=&#34;2-androidエミュレーターを追加&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#2-android%e3%82%a8%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc%e3%82%92%e8%bf%bd%e5%8a%a0&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;GenymotionのUI操作はとても直感的です。エミュレートしたいスマホ機種を選び、イメージをダウンロードしてインストールするだけです。これらのスマホ機種は古いものばかりですが、Androidバージョンはちゃんと最新版に追いついています。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240215_023344.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;起動してAndroidに入ると、左下にウォーターマークが表示されます。消すにはお金が必要ですが、後でちょっとした解除の小技を紹介します。キーボードでそのままスマホを操作でき、両側のクリップボードも自動同期されます。&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240215_023736.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Playストアが必要なユーザーは、右側のこのボタンをクリックしてGAppsをインストールしてください&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240215_024211.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;LinuxのファイルマネージャーからAPKをGenymotionのウィンドウへ直接ドラッグしてインストールできます。インストール時はx86_64またはUniversalのAPKを優先することをおすすめします。なければARM版を入れます。こうする理由は、Genymotion内蔵のARMトランスレーターがARMアーキテクチャのアプリを必ず正常に実行できるとは限らないためです。&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;3. GenymotionエミュレーターでADBデバッグを有効化&#xA;    &lt;div id=&#34;3-genymotionエミュレーターでadbデバッグを有効化&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#3-genymotion%e3%82%a8%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc%e3%81%a7adb%e3%83%87%e3%83%90%e3%83%83%e3%82%b0%e3%82%92%e6%9c%89%e5%8a%b9%e5%8c%96&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;GenymotionはAndroid Studioと組み合わせて使え、AVDの代わりにAndroidエミュレーターとして利用できます。&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Linuxに&lt;a href=&#34;https://developer.android.com/tools/releases/platform-tools?hl=zh-tw&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;Platform Tools&lt;/a&gt;をインストールします&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Android仮想マシン設定の「開発者向けオプション」でUSBデバッグを有効化します&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;端末を開き、ADBコマンドでデバイスを一覧表示します&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;adb devices&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;接続&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;adb connect 127.0.0.1:6555&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ol start=&#34;5&#34;&gt;&#xA;&lt;li&gt;ADBデバッグを設定したら、&lt;a href=&#34;https://ivonblog.com/posts/android-qtscrcpy-usage&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;QTScrcpy&lt;/a&gt;を動かしてGenymotionのウォーターマーク制限を回避できます。相手の魔法をそのまま返してやりましょう！&#xA;&lt;figure&gt;&#xA;  &lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;low&#34;&#xA;    alt=&#34;&#34;&#xA;    src=&#34;https://static.ivonblog.com/posts/genymotion-for-linux/images/Screenshot_20240215_030018.webp&#34;&#xA;    onerror=&#34;this.onerror=null;this.src=&#39;https://ivonblog.com/images/unable-to-load-the-image-pepe.webp&#39;&#34;&#xA;    &gt;&lt;/figure&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;</content:encoded>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://ivonblog.com/ja-jp/posts/genymotion-for-linux/featured.webp" />
    </item>
    
  </channel>
</rss>
