Skip to content

Commit

Permalink
fix [bug](#31)
Browse files Browse the repository at this point in the history
Signed-off-by: yanbuyu <yanbuyuby@163.com>
  • Loading branch information
yanbuyu committed Jun 29, 2022
1 parent 6076548 commit ff8bf33
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=XiaomiCTSPass
name=Xiaomi CTS Pass
version=v1.5.4
versionCode=154
version=v1.5.5
versionCode=155
author=yanbuyu
description=强制小米设备通过谷歌CTS测试,github开源地址:https://github.com/yanbuyu/XiaomiCTSPass
updateJson=https://raw.githubusercontent.com/yanbuyu/XiaomiCTSPass/master/release/XiaomiCTSPass.json
6 changes: 3 additions & 3 deletions props/mars_sdk31.prop
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ro.build.fingerprint=Xiaomi/mars/mars:12/SKQ1.211006.001/V13.0.9.0.SKACNXM:user/release-keys
ro.build.description=mars-user 12 SKQ1.211006.001 V13.0.9.0.SKACNXM release-keys
ro.build.version.security_patch=2021-12-01
ro.build.fingerprint=Xiaomi/mars/mars:12/SKQ1.211006.001/V13.0.12.0.SKACNXM:user/release-keys
ro.build.description=mars-user 12 SKQ1.211006.001 V13.0.12.0.SKACNXM release-keys
ro.build.version.security_patch=2022-04-01
6 changes: 3 additions & 3 deletions release/XiaomiCTSPass.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"versionCode": 154,
"version": "v1.5.4",
"zipUrl": "https://github.com/yanbuyu/XiaomiCTSPass/releases/download/XiaomiCTSPass-v1.5.4/XiaomiCTSPass-v1.5.4.zip",
"versionCode": 155,
"version": "v1.5.5",
"zipUrl": "https://github.com/yanbuyu/XiaomiCTSPass/releases/download/XiaomiCTSPass-v1.5.5/XiaomiCTSPass-v1.5.5.zip",
"changelog": "https://raw.githubusercontent.com/yanbuyu/XiaomiCTSPass/master/release/changelog.md"
}
6 changes: 4 additions & 2 deletions release/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

## v1.5.4
## v1.5.4-v1.5.5更新日志

1.更新以下机型的属性配置:
1.修复小米11Pro机型代号读取错误的问题

2.更新以下机型的属性配置:

- 小米 MIX4 Android 12

Expand Down
3 changes: 3 additions & 0 deletions scripts/getinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ if [ ! "$DEVICE" ];then
getName "ro.product.vendor.device" $vendorBuildProp
DEVICE="$getValue"
fi
##对一个包对应多个机型代号的情况进行特殊处理
newName=$(getprop "ro.boot.hardware.sku" 2>/dev/null)
[[ "$newName" ]] && DEVICE="$newName"

##获取老设备型号
getName "ro.product.model" $systemBuildProp
Expand Down

0 comments on commit ff8bf33

Please sign in to comment.