{"id":5714,"date":"2024-11-18T11:22:08","date_gmt":"2024-11-18T11:22:08","guid":{"rendered":"https:\/\/howtogeek.blog\/zh\/?p=5714"},"modified":"2024-11-18T11:22:08","modified_gmt":"2024-11-18T11:22:08","slug":"running-android-applications-on-linux-a-complete-guide","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/zh\/running-android-applications-on-linux-a-complete-guide\/","title":{"rendered":"\u5728 Linux \u4e0a\u904b\u884c Android \u61c9\u7528\u7a0b\u5f0f\uff1a\u5b8c\u6574\u6307\u5357"},"content":{"rendered":"<p>\u5c0d\u65bc\u5c0b\u6c42 Android \u61c9\u7528\u7a0b\u5f0f\u7121\u7e2b\u529f\u80fd\u7684 Linux \u7528\u6236\u4f86\u8aaa\uff0c<strong>WayDroid<\/strong>\u662f\u6700\u6709\u6548\u7684\u89e3\u6c7a\u65b9\u6848\u4e4b\u4e00\uff0c\u5c24\u5176\u662f\u5728 Wayland \u986f\u793a\u4f3a\u670d\u5668\u4e2d\u904b\u884c\u6642\u3002 WayDroid \u8b93\u60a8\u80fd\u5920\u5728 Linux \u96fb\u8166\u4e0a\u7684\u5bb9\u5668\u5167\u57f7\u884c\u5b8c\u6574\u7684 Android \u4f5c\u696d\u7cfb\u7d71\uff0c\u5229\u7528 Linux \u547d\u540d\u7a7a\u9593\u4fc3\u9032\u5404\u500b\u5143\u4ef6\u7684\u7368\u7acb\u64cd\u4f5c\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u5b89\u88dd\u6b65\u9a5f<\/h2>\n<ol class=\"wp-block-list\">\n<li>\u958b\u555f\u7d42\u7aef\u6a5f\u4e26\u8f38\u5165\u4ee5\u4e0b\u547d\u4ee4\u4f86\u5b89\u88dd\u5fc5\u8981\u7684\u4f9d\u8cf4\u9805\uff1a\n<p> <code>sudo apt install curl ca-certificates -y<\/code>\u3002\u6309 Enter \u9375\u57f7\u884c\u3002 <\/li>\n<li>\u8f38\u5165\uff1a\n<p> <code>curl https:\/\/repo.waydro.id | sudo bash<\/code>\u4e26\u6309 Enter \u9375\u65b0\u589e WayDroid \u5132\u5b58\u5eab\u3002 <\/li>\n<li>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd WayDroid \u61c9\u7528\u7a0b\u5f0f\uff1a\n<p> <code>sudo apt-get install waydroid -y<\/code>\u3002 <\/li>\n<li>\u5b89\u88dd\u5f8c\uff0c\u5f9e\u61c9\u7528\u7a0b\u5f0f\u9078\u55ae\u555f\u52d5 WayDroid\u3002 <\/li>\n<li>\u5728 WayDroid \u4ecb\u9762\u4e2d\uff0c\u5f9e\u300cAndroid \u985e\u578b\u300d\u4e0b\u62c9\u5f0f\u9078\u55ae\u4e2d\u9078\u64c7\u300cGAPPS\u300d\u3002\u9078\u64c7\u300cVanilla\u300d\u6703\u9650\u5236\u5c0d Google Play \u670d\u52d9\u7684\u8a2a\u554f\uff0c\u5f9e\u800c\u963b\u6b62\u5f9e Play \u5546\u5e97\u5b89\u88dd\u61c9\u7528\u7a0b\u5f0f\u3002 <\/li>\n<li>\u9ede\u64ca\u201c\u4e0b\u8f09\u201d\u6309\u9215\u4e26\u7b49\u5f85\u4e0b\u8f09\u5b8c\u6210\uff0c\u9019\u53ef\u80fd\u9700\u8981\u4e00\u6bb5\u6642\u9593\u3002 <\/li>\n<li>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0cWayDroid \u5c07\u81ea\u52d5\u95dc\u9589\u3002\u91cd\u65b0\u555f\u52d5\u5b83\u5373\u53ef\u5b58\u53d6\u985e\u4f3c Android \u7684\u4e3b\u87a2\u5e55\u3002 <\/li>\n<li>\u8981\u4f7f\u7528 Google Play \u5546\u5e97\uff0c\u60a8\u5fc5\u9808\u4f7f\u7528 Android ID \u8a3b\u518a\u88dd\u7f6e\u3002\u518d\u6b21\u5b58\u53d6\u7d42\u7aef\u4e26\u8f38\u5165\uff1a\n<p> <code>sudo waydroid shell<\/code>\uff0c\u7136\u5f8c\u6309 Enter\u3002 <\/li>\n<li>\u8a72\u547d\u4ee4\u5c07\u986f\u793a\u4e00\u4e32\u96a8\u6a5f\u6578\u5b57\u2014\u60a8\u7684 Android ID\u3002\u6839\u64da\u9700\u8981\u8907\u88fd\u6b64\u8b58\u5225\u78bc\u4ee5\u9032\u884c Google \u9a57\u8b49\u3002 <\/li>\n<li>\u524d\u5f80\u9a57\u8b49\u9801\u9762\u4e26\u4f7f\u7528\u60a8\u7684 Google \u5e33\u6236\u767b\u5165\u3002\u8cbc\u4e0a\u8907\u88fd\u7684 Android ID \u4e26\u5b8c\u6210\u8a3b\u518a\u7a0b\u5e8f\u3002 <\/li>\n<li>\u8fd4\u56de\u7d42\u7aef\u4e26\u57f7\u884c\uff1a\n<p> <code>waydroid session stop<\/code>\u4ee5\u505c\u6b62\u61c9\u7528\u7a0b\u5f0f\u3002 <\/li>\n<li>\u6700\u5f8c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u91cd\u65b0\u555f\u52d5\u6703\u8a71\uff1a\n<p> <code>waydroid session start<\/code>\uff0c\u8b93\u60a8\u53ef\u4ee5\u5b58\u53d6 Linux \u7cfb\u7d71\u4e0a\u7684 Android \u4f5c\u696d\u7cfb\u7d71\u3002\u73fe\u5728\u60a8\u53ef\u4ee5\u767b\u5165 Play \u5546\u5e97\u4f86\u5b89\u88dd\u60a8\u559c\u611b\u7684\u61c9\u7528\u7a0b\u5f0f\u548c\u904a\u6232\u3002 <\/li>\n<\/ol>\n<h2 class=\"wp-block-heading\">\u984d\u5916\u7684\u898b\u89e3<\/h2>\n<p>\u5728\u958b\u59cb\u4e4b\u524d\uff0c\u8acb\u8003\u616e\u4ee5\u4e0b\u4e8b\u9805\uff1a<\/p>\n<ul class=\"wp-block-list\">\n<li>WayDroid \u8207\u5404\u7a2e Linux \u767c\u884c\u7248\u76f8\u5bb9\u3002\u5728\u7e7c\u7e8c\u4e4b\u524d\uff0c\u8acb\u52d9\u5fc5\u9a57\u8b49\u8207\u60a8\u7684\u7279\u5b9a\u4f5c\u696d\u7cfb\u7d71\u7684\u517c\u5bb9\u6027\u3002<\/li>\n<li>\u5982\u679c\u60a8\u559c\u6b61\u5176\u4ed6\u9078\u64c7\uff0c<strong>Genymotion<\/strong>\u7b49 Android \u6a21\u64ec\u5668\u4e5f\u53ef\u4ee5\u5728 Linux \u4e0a\u904b\u884c Android \u61c9\u7528\u7a0b\u5e8f\uff0c\u5f9e\u800c\u5141\u8a31\u900f\u904e APK \u6a94\u6848\u5b89\u88dd\u61c9\u7528\u7a0b\u5f0f\u3002<\/li>\n<li>\u8acb\u6ce8\u610f\uff0c<strong>Anbox<\/strong>\u662f\u4ee5\u524d\u5728 Linux \u4e0a\u904b\u884c Android \u7684\u71b1\u9580\u5de5\u5177\uff0c\u73fe\u5df2\u68c4\u7528\uff0c\u4e0d\u518d\u5efa\u8b70\u4f7f\u7528\u3002<\/li>\n<li>\u53e6\u4e00\u7a2e\u9078\u64c7\u662f\u5728\u865b\u64ec\u6a5f\u5668\u4e2d\u904b\u884c Android\uff0c\u9019\u9700\u8981\u5f9e Android \u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09 Android ISO \u6620\u50cf\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0d\u65bc\u5c0b\u6c42 Android \u61c9\u7528\u7a0b\u5f0f\u7121\u7e2b\u529f\u80fd\u7684 Linux \u7528\u6236\u4f86\u8aaa\uff0cWayDroid\u662f\u6700\u6709\u6548\u7684\u89e3\u6c7a\u65b9\u6848\u4e4b\u4e00\uff0c\u5c24\u5176\u662f\u5728 Wayland \u986f\u793a\u4f3a\u670d\u5668\u4e2d\u904b\u884c\u6642\u3002 WayDroid \u8b93\u60a8\u80fd\u5920\u5728 Linux \u96fb\u8166\u4e0a\u7684\u5bb9\u5668\u5167\u57f7\u884c\u5b8c\u6574\u7684 Android \u4f5c\u696d\u7cfb\u7d71\uff0c\u5229\u7528 Linux \u547d\u540d\u7a7a\u9593\u4fc3\u9032\u5404\u500b\u5143\u4ef6\u7684\u7368\u7acb\u64cd\u4f5c\u3002 \u5b89\u88dd\u6b65\u9a5f \u958b\u555f\u7d42\u7aef\u6a5f\u4e26\u8f38\u5165\u4ee5\u4e0b\u547d\u4ee4\u4f86\u5b89\u88dd\u5fc5\u8981\u7684\u4f9d\u8cf4\u9805\uff1a sudo apt install curl ca-certificates -y\u3002\u6309 Enter \u9375\u57f7\u884c\u3002 \u8f38\u5165\uff1a curl https:\/\/repo.waydro.id | sudo bash\u4e26\u6309 Enter \u9375\u65b0\u589e WayDroid \u5132\u5b58\u5eab\u3002 \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd WayDroid \u61c9\u7528\u7a0b\u5f0f\uff1a sudo apt-get install waydroid -y\u3002 \u5b89\u88dd\u5f8c\uff0c\u5f9e\u61c9\u7528\u7a0b\u5f0f\u9078\u55ae\u555f\u52d5 WayDroid\u3002 \u5728 WayDroid \u4ecb\u9762\u4e2d\uff0c\u5f9e\u300cAndroid \u985e\u578b\u300d\u4e0b\u62c9\u5f0f\u9078\u55ae\u4e2d\u9078\u64c7\u300cGAPPS\u300d\u3002\u9078\u64c7\u300cVanilla\u300d\u6703\u9650\u5236\u5c0d Google Play \u670d\u52d9\u7684\u8a2a\u554f\uff0c\u5f9e\u800c\u963b\u6b62\u5f9e Play \u5546\u5e97\u5b89\u88dd\u61c9\u7528\u7a0b\u5f0f\u3002 \u9ede\u64ca\u201c\u4e0b\u8f09\u201d\u6309\u9215\u4e26\u7b49\u5f85\u4e0b\u8f09\u5b8c\u6210\uff0c\u9019\u53ef\u80fd\u9700\u8981\u4e00\u6bb5\u6642\u9593\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9,206],"class_list":["post-5714","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-android","tag-linux"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/5714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/comments?post=5714"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/5714\/revisions"}],"predecessor-version":[{"id":5715,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/5714\/revisions\/5715"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/media?parent=5714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/categories?post=5714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/tags?post=5714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}