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

Commit 3baa6bda authored by Steven Moreland's avatar Steven Moreland
Browse files

confirmationui: explicitly declare only one thread.

Due to an unclear API, wireless_charger accidentally started
two threads.

Bug: 80102279
Test: use lshal to verify that the service only has one thread
Change-Id: Ic6bdb6ef0025173f4388f0550e00a6b4fc2e21df
parent 5ed6bca9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ using android::hardware::joinRpcThreadpool;
using android::hardware::confirmationui::V1_0::implementation::ConfirmationUI;

int main() {
    ::android::hardware::configureRpcThreadpool(1, true /*willJoinThreadpool*/);
    auto confirmationui = new ConfirmationUI();
    auto status = confirmationui->registerAsService();
    if (status != android::OK) {