2

You can use various Wifi/network analysis apps from Play Store to get some of the information you're looking for. I suggest IP Tools. In its default screen/view, you would get to see following information et al: SSID Internal IP Your Android device's MAC address Gateway DNS Frequency BSSID (your router's MAC address) Lease duration If you need more ...


2

Standard lsof source code has some differences with Android implementation. Android's own /system/bin/lsof or /vendor/bin/lsof (both provided by toybox) work perfectly, but with somewhat limited options. However, to view listening ports, you have multiple options: netstat static binary compiled from standard source Netstat Plus app Netstat applet shipped ...


2

Linux commands w and who read login information from file /var/run/utmp. Traditional Linux sysV login records/logs like utmp, wtmp, btmp and lastlog are set and read by some programs that make use of GNU libc (the most commonly used C library on Linux distros) and other libc's. These files contain information about currently and previously logged-in users. ...


2

Note: the solution is tested on a rooted OnePlus 6 running Android 8.1. The command I use is: adb shell su -c 'setprop persist.sys.oem.otg_support true' Some folks on some forums suggested to toggle the value for the global settings key oneplus_otg_auto_disable, but it never worked out for me. My solution survives reboot and OTG would work even when ...


2

You don't need to install server in order to use client. Install openssh package on Termux, that has both; server and client. To connect to a server, do: ssh <user>@<server-IP>. Mention port with -p option if different than default (22), such as Termux server uses 2222 8022 (corrected by @Steve). Or if you want to stick to GUI, you can go for ...


2

Which code to use with service call depends on Android release. On Android 9 IPhoneSubInfo method 1 returns first IMEI while methods 3 and 4 return both IMEIs: ~$ service call iphonesubinfo 3 i32 1 | grep -oE '[0-9a-f]{8} ' | while read hex; do echo -ne "\u${hex:4:4}\u${hex:0:4}"; done; echo ~$ service call iphonesubinfo 3 i32 2 | grep -oE '[0-9a-f]{8} ' | ...


1

This question is a near duplicate of questions like this and this, and closely related to this and this. In fact it can be better explained by a developer, but since it keeps on appearing again and again with slightly different situations, I'll try to explain what I know with some unnecessary details to make the picture clear from a broader perspective. In ...


1

Binaries can't be executed on /sdcard because it's an emulated filesystem with fixed file permissions, mounted with noexec mount option. Create alpine directory on some other filesystem e.g. /data: ~# mkdir -p /data/local/tmp/alpine/bin Place your executable in newly created directory and do chroot: ~# cd /data/local/tmp ~# chmod 0755 alpine/bin/busybox ~#...


1

If the usb debugging is off. Your device won't appear in adb devices list. So you cannot turn it on any other way than opening the developer options and manually enabling it.


1

In addition to noexec mount option, /sdcard is emulated filesystem with fixed file permissions. So files can't be set executable. But some file explorers like MiXplorer support executing binaries/scripts from /sdcard through /system/bin/sh. /data/local has permissions 0751, owner root.root 1, so normal apps can't access it. However from adb shell use /data/...


1

I solved this while I was trying to be thorough while writing the question: it was in the documentation, I just couldn't figure it out. I needed to set LD_PRELOAD, as documented by termux-exec, so that Emacs runs with the modified version of the exec() system call. My two-line script is now PREFIX=/data/data/com.termux/files/usr TERMUX_EXEC=${PREFIX}/lib/...


1

Had the same issue with my new Pixel 2 XL. I'd used Nova Launcher to make a widget "activities" for launching system apps previously and sure enough, Pixel Setup was in the list so I added that widget/button and it fired up and offered me to restore from a cloud backup etc.


1

@Swing's solution works, but requires more information to be useful. Running netstat -nao | findstr 5037 will display all connections on port 5037, which is the TCP port that ADB daemon runs on. Terminal should output something like this: TCP 127.0.0.1:3592 127.0.0.1:5037 ESTABLISHED 9984 TCP 127.0.0.1:3603 127.0....


Only top voted, non community-wiki answers of a minimum length are eligible