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

Commit 0c66c31d authored by dianlujitao's avatar dianlujitao Committed by Paul Keith
Browse files

ProfileManager: Don't start before decrypted

 * WiFi service is not considered as a core service so it won't start in
   min framework, but ProfileManager accesses to WiFi service's API.
   This would lead to a fatal exception and trigger RescueParty.
 * We don't really need ProfileManager during such early stage, so
   simply disable it to avoid invoking WifiManager.

Change-Id: I2c66217599e0062eaff2e5f4e86ebc092d4a41d5
parent 50e23044
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -247,6 +247,11 @@ public class ProfileManagerService extends LineageSystemService {
        return LineageContextConstants.Features.PROFILES;
    }

    @Override
    public boolean isCoreService() {
        return false;
    }

    @Override
    public void onStart() {
        mBackupManager = new BackupManager(mContext);