update_engine used in AB Updates failing

864 views
Skip to first unread message

al...@lunarwireless.com

unread,
Nov 14, 2017, 4:15:50 AM11/14/17
to Android Building
I'm building for sailfish 7.1.2_r29 and trying to work with the new AB update system.  I'm unable to use android.os.UpdateEngine to apply a new update.

It immediately fails with a few errors,

11-14 01:00:51.298 658-658/? E/update_engine: [1114/010051:ERROR:utils.cc(199)] 0 == writer.Open(path, O_WRONLY | O_CREAT | O_TRUNC, 0600) failed: No such file or directory
11-14 01:00:51.298 658-658/? E/update_engine: [1114/010051:ERROR:cpu_limiter.cc(74)] Failed to change cgroup cpu shares to 2 using /sys/fs/cgroup/cpu/update-engine/cpu.shares
11-14 01:00:51.312 658-658/? W/update_engine: type=1400 audit(0.0:190): avc: denied { dac_override } for capability=1 scontext=u:r:update_engine:s0 tcontext=u:r:update_engine:s0 tclass=capability permissive=0
11-14 01:00:51.312 658-658/? W/update_engine: type=1400 audit(0.0:191): avc: denied { dac_read_search } for capability=2 scontext=u:r:update_engine:s0 tcontext=u:r:update_engine:s0 tclass=capability permissive=0
11-14 01:00:51.317 658-658/? E/update_engine: [1114/010051:ERROR:file_stream.cc(244)] Open(...): Domain=system, Code=EACCES, Message=Permission denied
11-14 01:00:51.317 658-658/? E/update_engine: [1114/010051:ERROR:file_fetcher.cc(78)] Couldn't open /data/ota_package/update.zip

I double checked the sepolicy's in system/sepolicy and they are being included inside the build correctly, but still for some reason I'm unable to apply an update with the new update system.

Sorry, my understanding of SEPolicy is very very limited, so I am not sure what exactly is happening.

Anywhere I should look or anything I can try would be much appreciated.


Thanks in advance

wasim ahmad

unread,
Nov 20, 2017, 3:57:19 PM11/20/17
to Android Building

Josh Correll

unread,
Dec 20, 2017, 11:43:01 AM12/20/17
to Android Building
Did you find a solution to this error? I'm getting the same thing.
Reply all
Reply to author
Forward
0 new messages