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

How to deal with this problem #86

Closed
58773622 opened this issue Oct 2, 2021 · 2 comments
Closed

How to deal with this problem #86

58773622 opened this issue Oct 2, 2021 · 2 comments

Comments

@58773622
Copy link

58773622 commented Oct 2, 2021

root@PC:/home/pc/tee# python3 -m twrpdtgen recovery.img
TWRP device tree generator
Version 2.0.1

Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/pc/tee/twrpdtgen/main.py", line 6, in
main()
File "/home/pc/tee/twrpdtgen/main.py", line 31, in main
device_tree = DeviceTree(image=args.image, debug=args.debug)
File "/home/pc/tee/twrpdtgen/devicetree.py", line 62, in init
self.deviceinfo = DeviceInfo(self.buildprop)
File "/home/pc/tee/twrpdtgen/utils/deviceinfo.py", line 74, in init
self.codename = self.get_prop(DEVICE_CODENAME)
File "/home/pc/tee/twrpdtgen/utils/deviceinfo.py", line 93, in get_prop
raise AssertionError(f'Property {props[0]} could not be found in build.prop')
AssertionError: Property ro.product.device could not be found in build.prop

@SebaUbuntu
Copy link
Member

SebaUbuntu commented Nov 3, 2021

root@PC:/home/pc/tee# python3 -m twrpdtgen recovery.img TWRP device tree generator Version 2.0.1

Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/pc/tee/twrpdtgen/main.py", line 6, in main() File "/home/pc/tee/twrpdtgen/main.py", line 31, in main device_tree = DeviceTree(image=args.image, debug=args.debug) File "/home/pc/tee/twrpdtgen/devicetree.py", line 62, in init self.deviceinfo = DeviceInfo(self.buildprop) File "/home/pc/tee/twrpdtgen/utils/deviceinfo.py", line 74, in init self.codename = self.get_prop(DEVICE_CODENAME) File "/home/pc/tee/twrpdtgen/utils/deviceinfo.py", line 93, in get_prop raise AssertionError(f'Property {props[0]} could not be found in build.prop') AssertionError: Property ro.product.device could not be found in build.prop

Your image doesn't contain that prop, there's nothing I can do about it

@58773622
Copy link
Author

58773622 commented Nov 3, 2021

Thank you. I'll study it

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

No branches or pull requests

2 participants