rootless-logcat icon indicating copy to clipboard operation
rootless-logcat copied to clipboard

If there anyway to skip the step that typing “adb tcpip 5555” in computer ?

Open klob opened this issue 9 years ago • 13 comments

klob avatar Aug 03 '16 07:08 klob

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 avatar Aug 03 '16 14:08 tananaev

@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:

  1. Enable developer options in the settings.
  2. Enable adb debugging in the settings.
  3. 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!)
  4. Enable adb debugging over network in the settings.
  5. Open the app rootless-logcat.
  6. 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.

conrad-heimbold avatar May 10 '17 16:05 conrad-heimbold

/close?

conrad-heimbold avatar May 10 '17 16:05 conrad-heimbold

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.

tananaev avatar May 11 '17 01:05 tananaev

Would asking for Device Administrator make this work?

TPS avatar Jun 01 '17 17:06 TPS

There are plenty of apps that can use root access to read Android logs.

tananaev avatar Jun 01 '17 20:06 tananaev

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: screenshot_20170601-185104 Could it used to get around this external adb requirement?

TPS avatar Jun 01 '17 23:06 TPS

No, it won't help.

tananaev avatar Jun 02 '17 01:06 tananaev

I use Tecno camon X android 8.1.0 Oreo, will I still need a computer for this to work?

djavalord avatar Jul 10 '18 23:07 djavalord

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 avatar Jul 11 '18 05:07 tananaev

@tananaev I have Magisk Root, would it be possible for you to use that instead?

ghost avatar Jun 09 '22 16:06 ghost

If you have a rooted device, there are other apps you can use to read logcat directly.

tananaev avatar Jun 09 '22 16:06 tananaev

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.

ghost avatar Jun 09 '22 16:06 ghost