Перенос добавления ресурсов в соответствующие патчи

This commit is contained in:
2025-09-14 20:37:14 +03:00
parent c22ef507ba
commit ac241e1189
7 changed files with 28 additions and 42 deletions
+9
View File
@@ -1,3 +1,6 @@
import struct
def get_smali_lines(file: str) -> list[str]:
lines = []
with open(file, "r", encoding="utf-8") as smali:
@@ -51,6 +54,7 @@ def replace_smali_method_body(
return new_content
def find_and_replace_smali_line(
lines: list[str], search: str, replace: str
) -> list[str]:
@@ -58,3 +62,8 @@ def find_and_replace_smali_line(
if line.find(search) >= 0:
lines[index] = lines[index].replace(search, replace)
return lines
def float_to_hex(f):
b = struct.pack(">f", f)
return b.hex()