One Android device run adb logcat against another - adb

I had always wondered if it was possible to have on android device collect logcat from another. Consider the following image I have attached. The goal would be to create an application that could find and attach adb to another device.
This would eliminate the need to carry a laptop or PC to collect information for a device. Any help with this would be amazing.

Related

Black screen on android device how to fix?

adb devices
List of devices attached
emulator-5554 offline
i tried every single step from internet wipe data cool boot etc gradle give zero errors just help me guys
Run android virtual device

Enable USB Debugging and remote control (scrcpy) with broken screen

and happy holidays. Apologies if this question is more appropriate for SuperUser, I ask here in case there is a programmatic solution to my problem.
In summary: On an Android device with a broken screen, assuming that USB Debugging is enabled or that the connected device is not trusted, is there any way to perform remote control?
So I have a Pixel 3a which I used to control just fine via scrcpy 1.21. Today the screen broke to the point that I only see a few glitchy lines, even though it looks like I can theoretically control it (based on the sounds, I managed to enter the log-in pattern).
The problem is that adb devices does not recognize it, even though the system (Ubuntu or Windows) recognizes that a Pixel 3a was connected for charging.
Is there any way I can salvage this situation?
ADB commands failed. scrcpy failed.

Can an Android app present itself as a (virtual) Matter device?

Is it possible to create an Android app that presents itself as a Matter device? e.g. a thermometer. Any sample code?
An android app probably can’t do this, as it cannot stay on and listen to external communications on demand all the time. You can look for solutions to run a local server on the android system and implement a virtual device that way.

Use Psexec to get Connected USB Device names

I'm wondering if it's possible to use Psexec to return a list of connected USB Devices on remote windows 8 computers. Ideal output would be something like this:
USB1: Keyboard
USB2: Barcode Scanner
Obviously the device name would be displayed instead of 'keyboard' ect, is there an easy way to do this? I'm working within a secure environment with hundreds of remote machines, so unable to install any new Microsoft Tools such as Devcon myself.
Any suggestions would be appreciated.

Raspberry pi 3 Bluetooth

My Raspberry Pi 3 can connect briefly to my Android mobile, but once I accept the connection on the Raspberry Pi, I get this error:
GDBus.Error:org.bluez.Error.Failed: No such file or directory. Try to connect manually.
Please help me on this.
You can fix that from Bluetooth control. Type $bluetoothctl as root then you will end up with Bluetooth shall. There you should type "power on" command. After that you can use "scan on" command to check connection.
to continue from Dinusha's answer, after you scan and find your device's ID (you should also be able to see it's name in parentheses) you'll need to pair with the device by doing
pair <device ID>
then connect with the device by doing
connect <device ID>
You'll be able to see status of the connection
There are cases where I use a separate bluetooth dongle for connections I don't want dropped
Raspbian Jessie has some issues as far as I know with the Bluetooth module. I'd recommend using bullseye or buster. Also, there are a couple issues regarding the newest kernel. Run the following command to see if your phone which you are willing to connect is listed:
sudo bluetoothctl devices
If your mobile device is still listed here and not paired on the mobile side, there is your problem. Remove the device using the following command in RPI:
sudo bluetoothctl remove <mac-adress-of-device>

Resources