Android device mirrored PC - android

I would like to know if there is any possibility to mirror my android device in real time using android studio? Or anything else that may be used just with an usb or hdmi cable with no required registration?
I tried a couple of little software apps so far but there is a delay consinsting in more than 10 seconds until the action is mirrored on the pc.
Thank you in advance.

I am using Vysor which doesn't need registration, but free version limits the resolution, so it may not be optimal for certain purposes
Edit, I just discovered scrcpy which seems to work way better and even supports copy-pasting from PC to device

Now you can do it with Android Studio https://developer.android.com/studio/preview/features#device-mirroring

Now this feature is available in Android Studio Electric Eel Yay!
Preference > Experimental > Device Mirroring

You can try AllCast. http://www.omgchrome.com/cast-android-mirror-chrome-desktop-pc/
or may be, you can first record your screen and play it back later by using adb shell screenrecord /sdcard/demo.mp4 and pull the file back using adb pull /sdcard/demo.mp4

Related

Android Wear 2.0 Share Screen

I am trying to figure out if it is possible to share the display of my LG Style watch to a PC for an app demonstration. I haven't been able to find anything online mentioning this. Does anyone know how this might be done?
Thank you
You may refer with this tutorial on how to Cast your Android Wear Screen. Make sure that you have setup the Android SDK on your machine. Specifically, you need to be aware where you have setup your Android SDK and Tools and are aware of the adb command.
Steps:
Enable Developer Options on your Android Wear device.
Enable Debugging over Bluetooth on your Android Phone.
Enable ADB Debugging on your Android Wear Device.
Fire up a few ADB Commands.
Verify that both Android Device and Wear Device appear in the ADB devices.
Use any of the ADB Screen Casting Tools
Hope this helps!

How to record Android device screen(before KitKat) connected to computer via USB?

I have already searched a lot for an answer over the internet such as this question, but didn't found an answer.
I want to record my Android device's screen connected to computer via USB for some kind of automation thing. I found here that Google has created an utility for this but only for versions starting from KitKat.
Are there any other possible utilities or scripts for Windows computer through which I can achieve what I want to do? It should save the resulting video file either on my device or my computer on which it is connected to.
P.S.- I also found that this can be somehow achieved by using javacv library. But i was unable to compile and run all of its sources, so it didn't worked for me until now.
Try androidscreencast.
Summary: Desktop app to control an android device remotely using mouse and keyboard. Should work on Windows/Linux/MacOS with any android device.
Features:
Mouse and keyboard control (FOR ROOTED DEVICES ONLY)
Landscape mode (right click)
Video recording <---- No Root required
Basic file browser
Note: Video FPS is low.
Best tool for screenshots/casts is the recently released AndroidTool:
https://github.com/mortenjust/androidtool-mac
Unfortunately it's only for Mac.

Android, Native OpenGL/OpenMAX, Screen capture

Use-case
Mirror Android Screen to PC using USB
Potential (Native) Implementation Approaches
Using Android Open-Source, modify screenrecord for your needs and re-install on your Android device using ADB
Use well known native API such as OpenGL/OpenMAX to capture screen
Discussion
Approach #1 will certainly work ( under the shell account ), however, each time the Android OS is updated, the custom code will need to get updated to keep up with OS changes, with approach #2 the API stay fixed and there is no need to worry about OS changes, the question is whether it is possible to implement Mirroring solely using OpenGL/OpenMAX ?
Questions
Having the above said, what would be the best approach to mirror the android screen via USB ?
The screenrecord that ships with Android 5.0 "Lollipop" can send raw H.264 over ADB. The command line looks like:
adb shell screenrecord --output-format=h264 - | <player>
A few details are on the bigflake page. I've used it to mirror the screen onto a Linux workstation, but unfortunately I didn't save the VLC/mplayer command lines. Some player suggestions are here.
You can try to do uncompressed frames (--output-format=raw-frames), but at decent frame rates that easily overwhelms the ADB connection, even if the screen is tiny.
Source code is here.
As suggested by fadden, I have ended up patching through sreeenrecord disabling the time limitation and adding some code of my own ( enabling ADB over USB routing ), it works, BUT, req maintanance each time the OS is updated, I wish there would have been a way for using the Android Java framework as an ADB Shell Tool as this would considerably reduce the amount of un-documented buttons I am pressing...

Titanium can't find my Android Nexus device

Hi I'm trying to compile a Titanium Android app directly on my Nexus 7 (2013, SDK 4.3) device but I can't see any 'Titanium on Android Device' option in the Run Configurations.
My device is in Developer mode, connected to the USB, detected by Android File Transfer (Mac OS X 10.9, Titanium 3.1.4), detected by adb...
I tried to restart adb, restart Titanium, plug and unplug the device, but I still cannot see the option.
I also tested all this with Titanium 3.1.3, with no success.
I have no clue of what's happening :/ any help would be appreciated. thanks
It may sound stupid, but my friend had similar problems with his Nexus and he changed the USB slot to which he plugged his device and it worked.
Try using a different cable. Most cables are only able to load the device, somehow. Not every micro-USB-cable is capable of sending data, correctly.
Again a reason why I don´t like to work in the android environment. No one checks whether software and hardware is working the way it´s supposed to. That´s why I love Apples restrictive "closed" system. No 1000 viruses and other crap.
Well, that was a bit confusing but I finally found such option inside a Project Explorer menu...

Android hardware debugging

I've bought a tablet recently. It's a SysTrade's Plug 10.1 (Chinese product of local company). It features a reasonable CPU and quite nice GPU, so I thought it would be great to hardware debug my applications. However, this feature seems not to work on my device...
At beginning I lacked the required vendor id so after a few phone calls to SysTrade I received one. But that code didn't work. So I've written a small app and got all 2-byte numbers which I copy-pasted to /etc/udev/rules.d/51-android.rules. The problem is that adb still can't see my device. What's important my HTC Wildfire is successfully recognized so rules are written well.
I know none who owns this tablet so I don't have a possibility to check whether all Plugs or only mine are affected. Any ideas would be highly appreciated...
PS. I'm developing on Linux (Ubuntu 12.10).
PS2. When I connect the device to PC it shows that hardware debugging is turned on, but adb doesn't see my device.
I've managed to successfully resolve the issue without rooting the device. The only needed action is to manually add an entry for the device vendorid in ~/.android/adb_usb.ini.
Normally it should be generated based on /etc/udev/rules.d/51-android.rules by android update adb command but it seems that this application failed. What's important, vendorid must be given in hex number specific format, which is: 0x(2-BYTE HEX) for example 0x2207.
Try running adb on root.
If that doesn't work you can still try to root your device(This may void warranty) and use app like adbWifi. I'm using the latter for debugging and it works: I can run my apps on my M-tech aTAB7t.

Categories

Resources