FORUMS

Help generating incremental OTA update package

8 posts
Thanks Meter: 3
 
By TheRavenGod, Junior Member on 16th April 2014, 01:59 PM
Post Reply Subscribe to Thread Email Thread
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, 07:29 PM |#2  
UltraPower31's Avatar
Senior Member
Thanks Meter: 119
 
Donate to Me
More
Is there already a solution? I have the same problem.
16th January 2015, 01:04 AM |#3  
Crostantin's Avatar
Senior Member
Flag Rome
Thanks Meter: 2,175
 
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, 10:40 AM |#4  
OP Junior Member
Flag Bucuresti
Thanks Meter: 3
 
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 2 Users Say 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