Android 12 中通话或使用相机时有没有办法关闭绿灯?

发布于 2025-01-11 02:10:30 字数 97 浏览 0 评论 0原文

随着 Android 12 的更新,出于安全原因,在使用相机或拨打电话时会出现绿色图标和指示灯。 Android 12 中通话或使用相机时有没有办法关闭绿灯?

请帮我

With the update to Android 12, a green icon and light appear when using the camera or making a call for security reasons.
Is there a way to turn off the green light when calling or using the camera in Android 12?

please help me

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

凡间太子 2025-01-18 02:10:30

adb shell cmd device_config 将隐私camera_mic_icons_enabled false 默认

LADB 实用程序。只有他们会帮忙。而且仅限一天。然后再次在开发者选项中输入最上面两行。

adb shell cmd device_config put privacy camera_mic_icons_enabled false default

LADB Utilities. Only they will help. And only for a day. Then again enter the top two lines in the developer options.

随梦而飞# 2025-01-18 02:10:30

引入此功能是出于安全(隐私)原因。确实如此。它不应该被“篡改”。
但是,如果出于令人信服的原因需要禁用它,那么以下是一种可能性。

总结步骤是:

  • 在计算机(PC、笔记本电脑)上安装或运行 ADB(Android 调试桥):
    注意:您不需要完整的 Android SDK 或 Android Studio。有关更多信息,请参阅 ADB
  • 在安卓手机
  • 将手机连接电脑;通常,USB
  • - 如果通过 WiFi 连接,则启用无线调试,将手机与计算机配对并连接。在计算机上使用适当的 ADB cmd
  • -- adbpair ipaddress:portnumber ,输入手机上显示的配对密钥
  • -- adb connect ipaddress:portnumber
  • 输入命令以禁用绿点.
    cmd device_config putprivacycamera_mic_icons_enabled false default
  • 如果出现错误...连接了多个设备,然后使用
    cmd -s ipaddress device_config 将隐私camera_mic_icons_enabled false 默认值
    注意:要再次启用,
    cmd device_config putprivacycamera_mic_icons_enabled truedefault

要获得持久的解决方案,请在任务中使用上述内容;可以使用Tasker
PS:我目前正在努力成功地使用 Tasker 来实现此目的。成功后我会更新

This feature was introduced for security (privacy) reasons. Rightly so. It should not be 'tampered' with.
However, if there's a need to disable it for a compelling reason, then below is a possibility.

The summary steps are:

  • install or have ADB (Android Debug Bridge) running on a computer (PC, laptop):
    NB: You do not need the full Android SDK or Android Studio. See more on ADB
  • Enable developer option on the Android phone
  • Connect the phone to the computer; typically, USB
  • -- if connecting via WiFi, then enable wireless debugging, pair the phone to the computer and connect. Use appropriate ADB cmd on the computer
  • -- adb pair ipaddress:portnumber , enter pair key displayed on phone
  • -- adb connect ipaddress:portnumber
  • enter the command to disable the green dot.
    cmd device_config put privacy camera_mic_icons_enabled false default
  • if you get an error ... more than one devices connected, then use
    cmd -s ipaddress device_config put privacy camera_mic_icons_enabled false default
    NB: To enable again,
    cmd device_config put privacy camera_mic_icons_enabled true default

For a lasting solution, kindly make use of the above within a Task; one can use Tasker
PS: I'm currently struggling using Tasker successfully for this. I'll update when successful

葬心 2025-01-18 02:10:30

不,没有选择,正如您所注意到的:这是安全原因。如果任何开发人员可以做到这一点(禁用此警告)那么为什么 Android 会引入这样的功能...每个具有“不友好”意图的开发人员都会在恶意软件的第一行中这样做...

no, there is no option, as you've noticed: its security reason. if any developer could do that (disable this warning) then why Android would introduce such feature... every developer with "not-friendly" intentions would do that in first lines of malicious software...

ㄖ落Θ余辉 2025-01-18 02:10:30

如果是系统应用:

import android.provider.DeviceConfig;
DeviceConfig.setProperty(DeviceConfig.NAMESPACE_PRIVACY,"camera_mic_icons_enabled","false",false);

If it is a system app:

import android.provider.DeviceConfig;
DeviceConfig.setProperty(DeviceConfig.NAMESPACE_PRIVACY,"camera_mic_icons_enabled","false",false);
剪不断理还乱 2025-01-18 02:10:30

我使用了以下命令,在小米超级操作系统进行新更新之前它工作得很好。有人可以帮助获得小米超级操作系统的许可吗?

顺便说一句,我分享我在 android 14 中使用的内容。

adb shell cmd device_config put privacy camera_mic_icons_enabled false default
adb shell cmd device_config set_sync_disabled_for_tests persistent

I have used the following commands and it worked perfectly until new update in Xiaomi hyper OS. Does anyone could help with Xiaomi hyper OS permission?

Btw I share what I use in android 14.

adb shell cmd device_config put privacy camera_mic_icons_enabled false default
adb shell cmd device_config set_sync_disabled_for_tests persistent
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文