{"id":160814,"date":"2019-10-28T11:00:20","date_gmt":"2019-10-28T03:00:20","guid":{"rendered":"https:\/\/gulass.cn\/?p=160814"},"modified":"2019-11-04T09:30:48","modified_gmt":"2019-11-04T01:30:48","slug":"scrcpy-android","status":"publish","type":"post","link":"https:\/\/gulass.cn\/scrcpy-android.html","title":{"rendered":"\u57fa\u4e8e scrcpy \u7684\u5f00\u6e90\u5e94\u7528\u4ece\u4f60\u7684\u7535\u8111\u4e0a\u8bbf\u95ee\u4f60\u7684\u5b89\u5353\u8bbe\u5907"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nGuiscrcpy \u662f\u4e00\u4e2a\u57fa\u4e8e\u5c61\u83b7\u6b8a\u8363\u7684\u4e00\u4e2a\u5f00\u6e90\u5f15\u64ce\u00a0scrcpy\u00a0\u7684\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\uff08GUN GPLv3 \u8bb8\u53ef\u8bc1\uff09\u3002\u4f7f\u7528 Guiscrcpy \u53ef\u4ee5\u5c06\u4f60\u7684\u5b89\u5353\u624b\u673a\u7684\u5c4f\u5e55\u6295\u5c04\u5230\u4f60\u7684\u7535\u8111\uff0c\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u67e5\u770b\u624b\u673a\u4e0a\u7684\u4e00\u5207\u4e1c\u897f\u3002Guiscrcpy \u652f\u6301 Linux\u3001Windows \u548c MacOS\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5728\u672a\u6765\uff0c\u4f60\u6240\u9700\u7684\u4e00\u5207\u4fe1\u606f\u7686\u89e6\u624b\u53ef\u53ca\uff0c\u5e76\u4e14\u5168\u90e8\u4f1a\u4ee5\u5168\u606f\u7684\u5f62\u5f0f\u51fa\u73b0\u5728\u7a7a\u4e2d\uff0c\u5373\u4f7f\u4f60\u5728\u9a7e\u9a76\u6c7d\u8f66\u65f6\u4e5f\u53ef\u4ee5\u4e0e\u4e4b\u4ea4\u4e92\u3002\u4e0d\u8fc7\uff0c\u90a3\u662f\u672a\u6765\uff0c\u5728\u90a3\u4e00\u523b\u5230\u6765\u4e4b\u524d\uff0c\u6211\u4eec\u6240\u6709\u4eba\u90fd\u53ea\u80fd\u5c06\u4fe1\u606f\u5206\u6563\u5728\u7b14\u8bb0\u672c\u7535\u8111\u3001\u624b\u673a\u3001\u5e73\u677f\u7535\u8111\u548c\u667a\u80fd\u51b0\u7bb1\u4e0a\u3002\u4e0d\u5e78\u7684\u662f\uff0c\u8fd9\u610f\u5473\u7740\u5f53\u6211\u4eec\u9700\u8981\u6765\u81ea\u8be5\u8bbe\u5907\u7684\u4fe1\u606f\u65f6\uff0c\u6211\u4eec\u901a\u5e38\u5fc5\u987b\u67e5\u770b\u8be5\u8bbe\u5907\u3002<\/p>\n

\u867d\u7136\u4e0d\u5b8c\u5168\u662f\u50cf\u5168\u606f\u7ec8\u7aef\u6216\u98de\u884c\u6c7d\u8f66\u90a3\u6837\u9177\u70ab\uff0c\u4f46\u00a0srevin saju\u00a0\u5f00\u53d1\u7684\u00a0guiscrcpy\u00a0\u662f\u4e00\u4e2a\u53ef\u4ee5\u5728\u4e00\u4e2a\u5730\u65b9\u6574\u5408\u591a\u4e2a\u5c4f\u5e55\uff0c\u8ba9\u4f60\u6709\u4e00\u70b9\u672a\u6765\u611f\u89c9\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

Guiscrcpy \u662f\u4e00\u4e2a\u57fa\u4e8e\u5c61\u83b7\u6b8a\u8363\u7684\u4e00\u4e2a\u5f00\u6e90\u5f15\u64ce\u00a0scrcpy\u00a0\u7684\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\uff08GUN GPLv3 \u8bb8\u53ef\u8bc1\uff09\u3002\u4f7f\u7528 Guiscrcpy \u53ef\u4ee5\u5c06\u4f60\u7684\u5b89\u5353\u624b\u673a\u7684\u5c4f\u5e55\u6295\u5c04\u5230\u4f60\u7684\u7535\u8111\uff0c\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u67e5\u770b\u624b\u673a\u4e0a\u7684\u4e00\u5207\u4e1c\u897f\u3002Guiscrcpy \u652f\u6301 Linux\u3001Windows \u548c MacOS\u3002<\/p>\n

\u4e0d\u50cf\u5176\u4ed6 scrcpy \u7684\u66ff\u4ee3\u8f6f\u4ef6\u4e00\u6837\uff0cGuiscrcpy \u5e76\u4e0d\u4ec5\u4ec5\u662f scrcpy \u7684\u4e00\u4e2a\u7b80\u5355\u7684\u590d\u5236\u54c1\u3002\u8be5\u9879\u76ee\u4f18\u5148\u8003\u8651\u4e86\u4e0e\u5176\u4ed6\u5f00\u6e90\u9879\u76ee\u7684\u534f\u4f5c\u3002\u56e0\u6b64\uff0cGuiscrcpy \u5bf9 scrcpy \u6765\u8bf4\u662f\u4e00\u4e2a\u6269\u5c55\uff0c\u6216\u8005\u8bf4\u662f\u4e00\u4e2a\u7528\u6237\u754c\u9762\u5c42\u3002\u5c06 Python 3 GUI \u4e0e scrcpy \u5206\u5f00\u53ef\u4ee5\u786e\u4fdd\u6ca1\u6709\u4efb\u4f55\u4e1c\u897f\u5e72\u6270 scrcpy \u540e\u7aef\u7684\u6548\u7387\u3002\u4f60\u53ef\u4ee5\u6295\u5c04\u5230 1080P \u5206\u8fa8\u7387\u7684\u5c4f\u5e55\uff0c\u56e0\u4e3a\u5b83\u7684\u8d85\u5feb\u7684\u6e32\u67d3\u901f\u5ea6\u548c\u8d85\u4f4e\u7684 CPU \u4f7f\u7528\uff0c\u5373\u4f7f\u5728\u4f4e\u7aef\u7684\u7535\u8111\u4e0a\u4e5f\u53ef\u4ee5\u8fd0\u884c\u7684\u5f88\u987a\u7545\u3002<\/p>\n

Scrcpy \u662f Guiscrcpy \u9879\u76ee\u7684\u57fa\u77f3\u3002\u5b83\u662f\u4e00\u4e2a\u57fa\u4e8e\u547d\u4ee4\u884c\u7684\u5e94\u7528\uff0c\u56e0\u6b64\u5b83\u6ca1\u6709\u5904\u7406\u4f60\u7684\u624b\u52bf\u64cd\u4f5c\u7684\u7528\u6237\u754c\u9762\u3002\u5b83\u4e5f\u6ca1\u6709\u63d0\u4f9b\u8fd4\u56de\u6309\u94ae\u548c\u4e3b\u9875\u6309\u94ae\uff0c\u800c\u4e14\u5b83\u9700\u8981\u4f60\u5bf9\u00a0Linux \u7ec8\u7aef\u6bd4\u8f83\u719f\u6089\u3002Guiscrcpy \u7ed9 scrcpy \u6dfb\u52a0\u4e86\u56fe\u5f62\u9762\u677f\u3002\u56e0\u6b64\uff0c\u4efb\u4f55\u7528\u6237\u90fd\u53ef\u4ee5\u4f7f\u7528\u5b83\uff0c\u800c\u4e14\u4e0d\u9700\u8981\u901a\u8fc7\u7f51\u7edc\u53d1\u9001\u4efb\u4f55\u4fe1\u606f\u5c31\u53ef\u4ee5\u6295\u5c04\u548c\u63a7\u5236\u4ed6\u7684\u8bbe\u5907\u3002Guiscrcpy \u540c\u65f6\u4e5f\u4e3a Windows \u7528\u6237\u548c Linux \u7528\u6237\u63d0\u4f9b\u4e86\u7f16\u8bd1\u597d\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u4ee5\u65b9\u4fbf\u4f60\u7684\u4f7f\u7528\u3002<\/p>\n

\u5b89\u88c5 Guiscrcpy<\/strong><\/div>\n

\u5728\u4f60\u5b89\u88c5 Guiscrcpy \u4e4b\u524d\uff0c\u4f60\u9700\u8981\u5148\u5b89\u88c5\u5b83\u7684\u4f9d\u8d56\u5305\u3002\u5c24\u5176\u662f\u8981\u5b89\u88c5 scrcpy\u3002\u5b89\u88c5 scrcpy \u6700\u7b80\u5355\u7684\u65b9\u5f0f\u53ef\u80fd\u5c31\u662f\u4f7f\u7528\u5bf9\u4e8e\u5927\u90e8\u5206 Linux \u53d1\u884c\u7248\u90fd\u5b89\u88c5\u4e86\u7684\u00a0snap\u00a0\u5de5\u5177\u3002\u5982\u679c\u4f60\u7684\u7535\u8111\u4e0a\u5b89\u88c5\u5e76\u4f7f\u7528\u4e86 snap\uff0c\u90a3\u4e48\u4f60\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u6765\u4e00\u6b65\u5b89\u88c5 scrcpy\u3002<\/p>\n

$ sudo snap install scrcpy<\/pre>\n

\u5f53\u4f60\u5b89\u88c5\u5b8c scrcpy\uff0c\u4f60\u5c31\u53ef\u4ee5\u5b89\u88c5\u5176\u4ed6\u7684\u4f9d\u8d56\u5305\u4e86\u3002Simple DirectMedia Layer\uff08SDL 2.0\uff09 \u662f\u4e00\u4e2a\u663e\u793a\u548c\u63a7\u5236\u4f60\u8bbe\u5907\u5c4f\u5e55\u7684\u5de5\u5177\u5305\u3002Android Debug Bridge(ADB) \u547d\u4ee4\u53ef\u4ee5\u8fde\u63a5\u4f60\u7684\u5b89\u5353\u624b\u673a\u5230\u7535\u8111\u3002<\/p>\n

\u5728 Fedora \u6216\u8005 CentOS\uff1a<\/p>\n

$ sudo dnf install SDL2 android-tools<\/pre>\n

\u5728 Ubuntu \u6216\u8005 Debian\uff1a<\/p>\n

$ sudo apt install SDL2 android-tools-adb<\/pre>\n

\u5728\u53e6\u4e00\u4e2a\u7ec8\u7aef\u4e2d\uff0c\u5b89\u88c5 Python \u4f9d\u8d56\u9879\uff1a<\/p>\n

$ python3 -m pip install -r requirements.txt --user<\/pre>\n
\u8bbe\u7f6e\u4f60\u7684\u624b\u673a<\/strong><\/div>\n

\u4e3a\u4e86\u80fd\u591f\u8ba9\u4f60\u7684\u624b\u673a\u63a5\u53d7 adb \u8fde\u63a5\u3002\u5fc5\u987b\u8ba9\u4f60\u7684\u624b\u673a\u5f00\u542f\u5f00\u53d1\u8005\u9009\u9879\u3002\u4e3a\u4e86\u6253\u5f00\u5f00\u53d1\u8005\u9009\u9879\uff0c\u6253\u5f00\u201c\u8bbe\u7f6e\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u5173\u4e8e\u624b\u673a\u201d\uff0c\u627e\u5230\u201c\u7248\u672c\u53f7\u201d\uff08\u5b83\u4e5f\u53ef\u80fd\u4f4d\u4e8e\u201c\u8f6f\u4ef6\u4fe1\u606f\u201d\u9762\u677f\u4e2d\uff09\u3002\u4e0d\u6562\u7f6e\u4fe1\uff0c\u53ea\u8981\u4f60\u8fde\u7eed\u70b9\u51fb\u201c\u7248\u672c\u53f7\u201d\u4e03\u6b21\uff0c\u4f60\u5c31\u53ef\u4ee5\u6253\u5f00\u5f00\u53d1\u8005\u9009\u9879\u3002\uff08LCTT \u8bd1\u6ce8\uff1a\u663e\u7136\u8fd9\u91cc\u662f\u4ee5 Google \u539f\u751f\u7684 Android \u4f5c\u4e3a\u8bf4\u660e\u7684\uff0c\u4f60\u7684\u4e0d\u540c\u54c1\u724c\u7684\u5b89\u5353\u624b\u673a\u6253\u5f00\u5f00\u53d1\u8005\u9009\u9879\u7684\u65b9\u5f0f\u6216\u6709\u4e0d\u540c\u3002\uff09<\/p>\n

\"\"<\/p>\n

\u4e00\u65e6\u4f60\u8bbe\u7f6e\u597d\u4e86\u4f60\u7684\u624b\u673a\uff0c\u5c06\u4f60\u7684\u624b\u673a\u901a\u8fc7 USB \u7ebf\u63d2\u5165\u5230\u4f60\u7684\u7535\u8111\u4e2d\uff08\u6216\u8005\u901a\u8fc7\u65e0\u7ebf\u7684\u65b9\u5f0f\u8fdb\u884c\u8fde\u63a5\uff0c\u786e\u4fdd\u4f60\u5df2\u7ecf\u914d\u7f6e\u597d\u4e86\u65e0\u7ebf\u8fde\u63a5\uff09\u3002<\/p>\n

\u4f7f\u7528 Guiscrcpy<\/strong><\/div>\n

\u5f53\u4f60\u542f\u52a8 guiscrcpy \u7684\u65f6\u5019\uff0c\u4f60\u5c31\u80fd\u770b\u5230\u4e00\u4e2a\u4e3b\u63a7\u5236\u7a97\u53e3\u3002\u70b9\u51fb\u7a97\u53e3\u91cc\u7684 \u201cStart scrcpy\u201d \u6309\u94ae\u3002\u53ea\u8981\u4f60\u8bbe\u7f6e\u597d\u4e86\u5f00\u53d1\u8005\u6a21\u5f0f\u5e76\u4e14\u901a\u8fc7 USB \u6216\u8005 WiFi \u5c06\u4f60\u7684\u624b\u673a\u8fde\u63a5\u5230\u7535\u8111\u3002guiscrcpy \u5c31\u4f1a\u8fde\u63a5\u4f60\u7684\u624b\u673a\u3002<\/p>\n

\"\"<\/p>\n

\u5b83\u8fd8\u5305\u62ec\u4e00\u4e2a\u53ef\u5199\u5165\u7684\u914d\u7f6e\u7cfb\u7edf\uff0c\u4f60\u53ef\u4ee5\u5c06\u4f60\u7684\u914d\u7f6e\u6587\u4ef6\u5199\u5165\u5230\u00a0~\/.config\u00a0\u76ee\u5f55\u3002\u53ef\u4ee5\u5728\u4f7f\u7528\u524d\u4fdd\u5b58\u4f60\u7684\u9996\u9009\u9879\u3002<\/p>\n

guiscrcpy \u5e95\u90e8\u7684\u9762\u677f\u662f\u4e00\u4e2a\u6d6e\u52a8\u7684\u7a97\u53e3\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u6267\u884c\u4e00\u4e9b\u57fa\u672c\u7684\u63a7\u5236\u52a8\u4f5c\u3002\u5b83\u5305\u62ec\u4e86\u4e3b\u9875\u6309\u94ae\u3001\u8fd4\u56de\u6309\u94ae\u3001\u7535\u6e90\u6309\u94ae\u4ee5\u53ca\u4e00\u4e9b\u5176\u4ed6\u7684\u6309\u952e\u3002\u8fd9\u4e9b\u6309\u952e\u5728\u5b89\u5353\u624b\u673a\u4e0a\u90fd\u975e\u5e38\u5e38\u7528\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u4e2a\u6a21\u5757\u5e76\u4e0d\u662f\u4e0e scrcpy \u7684 SDL \u8fdb\u884c\u4ea4\u4e92\u3002\u56e0\u6b64\uff0c\u5b83\u53ef\u4ee5\u6beb\u65e0\u5ef6\u8fdf\u7684\u6267\u884c\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u8fd9\u4e2a\u64cd\u4f5c\u7a97\u53e3\u662f\u76f4\u63a5\u901a\u8fc7 adb \u4e0e\u4f60\u7684\u624b\u673a\u8fdb\u884c\u4ea4\u4e92\u800c\u4e0d\u662f\u901a\u8fc7 scrcpy\u3002<\/p>\n

\u8fd9\u4e2a\u9879\u76ee\u76ee\u524d\u5341\u5206\u6d3b\u8dc3\uff0c\u4e0d\u65ad\u5730\u6709\u65b0\u7684\u7279\u6027\u52a0\u5165\u5176\u4e2d\u3002\u6700\u65b0\u7248\u672c\u7684\u5177\u6709\u4e86\u624b\u52bf\u64cd\u4f5c\u548c\u901a\u77e5\u754c\u9762\u3002<\/p>\n

\u6709\u4e86\u8fd9\u4e2a guiscrcpy\uff0c\u4f60\u4e0d\u4ec5\u4ec5\u53ef\u4ee5\u5728\u4f60\u7684\u7535\u8111\u5c4f\u5e55\u4e0a\u770b\u5230\u4f60\u7684\u624b\u673a\uff0c\u4f60\u8fd8\u53ef\u4ee5\u5c31\u50cf\u64cd\u4f5c\u4f60\u7684\u5b9e\u4f53\u624b\u673a\u4e00\u6837\u70b9\u51fb SDL \u7a97\u53e3\uff0c\u6216\u8005\u4f7f\u7528\u6d6e\u52a8\u7a97\u53e3\u4e0a\u7684\u6309\u94ae\u4e0e\u4e4b\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n

\"\"<\/p>\n

Guiscrcpy \u662f\u4e00\u4e2a\u6709\u8da3\u4e14\u5b9e\u7528\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u63d0\u4f9b\u7684\u529f\u80fd\u5e94\u8be5\u662f\u4efb\u4f55\u73b0\u4ee3\u8bbe\u5907\uff08\u5c24\u5176\u662f Android \u4e4b\u7c7b\u7684\u5e73\u53f0\uff09\u7684\u6b63\u5f0f\u529f\u80fd\u3002\u81ea\u5df1\u5c1d\u8bd5\u4e00\u4e0b\uff0c\u4e3a\u5f53\u4eca\u7684\u6570\u5b57\u751f\u6d3b\u589e\u6dfb\u4e00\u4e9b\u672a\u6765\u4e3b\u4e49\u7684\u611f\u89c9\u3002<\/p>\n


\n

via:\u00a0https:\/\/opensource.com\/article\/19\/9\/mirror-android-screen-guiscrcpy<\/a><\/p>\n

\u4f5c\u8005\uff1aSeth Kenlon<\/a>\u00a0\u9009\u9898\uff1alujun9972<\/a>\u00a0\u8bd1\u8005\uff1aamwps290<\/a>\u00a0\u6821\u5bf9\uff1awxy<\/a><\/p>\n

\u672c\u6587\u7531\u00a0LCTT<\/a>\u00a0\u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a>\u00a0\u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728\u672a\u6765\uff0c\u4f60\u6240\u9700\u7684\u4e00\u5207\u4fe1\u606f\u7686\u89e6\u624b\u53ef\u53ca\uff0c\u5e76\u4e14\u5168\u90e8\u4f1a\u4ee5\u5168\u606f\u7684\u5f62\u5f0f\u51fa\u73b0\u5728\u7a7a\u4e2d\uff0c\u5373\u4f7f\u4f60\u5728\u9a7e\u9a76\u6c7d\u8f66\u65f6\u4e5f\u53ef\u4ee5\u4e0e\u4e4b\u4ea4\u4e92\u3002\u4e0d\u8fc7\uff0c\u90a3\u662f\u672a\u6765\uff0c\u5728\u90a3\u4e00\u523b\u5230\u6765\u4e4b\u524d\uff0c\u6211\u4eec\u6240\u6709\u4eba\u90fd\u53ea\u80fd\u5c06\u4fe1\u606f\u5206\u6563\u5728\u7b14\u8bb0\u672c\u7535\u8111\u3001\u624b\u673a\u3001\u5e73\u677f\u7535\u8111\u548c\u667a\u80fd\u51b0\u7bb1\u4e0a\u3002\u4e0d\u5e78\u7684\u662f\uff0c\u8fd9\u610f\u5473\u7740\u5f53\u6211\u4eec\u9700\u8981\u6765\u81ea\u8be5\u8bbe\u5907\u7684\u4fe1\u606f\u65f6\uff0c\u6211\u4eec\u901a\u5e38\u5fc5\u987b\u67e5\u770b\u8be5\u8bbe\u5907\u3002<\/p>\n","protected":false},"author":323,"featured_media":115451,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-160814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/160814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=160814"}],"version-history":[{"count":5,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/160814\/revisions"}],"predecessor-version":[{"id":161229,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/160814\/revisions\/161229"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/115451"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=160814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=160814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=160814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}