Comments (2)
I've now figured this out. The configuration is stored in /Library/Preferences/com.apple.networkextension.plist
. This file is amended once a new app is installed. For example, the (shortended) entry for the Spotify app is:
<dict>
[...]
<key>DenyMulticast</key>
<true/>
<key>IsIdentifierExternal</key>
<false/>
<key>MatchAccountIdentifiers</key>
<dict>
<key>CF$UID</key>
<integer>0</integer>
</dict>
<key>MatchDomains</key>
<dict>
<key>CF$UID</key>
<integer>0</integer>
</dict>
<key>MulticastPreferenceSet</key>
<false/>
[...]
</dict>
<string>com.spotify.client</string>
MulticastPreferenceSet
indicates whether a permission popup has been shown before. DenyMulticast
saves the user's choice in response to that permission popup.
The file is manged by the nehelper
daemon. We can thus
- unload the daemon with
launchctl unload /System/Library/LaunchDaemons/com.apple.nehelper-embedded.plist
- change
/Library/Preferences/com.apple.networkextension.plist
as we wish - reload the daemon with
launchctl load /System/Library/LaunchDaemons/com.apple.nehelper-embedded.plist
There does, however, seem to exist some kind of signature that's additionally added to the file. I haven't figure out yet, how this works. Yet, I've been able to change the file regardless.
from applesimulatorutils.
For those who want to quickly change the setting with the command line (like me), this is a set of commands that automates granting the setting (for the app com.spotify.client
):
plistutil -i com.apple.networkextension.plist -o com.apple.networkextension.xml -f xml
xmlstarlet ed -r "//string[text() = 'com.spotify.client']/preceding-sibling::*[1]/key[text() = 'MulticastPreferenceSet' or text() = 'DenyMulticast']/following-sibling::*[1]" -v true com.apple.networkextension.xml
plistutil -i com.apple.networkextension.xml -o com.apple.networkextension.plist -f bin
Update: Here's a fully working script to grant this permission (needs jailbroken device).
from applesimulatorutils.
Related Issues (20)
- No permission type for accessing clipboard for iOS 16.0
- applesimutils binary has not been found in your PATH HOT 1
- Unable to change permissions for a cloned simulator device started by Xcodebuild Test. HOT 4
- Error para conectar con el servidor
- iOS 16: Set health permissions isn't working (error) HOT 6
- new release (0.9.8) has SHA256 mismatch in brew? HOT 3
- Simulator is rebooted when I use "notifications": "YES" HOT 3
- Set location permission not working as expected HOT 24
- Xcode 15 > Unable to run commands HOT 14
- Can't grant permissions on iOS 17 HOT 7
- homebrew: upgrade to 0.9.10 fails due to SHA mismatch HOT 2
- Applesimutils --list doesn't find iPhone devices HOT 8
- Please add Paste from Other apps Permission
- Shorter mode for --list
- setPermissions for health get error: Unknown error calling sqlite3_step (19: NOT NULL constraint failed: authorization.sync_identity) rs HOT 1
- Error: BulletinBoard property list not found.
- On Detox 19.5.7 + XCode 13.3 AppleSimUtils is timing out on CircleCI
- `0.9.6` was released to homebrew with incorrect checksum HOT 15
- `0.9.7` Brew install checksum mismatch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from applesimulatorutils.