Skip to content

Commit

Permalink
adding screen mirror configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiverse01 committed Jul 19, 2024
0 parents commit 6ae8748
Show file tree
Hide file tree
Showing 28 changed files with 21,397 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
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 added AdbWinApi.dll
Binary file not shown.
Binary file added AdbWinUsbApi.dll
Binary file not shown.
21,208 changes: 21,208 additions & 0 deletions NOTICE.txt

Large diffs are not rendered by default.

120 changes: 120 additions & 0 deletions README.md
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 &lt;device_ip&gt;:5555</code></pre>
Replace <code>&lt;device_ip&gt;</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 added SDL2.dll
Binary file not shown.
Binary file added adb.exe
Binary file not shown.
Binary file added avcodec-61.dll
Binary file not shown.
Binary file added avformat-61.dll
Binary file not shown.
Binary file added avutil-59.dll
Binary file not shown.
Binary file added etc1tool.exe
Binary file not shown.
Binary file added fastboot.exe
Binary file not shown.
Binary file added hprof-conv.exe
Binary file not shown.
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added libusb-1.0.dll
Binary file not shown.
Binary file added libwinpthread-1.dll
Binary file not shown.
Binary file added make_f2fs.exe
Binary file not shown.
Binary file added make_f2fs_casefold.exe
Binary file not shown.
53 changes: 53 additions & 0 deletions mke2fs.conf
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 added mke2fs.exe
Binary file not shown.
1 change: 1 addition & 0 deletions open_a_terminal_here.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@cmd
2 changes: 2 additions & 0 deletions scrcpy-console.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
scrcpy.exe --pause-on-exit=if-error %*
7 changes: 7 additions & 0 deletions scrcpy-noconsole.vbs
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 added scrcpy-server
Binary file not shown.
Binary file added scrcpy.exe
Binary file not shown.
2 changes: 2 additions & 0 deletions source.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Pkg.UserSrc=false
Pkg.Revision=35.0.1
Binary file added sqlite3.exe
Binary file not shown.
Binary file added swresample-5.dll
Binary file not shown.

0 comments on commit 6ae8748

Please sign in to comment.