Browse Source
Update patch.py
Signed-off-by: elseif <elseif@live.cn>
pull/110/head
elseif
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
patch.py
|
|
|
@ -277,6 +277,8 @@ def patch_kernel(data:bytes,key_dict): |
|
|
|
def patch_squashfs(path,key_dict): |
|
|
|
for root, dirs, files in os.walk(path): |
|
|
|
for file in files: |
|
|
|
if file =='loader': |
|
|
|
continue |
|
|
|
file = os.path.join(root,file) |
|
|
|
if os.path.isfile(file): |
|
|
|
data = open(file,'rb').read() |
|
|
|
|