MTK Android12 添加GMS后,报“设备未经过play保护认证“问题

文章目录

问题

复制代码
在MTK平台的Android12机柜上面,客户要求安装GMS。安装后,打开发现报"设备未经过play保护认证"问题,无法使用。

解决

路径:/build/make/tools/buildinfo.sh

xml 复制代码
diff --git a/build/make/tools/buildinfo.sh b/build/make/tools/buildinfo.sh
index 3f420d9..ac3abb5 100755 (executable)
--- a/build/make/tools/buildinfo.sh
+++ b/build/make/tools/buildinfo.sh
@@ -62,3 +62,6 @@ if [ -n "$BUILD_THUMBPRINT" ] ; then
 fi
 
 echo "# end build properties"
+
+echo "ro.build.fingerprint=alps/Android/Android:$PLATFORM_VERSION_LAST_STABLE/$BUILD_ID/$BUILD_NUMBER:$TARGET_BUILD_TYPE/$BUILD_VERSION_TAGS"
+
相关推荐
Meteors.18 小时前
安卓源码阅读——01.grade设置binding为true时,xml如何进行映射
android·xml
_李小白19 小时前
【android opencv学习笔记】Day 26: 滤波算法之低通滤波与图像缩放插值
android·opencv·学习
NiceCloud喜云19 小时前
Claude Code Routines 实战:三种触发器跑通云端自动化编码
android·运维·数据库·人工智能·自动化·json·飞书
我命由我123451 天前
Bugly - Bugly 基本使用( App 质量追踪平台)
android·java·java-ee·android studio·android jetpack·android-studio·android runtime
weiggle1 天前
第二篇:搭建你的第一个 Compose 项目——开发环境与项目结构
android·前端
阿巴斯甜1 天前
为什么 AIDL 接口客户端、服务端要写两份一模一样的?
android
weiggle1 天前
第一篇:Jetpack Compose 宣言——为什么 Android 开发需要声明式 UI
android
城管不管1 天前
什么是Prompt?
android·java·数据库·语言模型·llm·prompt
weiggle1 天前
Jetpack Compose 重组机制与性能优化深度剖析
android