Skip to content

Commit f141baa

Browse files
committed
Update
1 parent 2726e2f commit f141baa

8 files changed

Lines changed: 56 additions & 10 deletions

File tree

app/src/main/assets/home/bin/apkeditor_b

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ echo
9090

9191
[ "$REDIVIS" == 1 ] && redivision.py "$INPUT" > "$INPUT/.cache/redivision.log"
9292

93+
# Tạo dex
94+
for vcxs in $INPUT/smali/*; do
95+
if [ -d "$vcxs" ]; then
96+
[ -f "$INPUT/dex/${vcxs##*/}.dex" ] || echo > "$INPUT/dex/${vcxs##*/}.dex"
97+
fi
98+
done
99+
93100
# xây dựng smali
94101
if [ -f "$INPUT/dex/classes.dex" ] && [ -d "$INPUT/smali" ];then
95102
for vkn in "$INPUT"/dex/classes*.dex; do

app/src/main/assets/home/bin/apktool_b

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,19 @@ echo "$replag_text_2..."
9191
echo
9292
[ "$REDIVIS" == 1 ] && redivision.py "$INPUT" > "$INPUT/.cache/redivision.log"
9393

94+
# Tạo dex
95+
for vcxs in $INPUT/smali_*; do
96+
if [ -d "$vcxs" ]; then
97+
ksbdhch="$(echo ${vcxs##*/} | sed 's|smali_||')"
98+
[ -f "$INPUT/$ksbdhch.dex" ] || echo > "$INPUT/$ksbdhch.dex"
99+
fi
100+
done
101+
94102
if [ -f "$INPUT/classes.dex" ] && [ -d "$INPUT/smali" ];then
95103
for vkn in "$INPUT"/classes*.dex; do
96104
[ -f "$vkn" ] || continue
97-
kout="$(basename $vkn .dex | sed 's|classes|smali|')"
105+
[ "${vkn##*/}" == "classes.dex" ] && thyedkm="smali" || thyedkm="smali_classes"
106+
kout="$(basename $vkn .dex | sed "s|classes|$thyedkm|")"
98107
if [ -f "$INPUT/.cache/hash_$kout.json" ];then
99108
cp -rf "$INPUT/.cache/hash_$kout.json" "$INPUT/.cache/2hash_$kout.json"
100109
dkfjff="$(check_changes.py "$INPUT/$kout" "$INPUT/.cache/2hash_$kout.json")"

app/src/main/assets/home/bin/apktool_d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ if [ "$DECODEX" == 2 ];then
116116
[ -f "$vkn" ] || continue
117117
Dex=$(dexupdater -g "$vkn" -printApi | awk '/Dex/ {print $2}')
118118
echo "I: Baksmali: V$Dex ${vkn##*/}..."
119-
kout="$(basename $vkn .dex | sed 's|classes|smali|')"
119+
[ "${vkn##*/}" == "classes.dex" ] && thyedkm="smali" || thyedkm="smali_classes"
120+
kout="$(basename $vkn .dex | sed "s|classes|$thyedkm|")"
120121
mkdir -p "$Tout/$kout"
121122
API=$(dexupdater -g "$vkn" -printApi | awk '/API/ {print $2}')
122123
eval "baksmali d $hhhhfdr --bootclasspath \"$BOOTCLASSPATH\" --api $API \"$vkn\" -o \"$Tout/$kout\" "

app/src/main/assets/module/ZADD/patch_rom/patch-rom.bash

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,30 @@ if [ "${vv##*/}" == "miui-services.jar" ];then
106106
[ "$fix_window" == 1 ] && Thayvc 6 '.method .*. getMaxMiuiFreeFormStackCount(Ljava' $oi/smali/classes*/com/android/server/wm/MiuiFreeFormStackDisplayStrategy.smali
107107
elif [ "${vv##*/}" == "miui-framework.jar" ];then
108108
[ "$fix_reset_theme" == 1 ] && Thayvc -v '.method .*. validateTheme(Landroid' $oi/smali/classes/miui/drm/ThemeReceiver.smali
109+
if [ "$fix_window" == 1 ]; then
110+
Thayme '.method public static blacklist getFreeformBlackList()Ljava/util/List;
111+
.registers 1
112+
sget-object v0, Landroid/util/MiuiMultiWindowAdapter;->sEmptyList:Ljava/util/List;
113+
return-object v0
114+
.end method' $oi/smali/classes/android/util/MiuiMultiWindowAdapter.smali
115+
Thayme '.method public static blacklist getFreeformBlackListFromCloud(Landroid/content/Context;)Ljava/util/List;
116+
.registers 7
117+
.annotation system Ldalvik/annotation/Signature;
118+
value = {
119+
"(",
120+
"Landroid/content/Context;",
121+
")",
122+
"Ljava/util/List<",
123+
"Ljava/lang/String;",
124+
">;"
125+
}
126+
.end annotation
127+
const-string v0, "MiuiMultiWindowAdapter"
128+
new-instance v1, Ljava/util/ArrayList;
129+
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
130+
return-object v1
131+
.end method' $oi/smali/classes/android/util/MiuiMultiWindowAdapter.smali
132+
fi
109133
elif [ "${vv##*/}" == "services.jar" ];then
110134
if [ "$fix_screen" == 1 ]; then
111135
Thayvc 0 '.method isSecureLocked()Z' $oi/smali/classes*/com/android/server/wm/WindowState.smali
@@ -219,6 +243,9 @@ elif [ "${vv##*/}" == "MiuiSystemUI.apk" ];then
219243
"$oi/smali/classes*/com/android/systemui/statusbar/notification/utils/NotificationUtil.smali
220244
$oi/smali/classes*/com/miui/systemui/notification/MiuiBaseNotifUtil.smali
221245
$oi/smali/classes*/com/miui/systemui/notification/NotificationSettingsManager.smali
246+
$oi/smali/classes*/com/android/systemui/statusbar/notification/InCallUtils.smali
247+
$oi/smali/classes*/com/android/systemui/statusbar/notification/NotificationSettingsManager.smali
248+
$oi/smali/classes*/com/android/systemui/statusbar/notification/interruption/MiuiNotificationInterruptStateProviderImpl.smali
222249
$oi/smali/classes*/com/android/systemui/statusbar/notification/interruption/MiuiNotificationInterruptStateProviderImpl.smali"
223250
Thaythe 'Lmiui/os/Build;->IS_INTERNATIONAL_BUILD:Z' 'Lcom/xBuild;->isTrue:Z' "$oi/smali/classes*/com/miui/keyguard/biometrics/fod/MiuiGxzwQuickOpenUtil.smali
224251
$oi/smali/classes*/com/android/systemui/assist/PhoneStateMonitor.smali"
@@ -395,7 +422,8 @@ elif [ "${vv##*/}" == "Settings.apk" ];then
395422
fi
396423
# End patch smali
397424
echo
398-
apkeditor_b -i "$oi" -o "${vv%/*}" -d 1
425+
[ "${vv##*/}" == "MiuiSystemUI.apk" ] && resvv=1 || resvv=0
426+
apkeditor_b -i "$oi" -o "${vv%/*}" -d 1 -r $resvv
399427
echo
400428
done
401429
}

