use Asm.jar to project your Android phone screen to your computer
Sometimes it may be necessary to project some of the actions on your phone, such as the display of some app demos. In fact, there are specialized hardware equipment capable of this matter, but there is no need to specifically show a demo to spend money to buy hardware equipment. Just right, for Android phones, there is an open source jar package capable of doing this: Android screen Monitor (Asm.jar), official website https://code.google.com/p/android-screen-monitor/.
1, to the official website Download ASM Zip package, unzip to get Asm.jar file
2. Copy it to the Platform-tools directory of ADT
3, run Java-jar Asm.jar can start
Of course, it is recommended that you write a small script, for example: asm.sh
#!/bin/sh# Write the absolute path to the Asm.jar file hereJava-jar/user/zhaoxianlie/adt/sdk/platform-tools/asm.jar |
To change the permissions associated with the asm.sh script:
chmod 0755 asm.sh
Throw the asm.sh under the/usr/local/bin, or create a soft connection in this directory:
Ln-s/user/zhaoxianlie/adt/sdk/platform-tools/asm.sh ASM
This way, in any directory, execute this command directly to launch Android screen Monitor:asm
Most of this tool has a little card, not very smooth, very real-time mobile phone screen display to the PC screen, but basically can meet our needs. On the run interface, the default magnification is 100%, if it is a high-resolution phone, may not be displayed, you can right-click on the screen: zoom→ Choose the scale!
Android uses Asm.jar to project the Android phone screen onto the computer