diff --git a/.gitignore b/.gitignore index b0f0d4c..b6fd747 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .vscode -./*.zip +/*.zip dtbo/*.dtbo \ No newline at end of file diff --git a/changes.md b/changes.md index 804e040..6d7c727 100644 --- a/changes.md +++ b/changes.md @@ -1,3 +1,6 @@ +### v10 +支持更多硬件版本 + ### v9 修复因 Android 10 没有 system_ext 导致的修改不完全 diff --git a/customize.sh b/customize.sh index e6c053b..4532105 100644 --- a/customize.sh +++ b/customize.sh @@ -67,11 +67,11 @@ $MODBINPATH/mkdtimg dump $MODDTBOPATH/dtbo.img -b $MODDTBOPATH/dtbo.dtbo -o /dev # 获取机型信息 MODEL=$($MODBINPATH/fdtget $MODDTBOPATH/dtbo.dtbo.0 / model) -if [ "$MODEL" == "Sony Mobile Communications. PDX-203(KONA)" ]; then +if [[ "$MODEL" =~ "PDX-203" ]]; then ui_print "** 当前机型为Xperia 1 II **" $MODBINPATH/fdtoverlay -i $MODDTBOPATH/dtbo.dtbo.0 -o $MODDTBOPATH/new_dtbo.dtbo $MODDTBOPATH/overlay_pdx203.dtbo rm $MODPATH/system/product/overlay/FrameworkRes-PDX206-Overlay.apk -elif [ "$MODEL" == "Sony Mobile Communications. PDX-206(KONA)" ]; then +elif [[ "$MODEL" =~ "PDX-206" ]]; then ui_print "** 当前机型为Xperia 5 II **" $MODBINPATH/fdtoverlay -i $MODDTBOPATH/dtbo.dtbo.0 -o $MODDTBOPATH/new_dtbo.dtbo $MODDTBOPATH/overlay_pdx206.dtbo rm $MODPATH/system/product/overlay/FrameworkRes-PDX203-Overlay.apk diff --git a/module.prop b/module.prop index e1fe9c1..f7130f6 100644 --- a/module.prop +++ b/module.prop @@ -1,7 +1,7 @@ id=mark2_4500 name=Xperia II解容4500 mAh -version=v9 -versionCode=9 +version=v10 +versionCode=10 author=lzghzr description=为更换三代电池的Xperia 1 II, Xperia 5 II解锁电池容量到 4500 mAh updateJson=https://github.com/lzghzr/mark2_4500/raw/main/update.json \ No newline at end of file diff --git a/update.json b/update.json index d055b13..e9c38a6 100644 --- a/update.json +++ b/update.json @@ -1,6 +1,6 @@ { - "version": "v9", - "versionCode": 9, - "zipUrl": "https://github.com/lzghzr/mark2_4500/releases/download/v9/mark2_4500_v9.zip", + "version": "v10", + "versionCode": 10, + "zipUrl": "https://github.com/lzghzr/mark2_4500/releases/download/v10/mark2_4500_v10.zip", "changelog": "https://github.com/lzghzr/mark2_4500/raw/main/changes.md" } \ No newline at end of file