Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: Couldn't find any build.prop [oppo CPH909] #77

Closed
J0shua-code opened this issue Sep 10, 2021 · 1 comment · Fixed by #81
Closed

AssertionError: Couldn't find any build.prop [oppo CPH909] #77

J0shua-code opened this issue Sep 10, 2021 · 1 comment · Fixed by #81

Comments

@J0shua-code
Copy link

Device : Oppo A5s
Model : CPH1909

recovery : https://we.tl/t-FHw6tMc3G1


python3 -m twrpdtgen -o Oppo -v recovery.img
TWRP device tree generator
Version 1.3.1

[aik_manager.py:46 INFO] init: Cloning AIK...
[cmd.py:832 DEBUG] execute: Popen(['git', 'clone', '-v', 'https://github.com/SebaUbuntu/AIK-Linux-mirror', '/tmp/tmp9q3159yw'], cwd=/home/josh/Desktop/TWRP-device-tree-generator, universal_newlines=True, shell=None, istream=None)
[base.py:1085 DEBUG] _clone: Cmd(['git', 'clone', '-v', 'https://github.com/SebaUbuntu/AIK-Linux-mirror', '/tmp/tmp9q3159yw'])'s unused stdout:
[device_tree.py:55 DEBUG] init: Getting device infos...
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/josh/Desktop/TWRP-device-tree-generator/twrpdtgen/main.py", line 52, in
dt = DeviceTree(args.output, recovery_image=args.recovery_image,
File "/home/josh/Desktop/TWRP-device-tree-generator/twrpdtgen/device_tree.py", line 57, in init
raise AssertionError("Couldn't find any build.prop")
AssertionError: Couldn't find any build.prop

trkzmn added a commit to trkzmn/TWRP-device-tree-generator that referenced this issue Sep 13, 2021
Fixes: twrpdtgen#77
Signed-off-by: trkzmn <trkzmn89@gmail.com>
SebaUbuntu pushed a commit that referenced this issue Sep 14, 2021
Fixes: #77
Signed-off-by: trkzmn <trkzmn89@gmail.com>
@J0shua-code
Copy link
Author

J0shua-code commented Sep 14, 2021

Thanks dev for your hard work, After this tool was not working I did some digging and found out that the windows version of AIK in this build doesn't work
If i try to run it seperately it shows this error
"Unrecognized format. Error!"
But this error doesn't show up if we run the python script

Eventually I managed to extract the files from recovery with binwalk and patched the script with hardcoded paths to files and was able to successfully compile twrp for my device.

This tool definitely saved me some time,also would be be nice to have a option to manually provide the script with build prop and other files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant