You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If, like me, you've installed MagiskSSH and
Magisk-Tailscald on your Android device, you might want to enable adb
from commandline (ssh) so that you can scrcpy into it.
How
Enable
setprop service.adb.tcp.port 8897 # Specify your desired port here
setprop ctl.restart adbd
Actually I once borrowed my phone to my girlfriend cuz her phone's battery died (she always forgets to charge it :( )
so I created an account for her, which isn't an administrator. According to Android policy, switching to another user requires
the current user's password. She switched from her account to mine and told me that she couldn't use the phone anymore.
I had to gave her my password. Though I changed my password afterwards, I think this should be avoided in the future. Therefore,
I installed MagiskSSH and
Magisk-Tailscald on my phone, hoping that I could switch user from remote.
Actually I can!
How
# First, list user and obtain user ID
pm list users
# Then, switch to the desired account
am switch-user User_ID
When running pm list users, you may see output like this:
Here, 0 and 10 are user IDs. I'm not sure what's 4c13 and 10b0.
This is from here. The answer is really old but I verified that it still
works on Android 14. You won't need the current user's password, and you'll be on the lock screen of the target user.
Fuck GitHub, I had to add numbers to my filenames to re-order the files 😡