app/src/main/assets/module/ZAPK/apk_features/addon.prop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ google_text="Currently using google translate"
1313
fs_text_1="Run fstrim to clean up blocks"
1414
fs_text_2="Clean block"
1515
fs_text_3="Root access is required"
16-
fs_text_4="Clean blocks:"
16+
fs_text_4="Clean blocks"
1717

1818
ufs_text_1="EOL status:"
1919
ufs_text_2="Unknown"

app/src/main/assets/module/ZAPK/apk_features/index.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ export MPAT='$MPAT'
2222
[ "$ROT" == 0 ] && echo "'$fs_text_3'" || echo 0
2323
</lock>
2424
<set>
25-
echo "'$fs_text_4' /data"
26-
echo
27-
fstrim -v /data;
28-
echo
29-
echo "'$fs_text_4' /cache"
25+
echo "'$fs_text_4'"
3026
echo
27+
fstrim -v /vendor
28+
fstrim -v /system
29+
fstrim -v /system_ext
30+
fstrim -v /product
3131
fstrim -v /cache
32+
fstrim -v /data
3233
echo
3334
echo "'$fs_text_4' auto"
3435
echo

app/src/main/assets/module/ZAPK/apk_features/scrip/ufs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
if [ -e $MPAT/auto.prop ]; then
33
source $MPAT/auto.prop
44
else
5-
eval "$(sed '1,/root=/d' $MPAT/addon.prop)"
5+
eval "$(grep '="' "$MPAT/addon.prop")"
66
fi
77

88
bDeviceLifeTimeEstA=""
-862 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)