OPP: catch IllegalArgumentException exception to avoid FC
Obex HeaderSet will throw IllegalArgumentException when the
file size is bigger than 0xFFFFFFFFL.
Sometimes user try to share a oversize file with Bluetooth,
Bluetooth APP will forceclose if we don't handle this exception.
Bug: 65272955
Test: Try to share some oversize files with Bluetooth, no FC
observed, instead of informing error message.
Change-Id: I0934536387e926bc70d759acf4b77b5c3d936c8f
Signed-off-by:
xutianguo <xutianguo@xiaomi.com>
Loading
Please register or sign in to comment