Skip to content
Commit 6d235fba authored by liulvping's avatar liulvping Committed by lvping liu
Browse files

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: default avatarliulvping <liulvping@xiaomi.com>
parent 82393b1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment