Have to allow each time with host app
I just installed the Teamviewer Host app on my Pixel 4 running Android 11. Each time I connect to my phone from my PC, the phone pops up with attached warning, and I have to tap 'Start Now' before I can control the phone. I have to tap 'Start Now' physically on my phone, which means I can only remote control my phone if I have it with me in my hand. I want to be able to leave it out in the other room, which I believe is the point of the Host app?
Does anyone know how I can accomplish true unnattended access with the Host app? I'm assuming there is some way to disable this warning, or 'auto-allow' it? Thanks in advance!!!!
Edit: Since I couldn't find any results googling for the exact phrase Start recording or casting with Host I thought I should add the text in here for indexing
warning that appears on phone and must tap 'Start now' before I can remote control my device
Comments
-
Bump!! Same problem here. Trying to log into covid grandma's tablet
2 -
Ok, I found the solution:
https://support.google.com/android/thread/13791498?hl=en&msgid=62539685
- install ADB on your computer
- install Shizuku on your phone, open Shizuku, "view command," copy command, close Shizuku
- Install (and purchase) App Ops on phone
- Enable Developer options on your phone
- Allow USB debugging on your phone (in Developer options)
- Connect phone to computer via USB cable
- Open terminal window on computer in ABD folder, and type in the command that you copied from Shizuku
- Open App Ops, look for application you want to allow PROJECT_MEDIA for, and allow PROJECT_MEDIA
- Close App Ops. You're done.
You don't have to purchase App Ops. Free version is enough.
It works perfectly for me.Sławek
5 -
Same problem here... "unattended" but asking for permission...
0 -
Thank you smpl for this solution! This has worked for me on a Samsung Tab A.
Under App Ops, the app I had to search for was "Host" since I had the Teamviewer Host app installed on my Tab A. Once I was in there I was able to see the PROJECT_MEDIA permission and allowed it.
For anyone else doing this on a Samsung Tab A, I had to connect the ADB via Powershell from my Win10 laptop twice and then had a successful connection. (Hold Shift and Right Mouse click in the ADB folder on Win10 to open a different menu and the "Open Powershell Window here" option is present.)
I now have full Unattended Remote Access to the Tab A without the annoying popup.
Cheers! 🍺
1 -
Many thanks smpl!
0 -
This work-around worked for me. I have 2 identical Galaxy Tab A Tablets I use in trucks for ELD and this worked to access both with out the security popup!
Thanks
0 -
This solution worked for me too. Thanks @smpl for the steps and @fostex909 for the tip to look for host.
0 -
Many thanks @smpl! This solution works for me to!
0 -
You can also just run this ADB command:
adb shell appops set com.teamviewer.host.market PROJECT_MEDIA allow
0 -
[Updated post 11:38 a.m. 24Jul22] - The information posted above seems dated, as I just found a YouTube video titled "Unattended access from mobile to mobile using Teamviewer 2021." As the first person asking the question pondered it seems like the whole point to this is to be able to access another phone (or other device) without the need to physically give permission from the Host device. Anyway...this YouTube video appears to be the solution (you simply download "Teamviewer Host" to the Host phone. My problem is, for some unexplained reason, I cannot get the Teamviewer Host app to download to my phone. That is my question - Does anyone know why I would not be able to download this app [Note, I get a simple error message that cannot downloan now, "try again." And I have successfully downloan many many apps from Google Play.]
[Original post (not answered) from 9:35 a.m. 24Jul22] In the solution provided above what is ADB, and Shizuku, and App Ops (you are talking over my head of sorts with shorthand)? Please give step-by-step instructions for how to get these apps (i.e., ADB, Shizuku and App Ops) on to my android phone (I am trying to control one phone from another phone without the Host being required to provide physical permission EACH time).
1 -
Much easier method from https://www.imval.tech/index.php/blog/teamviewer-android-skip-the-confirm
- Enable developer mode on your phone (press ten times on the Build version in the system info)
- Enable USB debugging in the developer menu
- On your computer, with ADB (part of the platform tools, you can find other tutorials online), run the following command:
adb shell appops set com.teamviewer.host.market PROJECT_MEDIA allow
- Voilà! You can now connect to your Android Smartphone with Teamviewer Host without having to press a confirm button, truly unattended.
1 -
Quite an old thread, but I figured this would help people get their ADB working (Windows).
Instead of going the Shizuku/AppOps route, the easiest way is to setup ADB and execute a single shell command to grant TeamViewer the PROJECT_MEDIA permission.
If you don't know how to do that, here's a quick tutorial:
On Android:
- Enable developer settings:
- Settings -> About phone -> Software information (may vary by manufacturer) -> tap "Build number" seven times. You'll get a notification "You are now a developer!"
- Enable Wireless debugging and start pairing:
- Settings -> Developer Settings (new menu) -> Wireless debugging -> toggle on. Select "pair with code." Take note of your IP, pairing port and pairing code.
On Windows:
- Open PowerShell (Win + R -> type "powershell")
- Let it auto-install Nexus Tools (ADB) by typing:
iex ((New-Object System.Net.WebClient).DownloadString('https'+'://raw.githubusercontent.com/corbindavenport/nexus-tools/main/install.ps1'))
- Close and reopen Powershell (reloads path variable)
- Pair with Android - type:
adb pair <IP>:<pairing-port> <code>
(from step 1), e.g.adb pair 192.168.0.25:5117 123456
- Wireless debugging shows the IP (same as above) with a different connection port (under your device's name). Connect using it:
adb connect <IP>:<connection-port>
- Finally, to give TeamViewer PROJECT_MEDIA permission by typing:
adb shell appops set com.teamviewer.host.market PROJECT_MEDIA allow
You can grant any app this permission, so it can be used for other apps like this:
adb shell appops set <app-package-name> PROJECT_MEDIA allow
Here's a list of packages for apps that commonly request this permission:
[removed per Community Guidelines]
TLDR; adb shell appops set com.teamviewer.host.market PROJECT_MEDIA allow
1 - Enable developer settings: