leejunyoung5819wayland-android-remote

공개

Ubuntu(Wayland/X11)에서 Android 기기 화면 미러링 및 원격 제어 (Rust)

배포 준비: GPL-3.0-or-later, 배포판별 .deb, README 정리

- 라이선스 GPL-3.0-or-later (LICENSE, Cargo.toml, DEP-5 packaging/copyright)
- 서드파티 고지: Rust 크레이트 라이선스 원문 모음(scripts/third-party-licenses.py, .deb 포함),
  APK assets/third_party_licenses.txt
- .deb: cargo-deb 설정(관리자, dlopen 런타임 의존성, 매뉴얼 페이지, Debian 변경 기록)
- Ubuntu 26.04/24.04 컨테이너 빌드(packaging/Containerfile, scripts/build-deb.sh)
- 릴리스 첨부 파일 모으기(scripts/release.sh: .deb 2개, APK, 소스 아카이브, SHA256SUMS)
- README 사용자 중심으로 재작성, 스크린샷 추가
- docs/release-checklist.md 배포 전 점검표
- 테스트 데이터의 실제 기기 일련번호를 가짜 값으로
작성자
LeeJunyoung
작성 시각
커밋
915194e6ceb8e6068f2a6379beea6dcc08b2e3eb
부모
fe8ddc3
이 시점의 파일 보기

변경된 파일 14개

