Skip to content

macOS 上设置了 ExtensionInstallAllowlist 仍然无法安装 crx #1066

Answered by aur3l14no
aur3l14no asked this question in Q&A
Discussion options

You must be logged in to vote

原因是 defaults 写入的 policy 并非 mandatory... 可通过写入 /Library/Managed Preferences/com.google.Chrome.plist 或安装下面的这个 描述文件来设置成 mandatory

保存为 foobar.mobileconfig, 安装,在 Preference -> Profile 中激活即可

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>PayloadContent</key>
    <array>
        <dict>
            <key>PayloadContent</key>
            <dict>
                <key>com.google.Chrome</key>
                <dict>
                    <key>Forced</key>
                    <array>
                        <dict>
                            <key>mcx_preference_settings</key>…

Replies: 7 comments 8 replies

Comment options

You must be logged in to vote
6 replies
@claresongs
Comment options

@ted423
Comment options

@claresongs
Comment options

@KesaubeEire
Comment options

@waght
Comment options

Answer selected by aur3l14no
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ted423
Comment options

@yalunkong
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet