cmhw: Fix boot handling

* Need to use sendBroadcastAsUser here.

Change-Id: I98eab88c796d6accf3c70f97436e3d7fa781fc1f
This commit is contained in:
Steve Kondik
2016-11-06 00:34:51 -07:00
parent e01237ee2f
commit f133161814

View File

@@ -20,6 +20,7 @@ import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteCallbackList;
import android.os.RemoteException;
import android.os.UserHandle;
import android.util.ArrayMap;
import android.util.Log;
import android.util.Range;
@@ -426,7 +427,7 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
if (phase == PHASE_BOOT_COMPLETED) {
Intent intent = new Intent(cyanogenmod.content.Intent.ACTION_INITIALIZE_CM_HARDWARE);
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
mContext.sendBroadcast(intent,
mContext.sendBroadcastAsUser(intent, UserHandle.ALL,
cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS);
}
}