Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 062e5084 authored by howardchung's avatar howardchung
Browse files

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
parent 64a7f09f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment