you have mistake in this line, you must write generic with capital letter : Generic
i think it can work now
Hi Samuel Ladziansky!
After I posted the previous message, I called to put the G in place of g. But it's still wrong.
The script uses the Python tool and the Linux distribution MInt 20.1 is already Python3. I made a change in the script where I had Python and switched to Python3, but it didn't work either. The error message is about the -Eq option. And it doesn't have this option -E in the Python3 version.
Do you have any tips to fix this?
Thank you for your help.
[email protected]:~/romferramentas/ErfanGSIs$ sudo ./url2GSI.sh UMIDIGI_A9_Pro_64G-R_V1-0_20210617.rar Generic
[sudo] senha para edupaz:
Updating tools...
Fetching submodule prebuilt/vendor_vndk
Fetching submodule tools/ROM_resigner
Already up to date.
HEAD is now at e851538 Use gnu coreutils on Darwin
Already up to date.
Updating d02128d..1a1ce49
Fast-forward
README.md | 7 ++----
ozipdecrypt.py | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------
2 files changed, 79 insertions(+), 66 deletions(-)
Already up to date.
Create Temp and out dir
Extracting firmware on: /home/edupaz/romferramentas/ErfanGSIs/working
super detected
Creating super.img.raw ...
Create Temp dir
Making copy of source rom to temp
Resigning to AOSP keys
/home/edupaz/romferramentas/ErfanGSIs/make.sh: linha 151: [: -Eq: esperava operador binário
File "/home/edupaz/romferramentas/ErfanGSIs/tools/ROM_resigner/resign.py", line 123
print line.replace(oldsignature, newsignature),
^
SyntaxError: invalid syntax
Patching started...
Using device specific overlays is not supported in this rom. Skipping...
Creating Image: Generic-AB-11-20211023-ErfanGSI.img
/usr/bin/env: “python”: Arquivo ou diretório inexistente
Remove Temp dir
Create Temp dir
Making copy of source rom to temp
Resigning to AOSP keys
/home/edupaz/romferramentas/ErfanGSIs/make.sh: linha 151: [: -Eq: esperava operador binário
File "/home/edupaz/romferramentas/ErfanGSIs/tools/ROM_resigner/resign.py", line 123
print line.replace(oldsignature, newsignature),
^
SyntaxError: invalid syntax
Patching started...
Using device specific overlays is not supported in this rom. Skipping...
Generating environ.rc
Creating Image: Generic-Aonly-11-20211023-ErfanGSI.img
/usr/bin/env: “python”: Arquivo ou diretório inexistente
Remove Temp dir
Porting Generic GSI done on: /home/edupaz/romferramentas/ErfanGSIs/output
[email protected]:~/romferramentas/ErfanGSIs$