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

Commit e076cffd authored by Omer Ozer's avatar Omer Ozer
Browse files

Add wallet role flag to packageshash in RoleServicePlatformHelper.

Bug: 320752470
Test: local
Change-Id: I6dc451f8bfec5404d8c654cc9eab42ac9857b69b
parent b8e91f3d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.content.pm.PackageManagerInternal;
import android.content.pm.ResolveInfo;
import android.content.pm.Signature;
import android.os.Environment;
import android.permission.flags.Flags;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.ArrayMap;
@@ -368,6 +369,7 @@ public class RoleServicePlatformHelperImpl implements RoleServicePlatformHelper
            dataOutputStream.writeUTF(profileOwner);
            dataOutputStream.writeInt(Settings.Global.getInt(mContext.getContentResolver(),
                    Settings.Global.DEVICE_DEMO_MODE, 0));
            dataOutputStream.writeBoolean(Flags.walletRoleEnabled());
            dataOutputStream.flush();
        } catch (IOException e) {
            // Never happens for MessageDigestOutputStream and DataOutputStream.