Floss: Don't unwrap on the parse result of admin policy
For some unknown reason, the json file storing the admin policies could be malformed, which causes rust panic when unwraping on the result. This removes the unwrap to prevent the crash, instead, a warning message will be printed. Bug: 294498944 Test: modify /var/lib/bluetooth/admin_policy.json to 'abcd' and restart btadapterd. verify there is no crash. Test: mma -j32 Change-Id: Iea7c7d4eb4da5f27949a23d7909f1bded832621b
Loading
Please register or sign in to comment