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

Error on '../tools/releasetools/ota_target_from_phone -r' #163

Open
ichin23 opened this issue Jul 27, 2020 · 0 comments
Open

Error on '../tools/releasetools/ota_target_from_phone -r' #163

ichin23 opened this issue Jul 27, 2020 · 0 comments

Comments

@ichin23
Copy link

ichin23 commented Jul 27, 2020

Hy! I'm not want compile miui rom for my device.
The code of error is in Portuguese because I'm Brazilian, but I thing what you can understand.

I had come across with other error, but I got it correct with scripts on the video:
https://www.youtube.com/watch?v=gy7GgXPd6dg&feature=youtu.be
Now is this error:

ichin23@minty:~/patchrom/device$ ../tools/releasetools/ota_target_from_phone -r
Wait for the device to be online...
Copy target file template into current working directory
Dump bootimage from device
/dev/block/platform/sdio_emmc/...B/s (16777216 bytes in 3.999s)
Extract recovery.fstab from device
Usage: mount [-r] [-w] [-o options] [-t type] device directory
Usage: mount [-r] [-w] [-o options] [-t type] device directory
Extract the whole /system from device
adb: error: failed to copy '/system/csc_contents' to '/home/ichin23/patchrom/device/out/target_files/SYSTEM/system/csc_contents': remote No such file or directory
Remount /system to be writable
remount succeeded
Run getfilesysteminfo to build filesystem_config.txt
/home/ichin23/patchrom/tools/t...MB/s (1165484 bytes in 0.399s)
Unable to chmod /data/local/tmp/busybox: Operation not permitted
Please root your device, and try again.
Run getfilesysteminfo and recoverylink.py to recover symlink
Please root your device, and try again.
Traceback (most recent call last):
File "/home/ichin23/patchrom/tools/releasetools/recoverylink.py", line 16, in
target = filepath[1]
IndexError: list index out of range
rm: /system/xbin/getfilesysteminfo: No such file or directory
Build apkcerts.txt
/data/system/packages.xml: 1 f... MB/s (325991 bytes in 0.074s)
ls: não foi possível acessar '/home/ichin23/patchrom/device/out/target_files/SYSTEM/framework/*.apk': Arquivo ou diretório não encontrado
Generate metadata used to build target files...
Decode oat files
Compress the target_files dir into zip file
/home/ichin23/patchrom/device
Build full ota package: /home/ichin23/patchrom/device/stockrom.zip
unzipping target target-files...
loaded device-specific extensions from /home/ichin23/patchrom/device
using prebuilt boot.img from BOOTABLE_IMAGES...
Traceback (most recent call last):
File "/home/ichin23/patchrom/tools/releasetools/ota_from_target_files", line 1792, in
main(sys.argv[1:])
File "/home/ichin23/patchrom/tools/releasetools/ota_from_target_files", line 1747, in main
WriteFullOTAPackage(input_zip, output_zip)
File "/home/ichin23/patchrom/tools/releasetools/ota_from_target_files", line 640, in WriteFullOTAPackage
system_items.GetMetadata(input_zip)
File "/home/ichin23/patchrom/tools/releasetools/ota_from_target_files", line 202, in GetMetadata
key, value = element.split("=")
ValueError: need more than 1 value to unpack
failed: Operation not permitted

How I can resolve?

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

1 participant