Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Help generating incremental OTA update package

OP TheRavenGod

16th April 2014, 02:59 PM   |  #1  
OP Junior Member
Flag Bucuresti
Thanks Meter: 1
 
7 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Hi guys,

I am trying to generate an incremental OTA update package from AOSP source code.

I saw that the key may be the file ./build/tools/releasetools/ota_from_target_files that requires the "-i <previous_OTA_zip_file>" parameter to do this.

I tried adding this in the ./build/core/Makefile correct section, changing :

Code:
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
	@echo "Package OTA: $@"
	$(hide) ./build/tools/releasetools/ota_from_target_files -v \
           -p $(HOST_OUT) \
	   -k $(KEY_CERT_PAIR) \
	   $(BUILT_TARGET_FILES_PACKAGE) $@
to

Code:
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
	@echo "Package OTA: $@"
	$(hide) ./build/tools/releasetools/ota_from_target_files -v \
	   -i ./temp/old_ota.zip \
           -p $(HOST_OUT) \
	   -k $(KEY_CERT_PAIR) \
	   $(BUILT_TARGET_FILES_PACKAGE) $@
However, when I issue the command 'make otapackage', I receive the following error :
... can't find recovery API version in input target-files

Does anyone know how to fix this ? Or, if I'm doing something wrong, please enlighten me

Thanks/
10th November 2014, 08:29 PM   |  #2  
UltraPower31's Avatar
Senior Member
Thanks Meter: 119
 
152 posts
Join Date:Joined: Jul 2011
Donate to Me
More
Is there already a solution? I have the same problem.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes