Error: Invalid OTA Package, missing scatter - Android Q&A, Help & Troubleshooting

I am trying to create a custom update.zip from the source code of an android ROM. Because I don't know any better way of doing it, I created a bash script to build the update.zip.
The file structure is:
META-INF/com/google/android/updater-script
META-INF/com/google/android/update-binary
META-INF/MANIFEST.MF
META-INF/CERT.SF
META-INF/CERT.RSA
The MANIFEST.MF, CERT.SF and CERT.RSA are copied from another android ROM, since I modified the recovery partition to disable signature verification.
Is there some other part that I'm missing?
PS: I also searched the source code of the recovery partition for "Invalid OTA package" and found nothing.

This is now resolved. OTA updates can be created using "make dist", as described in https://source.android.com/devices/tech/ota/tools.html.

Related

Error kitchen

help me, in dsixda I have an error when making update.zip -
scripts / build_rom: line 363: cd: META-INF/com/google/android: no such file or directory
Error: update zip not created
I step after creating the "aroma", anyone know how I can fix this?
if I want install it on the CWM me says installation Aborted.

smd_private.h: No such file or directory

I'm trying to build a stand alone Android kernel and i want to write loadable kernel module, but when i build my module.c file, i have this error
Code:
error: smd_private.h: No such file or directory
search at google told me that i should change
Code:
<smd_private.h>
into
Code:
"smd_private.h"
in arch/arm/mach-msm/smd_init_dt.c file . but i dont have this file in my kernel folder !!!, so i download this file,but the error still exist!! Can you help me?
[Q]
any help?

Porting Cyanogenmod 13.0 for Lenovo K3 Note: build issues

Hi,
I am trying to port cyanogenmod 13.0 to the Lenovo K3 note.
I have two problems that I have not been able to solve despite googling and searching this forum. Any answers would be appreciated.
Problem 1)
Build terminates close to very end at this line:
Code:
Installing recovery patch to system partition
Warning: could not find RECOVERY/RAMDISK/etc/recovery.fstab
Warning: could not find SYSTEM/build.prop in <built-in function zip>
using prebuilt recovery.img from BOOTABLE_IMAGES...
using prebuilt boot.img from BOOTABLE_IMAGES...
cp: cannot stat ‘$OUT/target/product/aio_otfp/ota_temp/SYSTEM/bin/install-recovery.sh’: No such file or directory
build/core/Makefile:1074: recipe for target '$OUT/target/product/aio_otfp/system/bin/install-recovery.sh' failed
make: *** [$OUT/target/product/aio_otfp/system/bin/install-recovery.sh] Error 1
build/core/Makefile contains the lines
Code:
$(hide) cp $(ota_temp_root)/SYSTEM/bin/install-recovery.sh $(TARGET_OUT)/bin/install-recovery.sh
$(hide) cp $(ota_temp_root)/SYSTEM/recovery-from-boot.p $(TARGET_OUT)/recovery-from-boot.p
however the file install-recovery.sh is missing. In fact the whole $(ota_temp_root)/SYSTEM/bin/ directory is empty.
Has anyone encountered this error before, or have thoughts on a solution?
Problem 2)
If I remove the line entirely from the makefile (i.e. skip install-recovery.sh) the build completes successfully. The $OUT directory contains the files recovery.img, boot.img, system.img, userdata.img, and so forth. I can flash the recovery.img to my recovery partition, and all is well booting into it. However, there is no .zip file for flashing the system as a whole.
I have tried various combinations of make otapackage, make bacon, etc., but none of these seem to work (possibly they were features in previous versions of CM). Is there a different target I should use, or a flag that I need to change in the device tree?
Many thanks for everyone's help!

Problem with Android Kitchen with Asus ZenFone 2 Z00L .img MM on Linux

Hi guys i'm having a problem with Kitchen 0.224 on opening a system.img of Android MM 6.0.1.
when i start the process of creating a working folder and when the process is done i get the following message:
Compiling simg2img ...
In file included from sparse_crc32.c:46:0:
ext4_utils.h:29:23: fatal error: sys/types.h: No such file or directory
compilation terminated.
gcc: error: sparse_crc32.o: No such file or directory
rm: cannot remove '*.o': No such file or directory
Error: simg2img not successfully compiled!
to be specific i'm running kitchen on linux mint 18.2,followed all the steps to get kitchen working.
Phone Asus ZenFone 2 Z00L MarshMallow.img ROM .
any idea on what is wrong ?? how do i get to work and modify that ROM?
any lil help is appreciated
oh and before someone wonder and even ask yes i am a beginner on those stuff

Kitchen Error: No system folder found! MIUI ROM

Hi!
This is my first attempt with Cygwin and Kitchen.
When kitchen finished creating working folder and extracting rom (xiaomi.eu 11.0.4.0) it gives me Error: No system folder found! (See screenshot)
Whats happening? Any ideas guys? Am i doing something wrong?

Categories

Resources