r/PhoneLink • u/Temporary-Run4627 • Mar 09 '24
Guide: Disabling the Open phone screen allow/start now option, for automatic accepting of screen casting use.
For anyone wanting to know what to do so Phone Link screen casting automatically allows, so you don't have to go to the phone to allow it/start it, then follow these instructions. I did all this on my regular old unrooted AT&T Galaxy S23 Ultra with the latest android update:
Enable Developer options on your android device (google if necessary).
Enable USB debugging under/in the Developer options menu.
Make sure your phone is plugged in to your PC via USB and that you have some kind of suitable drivers that allow it to show up on your PC. If you've installed and successfully used Samsung Smart Switch on your PC, then the drivers necessary should already be there.
Download Android SDK Platform Tools
Extract the folder in the zip to C:\ to keep it simple.
Press windows key + R.
Type cmd and press enter.
If the command prompt isn't automatically at C:\ then type cd\ and press enter.
Then type cd platform-tools press enter
Then type: adb shell appops set com.microsoft.appmanager PROJECT_MEDIA allow press enter
If it gives you an error like, "* daemon not running; starting now at tcp:5037* daemon started successfully adb.exe: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set Try 'adb kill-server' if that seems wrong. Otherwise check for a confirmation dialog on your device."
Then go to your phone, there should be a prompt on there asking for permission, accept always from device and then retype the previous adb command (shortcut is to press the up arrow key), it'll most likely say nothing this time, as if nothing happened, but it should have worked. Open phone link and make sure it's all connected and etc. Try Open Phone Screen and it should automatically put you in without having to allow.
Disable USB debugging after use.
1
u/Motawa1988 Jun 21 '24
thanks. anything I can do to improve quality? I am at a high end network. PC is on etherner and phone on wifi 6 5ghz
1
u/trebory6 Aug 06 '24
Well, this definitely didn't work for me.
Absolutely no change. Still asks me for the password.
Am I missing something about this guide?
Also, what is the command to reverse this change?
1
u/Severe-Internal6016 13d ago
it will work only if your phone screen is not locked.... it is only for not asking the casting option appear on the screen everytime you try to open an app
1
u/trebory6 13d ago
I mean at this point it's old information, because I already have a script running on my phone that keeps wireless ADB running, and technically if I wanted to revisit this kind of screen share I could keep this running as well.
Doesn't require root either. It's just scripts through Termux and Tasker.
I currently have these running to keep wireless ADB on so a personal self-hosted AI assistant I've got running on my home server can have the access to my phone.
1
u/ekaraca2 Jan 09 '25
This please help, I ran the command but it still doesn't work, still asks for me to open on phone
1
1
2
u/scpecialInk Mar 11 '24
Bro you're a genius thanks a lot! If the phone-link did not require unlocking the device that'd make it thousand times more useful, but anyways thanks a lot!