Skip to content

Commit

Permalink
支持更多硬件版本
Browse files Browse the repository at this point in the history
  • Loading branch information
lzghzr committed Jul 21, 2022
1 parent 80976cd commit 7f27c84
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.vscode
./*.zip
/*.zip
dtbo/*.dtbo
3 changes: 3 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v10
支持更多硬件版本

### v9
修复因 Android 10 没有 system_ext 导致的修改不完全

Expand Down
4 changes: 2 additions & 2 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions update.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 7f27c84

Please sign in to comment.