+1,739-61
수정.gitignore+3-0
@@ -19,3 +19,6 @@ captures/
1919*.iml
2020.vscode/
2121.DS_Store
22추가:
23추가: # 릴리스 산출물
24추가: /dist/
수정Cargo.toml+29-0
@@ -2,9 +2,38 @@
22name = "wayland-android-remote"
33version = "0.1.0"
44edition = "2024"
5추가: authors = ["LeeJunyoung <[email protected]>"]
6추가: license = "GPL-3.0-or-later"
57description = "Ubuntu(Wayland/X11)에서 Android 기기 화면 미러링 및 원격 제어 호스트 클라이언트"
68publish = false
79
10추가: [package.metadata.deb]
11추가: name = "android-remote"
12추가: maintainer = "LeeJunyoung <[email protected]>"
13추가: copyright = "2026, LeeJunyoung <[email protected]>"
14추가: license-file = ["packaging/copyright", "0"]
15추가: # scripts/build-deb.sh가 배포판별 버전으로 만든다.
16추가: changelog = "target/debian-changelog"
17추가: section = "utils"
18추가: priority = "optional"
19추가: # $auto는 직접 링크한 FFmpeg·libc만 잡는다. winit·wgpu가 dlopen으로 여는 Wayland·X11·Vulkan 라이브러리를 더한다.
20추가: depends = "$auto, libvulkan1, libwayland-client0, libxkbcommon0, libxkbcommon-x11-0, libx11-6, libx11-xcb1, libxcursor1, libxi6"
21추가: recommends = "mesa-vulkan-drivers | vulkan-icd, va-driver-all | va-driver, adb"
22추가: extended-description = """\
23추가: Ubuntu(Wayland/X11)에서 Android 휴대폰 화면을 실시간으로 띄우고 PC의 마우스와 키보드로 조작한다.
24추가: 텍스트·이미지 클립보드 동기화와 PC에서 휴대폰으로의 파일 전송을 지원한다.
25추가: 휴대폰에는 Android Remote 동반 앱이 필요하다."""
26추가: assets = [
27추가: ["target/release/android-remote", "usr/bin/", "755"],
28추가: ["packaging/android-remote.desktop", "usr/share/applications/", "644"],
29추가: ["packaging/android-remote.svg", "usr/share/icons/hicolor/scalable/apps/", "644"],
30추가: ["README.md", "usr/share/doc/android-remote/", "644"],
31추가: # scripts/third-party-licenses.py가 만든다 (scripts/build-deb.sh가 먼저 실행).
32추가: ["target/third-party-licenses.txt", "usr/share/doc/android-remote/", "644"],
33추가: # scripts/build-deb.sh가 packaging/android-remote.1을 압축해 둔다.
34추가: ["target/android-remote.1.gz", "usr/share/man/man1/", "644"],
35추가: ]
36추가:
837[[bin]]
938name = "android-remote"
1039path = "src/main.rs"
추가LICENSE+674-0
@@ -0,0 +1,674 @@
1추가: GNU GENERAL PUBLIC LICENSE
2추가: Version 3, 29 June 2007
3추가:
4추가: Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5추가: Everyone is permitted to copy and distribute verbatim copies
6추가: of this license document, but changing it is not allowed.
7추가:
8추가: Preamble
9추가:
10추가: The GNU General Public License is a free, copyleft license for
11추가: software and other kinds of works.
12추가:
13추가: The licenses for most software and other practical works are designed
14추가: to take away your freedom to share and change the works. By contrast,
15추가: the GNU General Public License is intended to guarantee your freedom to
16추가: share and change all versions of a program--to make sure it remains free
17추가: software for all its users. We, the Free Software Foundation, use the
18추가: GNU General Public License for most of our software; it applies also to
19추가: any other work released this way by its authors. You can apply it to
20추가: your programs, too.
21추가:
22추가: When we speak of free software, we are referring to freedom, not
23추가: price. Our General Public Licenses are designed to make sure that you
24추가: have the freedom to distribute copies of free software (and charge for
25추가: them if you wish), that you receive source code or can get it if you
26추가: want it, that you can change the software or use pieces of it in new
27추가: free programs, and that you know you can do these things.
28추가:
29추가: To protect your rights, we need to prevent others from denying you
30추가: these rights or asking you to surrender the rights. Therefore, you have
31추가: certain responsibilities if you distribute copies of the software, or if
32추가: you modify it: responsibilities to respect the freedom of others.
33추가:
34추가: For example, if you distribute copies of such a program, whether
35추가: gratis or for a fee, you must pass on to the recipients the same
36추가: freedoms that you received. You must make sure that they, too, receive
37추가: or can get the source code. And you must show them these terms so they
38추가: know their rights.
39추가:
40추가: Developers that use the GNU GPL protect your rights with two steps:
41추가: (1) assert copyright on the software, and (2) offer you this License
42추가: giving you legal permission to copy, distribute and/or modify it.
43추가:
44추가: For the developers' and authors' protection, the GPL clearly explains
45추가: that there is no warranty for this free software. For both users' and
46추가: authors' sake, the GPL requires that modified versions be marked as
47추가: changed, so that their problems will not be attributed erroneously to
48추가: authors of previous versions.
49추가:
50추가: Some devices are designed to deny users access to install or run
51추가: modified versions of the software inside them, although the manufacturer
52추가: can do so. This is fundamentally incompatible with the aim of
53추가: protecting users' freedom to change the software. The systematic
54추가: pattern of such abuse occurs in the area of products for individuals to
55추가: use, which is precisely where it is most unacceptable. Therefore, we
56추가: have designed this version of the GPL to prohibit the practice for those
57추가: products. If such problems arise substantially in other domains, we
58추가: stand ready to extend this provision to those domains in future versions
59추가: of the GPL, as needed to protect the freedom of users.
60추가:
61추가: Finally, every program is threatened constantly by software patents.
62추가: States should not allow patents to restrict development and use of
63추가: software on general-purpose computers, but in those that do, we wish to
64추가: avoid the special danger that patents applied to a free program could
65추가: make it effectively proprietary. To prevent this, the GPL assures that
66추가: patents cannot be used to render the program non-free.
67추가:
68추가: The precise terms and conditions for copying, distribution and
69추가: modification follow.
70추가:
71추가: TERMS AND CONDITIONS
72추가:
73추가: 0. Definitions.
74추가:
75추가: "This License" refers to version 3 of the GNU General Public License.
76추가:
77추가: "Copyright" also means copyright-like laws that apply to other kinds of
78추가: works, such as semiconductor masks.
79추가:
80추가: "The Program" refers to any copyrightable work licensed under this
81추가: License. Each licensee is addressed as "you". "Licensees" and
82추가: "recipients" may be individuals or organizations.
83추가:
84추가: To "modify" a work means to copy from or adapt all or part of the work
85추가: in a fashion requiring copyright permission, other than the making of an
86추가: exact copy. The resulting work is called a "modified version" of the
87추가: earlier work or a work "based on" the earlier work.
88추가:
89추가: A "covered work" means either the unmodified Program or a work based
90추가: on the Program.
91추가:
92추가: To "propagate" a work means to do anything with it that, without
93추가: permission, would make you directly or secondarily liable for
94추가: infringement under applicable copyright law, except executing it on a
95추가: computer or modifying a private copy. Propagation includes copying,
96추가: distribution (with or without modification), making available to the
97추가: public, and in some countries other activities as well.
98추가:
99추가: To "convey" a work means any kind of propagation that enables other
100추가: parties to make or receive copies. Mere interaction with a user through
101추가: a computer network, with no transfer of a copy, is not conveying.
102추가:
103추가: An interactive user interface displays "Appropriate Legal Notices"
104추가: to the extent that it includes a convenient and prominently visible
105추가: feature that (1) displays an appropriate copyright notice, and (2)
106추가: tells the user that there is no warranty for the work (except to the
107추가: extent that warranties are provided), that licensees may convey the
108추가: work under this License, and how to view a copy of this License. If
109추가: the interface presents a list of user commands or options, such as a
110추가: menu, a prominent item in the list meets this criterion.
111추가:
112추가: 1. Source Code.
113추가:
114추가: The "source code" for a work means the preferred form of the work
115추가: for making modifications to it. "Object code" means any non-source
116추가: form of a work.
117추가:
118추가: A "Standard Interface" means an interface that either is an official
119추가: standard defined by a recognized standards body, or, in the case of
120추가: interfaces specified for a particular programming language, one that
121추가: is widely used among developers working in that language.
122추가:
123추가: The "System Libraries" of an executable work include anything, other
124추가: than the work as a whole, that (a) is included in the normal form of
125추가: packaging a Major Component, but which is not part of that Major
126추가: Component, and (b) serves only to enable use of the work with that
127추가: Major Component, or to implement a Standard Interface for which an
128추가: implementation is available to the public in source code form. A
129추가: "Major Component", in this context, means a major essential component
130추가: (kernel, window system, and so on) of the specific operating system
131추가: (if any) on which the executable work runs, or a compiler used to
132추가: produce the work, or an object code interpreter used to run it.
133추가:
134추가: The "Corresponding Source" for a work in object code form means all
135추가: the source code needed to generate, install, and (for an executable
136추가: work) run the object code and to modify the work, including scripts to
137추가: control those activities. However, it does not include the work's
138추가: System Libraries, or general-purpose tools or generally available free
139추가: programs which are used unmodified in performing those activities but
140추가: which are not part of the work. For example, Corresponding Source
141추가: includes interface definition files associated with source files for
142추가: the work, and the source code for shared libraries and dynamically
143추가: linked subprograms that the work is specifically designed to require,
144추가: such as by intimate data communication or control flow between those
145추가: subprograms and other parts of the work.
146추가:
147추가: The Corresponding Source need not include anything that users
148추가: can regenerate automatically from other parts of the Corresponding
149추가: Source.
150추가:
151추가: The Corresponding Source for a work in source code form is that
152추가: same work.
153추가:
154추가: 2. Basic Permissions.
155추가:
156추가: All rights granted under this License are granted for the term of
157추가: copyright on the Program, and are irrevocable provided the stated
158추가: conditions are met. This License explicitly affirms your unlimited
159추가: permission to run the unmodified Program. The output from running a
160추가: covered work is covered by this License only if the output, given its
161추가: content, constitutes a covered work. This License acknowledges your
162추가: rights of fair use or other equivalent, as provided by copyright law.
163추가:
164추가: You may make, run and propagate covered works that you do not
165추가: convey, without conditions so long as your license otherwise remains
166추가: in force. You may convey covered works to others for the sole purpose
167추가: of having them make modifications exclusively for you, or provide you
168추가: with facilities for running those works, provided that you comply with
169추가: the terms of this License in conveying all material for which you do
170추가: not control copyright. Those thus making or running the covered works
171추가: for you must do so exclusively on your behalf, under your direction
172추가: and control, on terms that prohibit them from making any copies of
173추가: your copyrighted material outside their relationship with you.
174추가:
175추가: Conveying under any other circumstances is permitted solely under
176추가: the conditions stated below. Sublicensing is not allowed; section 10
177추가: makes it unnecessary.
178추가:
179추가: 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180추가:
181추가: No covered work shall be deemed part of an effective technological
182추가: measure under any applicable law fulfilling obligations under article
183추가: 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184추가: similar laws prohibiting or restricting circumvention of such
185추가: measures.
186추가:
187추가: When you convey a covered work, you waive any legal power to forbid
188추가: circumvention of technological measures to the extent such circumvention
189추가: is effected by exercising rights under this License with respect to
190추가: the covered work, and you disclaim any intention to limit operation or
191추가: modification of the work as a means of enforcing, against the work's
192추가: users, your or third parties' legal rights to forbid circumvention of
193추가: technological measures.
194추가:
195추가: 4. Conveying Verbatim Copies.
196추가:
197추가: You may convey verbatim copies of the Program's source code as you
198추가: receive it, in any medium, provided that you conspicuously and
199추가: appropriately publish on each copy an appropriate copyright notice;
200추가: keep intact all notices stating that this License and any
201추가: non-permissive terms added in accord with section 7 apply to the code;
202추가: keep intact all notices of the absence of any warranty; and give all
203추가: recipients a copy of this License along with the Program.
204추가:
205추가: You may charge any price or no price for each copy that you convey,
206추가: and you may offer support or warranty protection for a fee.
207추가:
208추가: 5. Conveying Modified Source Versions.
209추가:
210추가: You may convey a work based on the Program, or the modifications to
211추가: produce it from the Program, in the form of source code under the
212추가: terms of section 4, provided that you also meet all of these conditions:
213추가:
214추가: a) The work must carry prominent notices stating that you modified
215추가: it, and giving a relevant date.
216추가:
217추가: b) The work must carry prominent notices stating that it is
218추가: released under this License and any conditions added under section
219추가: 7. This requirement modifies the requirement in section 4 to
220추가: "keep intact all notices".
221추가:
222추가: c) You must license the entire work, as a whole, under this
223추가: License to anyone who comes into possession of a copy. This
224추가: License will therefore apply, along with any applicable section 7
225추가: additional terms, to the whole of the work, and all its parts,
226추가: regardless of how they are packaged. This License gives no
227추가: permission to license the work in any other way, but it does not
228추가: invalidate such permission if you have separately received it.
229추가:
230추가: d) If the work has interactive user interfaces, each must display
231추가: Appropriate Legal Notices; however, if the Program has interactive
232추가: interfaces that do not display Appropriate Legal Notices, your
233추가: work need not make them do so.
234추가:
235추가: A compilation of a covered work with other separate and independent
236추가: works, which are not by their nature extensions of the covered work,
237추가: and which are not combined with it such as to form a larger program,
238추가: in or on a volume of a storage or distribution medium, is called an
239추가: "aggregate" if the compilation and its resulting copyright are not
240추가: used to limit the access or legal rights of the compilation's users
241추가: beyond what the individual works permit. Inclusion of a covered work
242추가: in an aggregate does not cause this License to apply to the other
243추가: parts of the aggregate.
244추가:
245추가: 6. Conveying Non-Source Forms.
246추가:
247추가: You may convey a covered work in object code form under the terms
248추가: of sections 4 and 5, provided that you also convey the
249추가: machine-readable Corresponding Source under the terms of this License,
250추가: in one of these ways:
251추가:
252추가: a) Convey the object code in, or embodied in, a physical product
253추가: (including a physical distribution medium), accompanied by the
254추가: Corresponding Source fixed on a durable physical medium
255추가: customarily used for software interchange.
256추가:
257추가: b) Convey the object code in, or embodied in, a physical product
258추가: (including a physical distribution medium), accompanied by a
259추가: written offer, valid for at least three years and valid for as
260추가: long as you offer spare parts or customer support for that product
261추가: model, to give anyone who possesses the object code either (1) a
262추가: copy of the Corresponding Source for all the software in the
263추가: product that is covered by this License, on a durable physical
264추가: medium customarily used for software interchange, for a price no
265추가: more than your reasonable cost of physically performing this
266추가: conveying of source, or (2) access to copy the
267추가: Corresponding Source from a network server at no charge.
268추가:
269추가: c) Convey individual copies of the object code with a copy of the
270추가: written offer to provide the Corresponding Source. This
271추가: alternative is allowed only occasionally and noncommercially, and
272추가: only if you received the object code with such an offer, in accord
273추가: with subsection 6b.
274추가:
275추가: d) Convey the object code by offering access from a designated
276추가: place (gratis or for a charge), and offer equivalent access to the
277추가: Corresponding Source in the same way through the same place at no
278추가: further charge. You need not require recipients to copy the
279추가: Corresponding Source along with the object code. If the place to
280추가: copy the object code is a network server, the Corresponding Source
281추가: may be on a different server (operated by you or a third party)
282추가: that supports equivalent copying facilities, provided you maintain
283추가: clear directions next to the object code saying where to find the
284추가: Corresponding Source. Regardless of what server hosts the
285추가: Corresponding Source, you remain obligated to ensure that it is
286추가: available for as long as needed to satisfy these requirements.
287추가:
288추가: e) Convey the object code using peer-to-peer transmission, provided
289추가: you inform other peers where the object code and Corresponding
290추가: Source of the work are being offered to the general public at no
291추가: charge under subsection 6d.
292추가:
293추가: A separable portion of the object code, whose source code is excluded
294추가: from the Corresponding Source as a System Library, need not be
295추가: included in conveying the object code work.
296추가:
297추가: A "User Product" is either (1) a "consumer product", which means any
298추가: tangible personal property which is normally used for personal, family,
299추가: or household purposes, or (2) anything designed or sold for incorporation
300추가: into a dwelling. In determining whether a product is a consumer product,
301추가: doubtful cases shall be resolved in favor of coverage. For a particular
302추가: product received by a particular user, "normally used" refers to a
303추가: typical or common use of that class of product, regardless of the status
304추가: of the particular user or of the way in which the particular user
305추가: actually uses, or expects or is expected to use, the product. A product
306추가: is a consumer product regardless of whether the product has substantial
307추가: commercial, industrial or non-consumer uses, unless such uses represent
308추가: the only significant mode of use of the product.
309추가:
310추가: "Installation Information" for a User Product means any methods,
311추가: procedures, authorization keys, or other information required to install
312추가: and execute modified versions of a covered work in that User Product from
313추가: a modified version of its Corresponding Source. The information must
314추가: suffice to ensure that the continued functioning of the modified object
315추가: code is in no case prevented or interfered with solely because
316추가: modification has been made.
317추가:
318추가: If you convey an object code work under this section in, or with, or
319추가: specifically for use in, a User Product, and the conveying occurs as
320추가: part of a transaction in which the right of possession and use of the
321추가: User Product is transferred to the recipient in perpetuity or for a
322추가: fixed term (regardless of how the transaction is characterized), the
323추가: Corresponding Source conveyed under this section must be accompanied
324추가: by the Installation Information. But this requirement does not apply
325추가: if neither you nor any third party retains the ability to install
326추가: modified object code on the User Product (for example, the work has
327추가: been installed in ROM).
328추가:
329추가: The requirement to provide Installation Information does not include a
330추가: requirement to continue to provide support service, warranty, or updates
331추가: for a work that has been modified or installed by the recipient, or for
332추가: the User Product in which it has been modified or installed. Access to a
333추가: network may be denied when the modification itself materially and
334추가: adversely affects the operation of the network or violates the rules and
335추가: protocols for communication across the network.
336추가:
337추가: Corresponding Source conveyed, and Installation Information provided,
338추가: in accord with this section must be in a format that is publicly
339추가: documented (and with an implementation available to the public in
340추가: source code form), and must require no special password or key for
341추가: unpacking, reading or copying.
342추가:
343추가: 7. Additional Terms.
344추가:
345추가: "Additional permissions" are terms that supplement the terms of this
346추가: License by making exceptions from one or more of its conditions.
347추가: Additional permissions that are applicable to the entire Program shall
348추가: be treated as though they were included in this License, to the extent
349추가: that they are valid under applicable law. If additional permissions
350추가: apply only to part of the Program, that part may be used separately
351추가: under those permissions, but the entire Program remains governed by
352추가: this License without regard to the additional permissions.
353추가:
354추가: When you convey a copy of a covered work, you may at your option
355추가: remove any additional permissions from that copy, or from any part of
356추가: it. (Additional permissions may be written to require their own
357추가: removal in certain cases when you modify the work.) You may place
358추가: additional permissions on material, added by you to a covered work,
359추가: for which you have or can give appropriate copyright permission.
360추가:
361추가: Notwithstanding any other provision of this License, for material you
362추가: add to a covered work, you may (if authorized by the copyright holders of
363추가: that material) supplement the terms of this License with terms:
364추가:
365추가: a) Disclaiming warranty or limiting liability differently from the
366추가: terms of sections 15 and 16 of this License; or
367추가:
368추가: b) Requiring preservation of specified reasonable legal notices or
369추가: author attributions in that material or in the Appropriate Legal
370추가: Notices displayed by works containing it; or
371추가:
372추가: c) Prohibiting misrepresentation of the origin of that material, or
373추가: requiring that modified versions of such material be marked in
374추가: reasonable ways as different from the original version; or
375추가:
376추가: d) Limiting the use for publicity purposes of names of licensors or
377추가: authors of the material; or
378추가:
379추가: e) Declining to grant rights under trademark law for use of some
380추가: trade names, trademarks, or service marks; or
381추가:
382추가: f) Requiring indemnification of licensors and authors of that
383추가: material by anyone who conveys the material (or modified versions of
384추가: it) with contractual assumptions of liability to the recipient, for
385추가: any liability that these contractual assumptions directly impose on
386추가: those licensors and authors.
387추가:
388추가: All other non-permissive additional terms are considered "further
389추가: restrictions" within the meaning of section 10. If the Program as you
390추가: received it, or any part of it, contains a notice stating that it is
391추가: governed by this License along with a term that is a further
392추가: restriction, you may remove that term. If a license document contains
393추가: a further restriction but permits relicensing or conveying under this
394추가: License, you may add to a covered work material governed by the terms
395추가: of that license document, provided that the further restriction does
396추가: not survive such relicensing or conveying.
397추가:
398추가: If you add terms to a covered work in accord with this section, you
399추가: must place, in the relevant source files, a statement of the
400추가: additional terms that apply to those files, or a notice indicating
401추가: where to find the applicable terms.
402추가:
403추가: Additional terms, permissive or non-permissive, may be stated in the
404추가: form of a separately written license, or stated as exceptions;
405추가: the above requirements apply either way.
406추가:
407추가: 8. Termination.
408추가:
409추가: You may not propagate or modify a covered work except as expressly
410추가: provided under this License. Any attempt otherwise to propagate or
411추가: modify it is void, and will automatically terminate your rights under
412추가: this License (including any patent licenses granted under the third
413추가: paragraph of section 11).
414추가:
415추가: However, if you cease all violation of this License, then your
416추가: license from a particular copyright holder is reinstated (a)
417추가: provisionally, unless and until the copyright holder explicitly and
418추가: finally terminates your license, and (b) permanently, if the copyright
419추가: holder fails to notify you of the violation by some reasonable means
420추가: prior to 60 days after the cessation.
421추가:
422추가: Moreover, your license from a particular copyright holder is
423추가: reinstated permanently if the copyright holder notifies you of the
424추가: violation by some reasonable means, this is the first time you have
425추가: received notice of violation of this License (for any work) from that
426추가: copyright holder, and you cure the violation prior to 30 days after
427추가: your receipt of the notice.
428추가:
429추가: Termination of your rights under this section does not terminate the
430추가: licenses of parties who have received copies or rights from you under
431추가: this License. If your rights have been terminated and not permanently
432추가: reinstated, you do not qualify to receive new licenses for the same
433추가: material under section 10.
434추가:
435추가: 9. Acceptance Not Required for Having Copies.
436추가:
437추가: You are not required to accept this License in order to receive or
438추가: run a copy of the Program. Ancillary propagation of a covered work
439추가: occurring solely as a consequence of using peer-to-peer transmission
440추가: to receive a copy likewise does not require acceptance. However,
441추가: nothing other than this License grants you permission to propagate or
442추가: modify any covered work. These actions infringe copyright if you do
443추가: not accept this License. Therefore, by modifying or propagating a
444추가: covered work, you indicate your acceptance of this License to do so.
445추가:
446추가: 10. Automatic Licensing of Downstream Recipients.
447추가:
448추가: Each time you convey a covered work, the recipient automatically
449추가: receives a license from the original licensors, to run, modify and
450추가: propagate that work, subject to this License. You are not responsible
451추가: for enforcing compliance by third parties with this License.
452추가:
453추가: An "entity transaction" is a transaction transferring control of an
454추가: organization, or substantially all assets of one, or subdividing an
455추가: organization, or merging organizations. If propagation of a covered
456추가: work results from an entity transaction, each party to that
457추가: transaction who receives a copy of the work also receives whatever
458추가: licenses to the work the party's predecessor in interest had or could
459추가: give under the previous paragraph, plus a right to possession of the
460추가: Corresponding Source of the work from the predecessor in interest, if
461추가: the predecessor has it or can get it with reasonable efforts.
462추가:
463추가: You may not impose any further restrictions on the exercise of the
464추가: rights granted or affirmed under this License. For example, you may
465추가: not impose a license fee, royalty, or other charge for exercise of
466추가: rights granted under this License, and you may not initiate litigation
467추가: (including a cross-claim or counterclaim in a lawsuit) alleging that
468추가: any patent claim is infringed by making, using, selling, offering for
469추가: sale, or importing the Program or any portion of it.
470추가:
471추가: 11. Patents.
472추가:
473추가: A "contributor" is a copyright holder who authorizes use under this
474추가: License of the Program or a work on which the Program is based. The
475추가: work thus licensed is called the contributor's "contributor version".
476추가:
477추가: A contributor's "essential patent claims" are all patent claims
478추가: owned or controlled by the contributor, whether already acquired or
479추가: hereafter acquired, that would be infringed by some manner, permitted
480추가: by this License, of making, using, or selling its contributor version,
481추가: but do not include claims that would be infringed only as a
482추가: consequence of further modification of the contributor version. For
483추가: purposes of this definition, "control" includes the right to grant
484추가: patent sublicenses in a manner consistent with the requirements of
485추가: this License.
486추가:
487추가: Each contributor grants you a non-exclusive, worldwide, royalty-free
488추가: patent license under the contributor's essential patent claims, to
489추가: make, use, sell, offer for sale, import and otherwise run, modify and
490추가: propagate the contents of its contributor version.
491추가:
492추가: In the following three paragraphs, a "patent license" is any express
493추가: agreement or commitment, however denominated, not to enforce a patent
494추가: (such as an express permission to practice a patent or covenant not to
495추가: sue for patent infringement). To "grant" such a patent license to a
496추가: party means to make such an agreement or commitment not to enforce a
497추가: patent against the party.
498추가:
499추가: If you convey a covered work, knowingly relying on a patent license,
500추가: and the Corresponding Source of the work is not available for anyone
501추가: to copy, free of charge and under the terms of this License, through a
502추가: publicly available network server or other readily accessible means,
503추가: then you must either (1) cause the Corresponding Source to be so
504추가: available, or (2) arrange to deprive yourself of the benefit of the
505추가: patent license for this particular work, or (3) arrange, in a manner
506추가: consistent with the requirements of this License, to extend the patent
507추가: license to downstream recipients. "Knowingly relying" means you have
508추가: actual knowledge that, but for the patent license, your conveying the
509추가: covered work in a country, or your recipient's use of the covered work
510추가: in a country, would infringe one or more identifiable patents in that
511추가: country that you have reason to believe are valid.
512추가:
513추가: If, pursuant to or in connection with a single transaction or
514추가: arrangement, you convey, or propagate by procuring conveyance of, a
515추가: covered work, and grant a patent license to some of the parties
516추가: receiving the covered work authorizing them to use, propagate, modify
517추가: or convey a specific copy of the covered work, then the patent license
518추가: you grant is automatically extended to all recipients of the covered
519추가: work and works based on it.
520추가:
521추가: A patent license is "discriminatory" if it does not include within
522추가: the scope of its coverage, prohibits the exercise of, or is
523추가: conditioned on the non-exercise of one or more of the rights that are
524추가: specifically granted under this License. You may not convey a covered
525추가: work if you are a party to an arrangement with a third party that is
526추가: in the business of distributing software, under which you make payment
527추가: to the third party based on the extent of your activity of conveying
528추가: the work, and under which the third party grants, to any of the
529추가: parties who would receive the covered work from you, a discriminatory
530추가: patent license (a) in connection with copies of the covered work
531추가: conveyed by you (or copies made from those copies), or (b) primarily
532추가: for and in connection with specific products or compilations that
533추가: contain the covered work, unless you entered into that arrangement,
534추가: or that patent license was granted, prior to 28 March 2007.
535추가:
536추가: Nothing in this License shall be construed as excluding or limiting
537추가: any implied license or other defenses to infringement that may
538추가: otherwise be available to you under applicable patent law.
539추가:
540추가: 12. No Surrender of Others' Freedom.
541추가:
542추가: If conditions are imposed on you (whether by court order, agreement or
543추가: otherwise) that contradict the conditions of this License, they do not
544추가: excuse you from the conditions of this License. If you cannot convey a
545추가: covered work so as to satisfy simultaneously your obligations under this
546추가: License and any other pertinent obligations, then as a consequence you may
547추가: not convey it at all. For example, if you agree to terms that obligate you
548추가: to collect a royalty for further conveying from those to whom you convey
549추가: the Program, the only way you could satisfy both those terms and this
550추가: License would be to refrain entirely from conveying the Program.
551추가:
552추가: 13. Use with the GNU Affero General Public License.
553추가:
554추가: Notwithstanding any other provision of this License, you have
555추가: permission to link or combine any covered work with a work licensed
556추가: under version 3 of the GNU Affero General Public License into a single
557추가: combined work, and to convey the resulting work. The terms of this
558추가: License will continue to apply to the part which is the covered work,
559추가: but the special requirements of the GNU Affero General Public License,
560추가: section 13, concerning interaction through a network will apply to the
561추가: combination as such.
562추가:
563추가: 14. Revised Versions of this License.
564추가:
565추가: The Free Software Foundation may publish revised and/or new versions of
566추가: the GNU General Public License from time to time. Such new versions will
567추가: be similar in spirit to the present version, but may differ in detail to
568추가: address new problems or concerns.
569추가:
570추가: Each version is given a distinguishing version number. If the
571추가: Program specifies that a certain numbered version of the GNU General
572추가: Public License "or any later version" applies to it, you have the
573추가: option of following the terms and conditions either of that numbered
574추가: version or of any later version published by the Free Software
575추가: Foundation. If the Program does not specify a version number of the
576추가: GNU General Public License, you may choose any version ever published
577추가: by the Free Software Foundation.
578추가:
579추가: If the Program specifies that a proxy can decide which future
580추가: versions of the GNU General Public License can be used, that proxy's
581추가: public statement of acceptance of a version permanently authorizes you
582추가: to choose that version for the Program.
583추가:
584추가: Later license versions may give you additional or different
585추가: permissions. However, no additional obligations are imposed on any
586추가: author or copyright holder as a result of your choosing to follow a
587추가: later version.
588추가:
589추가: 15. Disclaimer of Warranty.
590추가:
591추가: THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592추가: APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593추가: HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594추가: OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595추가: THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596추가: PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597추가: IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598추가: ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599추가:
600추가: 16. Limitation of Liability.
601추가:
602추가: IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603추가: WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604추가: THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605추가: GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606추가: USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607추가: DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608추가: PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609추가: EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610추가: SUCH DAMAGES.
611추가:
612추가: 17. Interpretation of Sections 15 and 16.
613추가:
614추가: If the disclaimer of warranty and limitation of liability provided
615추가: above cannot be given local legal effect according to their terms,
616추가: reviewing courts shall apply local law that most closely approximates
617추가: an absolute waiver of all civil liability in connection with the
618추가: Program, unless a warranty or assumption of liability accompanies a
619추가: copy of the Program in return for a fee.
620추가:
621추가: END OF TERMS AND CONDITIONS
622추가:
623추가: How to Apply These Terms to Your New Programs
624추가:
625추가: If you develop a new program, and you want it to be of the greatest
626추가: possible use to the public, the best way to achieve this is to make it
627추가: free software which everyone can redistribute and change under these terms.
628추가:
629추가: To do so, attach the following notices to the program. It is safest
630추가: to attach them to the start of each source file to most effectively
631추가: state the exclusion of warranty; and each file should have at least
632추가: the "copyright" line and a pointer to where the full notice is found.
633추가:
634추가: <one line to give the program's name and a brief idea of what it does.>
635추가: Copyright (C) <year> <name of author>
636추가:
637추가: This program is free software: you can redistribute it and/or modify
638추가: it under the terms of the GNU General Public License as published by
639추가: the Free Software Foundation, either version 3 of the License, or
640추가: (at your option) any later version.
641추가:
642추가: This program is distributed in the hope that it will be useful,
643추가: but WITHOUT ANY WARRANTY; without even the implied warranty of
644추가: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645추가: GNU General Public License for more details.
646추가:
647추가: You should have received a copy of the GNU General Public License
648추가: along with this program. If not, see <https://www.gnu.org/licenses/>.
649추가:
650추가: Also add information on how to contact you by electronic and paper mail.
651추가:
652추가: If the program does terminal interaction, make it output a short
653추가: notice like this when it starts in an interactive mode:
654추가:
655추가: <program> Copyright (C) <year> <name of author>
656추가: This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657추가: This is free software, and you are welcome to redistribute it
658추가: under certain conditions; type `show c' for details.
659추가:
660추가: The hypothetical commands `show w' and `show c' should show the appropriate
661추가: parts of the General Public License. Of course, your program's commands
662추가: might be different; for a GUI interface, you would use an "about box".
663추가:
664추가: You should also get your employer (if you work as a programmer) or school,
665추가: if any, to sign a "copyright disclaimer" for the program, if necessary.
666추가: For more information on this, and how to apply and follow the GNU GPL, see
667추가: <https://www.gnu.org/licenses/>.
668추가:
669추가: The GNU General Public License does not permit incorporating your program
670추가: into proprietary programs. If your program is a subroutine library, you
671추가: may consider it more useful to permit linking proprietary applications with
672추가: the library. If this is what you want to do, use the GNU Lesser General
673추가: Public License instead of this License. But first, please read
674추가: <https://www.gnu.org/licenses/why-not-lgpl.html>.
수정README.md+142-61
@@ -1,110 +1,191 @@
1삭제: # wayland-android-remote
1추가: # Android Remote
22
3삭제: Ubuntu(Wayland/X11)에서 Android 기기 화면을 실시간으로 미러링하고, PC의 마우스와 키보드로 원격 제어하는 프로젝트입니다. 호스트 PC와 휴대폰 간 텍스트를 Ctrl+C / Ctrl+V로 주고받는 양방향 클립보드 동기화를 지원합니다.
3추가: Ubuntu(Wayland/X11)에서 Android 휴대폰 화면을 실시간으로 띄우고, PC의 마우스와 키보드로 조작하는 앱입니다. 휴대폰과 PC 사이에서 텍스트·이미지 클립보드를 단축키 그대로 주고받고, PC 파일을 끌어다 놓아 휴대폰으로 보낼 수 있습니다.
44
5삭제: 자세한 설계는 Google Docs의 "Android Remote 기획서"에 있습니다.
5추가: <p align="center"><img src="docs/images/screenshot.png" alt="Ubuntu에서 휴대폰 화면을 띄운 Android Remote 창" width="320"></p>
66
7삭제: ## 구성
7추가: - **저지연 미러링**: 휴대폰 하드웨어 인코더(H.265/H.264)와 PC 하드웨어 디코더(NVDEC, VA-API)를 쓰고, 지원하지 않으면 소프트웨어 디코딩으로 자동 전환합니다. Wi-Fi에서 1080p급 60fps.
8추가: - **PC에 ADB가 필요 없음**: 휴대폰 동반 앱이 무선 디버깅으로 자기 자신에게 접속해 서비스를 띄웁니다. PC는 IP만 입력하면 됩니다.
9추가: - **안전한 연결**: 모든 연결을 TLS 1.3으로 암호화하고, PC는 Ed25519 키로 인증합니다. 처음 연결하는 PC는 휴대폰에서 확인 코드를 대조해 승인합니다.
10추가: - **클립보드와 파일**: Ctrl+C / Ctrl+V로 텍스트와 이미지를 양방향 동기화하고, 파일은 붙여넣기나 끌어다 놓기로 전송합니다.
811
9삭제: | 경로 | 내용 |
12추가: ## 요구 사항
13추가:
14추가: | | 조건 |
1015|---|---|
11삭제: | `src/protocol/` | 제어 채널 프레이밍과 메시지 페이로드 인코딩/디코딩 (Rust 라이브러리) |
12삭제: | `src/ui/` | 호스트 GUI. winit 창에 wgpu(Vulkan)로 직접 그리고, 설정·입력 UI는 egui로 같은 렌더 패스에 그립니다. |
13삭제: | `src/adb.rs` | USB ADB 모드: 호스트 adb로 데몬을 띄우고 포트를 포워딩 |
14삭제: | `android/` | Android 동반 앱과 shell 권한 데몬 (Kotlin, Gradle). 데몬은 동반 앱 APK 안에 함께 들어가며 `app_process`로 실행됩니다. |
15삭제: | `scripts/install.sh`, `packaging/` | PC 앱 설치 스크립트, 바탕화면 항목, 아이콘 |
16삭제: | `docs/dev-setup.md` | 개발 환경 설치 방법 |
16추가: | PC | Ubuntu 26.04 또는 24.04 (GNOME Wayland 또는 X11), Vulkan을 지원하는 GPU |
17추가: | 휴대폰 | Android 15 이상 (Galaxy S21+ One UI 7에서 확인) |
18추가: | 네트워크 | PC와 휴대폰이 같은 Wi-Fi 또는 VPN(예: 100.x.x.x)으로 연결 |
19추가:
20추가: ## 빠른 시작
1721
18삭제: ## 연결 구조 요약
22추가: ### 1. PC 앱 설치
1923
20삭제: 1. 동반 앱이 기기 자신의 무선 디버깅에 접속해 shell 권한 데몬을 띄웁니다. 호스트 PC에는 ADB가 필요 없습니다.
21삭제: 2. 데몬은 TCP 27200 포트에서 대기하고, 모든 연결은 TLS 1.3으로 암호화합니다.
22삭제: 3. 호스트는 IP를 입력해 접속하고 Ed25519 키로 인증합니다. 처음 접속하는 PC는 휴대폰에서 승인합니다.
23삭제: 4. 제어 채널(입력, 클립보드)과 영상 채널(H.264/H.265/AV1)은 별도 TCP 연결로 나뉩니다.
24추가: 릴리스 페이지에서 Ubuntu 버전에 맞는 .deb(`~ubuntu26.04` 또는 `~ubuntu24.04`)를 받아 설치합니다.
2425
25삭제: ## 설치
26추가: ```bash
27추가: sudo apt install ./android-remote_0.1.0-1~ubuntu26.04_amd64.deb
28추가: ```
2629
27삭제: ### PC 앱
30추가: 소스에서 직접 설치하려면:
2831
2932```bash
3033./scripts/install.sh
3134```
3235
33삭제: 릴리스로 빌드해 `~/.local/bin/android-remote`, 앱 목록 항목, 아이콘을 설치합니다(root 불필요). 제거는 `./scripts/install.sh --uninstall`이며, 키와 설정(`~/.config/android-remote`)은 남깁니다.
36추가: 릴리스로 빌드해 `~/.local`에 실행 파일, 앱 목록 항목, 아이콘을 설치합니다(관리자 권한 불필요). 앱 목록에서 **Android Remote**로 실행하거나, 터미널에서 `android-remote [휴대폰 IP]`로 실행합니다. 제거는 `./scripts/install.sh --uninstall`이며, 키와 설정은 남깁니다.
3437
35삭제: - 설정 창의 값과 창 크기는 `~/.config/android-remote/settings`에 저장됩니다.
36삭제: - 클립보드는 텍스트와 이미지를 모두 주고받습니다. 휴대폰에서 이미지를 복사하면 PC 클립보드에 이미지로 들어오고, PC에서 이미지를 복사한 뒤 원격 창에서 Ctrl+V를 누르면 휴대폰에 붙여넣습니다(한 장 최대 16MB).
37삭제: - 파일 전송: PC 파일 관리자에서 파일을 복사한 뒤 원격 창에서 Ctrl+V를 누르거나, 파일을 원격 창에 끌어다 놓으면 휴대폰의 `Download/Android Remote`에 저장합니다. 진행률은 화면 아래 알림으로 보입니다.
38삭제: - 왼쪽 카메라 아이콘은 현재 화면을 `~/사진/Android Remote`(XDG 사진 폴더)에 PNG로 저장합니다.
39삭제: - 연결된 뒤 Wi-Fi가 끊기거나 데몬이 다시 시작되면 최대 60초 동안 자동으로 다시 연결합니다. Esc로 취소합니다. 휴대폰에서 이 PC의 허용을 철회하면 다시 연결하지 않습니다.
38추가: ### 2. 휴대폰 앱 설치와 최초 설정
4039
41삭제: ### 휴대폰 앱 (릴리스 APK)
40추가: 1. 릴리스 페이지의 `android-remote-0.1.0.apk`를 휴대폰에 설치하고 엽니다.
41추가: 2. 설정 > 휴대전화 정보 > 소프트웨어 정보 > 빌드번호를 7번 눌러 개발자 옵션을 켭니다. 삼성 **자동 차단(Auto Blocker)**이 켜져 있으면 끕니다.
42추가: 3. 앱에서 **페어링 코드 입력 (최초 1회)**을 누르면 알림이 뜨고 개발자 옵션이 열립니다.
43추가: 4. **무선 디버깅**을 켭니다. 확인 창에서 **이 네트워크에서 항상 허용**을 선택해야 이후 앱이 혼자 서비스를 다시 띄울 수 있습니다.
44추가: 5. **페어링 코드로 기기 페어링**을 연 채로, 알림의 **코드 입력**에 화면의 6자리 코드를 넣습니다.
4245
43삭제: 서명 키는 저장소 밖 `~/.config/android-remote-signing/keystore.properties`(또는 `ANDROID_REMOTE_SIGNING` 환경 변수가 가리키는 파일)에 둡니다. `storeFile`, `storePassword`, `keyAlias`, `keyPassword` 네 값을 적습니다. 디버그 빌드도 같은 키로 서명하므로 두 APK를 지우지 않고 서로 덮어 설치할 수 있습니다.
46추가: 페어링이 끝나면 서비스가 바로 시작됩니다. 이후에는 재부팅이나 앱 업데이트 뒤에도 앱이 무선 디버깅을 잠깐 켜서 서비스를 다시 띄우고 끕니다(Wi-Fi 연결 필요).
4447
45삭제: ```bash
46삭제: cd android && ./gradlew assembleRelease
47삭제: adb install -r app/build/outputs/apk/release/app-release.apk
48삭제: ```
48추가: ### 3. 연결
49추가:
50추가: 1. PC 앱의 검은 화면 가운데에 휴대폰 앱이 보여 주는 주소(예: `192.168.0.12`)를 입력하고 Enter를 누릅니다.
51추가: 2. 휴대폰에 승인 창이 뜨면 PC 화면의 확인 코드와 같은지 보고 **항상 허용** 또는 **이번만 허용**을 누릅니다.
4952
50삭제: 릴리스 빌드는 R8로 코드와 리소스를 줄입니다. 데몬 클래스는 `app_process`가 이름으로 찾으므로 `proguard-rules.pro`에서 유지합니다.
53추가: 한 번 허용한 PC는 다음부터 바로 연결됩니다. 최근 연결한 주소는 입력창 아래에 표시됩니다.
5154
52삭제: ### USB ADB 모드
55추가: ## 사용법
56추가:
57추가: ### 조작
58추가:
59추가: | PC | 휴대폰 |
60추가: |---|---|
61추가: | 왼쪽 클릭·드래그 | 터치, 스와이프 |
62추가: | 오른쪽 클릭 | 바로 길게 누르기 (누른 채 움직이면 길게 누른 뒤 끌기) |
63추가: | 휠, 터치패드 스크롤 | 스크롤 |
64추가: | 마우스 뒤로 버튼 (옆 버튼 아래쪽) | 뒤로 |
65추가: | 키보드, 한글 입력 | 키 입력, 글자 입력 |
66추가: | Ctrl+C / Ctrl+X / Ctrl+V / Ctrl+A | 복사 / 잘라내기 / 붙여넣기 / 전체 선택 |
67추가: | 화면 아래 ◁ ○ □ | 뒤로 / 홈 / 최근 앱 |
5368
54삭제: 무선 디버깅을 쓸 수 없을 때의 보조 경로입니다. PC에 adb(platform-tools)가 있으면 설정 창에서 "USB ADB 모드"를 켤 수 있습니다. 켠 뒤 IP 입력창을 비우고 Enter를 누르면(또는 `android-remote usb`로 실행하면) 호스트가 USB 기기에서 데몬을 띄우고 `adb forward`로 연결합니다. 이후 TLS와 인증은 Wi-Fi 연결과 같습니다. 이렇게 띄운 데몬은 USB를 뽑아도 계속 실행되므로 그 뒤에는 Wi-Fi로도 접속할 수 있습니다.
69추가: 창 왼쪽 아이콘은 위에서부터 **설정**, **스크린샷**, **화면 회전**, 맨 아래 **연결 끊기**입니다. 아이콘 열·아래 내비게이션 줄의 빈 곳이나 제목 표시줄을 끌면 창이 움직이고, 창 가장자리를 끌면 휴대폰 화면 비율을 유지한 채 크기가 바뀝니다.
5570
56삭제: ## 개발 환경
71추가: ### 클립보드
5772
58삭제: ### 호스트 (Rust)
73추가: - 휴대폰에서 복사한 텍스트·이미지는 PC 클립보드에 바로 들어옵니다.
74추가: - PC에서 복사한 뒤 원격 창에서 Ctrl+V를 누르면 휴대폰에 붙여넣습니다. 이미지는 한 장 최대 16MB입니다.
75추가: - 설정의 **창 포커스 시 클립보드 동기화**를 켜면 원격 창으로 돌아올 때 PC의 텍스트를 휴대폰에 미리 넣어 둡니다.
76추가:
77추가: ### 파일 보내기
78추가:
79추가: PC 파일 관리자에서 파일을 복사(Ctrl+C)한 뒤 원격 창에서 Ctrl+V를 누르거나, 파일을 원격 창에 끌어다 놓으면 휴대폰의 `Download/Android Remote` 폴더에 저장됩니다. 같은 이름이 있으면 `이름 (1).확장자`로 저장하고, 진행률은 화면 아래 알림에 표시됩니다. 받은 파일은 갤러리와 내 파일 앱에 바로 보입니다.
80추가:
81추가: ### 그 밖의 기능
82추가:
83추가: - **스크린샷**: 카메라 아이콘을 누르면 현재 화면을 `~/사진/Android Remote/`(XDG 사진 폴더)에 PNG로 저장합니다.
84추가: - **화면 회전**: 회전 아이콘으로 휴대폰 화면을 세로·가로로 돌립니다. 연결을 끊으면 원래 회전 설정으로 돌아갑니다.
85추가: - **휴대폰 화면 끄기**: 기본으로 연결 중에는 휴대폰의 실제 화면을 끄고 미러링만 유지합니다. 설정의 **휴대폰 화면 켜 두기**로 바꿀 수 있습니다.
86추가: - **자동 재연결**: 연결된 뒤 Wi-Fi가 끊기거나 서비스가 다시 시작되면 최대 60초 동안 같은 주소로 다시 연결합니다. Esc로 취소합니다.
87추가: - **영상 설정**: 설정 창에서 해상도(원본, 2400p~1024p), FPS(30~120), 비트레이트(2~40Mbps)를 바꾸면 연결 중에도 바로 적용됩니다.
88추가:
89추가: ### USB로 연결하기
90추가:
91추가: 무선 디버깅을 쓸 수 없을 때의 보조 경로입니다. PC에 adb(Android platform-tools)가 있으면 설정 창에서 **USB ADB 모드**를 켤 수 있습니다. 켠 뒤 IP 입력창을 비우고 Enter를 누르거나 `android-remote usb`로 실행하면, PC가 USB로 연결된 휴대폰에서 서비스를 띄우고 연결합니다. 이렇게 띄운 서비스는 USB를 뽑아도 계속 실행되므로 그 뒤에는 Wi-Fi로도 연결할 수 있습니다.
92추가:
93추가: ## 보안과 권한 관리
94추가:
95추가: - 휴대폰 서비스는 TCP 27200 포트에서 TLS 1.3 연결만 받습니다. PC는 처음 연결한 휴대폰의 인증서 지문을 기억하고, 같은 주소에서 다른 인증서가 오면 연결을 거부합니다.
96추가: - 휴대폰 앱의 **허용된 PC** 목록에서 PC를 삭제하면 연결 중인 세션이 바로 끊기고, 다시 연결하려면 승인을 받아야 합니다.
97추가: - PC 키는 `~/.config/android-remote/device_key`(권한 0600)에 있습니다. 이 파일을 지우면 휴대폰에서 새 PC로 보입니다.
98추가:
99추가: ## 문제 해결
100추가:
101추가: | 증상 | 해결 |
102추가: |---|---|
103추가: | "휴대폰에서 Android Remote 앱을 열어 서비스를 켜 주세요" | 앱에서 **서비스 시작**을 누릅니다. 페어링이 해제되었다고 나오면 최초 설정의 페어링을 다시 합니다. |
104추가: | 재부팅 뒤 서비스가 자동으로 뜨지 않음 | 휴대폰에 "이 네트워크에서 무선 디버깅을 허용하시겠습니까?" 창이 떠 있으면 **이 네트워크에서 항상 허용**을 체크하고 허용합니다. |
105추가: | 개발자 옵션에서 "USB 디버깅 권한 승인 취소"를 한 뒤 연결이 안 됨 | 이 작업은 앱의 무선 디버깅 페어링과 네트워크 허용도 지웁니다. 페어링을 다시 하고 네트워크 허용을 다시 선택합니다. |
106추가: | "저장된 기기와 인증서가 다릅니다" | 휴대폰을 초기화했거나 휴대폰의 서비스 저장소(`/data/local/tmp/android-remote`)가 지워진 경우입니다. 화면의 **기기 기록 지우기**를 누른 뒤 다시 승인합니다. |
107추가: | 영상이 끊기거나 소프트웨어 디코딩으로 표시됨 | 다른 프로그램이 GPU 메모리를 거의 다 쓰고 있으면 하드웨어 디코더를 만들지 못합니다. GPU 메모리를 비우거나 설정에서 해상도를 낮춥니다. |
108추가: | 원인을 더 보고 싶을 때 | `RUST_LOG=android_remote=debug android-remote`로 실행하면 자세한 로그가 나옵니다. 휴대폰 쪽 로그는 `/data/local/tmp/android-remote/daemon.log`에 있습니다. |
59109
60삭제: - Rust 1.85 이상 (edition 2024)
110추가: ## 저장 위치
111추가:
112추가: | 위치 | 내용 |
113추가: |---|---|
114추가: | `~/.config/android-remote/device_key` | PC 인증 키 (Ed25519) |
115추가: | `~/.config/android-remote/known_devices` | 연결한 휴대폰의 인증서 지문 |
116추가: | `~/.config/android-remote/settings` | 설정값과 창 크기 |
117추가: | `~/.config/android-remote/recent_ips` | 최근 연결 주소 |
118추가: | 휴대폰 `/data/local/tmp/android-remote/` | 서비스 인증서, 허용된 PC 목록, 로그 |
119추가: | 휴대폰 `Download/Android Remote/` | PC에서 받은 파일 |
120추가:
121추가: ## 개발
122추가:
123추가: ### 구조
124추가:
125추가: | 경로 | 내용 |
126추가: |---|---|
127추가: | `src/protocol/` | 제어 채널 프레이밍과 메시지 인코딩·디코딩 |
128추가: | `src/net/` | TLS 1.3 연결, 인증서 고정, PC 키 |
129추가: | `src/video/` | FFmpeg 하드웨어·소프트웨어 디코더 |
130추가: | `src/ui/` | 호스트 GUI (winit + wgpu, 설정·입력 UI는 egui), 클립보드, 파일 전송, 끌어다 놓기 |
131추가: | `src/adb.rs` | USB ADB 모드 |
132추가: | `android/` | 휴대폰 동반 앱과 shell 권한 서비스(데몬). 데몬은 APK 안에 함께 들어가며 `app_process`로 실행됩니다. |
133추가: | `examples/` | `probe`(GUI 없는 연결·입력·전송 점검), `fake_device`(가짜 휴대폰) |
134추가: | `scripts/`, `packaging/` | 설치·.deb 빌드 스크립트, 개발용 데몬 실행, 바탕화면 항목, 아이콘, 빌드 컨테이너 |
135추가: | `docs/dev-setup.md` | 개발 환경 설치 |
136추가: | `docs/release-checklist.md` | .deb 배포 전 점검표 |
137추가:
138추가: 자세한 설계와 프로토콜은 "Android Remote 기획서"(Google Docs)에 있습니다.
139추가:
140추가: ### 빌드와 테스트
141추가:
142추가: 개발 환경 설치는 [docs/dev-setup.md](docs/dev-setup.md)를 봅니다.
61143
62144```bash
63145cargo test
64삭제: cargo run
146추가: cargo clippy --all-targets -- -D warnings
147추가: cargo run --release
65148```
66149
67삭제: ### Android
68삭제:
69삭제: - JDK 17 이상 (javac 포함)
70삭제: - Android SDK (compileSdk 36), `android/local.properties`에 `sdk.dir` 지정 또는 `ANDROID_HOME` 설정
71삭제: - 대상 기기: Android 15(API 35) 이상
72삭제:
73150```bash
74삭제: cd android
75삭제: ./gradlew assembleDebug
151추가: cd android && ./gradlew assembleRelease
76152```
77153
78삭제: ### 휴대폰 없이 테스트하기
154추가: 릴리스 APK는 R8로 줄이고, 저장소 밖 서명 키로 서명합니다. 키 정보는 `~/.config/android-remote-signing/keystore.properties`(또는 `ANDROID_REMOTE_SIGNING`이 가리키는 파일)에 `storeFile`, `storePassword`, `keyAlias`, `keyPassword`로 적습니다. 디버그 빌드도 같은 키로 서명하므로 서로 덮어 설치할 수 있습니다. 서명 키를 잃어버리면 기존 설치를 업데이트할 수 없으니 따로 백업해 둡니다.
79155
80삭제: `examples/fake_device.rs`는 기기 데몬과 같은 프로토콜(TLS 1.3, Ed25519 인증, 영상 채널)로 응답하는 가짜 기기입니다. 영상 데이터는 디코딩할 수 없는 더미 바이트입니다.
156추가: ### .deb 만들기
81157
82158```bash
83삭제: cargo run --example fake_device -- --policy always --delay-ms 3000
159추가: ./scripts/build-deb.sh
84160```
85161
86삭제: 다른 터미널에서 `cargo run`으로 호스트를 띄우고 IP 입력창에 `127.0.0.1`을 입력합니다. 승인 정책은 `always`, `once`, `reject`, `never` 중에서 고릅니다.
162추가: Ubuntu 26.04와 24.04 컨테이너에서 각각 빌드해 `dist/`에 배포판별 .deb를 만듭니다. podman(또는 docker)이 필요합니다. 배포 절차와 점검 항목은 [docs/release-checklist.md](docs/release-checklist.md)에 있습니다.
87163
88삭제: ### 휴대폰 준비 (USB 없이 사용)
164추가: ### 휴대폰 없이 시험하기
89165
90삭제: 1. 동반 앱(Android Remote)을 설치하고 엽니다.
91삭제: 2. "페어링 코드 입력 (최초 1회)"을 누르면 알림이 뜨고 개발자 옵션이 열립니다. 무선 디버깅을 켜고(확인 창에서 "이 네트워크에서 항상 허용" 선택), "페어링 코드로 기기 페어링"을 연 채로 알림의 "코드 입력"에 6자리 코드를 넣습니다.
92삭제: 3. 페어링이 끝나면 서비스가 자동으로 시작됩니다. 이후에는 재부팅이나 앱 업데이트 뒤에도 앱이 무선 디버깅을 잠깐 켜서 서비스를 다시 띄우고 끕니다(Wi-Fi 연결 필요).
93삭제: 4. PC 앱에 동반 앱 화면의 주소(예: `192.168.0.12`)를 입력하고, 휴대폰 승인 창에서 확인 코드를 대조해 허용합니다.
166추가: ```bash
167추가: cargo run --example fake_device -- --policy always --delay-ms 3000
168추가: ```
94169
95삭제: ### 실제 휴대폰으로 테스트하기 (개발용)
170추가: 가짜 휴대폰이 같은 프로토콜(TLS 1.3, Ed25519, 영상 채널)로 응답합니다. 다른 터미널에서 `cargo run`으로 PC 앱을 띄우고 `127.0.0.1`에 연결합니다. 승인 정책은 `always`, `once`, `reject`, `never` 중에서 고릅니다.
96171
97삭제: 데몬 로그를 터미널에서 바로 보려면 USB로 데몬을 포그라운드로 띄웁니다. 폰에서 USB 디버깅을 허용한 뒤:
172추가: ### 실제 휴대폰으로 시험하기
98173
99174```bash
100175./scripts/dev-daemon.sh
101176```
102177
103삭제: APK를 빌드·설치하고 데몬을 포그라운드로 실행합니다(Ctrl+C로 종료). `adb forward`도 걸어 두므로 호스트에서 `127.0.0.1`(USB) 또는 폰의 Wi-Fi IP로 접속할 수 있습니다. 처음 접속하는 PC는 휴대폰에 승인 창이 뜨고, PC 화면과 같은 확인 코드인지 보고 허용합니다. 동반 앱(Android Remote)에서 허용된 PC 목록을 보고 삭제할 수 있습니다.
104삭제:
105삭제: GUI 없이 접속만 점검하려면:
178추가: USB로 연결한 휴대폰에 APK를 설치하고 서비스를 포그라운드로 실행합니다(Ctrl+C로 종료). 로그를 터미널에서 바로 볼 수 있습니다.
106179
107180```bash
108삭제: cargo run --example probe -- 127.0.0.1 --key home
109삭제: cargo run --example probe -- usb # USB ADB 모드로 데몬 기동부터
181추가: cargo run --example probe -- 192.168.0.12 --tap 400,800 --text 안녕 --listen 2000
110182```
183추가:
184추가: `probe`는 GUI 없이 연결하고 터치(`--tap`, `--swipe`, `--rclick`), 입력(`--text`, `--keycode`, `--action`), 클립보드(`--clip`, `--clip-image`), 파일 전송(`--send-file`), 영상 저장(`--record`)을 시험합니다. 주소 대신 `usb`를 주면 USB ADB 모드로 연결합니다.
185추가:
186추가: ## 라이선스
187추가:
188추가: Android Remote는 [GNU General Public License v3.0 이상](LICENSE)(GPL-3.0-or-later)으로 배포합니다.
189추가:
190추가: - PC 앱에 들어가는 Rust 크레이트의 라이선스 원문은 `scripts/third-party-licenses.py`로 모아 .deb의 `/usr/share/doc/android-remote/third-party-licenses.txt`에 넣습니다. FFmpeg 등 시스템 라이브러리는 배포판 패키지를 동적으로 씁니다.
191추가: - 휴대폰 앱에 들어가는 라이브러리(Bouncy Castle, Conscrypt와 BoringSSL, libadb-android, Kotlin 표준 라이브러리)의 고지는 APK 안 `assets/third_party_licenses.txt`에 있습니다.
추가android/app/src/main/assets/third_party_licenses.txt+525-0
@@ -0,0 +1,525 @@
1추가: Android Remote (companion app and daemon)
2추가: Copyright 2026 LeeJunyoung <[email protected]>
3추가: Licensed under the GNU General Public License, version 3 or (at your option) any later version.
4추가: Source: https://gitgit.kr/leejunyoung5819/wayland-android-remote
5추가:
6추가: This app includes the following third-party software.
7추가:
8추가: ==============================================================================
9추가: Bouncy Castle (bcprov-jdk18on 1.87) - MIT License
10추가: ------------------------------------------------------------------------------
11추가: MIT License (https://opensource.org/licenses/MIT)
12추가:
13추가: Copyright (c) 2000-2026 The Legion of the Bouncy Castle Inc. (https://www.bouncycastle.org).
14추가: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
15추가: associated documentation files (the "Software"), to deal in the Software without restriction,
16추가: including without limitation the rights to use, copy, modify, merge, publish, distribute,
17추가: sub license, and/or sell copies of the Software, and to permit persons to whom the Software is
18추가: furnished to do so, subject to the following conditions: The above copyright notice and this
19추가: permission notice shall be included in all copies or substantial portions of the Software.
20추가:
21추가: **THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
22추가: NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23추가: NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
24추가: DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
25추가: OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.**
26추가:
27추가: ==============================================================================
28추가: Conscrypt (conscrypt-android 2.5.3) - Apache License 2.0
29추가: ------------------------------------------------------------------------------
30추가: Copyright 2016 The Android Open Source Project
31추가:
32추가: Licensed under the Apache License, Version 2.0 (the "License");
33추가: you may not use this file except in compliance with the License.
34추가: You may obtain a copy of the License at
35추가:
36추가: http://www.apache.org/licenses/LICENSE-2.0
37추가:
38추가: Unless required by applicable law or agreed to in writing, software
39추가: distributed under the License is distributed on an "AS IS" BASIS,
40추가: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
41추가: See the License for the specific language governing permissions and
42추가: limitations under the License.
43추가:
44추가: -----------------------------------------------------------------------
45추가: This product contains a modified portion of `Netty`, a configurable network
46추가: stack in Java, which can be obtained at:
47추가:
48추가: * LICENSE:
49추가: * licenses/LICENSE.netty.txt (Apache License 2.0)
50추가: * HOMEPAGE:
51추가: * http://netty.io/
52추가:
53추가: This product contains a modified portion of `Apache Harmony`, modular Java runtime,
54추가: which can be obtained at:
55추가:
56추가: * LICENSE:
57추가: * licenses/LICENSE.harmony.txt (Apache License 2.0)
58추가: * HOMEPAGE:
59추가: * https://harmony.apache.org/
60추가:
61추가: ------------------------------------------------------------------------------
62추가: BoringSSL (native library bundled in Conscrypt)
63추가: ------------------------------------------------------------------------------
64추가: BoringSSL is a fork of OpenSSL. As such, large parts of it fall under OpenSSL
65추가: licensing. Files that are completely new have a Google copyright and an ISC
66추가: license. This license is reproduced at the bottom of this file.
67추가:
68추가: Contributors to BoringSSL are required to follow the CLA rules for Chromium:
69추가: https://cla.developers.google.com/clas
70추가:
71추가: Files in third_party/ have their own licenses, as described therein. The MIT
72추가: license, for third_party/fiat, which, unlike other third_party directories, is
73추가: compiled into non-test libraries, is included below.
74추가:
75추가: The OpenSSL toolkit stays under a dual license, i.e. both the conditions of the
76추가: OpenSSL License and the original SSLeay license apply to the toolkit. See below
77추가: for the actual license texts. Actually both licenses are BSD-style Open Source
78추가: licenses. In case of any license issues related to OpenSSL please contact
79추가: [email protected].
80추가:
81추가: The following are Google-internal bug numbers where explicit permission from
82추가: some authors is recorded for use of their work. (This is purely for our own
83추가: record keeping.)
84추가: 27287199
85추가: 27287880
86추가: 27287883
87추가:
88추가: OpenSSL License
89추가: ---------------
90추가:
91추가: /* ====================================================================
92추가: * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
93추가: *
94추가: * Redistribution and use in source and binary forms, with or without
95추가: * modification, are permitted provided that the following conditions
96추가: * are met:
97추가: *
98추가: * 1. Redistributions of source code must retain the above copyright
99추가: * notice, this list of conditions and the following disclaimer.
100추가: *
101추가: * 2. Redistributions in binary form must reproduce the above copyright
102추가: * notice, this list of conditions and the following disclaimer in
103추가: * the documentation and/or other materials provided with the
104추가: * distribution.
105추가: *
106추가: * 3. All advertising materials mentioning features or use of this
107추가: * software must display the following acknowledgment:
108추가: * "This product includes software developed by the OpenSSL Project
109추가: * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
110추가: *
111추가: * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
112추가: * endorse or promote products derived from this software without
113추가: * prior written permission. For written permission, please contact
114추가: * [email protected].
115추가: *
116추가: * 5. Products derived from this software may not be called "OpenSSL"
117추가: * nor may "OpenSSL" appear in their names without prior written
118추가: * permission of the OpenSSL Project.
119추가: *
120추가: * 6. Redistributions of any form whatsoever must retain the following
121추가: * acknowledgment:
122추가: * "This product includes software developed by the OpenSSL Project
123추가: * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
124추가: *
125추가: * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
126추가: * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
127추가: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
128추가: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
129추가: * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
130추가: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
131추가: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
132추가: * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
133추가: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
134추가: * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
135추가: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
136추가: * OF THE POSSIBILITY OF SUCH DAMAGE.
137추가: * ====================================================================
138추가: *
139추가: * This product includes cryptographic software written by Eric Young
140추가: * ([email protected]). This product includes software written by Tim
141추가: * Hudson ([email protected]).
142추가: *
143추가: */
144추가:
145추가: Original SSLeay License
146추가: -----------------------
147추가:
148추가: /* Copyright (C) 1995-1998 Eric Young ([email protected])
149추가: * All rights reserved.
150추가: *
151추가: * This package is an SSL implementation written
152추가: * by Eric Young ([email protected]).
153추가: * The implementation was written so as to conform with Netscapes SSL.
154추가: *
155추가: * This library is free for commercial and non-commercial use as long as
156추가: * the following conditions are aheared to. The following conditions
157추가: * apply to all code found in this distribution, be it the RC4, RSA,
158추가: * lhash, DES, etc., code; not just the SSL code. The SSL documentation
159추가: * included with this distribution is covered by the same copyright terms
160추가: * except that the holder is Tim Hudson ([email protected]).
161추가: *
162추가: * Copyright remains Eric Young's, and as such any Copyright notices in
163추가: * the code are not to be removed.
164추가: * If this package is used in a product, Eric Young should be given attribution
165추가: * as the author of the parts of the library used.
166추가: * This can be in the form of a textual message at program startup or
167추가: * in documentation (online or textual) provided with the package.
168추가: *
169추가: * Redistribution and use in source and binary forms, with or without
170추가: * modification, are permitted provided that the following conditions
171추가: * are met:
172추가: * 1. Redistributions of source code must retain the copyright
173추가: * notice, this list of conditions and the following disclaimer.
174추가: * 2. Redistributions in binary form must reproduce the above copyright
175추가: * notice, this list of conditions and the following disclaimer in the
176추가: * documentation and/or other materials provided with the distribution.
177추가: * 3. All advertising materials mentioning features or use of this software
178추가: * must display the following acknowledgement:
179추가: * "This product includes cryptographic software written by
180추가: * Eric Young ([email protected])"
181추가: * The word 'cryptographic' can be left out if the rouines from the library
182추가: * being used are not cryptographic related :-).
183추가: * 4. If you include any Windows specific code (or a derivative thereof) from
184추가: * the apps directory (application code) you must include an acknowledgement:
185추가: * "This product includes software written by Tim Hudson ([email protected])"
186추가: *
187추가: * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
188추가: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
189추가: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
190추가: * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
191추가: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
192추가: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
193추가: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
194추가: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
195추가: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
196추가: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
197추가: * SUCH DAMAGE.
198추가: *
199추가: * The licence and distribution terms for any publically available version or
200추가: * derivative of this code cannot be changed. i.e. this code cannot simply be
201추가: * copied and put under another distribution licence
202추가: * [including the GNU Public Licence.]
203추가: */
204추가:
205추가:
206추가: ISC license used for completely new code in BoringSSL:
207추가:
208추가: /* Copyright (c) 2015, Google Inc.
209추가: *
210추가: * Permission to use, copy, modify, and/or distribute this software for any
211추가: * purpose with or without fee is hereby granted, provided that the above
212추가: * copyright notice and this permission notice appear in all copies.
213추가: *
214추가: * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
215추가: * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
216추가: * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
217추가: * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
218추가: * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
219추가: * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
220추가: * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
221추가:
222추가:
223추가: The code in third_party/fiat carries the MIT license:
224추가:
225추가: Copyright (c) 2015-2016 the fiat-crypto authors (see
226추가: https://github.com/mit-plv/fiat-crypto/blob/master/AUTHORS).
227추가:
228추가: Permission is hereby granted, free of charge, to any person obtaining a copy
229추가: of this software and associated documentation files (the "Software"), to deal
230추가: in the Software without restriction, including without limitation the rights
231추가: to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
232추가: copies of the Software, and to permit persons to whom the Software is
233추가: furnished to do so, subject to the following conditions:
234추가:
235추가: The above copyright notice and this permission notice shall be included in all
236추가: copies or substantial portions of the Software.
237추가:
238추가: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
239추가: IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
240추가: FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
241추가: AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
242추가: LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
243추가: OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
244추가: SOFTWARE.
245추가:
246추가:
247추가: Licenses for support code
248추가: -------------------------
249추가:
250추가: Parts of the TLS test suite are under the Go license. This code is not included
251추가: in BoringSSL (i.e. libcrypto and libssl) when compiled, however, so
252추가: distributing code linked against BoringSSL does not trigger this license:
253추가:
254추가: Copyright (c) 2009 The Go Authors. All rights reserved.
255추가:
256추가: Redistribution and use in source and binary forms, with or without
257추가: modification, are permitted provided that the following conditions are
258추가: met:
259추가:
260추가: * Redistributions of source code must retain the above copyright
261추가: notice, this list of conditions and the following disclaimer.
262추가: * Redistributions in binary form must reproduce the above
263추가: copyright notice, this list of conditions and the following disclaimer
264추가: in the documentation and/or other materials provided with the
265추가: distribution.
266추가: * Neither the name of Google Inc. nor the names of its
267추가: contributors may be used to endorse or promote products derived from
268추가: this software without specific prior written permission.
269추가:
270추가: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
271추가: "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
272추가: LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
273추가: A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
274추가: OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
275추가: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
276추가: LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
277추가: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
278추가: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
279추가: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
280추가: OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
281추가:
282추가:
283추가: BoringSSL uses the Chromium test infrastructure to run a continuous build,
284추가: trybots etc. The scripts which manage this, and the script for generating build
285추가: metadata, are under the Chromium license. Distributing code linked against
286추가: BoringSSL does not trigger this license.
287추가:
288추가: Copyright 2015 The Chromium Authors. All rights reserved.
289추가:
290추가: Redistribution and use in source and binary forms, with or without
291추가: modification, are permitted provided that the following conditions are
292추가: met:
293추가:
294추가: * Redistributions of source code must retain the above copyright
295추가: notice, this list of conditions and the following disclaimer.
296추가: * Redistributions in binary form must reproduce the above
297추가: copyright notice, this list of conditions and the following disclaimer
298추가: in the documentation and/or other materials provided with the
299추가: distribution.
300추가: * Neither the name of Google Inc. nor the names of its
301추가: contributors may be used to endorse or promote products derived from
302추가: this software without specific prior written permission.
303추가:
304추가: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
305추가: "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
306추가: LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
307추가: A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
308추가: OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
309추가: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
310추가: LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
311추가: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
312추가: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
313추가: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
314추가: OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
315추가:
316추가: ==============================================================================
317추가: libadb-android 3.1.1 (Muntashir Al-Islam) - used under the Apache License 2.0
318추가: (dual-licensed GPL-3.0-or-later OR Apache-2.0)
319추가: ==============================================================================
320추가: Kotlin standard library (JetBrains s.r.o. and Kotlin contributors) - Apache License 2.0
321추가: ==============================================================================
322추가: Apache License 2.0 (full text, applies to Conscrypt, libadb-android and the Kotlin standard library)
323추가: ------------------------------------------------------------------------------
324추가:
325추가: Apache License
326추가: Version 2.0, January 2004
327추가: http://www.apache.org/licenses/
328추가:
329추가: TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
330추가:
331추가: 1. Definitions.
332추가:
333추가: "License" shall mean the terms and conditions for use, reproduction,
334추가: and distribution as defined by Sections 1 through 9 of this document.
335추가:
336추가: "Licensor" shall mean the copyright owner or entity authorized by
337추가: the copyright owner that is granting the License.
338추가:
339추가: "Legal Entity" shall mean the union of the acting entity and all
340추가: other entities that control, are controlled by, or are under common
341추가: control with that entity. For the purposes of this definition,
342추가: "control" means (i) the power, direct or indirect, to cause the
343추가: direction or management of such entity, whether by contract or
344추가: otherwise, or (ii) ownership of fifty percent (50%) or more of the
345추가: outstanding shares, or (iii) beneficial ownership of such entity.
346추가:
347추가: "You" (or "Your") shall mean an individual or Legal Entity
348추가: exercising permissions granted by this License.
349추가:
350추가: "Source" form shall mean the preferred form for making modifications,
351추가: including but not limited to software source code, documentation
352추가: source, and configuration files.
353추가:
354추가: "Object" form shall mean any form resulting from mechanical
355추가: transformation or translation of a Source form, including but
356추가: not limited to compiled object code, generated documentation,
357추가: and conversions to other media types.
358추가:
359추가: "Work" shall mean the work of authorship, whether in Source or
360추가: Object form, made available under the License, as indicated by a
361추가: copyright notice that is included in or attached to the work
362추가: (an example is provided in the Appendix below).
363추가:
364추가: "Derivative Works" shall mean any work, whether in Source or Object
365추가: form, that is based on (or derived from) the Work and for which the
366추가: editorial revisions, annotations, elaborations, or other modifications
367추가: represent, as a whole, an original work of authorship. For the purposes
368추가: of this License, Derivative Works shall not include works that remain
369추가: separable from, or merely link (or bind by name) to the interfaces of,
370추가: the Work and Derivative Works thereof.
371추가:
372추가: "Contribution" shall mean any work of authorship, including
373추가: the original version of the Work and any modifications or additions
374추가: to that Work or Derivative Works thereof, that is intentionally
375추가: submitted to Licensor for inclusion in the Work by the copyright owner
376추가: or by an individual or Legal Entity authorized to submit on behalf of
377추가: the copyright owner. For the purposes of this definition, "submitted"
378추가: means any form of electronic, verbal, or written communication sent
379추가: to the Licensor or its representatives, including but not limited to
380추가: communication on electronic mailing lists, source code control systems,
381추가: and issue tracking systems that are managed by, or on behalf of, the
382추가: Licensor for the purpose of discussing and improving the Work, but
383추가: excluding communication that is conspicuously marked or otherwise
384추가: designated in writing by the copyright owner as "Not a Contribution."
385추가:
386추가: "Contributor" shall mean Licensor and any individual or Legal Entity
387추가: on behalf of whom a Contribution has been received by Licensor and
388추가: subsequently incorporated within the Work.
389추가:
390추가: 2. Grant of Copyright License. Subject to the terms and conditions of
391추가: this License, each Contributor hereby grants to You a perpetual,
392추가: worldwide, non-exclusive, no-charge, royalty-free, irrevocable
393추가: copyright license to reproduce, prepare Derivative Works of,
394추가: publicly display, publicly perform, sublicense, and distribute the
395추가: Work and such Derivative Works in Source or Object form.
396추가:
397추가: 3. Grant of Patent License. Subject to the terms and conditions of
398추가: this License, each Contributor hereby grants to You a perpetual,
399추가: worldwide, non-exclusive, no-charge, royalty-free, irrevocable
400추가: (except as stated in this section) patent license to make, have made,
401추가: use, offer to sell, sell, import, and otherwise transfer the Work,
402추가: where such license applies only to those patent claims licensable
403추가: by such Contributor that are necessarily infringed by their
404추가: Contribution(s) alone or by combination of their Contribution(s)
405추가: with the Work to which such Contribution(s) was submitted. If You
406추가: institute patent litigation against any entity (including a
407추가: cross-claim or counterclaim in a lawsuit) alleging that the Work
408추가: or a Contribution incorporated within the Work constitutes direct
409추가: or contributory patent infringement, then any patent licenses
410추가: granted to You under this License for that Work shall terminate
411추가: as of the date such litigation is filed.
412추가:
413추가: 4. Redistribution. You may reproduce and distribute copies of the
414추가: Work or Derivative Works thereof in any medium, with or without
415추가: modifications, and in Source or Object form, provided that You
416추가: meet the following conditions:
417추가:
418추가: (a) You must give any other recipients of the Work or
419추가: Derivative Works a copy of this License; and
420추가:
421추가: (b) You must cause any modified files to carry prominent notices
422추가: stating that You changed the files; and
423추가:
424추가: (c) You must retain, in the Source form of any Derivative Works
425추가: that You distribute, all copyright, patent, trademark, and
426추가: attribution notices from the Source form of the Work,
427추가: excluding those notices that do not pertain to any part of
428추가: the Derivative Works; and
429추가:
430추가: (d) If the Work includes a "NOTICE" text file as part of its
431추가: distribution, then any Derivative Works that You distribute must
432추가: include a readable copy of the attribution notices contained
433추가: within such NOTICE file, excluding those notices that do not
434추가: pertain to any part of the Derivative Works, in at least one
435추가: of the following places: within a NOTICE text file distributed
436추가: as part of the Derivative Works; within the Source form or
437추가: documentation, if provided along with the Derivative Works; or,
438추가: within a display generated by the Derivative Works, if and
439추가: wherever such third-party notices normally appear. The contents
440추가: of the NOTICE file are for informational purposes only and
441추가: do not modify the License. You may add Your own attribution
442추가: notices within Derivative Works that You distribute, alongside
443추가: or as an addendum to the NOTICE text from the Work, provided
444추가: that such additional attribution notices cannot be construed
445추가: as modifying the License.
446추가:
447추가: You may add Your own copyright statement to Your modifications and
448추가: may provide additional or different license terms and conditions
449추가: for use, reproduction, or distribution of Your modifications, or
450추가: for any such Derivative Works as a whole, provided Your use,
451추가: reproduction, and distribution of the Work otherwise complies with
452추가: the conditions stated in this License.
453추가:
454추가: 5. Submission of Contributions. Unless You explicitly state otherwise,
455추가: any Contribution intentionally submitted for inclusion in the Work
456추가: by You to the Licensor shall be under the terms and conditions of
457추가: this License, without any additional terms or conditions.
458추가: Notwithstanding the above, nothing herein shall supersede or modify
459추가: the terms of any separate license agreement you may have executed
460추가: with Licensor regarding such Contributions.
461추가:
462추가: 6. Trademarks. This License does not grant permission to use the trade
463추가: names, trademarks, service marks, or product names of the Licensor,
464추가: except as required for reasonable and customary use in describing the
465추가: origin of the Work and reproducing the content of the NOTICE file.
466추가:
467추가: 7. Disclaimer of Warranty. Unless required by applicable law or
468추가: agreed to in writing, Licensor provides the Work (and each
469추가: Contributor provides its Contributions) on an "AS IS" BASIS,
470추가: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
471추가: implied, including, without limitation, any warranties or conditions
472추가: of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
473추가: PARTICULAR PURPOSE. You are solely responsible for determining the
474추가: appropriateness of using or redistributing the Work and assume any
475추가: risks associated with Your exercise of permissions under this License.
476추가:
477추가: 8. Limitation of Liability. In no event and under no legal theory,
478추가: whether in tort (including negligence), contract, or otherwise,
479추가: unless required by applicable law (such as deliberate and grossly
480추가: negligent acts) or agreed to in writing, shall any Contributor be
481추가: liable to You for damages, including any direct, indirect, special,
482추가: incidental, or consequential damages of any character arising as a
483추가: result of this License or out of the use or inability to use the
484추가: Work (including but not limited to damages for loss of goodwill,
485추가: work stoppage, computer failure or malfunction, or any and all
486추가: other commercial damages or losses), even if such Contributor
487추가: has been advised of the possibility of such damages.
488추가:
489추가: 9. Accepting Warranty or Additional Liability. While redistributing
490추가: the Work or Derivative Works thereof, You may choose to offer,
491추가: and charge a fee for, acceptance of support, warranty, indemnity,
492추가: or other liability obligations and/or rights consistent with this
493추가: License. However, in accepting such obligations, You may act only
494추가: on Your own behalf and on Your sole responsibility, not on behalf
495추가: of any other Contributor, and only if You agree to indemnify,
496추가: defend, and hold each Contributor harmless for any liability
497추가: incurred by, or claims asserted against, such Contributor by reason
498추가: of your accepting any such warranty or additional liability.
499추가:
500추가: END OF TERMS AND CONDITIONS
501추가:
502추가: APPENDIX: How to apply the Apache License to your work.
503추가:
504추가: To apply the Apache License to your work, attach the following
505추가: boilerplate notice, with the fields enclosed by brackets "[]"
506추가: replaced with your own identifying information. (Don't include
507추가: the brackets!) The text should be enclosed in the appropriate
508추가: comment syntax for the file format. We also recommend that a
509추가: file or class name and description of purpose be included on the
510추가: same "printed page" as the copyright notice for easier
511추가: identification within third-party archives.
512추가:
513추가: Copyright [yyyy] [name of copyright owner]
514추가:
515추가: Licensed under the Apache License, Version 2.0 (the "License");
516추가: you may not use this file except in compliance with the License.
517추가: You may obtain a copy of the License at
518추가:
519추가: http://www.apache.org/licenses/LICENSE-2.0
520추가:
521추가: Unless required by applicable law or agreed to in writing, software
522추가: distributed under the License is distributed on an "AS IS" BASIS,
523추가: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
524추가: See the License for the specific language governing permissions and
525추가: limitations under the License.
추가docs/images/screenshot.png

바이너리 파일이라 Diff를 표시하지 않아요.

파일 내려받기
추가docs/release-checklist.md+58-0
@@ -0,0 +1,58 @@
1추가: # .deb 배포 전 점검표
2추가:
3추가: 첫 점검: 2026-11-25, 커밋 7763f56 기준, Ubuntu 26.04.1 LTS amd64. 결정 사항 반영: 같은 날.
4추가:
5추가: 표시: ✅ 확인 완료 · ⚠️ 결정 또는 조치 필요 · ⬜ 아직 안 함
6추가:
7추가: ## 1. 결정 사항
8추가:
9추가: | | 항목 | 결정 |
10추가: |---|---|---|
11추가: | ✅ | 프로젝트 라이선스 | GPL-3.0-or-later. Ubuntu의 FFmpeg(`libavcodec`)가 `--enable-gpl`로 빌드되어 GPL 라이브러리를 함께 링크하고, Apache-2.0 의존성과 호환되는 GPL은 버전 3이므로 분쟁 소지가 가장 적다. 저장소 `LICENSE`, `Cargo.toml` `license`, .deb `copyright`(DEP-5, `packaging/copyright`)에 반영 |
12추가: | ✅ | 패키지 관리자 | LeeJunyoung <[email protected]> |
13추가: | ✅ | 휴대폰 앱 배포 | APK는 .deb에 넣지 않고 릴리스 첨부 파일(`android-remote-0.1.0.apk`)로 올린다 |
14추가: | ✅ | 버전 | 0.1.0 (호스트, APK versionName). APK versionCode 1 |
15추가: | ✅ | 지원 배포판 | Ubuntu 26.04, 24.04. glibc와 FFmpeg 버전이 달라 배포판별로 따로 빌드한 .deb(`0.1.0-1~ubuntu26.04`, `0.1.0-1~ubuntu24.04`)를 각각 첨부한다 |
16추가: | ✅ | 서드파티 고지 | PC: `scripts/third-party-licenses.py`가 크레이트 275개 라이선스 원문을 모아 .deb에 넣는다. APK: `assets/third_party_licenses.txt`(Bouncy Castle, Conscrypt·BoringSSL, libadb-android, Kotlin 표준 라이브러리) |
17추가: | ⚠️ | GPL 소스 제공 | 저장소가 비공개이므로 GPL 배포 조건에 따라 릴리스마다 소스 아카이브(`git archive`)를 함께 첨부한다 |
18추가:
19추가: ## 2. 자동 점검 결과
20추가:
21추가: | | 항목 | 결과 |
22추가: |---|---|---|
23추가: | ✅ | 테스트 | `cargo test` 전부 통과 (lib 28, bin 108, 통합 테스트 31) |
24추가: | ✅ | 정적 분석 | `cargo clippy --all-targets -- -D warnings`, `cargo fmt --check` 통과 |
25추가: | ✅ | Rust 의존성 라이선스 | 크레이트 275개 모두 MIT·Apache-2.0·BSD·ISC·Zlib·Unicode 등 허용 라이선스. `ffmpeg-next`·`ffmpeg-sys-next`는 WTFPL, `self_cell`은 Apache-2.0 OR GPL-2.0 중 Apache-2.0 선택 가능 |
26추가: | ✅ | Android 의존성 라이선스 | BouncyCastle(MIT), Conscrypt(Apache-2.0), libadb-android(GPL-3.0-or-later OR Apache-2.0 중 Apache-2.0으로 사용) |
27추가: | ✅ | 비밀값 | 추적 파일에 키·비밀번호 없음. APK 서명 정보는 저장소 밖 `~/.config/android-remote-signing/`에서만 읽고, `.gitignore`가 `*.jks`·`*.keystore`·`*.apk`를 막는다 |
28추가: | ✅ | 개인정보 | 추적 파일에 이메일·사용자 경로 없음. IP는 테스트와 주석의 예시뿐 |
29추가: | ✅ | 남은 디버그 코드 | `src/`에 `println!`·`dbg!`·`TODO` 없음 |
30추가: | ✅ | 바탕화면 항목 | `desktop-file-validate` 통과, `StartupWMClass`와 창 앱 ID(`android-remote`) 일치 |
31추가: | ✅ | 시험 패키지 | `cargo deb`로 .deb(5.5MB, 실행 파일 19MB 스트립) 생성. 실행 파일, 바탕화면 항목, 아이콘, README, copyright, 서드파티 라이선스 포함 |
32추가: | ✅ | 런타임 의존성 | 직접 링크: libavcodec62, libavutil60, libswscale9, libc6. winit·wgpu가 dlopen으로 여는 라이브러리(libvulkan1, libwayland-client0, libxkbcommon0, libxkbcommon-x11-0, libx11-6, libx11-xcb1, libxcursor1, libxi6)는 자동 감지되지 않아 `depends`에 직접 넣었다. 권장: Vulkan 드라이버, VA-API 드라이버, adb |
33추가:
34추가: ## 3. 남은 점검 (결정 뒤 진행)
35추가:
36추가: | | 항목 | 방법 |
37추가: |---|---|---|
38추가: | ✅ | 배포판별 빌드 | `./scripts/build-deb.sh`로 Ubuntu 26.04(FFmpeg 8, glibc 2.43)와 24.04(FFmpeg 6.1, glibc 2.39) 컨테이너에서 각각 빌드했다. `0.1.0-1~ubuntu26.04`(5.6MB), `0.1.0-1~ubuntu24.04`(5.6MB) |
39추가: | ✅ | 깨끗한 설치 시험 | 각 배포판의 새 컨테이너에서 `apt install ./*.deb`만으로 의존성이 모두 풀리고, `ldd`에 빠진 라이브러리가 없으며, dlopen 대상(Vulkan, Wayland, xkbcommon, X11)도 설치된다. 24.04 컨테이너에 Wayland 소켓을 넘겨 실행하니 창이 뜨고 휴대폰에 연결·인증한 뒤 영상을 디코딩해 표시했다(컨테이너에 GPU를 넘기지 않아 소프트웨어 렌더링·디코딩) |
40추가: | ✅ | lintian | 두 패키지 모두 경고·오류 없음 (변경 기록 `changelog.Debian.gz`와 매뉴얼 페이지 `android-remote(1)` 추가 뒤) |
41추가: | ✅ | 재설치·제거 | 컨테이너에서 설치 → 재설치 → `apt remove` → `apt purge`: 실행 파일은 지워지고 사용자 설정(`~/.config/android-remote`)은 남는다. 이전 버전 위 업그레이드는 다음 릴리스에서 확인한다 |
42추가: | ⬜ | 릴리스 빌드 설정 | `[profile.release]`에 `lto = "thin"`, `codegen-units = 1`을 넣으면 크기와 속도가 나아질 수 있다. 넣는다면 실기기로 프레임 지연과 디코딩 시간을 다시 잰다. |
43추가: | ✅ | 실기기 회귀 점검 (26.04 빌드) | 기능 개발마다 실기기로 확인했고, 2026-11-25 사용자 확인: 전 기능 정상. 아래 목록은 다음 릴리스부터 매번 반복한다 |
44추가: | ⬜ | 실기기 회귀 점검 (다음 릴리스부터) | 연결·승인, 영상(60fps, NVDEC), 터치·스크롤·우클릭 길게 누르기, 키보드·한글, 텍스트·이미지 클립보드 양방향, 파일 붙여넣기·끌어다 놓기, 스크린샷, 회전, 화면 끄기, 자동 재연결, 권한 철회, USB ADB 모드, 재부팅 뒤 자동 시작 |
45추가: | ⬜ | X11 세션 | 지금까지 GNOME Wayland에서만 실사용했다. X11 세션에서 창 이동·크기 조절·끌어다 놓기(winit 기본 드롭)를 확인한다. |
46추가: | ⬜ | 다른 GPU | GPU 메모리가 부족할 때 소프트웨어 디코딩으로 넘어가는 것은 확인했다. Intel·AMD에서 VA-API 하드웨어 디코딩은 아직 확인하지 않았다 |
47추가: | ✅ | 테스트 데이터 정리 | `src/adb.rs` 테스트 문자열의 실제 기기 일련번호를 가짜 값으로 바꿨다. README 스크린샷에는 휴대폰 홈 화면의 날씨 위젯(지역: 서울)과 설치된 앱 아이콘이 보인다. |
48추가: | ⬜ | APK 서명 키 백업 | `~/.config/android-remote-signing/`의 키를 안전한 곳에 백업한다. 잃으면 설치된 앱을 업데이트할 수 없다. |
49추가: | ⬜ | 릴리스 게시 | 태그 `v0.1.0`을 만들고 gitgit 릴리스에 .deb 2개, APK, 소스 아카이브, `SHA256SUMS`를 올린다. |
50추가:
51추가: ## 4. 패키지 만들기
52추가:
53추가: ```bash
54추가: ./scripts/build-deb.sh # 26.04와 24.04 모두, 결과는 dist/
55추가: ./scripts/build-deb.sh 24.04 # 하나만
56추가: ```
57추가:
58추가: `packaging/Containerfile`로 배포판별 빌드 환경을 만들고 그 안에서 `cargo deb`를 실행한다. 설치 내용은 `Cargo.toml`의 `[package.metadata.deb]`에 있다.
추가packaging/Containerfile+16-0
@@ -0,0 +1,16 @@
1추가: # Ubuntu 배포판별 .deb 빌드 환경 (scripts/build-deb.sh가 쓴다).
2추가: # 같은 소스를 각 배포판의 glibc·FFmpeg에 맞춰 빌드해야 그 배포판에 설치된다.
3추가: ARG UBUNTU=26.04
4추가: FROM docker.io/library/ubuntu:${UBUNTU}
5추가:
6추가: ENV DEBIAN_FRONTEND=noninteractive
7추가: RUN apt-get update && apt-get install -y --no-install-recommends \
8추가: build-essential pkg-config clang libclang-dev ca-certificates curl python3 git dpkg-dev \
9추가: libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev \
10추가: libavfilter-dev libavdevice-dev libva-dev \
11추가: && rm -rf /var/lib/apt/lists/*
12추가:
13추가: # 배포판 Rust는 edition 2024와 let 체인을 지원하지 않을 수 있어 rustup으로 안정판을 쓴다.
14추가: ENV RUSTUP_HOME=/opt/rustup CARGO_HOME=/opt/cargo PATH=/opt/cargo/bin:$PATH
15추가: RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable \
16추가: && cargo install cargo-deb --locked
추가packaging/android-remote.1+48-0
@@ -0,0 +1,48 @@
1추가: .TH ANDROID-REMOTE 1 "2026-11-25" "android-remote 0.1.0" "User Commands"
2추가: .SH NAME
3추가: android-remote \- mirror and control an Android phone from Ubuntu
4추가: .SH SYNOPSIS
5추가: .B android-remote
6추가: .RI [ ADDRESS | usb ]
7추가: .SH DESCRIPTION
8추가: .B android-remote
9추가: shows the screen of an Android phone running the Android Remote companion app
10추가: and forwards mouse, keyboard, clipboard (text and images) and dropped or pasted
11추가: files to it. All connections use TLS 1.3 and the PC authenticates with an
12추가: Ed25519 key; a new PC must be approved on the phone after comparing the
13추가: six-digit confirmation code.
14추가: .PP
15추가: Without arguments a window opens with an address field. Enter the phone
16추가: address shown in the companion app (for example 192.168.0.12, or
17추가: IP:port when the port is not 27200).
18추가: .SH OPTIONS
19추가: .TP
20추가: .I ADDRESS
21추가: Connect to this phone address on startup.
22추가: .TP
23추가: .B usb
24추가: Connect over USB with adb (USB ADB mode must be enabled in the settings).
25추가: .SH CONTROLS
26추가: Left click and drag send touches, right click is an immediate long press,
27추가: the wheel scrolls, the mouse back button sends Back, and Ctrl+C, Ctrl+X,
28추가: Ctrl+V and Ctrl+A copy, cut, paste and select all on the phone. Files copied
29추가: in a file manager and pasted with Ctrl+V, or dropped on the window, are saved
30추가: to Download/Android Remote on the phone.
31추가: .SH FILES
32추가: .TP
33추가: .I ~/.config/android-remote/device_key
34추가: Ed25519 key that identifies this PC.
35추가: .TP
36추가: .I ~/.config/android-remote/known_devices
37추가: Pinned certificate fingerprints of connected phones.
38추가: .TP
39추가: .I ~/.config/android-remote/settings
40추가: Settings and window size.
41추가: .SH ENVIRONMENT
42추가: .TP
43추가: .B RUST_LOG
44추가: Log filter, for example RUST_LOG=android_remote=debug.
45추가: .SH SEE ALSO
46추가: .BR adb (1)
47추가: .SH AUTHOR
48추가: LeeJunyoung <[email protected]>
추가packaging/copyright+28-0
@@ -0,0 +1,28 @@
1추가: Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2추가: Upstream-Name: android-remote
3추가: Upstream-Contact: LeeJunyoung <[email protected]>
4추가: Source: https://gitgit.kr/leejunyoung5819/wayland-android-remote
5추가:
6추가: Files: *
7추가: Copyright: 2026 LeeJunyoung <[email protected]>
8추가: License: GPL-3+
9추가:
10추가: Comment:
11추가: The binary statically links Rust crates under MIT, Apache-2.0, BSD, ISC, Zlib,
12추가: Unicode-3.0, Unlicense and WTFPL terms. Their license texts are installed in
13추가: /usr/share/doc/android-remote/third-party-licenses.txt.
14추가: FFmpeg is linked dynamically from the distribution packages.
15추가:
16추가: License: GPL-3+
17추가: This program is free software: you can redistribute it and/or modify
18추가: it under the terms of the GNU General Public License as published by
19추가: the Free Software Foundation, either version 3 of the License, or
20추가: (at your option) any later version.
21추가: .
22추가: This program is distributed in the hope that it will be useful,
23추가: but WITHOUT ANY WARRANTY; without even the implied warranty of
24추가: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25추가: GNU General Public License for more details.
26추가: .
27추가: On Debian systems, the complete text of the GNU General Public
28추가: License version 3 can be found in "/usr/share/common-licenses/GPL-3".
추가scripts/build-deb.sh+34-0
@@ -0,0 +1,34 @@
1추가: #!/usr/bin/env bash
2추가: # Ubuntu 배포판별 .deb를 컨테이너에서 빌드해 dist/에 둔다.
3추가: #
4추가: # ./scripts/build-deb.sh 26.04와 24.04 모두
5추가: # ./scripts/build-deb.sh 24.04 하나만
6추가: #
7추가: # podman(또는 docker)이 필요하다: sudo apt install podman
8추가: set -euo pipefail
9추가: cd "$(dirname "$0")/.."
10추가:
11추가: ENGINE="$(command -v podman || command -v docker || true)"
12추가: if [[ -z "$ENGINE" ]]; then
13추가: echo "podman이 필요합니다: sudo apt install podman" >&2
14추가: exit 1
15추가: fi
16추가:
17추가: VERSIONS=("$@")
18추가: [[ ${#VERSIONS[@]} -eq 0 ]] && VERSIONS=(26.04 24.04)
19추가: mkdir -p dist
20추가:
21추가: for v in "${VERSIONS[@]}"; do
22추가: image="android-remote-build:$v"
23추가: echo "== Ubuntu $v 빌드 환경"
24추가: "$ENGINE" build -t "$image" --build-arg "UBUNTU=$v" -f packaging/Containerfile packaging
25추가: echo "== Ubuntu $v .deb 빌드"
26추가: # 배포판마다 빌드 결과를 따로 두고, 크레이트 내려받기는 호스트 캐시를 함께 쓴다.
27추가: "$ENGINE" run --rm \
28추가: -v "$PWD:/src" -w /src \
29추가: -v "$HOME/.cargo/registry:/opt/cargo/registry" \
30추가: -e CARGO_TARGET_DIR="/src/target/ubuntu-$v" \
31추가: "$image" scripts/deb-in-container.sh "$v"
32추가: done
33추가:
34추가: ls -la dist/*.deb
추가scripts/deb-in-container.sh+20-0
@@ -0,0 +1,20 @@
1추가: #!/usr/bin/env bash
2추가: # scripts/build-deb.sh가 배포판 컨테이너 안에서 실행한다. 직접 실행하지 않는다.
3추가: # deb-in-container.sh <Ubuntu 버전>
4추가: set -euo pipefail
5추가: v="$1"
6추가: . /etc/os-release
7추가: ver="$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n1)"
8추가: rev="1~ubuntu$v"
9추가:
10추가: python3 scripts/third-party-licenses.py target/third-party-licenses.txt
11추가: gzip -9n -c packaging/android-remote.1 > target/android-remote.1.gz
12추가: cat > target/debian-changelog <<CHANGELOG
13추가: android-remote ($ver-$rev) $VERSION_CODENAME; urgency=medium
14추가:
15추가: * Ubuntu $v build of $ver.
16추가:
17추가: -- LeeJunyoung <[email protected]> $(date -R)
18추가: CHANGELOG
19추가:
20추가: cargo deb --locked --deb-revision "$rev" --output dist/
추가scripts/release.sh+41-0
@@ -0,0 +1,41 @@
1추가: #!/usr/bin/env bash
2추가: # 릴리스 첨부 파일을 dist/에 모은다: 배포판별 .deb, APK, 소스 아카이브(GPL 소스 제공), SHA256SUMS.
3추가: #
4추가: # ./scripts/release.sh .deb는 scripts/build-deb.sh로 미리 만들어 둔다
5추가: # SKIP_APK=1 ./scripts/release.sh APK를 다시 빌드하지 않는다
6추가: set -euo pipefail
7추가: cd "$(dirname "$0")/.."
8추가:
9추가: VERSION="$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n1)"
10추가: APK_VERSION="$(sed -n 's/.*versionName = "\(.*\)"/\1/p' android/app/build.gradle.kts | head -n1)"
11추가: if [[ "$VERSION" != "$APK_VERSION" ]]; then
12추가: echo "버전 불일치: Cargo.toml $VERSION, APK $APK_VERSION" >&2
13추가: exit 1
14추가: fi
15추가: if [[ -n "$(git status --porcelain)" ]]; then
16추가: echo "커밋하지 않은 변경이 있습니다. 소스 아카이브가 실제 빌드와 달라질 수 있습니다." >&2
17추가: exit 1
18추가: fi
19추가:
20추가: mkdir -p dist
21추가: for v in 26.04 24.04; do
22추가: deb="dist/android-remote_${VERSION}-1~ubuntu${v}_amd64.deb"
23추가: [[ -f "$deb" ]] || { echo "없음: $deb (./scripts/build-deb.sh $v)" >&2; exit 1; }
24추가: done
25추가:
26추가: if [[ -z "${SKIP_APK:-}" ]]; then
27추가: (cd android && ./gradlew -q assembleRelease)
28추가: fi
29추가: cp android/app/build/outputs/apk/release/app-release.apk "dist/android-remote-${VERSION}.apk"
30추가:
31추가: git archive --format=tar.gz --prefix="wayland-android-remote-${VERSION}/" \
32추가: -o "dist/wayland-android-remote-${VERSION}-source.tar.gz" HEAD
33추가:
34추가: (
35추가: cd dist
36추가: sha256sum "android-remote_${VERSION}-1~ubuntu26.04_amd64.deb" \
37추가: "android-remote_${VERSION}-1~ubuntu24.04_amd64.deb" \
38추가: "android-remote-${VERSION}.apk" \
39추가: "wayland-android-remote-${VERSION}-source.tar.gz" > SHA256SUMS
40추가: cat SHA256SUMS
41추가: )
추가scripts/third-party-licenses.py+121-0
@@ -0,0 +1,121 @@
1추가: #!/usr/bin/env python3
2추가: """실행 파일에 들어가는 Rust 크레이트의 라이선스 원문을 한 파일로 모은다.
3추가:
4추가: MIT·BSD 등은 바이너리를 배포할 때 저작권 고지와 라이선스 원문을 함께 줘야 한다.
5추가: `cargo metadata`로 빌드(비개발) 의존성만 골라, 각 크레이트 폴더의 LICENSE*/COPYING*/NOTICE*
6추가: 파일을 이어 붙인다. 원문 파일이 없는 크레이트는 SPDX 식별자만 적는다.
7추가:
8추가: scripts/third-party-licenses.py [출력 경로] (기본 target/third-party-licenses.txt)
9추가: """
10추가:
11추가: import json
12추가: import os
13추가: import subprocess
14추가: import sys
15추가:
16추가: PREFIXES = ("license", "licence", "copying", "notice", "unlicense", "copyright")
17추가:
18추가: WTFPL = """ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
19추가: Version 2, December 2004
20추가:
21추가: Copyright (C) 2004 Sam Hocevar <[email protected]>
22추가:
23추가: Everyone is permitted to copy and distribute verbatim or modified
24추가: copies of this license document, and changing it is allowed as long
25추가: as the name is changed.
26추가:
27추가: DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
28추가: TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
29추가:
30추가: 0. You just DO WHAT THE FUCK YOU WANT TO.
31추가: """
32추가:
33추가:
34추가: def fallback(pkg):
35추가: """원문 파일이 없는 크레이트: 고를 수 있는 라이선스 가운데 원문을 붙일 수 있는 것을 고른다."""
36추가: lic = pkg.get("license") or ""
37추가: if "Apache-2.0" in lic:
38추가: return "Apache-2.0", "(crate ships no license file; used under Apache-2.0, full text at the end of this file)\n"
39추가: if "WTFPL" in lic:
40추가: return "WTFPL", WTFPL
41추가: return None, "(no license file shipped in the crate; SPDX identifier above applies)\n"
42추가:
43추가:
44추가: def build_deps(meta):
45추가: nodes = {n["id"]: n for n in meta["resolve"]["nodes"]}
46추가: root = meta["resolve"]["root"]
47추가: seen, stack = set(), [root]
48추가: while stack:
49추가: i = stack.pop()
50추가: if i in seen:
51추가: continue
52추가: seen.add(i)
53추가: for d in nodes[i]["deps"]:
54추가: if any(k["kind"] in (None, "build") for k in d["dep_kinds"]):
55추가: stack.append(d["pkg"])
56추가: seen.discard(root)
57추가: return seen
58추가:
59추가:
60추가: def license_files(pkg):
61추가: root = os.path.dirname(pkg["manifest_path"])
62추가: files = []
63추가: if pkg.get("license_file"):
64추가: files.append(os.path.join(root, pkg["license_file"]))
65추가: for name in sorted(os.listdir(root)):
66추가: path = os.path.join(root, name)
67추가: if os.path.isfile(path) and name.lower().startswith(PREFIXES) and path not in files:
68추가: files.append(path)
69추가: return files
70추가:
71추가:
72추가: def main():
73추가: out_path = sys.argv[1] if len(sys.argv) > 1 else "target/third-party-licenses.txt"
74추가: meta = json.loads(
75추가: subprocess.check_output(
76추가: ["cargo", "metadata", "--format-version", "1", "--locked",
77추가: "--filter-platform", "x86_64-unknown-linux-gnu"],
78추가: )
79추가: )
80추가: pkgs = {p["id"]: p for p in meta["packages"]}
81추가: deps = sorted((pkgs[i] for i in build_deps(meta)), key=lambda p: (p["name"], p["version"]))
82추가:
83추가: parts = [
84추가: "Android Remote - third-party licenses\n",
85추가: "The android-remote binary includes the following Rust crates.\n",
86추가: "FFmpeg and other system libraries are linked dynamically from the distribution.\n\n",
87추가: ]
88추가: missing = 0
89추가: need_apache = False
90추가: for p in deps:
91추가: parts.append("=" * 78 + "\n")
92추가: parts.append(f"{p['name']} {p['version']}\n")
93추가: parts.append(f"License: {p.get('license') or 'see files below'}\n")
94추가: if p.get("repository"):
95추가: parts.append(f"Source: {p['repository']}\n")
96추가: files = license_files(p)
97추가: if not files:
98추가: missing += 1
99추가: chosen, text = fallback(p)
100추가: if chosen == "Apache-2.0":
101추가: need_apache = True
102추가: parts.append(text)
103추가: for f in files:
104추가: parts.append("-" * 78 + f"\n{os.path.basename(f)}:\n\n")
105추가: with open(f, encoding="utf-8", errors="replace") as fh:
106추가: parts.append(fh.read().rstrip() + "\n")
107추가: parts.append("\n")
108추가:
109추가: if need_apache:
110추가: parts.append("=" * 78 + "\nApache License 2.0 (full text)\n\n")
111추가: with open("/usr/share/common-licenses/Apache-2.0", encoding="utf-8") as fh:
112추가: parts.append(fh.read())
113추가:
114추가: os.makedirs(os.path.dirname(out_path) or ".", exist_ok=True)
115추가: with open(out_path, "w", encoding="utf-8") as fh:
116추가: fh.writelines(parts)
117추가: print(f"{out_path}: 크레이트 {len(deps)}개, 원문 없는 크레이트 {missing}개")
118추가:
119추가:
120추가: if __name__ == "__main__":
121추가: main()