commit | 6d235fba1e76e16265219c8cc8a729003dd62e19 | [log] [tgz] |
---|---|---|
author | liulvping <liulvping@xiaomi.com> | Fri Jan 21 10:13:19 2022 +0800 |
committer | lvping liu <liulvping@xiaomi.com> | Fri Oct 14 13:38:59 2022 +0000 |
tree | ce41b7803af2da6d6ca4e536cd4638403207d6fa | |
parent | 82393b1d55b551c8f91ece45cc7b302aebdb11cf [diff] |
add fsync when copy native libs In some low probability cases, after installing apps the device may restart without sync the storage, then the jni libs is damaged. The file size is ok, but the content all filled by 0x00. Bug: 214270558 Test: 1. adb install test.apk with jni libs 2. Enforce restart the device 3. check if the libs is damaged Change-Id: Ia82cfc0d3a14c729c9ac14b367b456d65e67e058 Signed-off-by: liulvping <liulvping@xiaomi.com>