Leider nicht alle, aber in dem Fall ist es leicht.
Von deinem Bugreport
bugreport-axolotl-RQ3A.211001.001-2021-11-19-12-15-07.txt
aufgemacht, nach
update_engine
gesucht, weil der für die OTA-Installation verantwortlich ist.
Da kommt dann:
Code:
11-19 12:14:04.527 root 1214 1214 I update_engine: [INFO:delta_performer.cc(209)] Resuming after 2448/2449 operations (99%), 736788446/736790697 bytes downloaded (99%), overall progress 98%
11-19 12:14:04.528 root 1214 1214 W update_engine: type=1400 audit(0.0:72): avc: denied { read } for name="sde44" dev="tmpfs" ino=23598 scontext=u:r:update_engine:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0
11-19 12:14:04.528 root 1214 1214 W update_engine: type=1400 audit(0.0:73): avc: denied { read write } for name="sde44" dev="tmpfs" ino=23598 scontext=u:r:update_engine:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=0
11-19 12:14:04.529 root 1214 1214 I update_engine: [INFO:delta_performer.cc(660)] Starting to apply update payload operations
11-19 12:14:04.530 root 1214 1214 I update_engine: [INFO:delta_performer.cc(385)] Opening /dev/block/bootdevice/by-name/vbmeta_vendor_b partition without O_DSYNC
11-19 12:14:04.531 root 1214 1214 E update_engine: [ERROR:utils.cc(626)] Opening block device /dev/block/bootdevice/by-name/vbmeta_vendor_b: Permission denied (13)
11-19 12:14:04.533 root 1214 1214 I update_engine: [INFO:delta_performer.cc(128)] Caching writes.
11-19 12:14:04.534 root 1214 1214 E update_engine: [ERROR:delta_performer.cc(139)] Unable to open file /dev/block/bootdevice/by-name/vbmeta_vendor_b: Permission denied (13)
11-19 12:14:04.535 root 1214 1214 E update_engine: [ERROR:delta_performer.cc(390)] Unable to open target partition vbmeta_vendor on slot B, file /dev/block/bootdevice/by-name/vbmeta_vendor_b
11-19 12:14:04.536 root 1214 1214 E update_engine: [ERROR:download_action.cc(336)] Error ErrorCode::kInstallDeviceOpenError (7) in DeltaPerformer's Write method when processing the received payload -- Terminating processing
11-19 12:14:04.537 root 1214 1214 I update_engine: [INFO:multi_range_http_fetcher.cc(177)] Received transfer terminated.
11-19 12:14:04.538 root 1214 1214 I update_engine: [INFO:multi_range_http_fetcher.cc(129)] TransferEnded w/ code 200
11-19 12:14:04.539 root 1214 1214 I update_engine: [INFO:multi_range_http_fetcher.cc(131)] Terminating.
Heißt er startet das OTA, will flashen anfangen aber bekommt keine Berechtigungen um auf die Partition zu schreiben, weil SELinux das blockiert (die
avd: denied
Dinger von dem Log oben).
Die Lösung ist also neue Regeln (SEPolicy) hinzuzufügen, die dem
update_engine
die Erlaubnis dafür einräumt und es sollte gehen.
Der Patch:
https://review.lineageos.org/c/LineageOS/android_device_shift_axolotl/+/319077