Support convert string similar to FE87-9640 to UUID
Root Cause:
Package installer will crash when cover string "FE87-9640" to UUID because
UUID.fromString() only support the components format 8-4-4-4-12 that length
is 5 after split("-").
Solution:
Extend to support the length of string is 2 after split("-") that is
similar to FE87-9640.
Test steps:
1. Install WhatsApp
2. Format SD card as FAT
3. Insert SD card
4. Uninstall WhatsApp
Change-Id: I7a938d82b41d6eb86c6e09c8c3dab710331cfa69
Reviewed-on: https://gerrit.mot.com/1446378
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Maoyuan Wu <wumy@motorola.com>
Submit-Approved: Jira Key
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 file changed