OTA zip failled on reboot

58 views
Skip to first unread message

Thierry GAYET

unread,
Jun 15, 2017, 11:43:06 AM6/15/17
to Android Building
Hi,

I am building my own rom fro android 7.1.1 release r38 and i am managing my own OTA. 

My device is a Google/Pixel (sailfish).

I am building my android image without any problem using the following commands:

$ source build/envsetup.sh
$ lunch .... (sailfish / userdebug)
$ make update_api
$ make droid

Then i am generating my own OTA zipfile using the following commands:

$ make brillo_update_payload
$ make otapackage

At the end the zip file is well generated and i can then push it on my update server.

My update app well detect my ota update and i can download it locally into the /data partition (/data/data/com.foo.otaupdate/files/updates.172.16.9.31/dev/sailfish/test001/ota.zip)

The verify step work fine using the verifyPackage() ;
The install step generate two files (block.map and uncrypt_file) using the install_package(ctx, package_file) ;
Then reboot as RECOVERY_UPDATE 

Finally the device reboot and switch in recovery mode but it failled 'cos it told me the following message : No /cache partition found

After inspection, the recovery.fstab doesn't have a /cache entry maybe 'cos the /cache is now inside the /data one.

The problem is that the /cache is mandatory for the update installation.

Does anyone can tell me why my recovery failled after the reboot ?

Many thanks in advance.

BR
Thierry

Dan Willemsen

unread,
Jun 15, 2017, 1:15:45 PM6/15/17
to Android Building
sailfish uses A/B updates, which changes how updates are applied (no need for a cache partition): https://source.android.com/devices/tech/ota/ab_updates

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages