Android 12.0 删除进入拨号盘弹出的"确认使用位置API"对话框
最近收到客户反馈需要删除进入拨号盘弹出的"确认使用位置API"对话框,具体修改点参考如下:
/vendor/mediatek/proprietary/packages/apps/Dialer/java/com/android/dialer/dialpadview/DialpadFragment.java
/// M: Add for CTA test, when call location API, it need user's confirm @{
if (DialerCompatEx.isCTASupported()) {
- GeoUtil.buildAndShowConfirmDialog(getActivity(),
+ /*GeoUtil.buildAndShowConfirmDialog(getActivity(),
()-> {
if (!MotorolaUtils.shouldDisablePhoneNumberFormatting(getContext())
&& GeoUtil.checkLocationConfirmStatus(getActivity())) {
LogUtil.i("buildAndShowConfirmDialog", "GeoUtil.checkLocationConfirmStatus(getActivity())"
+ GeoUtil.checkLocationConfirmStatus(getActivity()));
initPhoneNumberFormattingTextWatcherExecutor.executeSerial(getCurrentCountryIso());
}
- });
+ });*/
重新编译验证,修改生效,已删除进入拨号盘弹出的"确认使用位置API"对话框