Description
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?