If there anyway to skip the step that typing “adb tcpip 5555” in computer ?
Unfortunately not, but on some phone it might be possible to enable remote debugging from the phone settings. For example, I believe CyanogenMod rom support this.
@tananaev : can confirm, with cyanogenmod 13; you don't need a computer at all. However, in practice, a computer with keyboard is still much more practical when searching for stuff in the logcat or cutting parts away in the logcat... If you have a bluetooth keyboard for android however and if rootless-logcat would implement such features, it could also be done inside this app! Steps to make the app work without computer, the safe way:
- Enable developer options in the settings.
- Enable adb debugging in the settings.
- Enable airplane mode (This is just for your safety. Otherwise, other devices in your network could pretend to be the app for debugging and get complete debugging access to your phone!)
- Enable adb debugging over network in the settings.
- Open the app rootless-logcat.
- Confirm the request for debugging access by the app rootless-logcat.
What's the trick? With this setup, rootless-logcat will connect to your phone only via localhost (127.0.0.1:5555). Disadvantage? You can only debug apps that don't need internet.
/close?
Newer versions of Android require you to approve access to ADB, so nobody should be able to connect to your device without you knowing and approving it first. Of course it's also a good idea to not expose ADB port in case there is some vulnerability in the protocol or implementation.
Would asking for Device Administrator make this work?
There are plenty of apps that can use root access to read Android logs.
Device Administrator is a non-root function, to grant certain kinds of extended privileges to apps, e.g., camera disabling, screen locking, device wiping, &c. Here's my list of such apps:
Could it used to get around this external adb requirement?
No, it won't help.
I use Tecno camon X android 8.1.0 Oreo, will I still need a computer for this to work?
Some firmwares (e.g. old CyanogenMod) allow to enable network debugging directly from Android settings. In that case you don't need computer. But for most phone you do need it once to enable remote debugging.
@tananaev I have Magisk Root, would it be possible for you to use that instead?
If you have a rooted device, there are other apps you can use to read logcat directly.
If you have a rooted device, there are other apps you can use to read logcat directly.
Suggest a few please, if you can. Preferably open source. The app closest to what I'm looking for is Logcat extreme, but unfortunately that's closed source.