-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6ae8748
Showing
28 changed files
with
21,397 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.txt text | ||
*.conf text | ||
*.bat text eol=crlf | ||
*.sh text eol=lf |
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Project-Mirror</title> | ||
</head> | ||
<body> | ||
|
||
<h1>Mobile Phone Mirroring to Desktop</h1> | ||
|
||
<p>This guide will help you mirror your mobile phone screen on your desktop using ADB (Android Debug Bridge) and <code>scrcpy</code>. Follow the steps below to set up and run the tools.</p> | ||
|
||
<h2>Requirements</h2> | ||
<ul> | ||
<li>Android device with Developer Options enabled.</li> | ||
<li>USB cable to connect your phone to your desktop.</li> | ||
<li>A computer running Windows with ADB and <code>scrcpy</code> installed.</li> | ||
</ul> | ||
|
||
<h2>Steps</h2> | ||
|
||
<h3>Mobile Setup</h3> | ||
<ol> | ||
<li> | ||
<strong>Enable Developer Options</strong>: | ||
<ul> | ||
<li>On your Android device, go to <strong>Settings</strong> > <strong>About phone</strong>.</li> | ||
<li>Tap <strong>Build number</strong> seven times to enable Developer Options.</li> | ||
<li>Go back to <strong>Settings</strong> > <strong>System</strong> > <strong>Developer options</strong>.</li> | ||
</ul> | ||
</li> | ||
<li> | ||
<strong>Enable USB Debugging</strong>: | ||
<ul> | ||
<li>In Developer Options, enable <strong>USB debugging</strong>.</li> | ||
</ul> | ||
</li> | ||
<li> | ||
<strong>Enable ADB Over Network</strong> (if necessary): | ||
<ul> | ||
<li>In Developer Options, enable <strong>ADB over network</strong>.</li> | ||
</ul> | ||
</li> | ||
</ol> | ||
|
||
<h3>Desktop Setup</h3> | ||
<ol> | ||
<li> | ||
<strong>Download and Extract Files</strong>: | ||
<ul> | ||
<li>Download the platform-tools package and extract it to a location on your desktop.</li> | ||
<li>Ensure the extracted folder contains <code>adb.exe</code> and <code>scrcpy.exe</code> along with other necessary files.</li> | ||
</ul> | ||
</li> | ||
<li> | ||
<strong>Open Terminal in Platform-Tools Folder</strong>: | ||
<ul> | ||
<li>Navigate to the platform-tools folder in File Explorer.</li> | ||
<li>Right-click inside the folder and select "Open in Terminal".</li> | ||
</ul> | ||
</li> | ||
<li> | ||
<strong>Connect to the Device via ADB</strong>: | ||
<ul> | ||
<li> | ||
<strong>Using Network</strong> (if your device is already configured for ADB over network): | ||
<pre><code>.\adb connect <device_ip>:5555</code></pre> | ||
Replace <code><device_ip></code> with the actual IP address of your device. | ||
</li> | ||
<li> | ||
<strong>Using USB</strong> (if network connection fails): | ||
<ol> | ||
<li>Connect your phone to your desktop via USB.</li> | ||
<li>Run the following command to list connected devices and ensure your device is listed: | ||
<pre><code>.\adb devices</code></pre> | ||
</li> | ||
<li>If the device shows as <code>unauthorized</code>, authorize debugging on your phone when prompted.</li> | ||
<li>Enable ADB over network: | ||
<pre><code>.\adb tcpip 5555</code></pre> | ||
</li> | ||
<li>Disconnect the USB cable and connect using the network method as described above.</li> | ||
</ol> | ||
</li> | ||
</ul> | ||
</li> | ||
</ol> | ||
|
||
<h3>Running scrcpy</h3> | ||
<ol> | ||
<li> | ||
<strong>Execute scrcpy</strong>: | ||
<ul> | ||
<li>Once ADB is connected to your device, double-click <code>scrcpy.exe</code> in the platform-tools folder.</li> | ||
<li>A terminal window will open. Wait for the terminal to load and initialize.</li> | ||
</ul> | ||
</li> | ||
<li> | ||
<strong>Start Mirroring</strong>: | ||
<ul> | ||
<li>Select all text in the terminal and copy it.</li> | ||
<li>A window displaying your phone screen should open on your desktop.</li> | ||
</ul> | ||
</li> | ||
</ol> | ||
|
||
<h2>Troubleshooting</h2> | ||
<ul> | ||
<li>If you encounter connection issues, ensure both your desktop and mobile device are on the same network.</li> | ||
<li>Ensure no firewalls or network security settings are blocking the connection.</li> | ||
<li>Restart ADB server if necessary: | ||
<pre><code>.\adb kill-server | ||
.\adb start-server</code></pre> | ||
</li> | ||
</ul> | ||
|
||
<p>By following these steps, you should be able to successfully mirror your mobile phone screen on your desktop. Enjoy using <code>scrcpy</code> for a seamless mirroring experience!</p> | ||
|
||
</body> | ||
</html> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[defaults] | ||
base_features = sparse_super,large_file,filetype,dir_index,ext_attr | ||
default_mntopts = acl,user_xattr | ||
enable_periodic_fsck = 0 | ||
blocksize = 4096 | ||
inode_size = 256 | ||
inode_ratio = 16384 | ||
reserved_ratio = 1.0 | ||
|
||
[fs_types] | ||
ext3 = { | ||
features = has_journal | ||
} | ||
ext4 = { | ||
features = has_journal,extent,huge_file,dir_nlink,extra_isize,uninit_bg | ||
inode_size = 256 | ||
} | ||
ext4dev = { | ||
features = has_journal,extent,huge_file,flex_bg,inline_data,64bit,dir_nlink,extra_isize | ||
inode_size = 256 | ||
options = test_fs=1 | ||
} | ||
small = { | ||
blocksize = 1024 | ||
inode_size = 128 | ||
inode_ratio = 4096 | ||
} | ||
floppy = { | ||
blocksize = 1024 | ||
inode_size = 128 | ||
inode_ratio = 8192 | ||
} | ||
big = { | ||
inode_ratio = 32768 | ||
} | ||
huge = { | ||
inode_ratio = 65536 | ||
} | ||
news = { | ||
inode_ratio = 4096 | ||
} | ||
largefile = { | ||
inode_ratio = 1048576 | ||
blocksize = -1 | ||
} | ||
largefile4 = { | ||
inode_ratio = 4194304 | ||
blocksize = -1 | ||
} | ||
hurd = { | ||
blocksize = 4096 | ||
inode_size = 128 | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@cmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
scrcpy.exe --pause-on-exit=if-error %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
strCommand = "cmd /c scrcpy.exe" | ||
|
||
For Each Arg In WScript.Arguments | ||
strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """" | ||
Next | ||
|
||
CreateObject("Wscript.Shell").Run strCommand, 0, false |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Pkg.UserSrc=false | ||
Pkg.Revision=35.0.1 |
Binary file not shown.
Binary file not shown.