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: 2
 
8 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.
16th January 2015, 02:04 AM   |  #3  
Crostantin's Avatar
Senior Member
Flag Rome
Thanks Meter: 1,224
 
630 posts
Join Date:Joined: Dec 2012
Donate to Me
More
Quote:
Originally Posted by TheRavenGod

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/

did you solved this??
16th January 2015, 11:40 AM   |  #4  
OP Junior Member
Flag Bucuresti
Thanks Meter: 2
 
8 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Yes, I did !
The trick is that the old OTA file should actually be one of the other files produced by the 'make otapackage' command : the one with target in the title.
After a lot of struggle (that in the end produced the desired incremental OTA), I also found this site that explains it : http://jhshi.me/2014/11/09/aosp-release-tools/

Best regards
The Following User Says Thank You to TheRavenGod For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes