cmhw: Fix boot handling
* Need to use sendBroadcastAsUser here. Change-Id: I98eab88c796d6accf3c70f97436e3d7fa781fc1f
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user