test_gps might not initialize AGpsRilInterface, which could lead to segfault in some cases

Bug #1589347 reported by You-Sheng Yang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libhybris
New
Undecided
Unassigned

Bug Description

AGpsInterface has been declared since AOSP v2.3 in https://android.googlesource.com/platform/hardware/libhardware.git/+/5f404f58df329e7676f8fd47bb9bb82f9dc047f1 . For AOSP, all valid extension should be initialized in the init stage, or unexpected errors might just happen from nowhere.

In Ubuntu platform-api, we do initialize all of them whenever available, but libhybris test utility test_gps only initialize it when '-r' is specified in command line arguments to turn on agps support. This lead to a segmentation fault on some devices when some system daemons in Android container tries to react with gps HAL when bootstrapped by test_gps.

In summary, test_gps should initialize all extensions as platform-api does.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.