Uses a resources string for new guest name.
Test: atest CarServiceUnitTest:com.android.car.CarPowerManagementServiceTest
Bug: 151325204
Change-Id: I5be1c23460b597eb4eab819a999516a463e4b0e0
diff --git a/service/src/com/android/car/user/CarUserService.java b/service/src/com/android/car/user/CarUserService.java
index fedae06..9ce12fa 100644
--- a/service/src/com/android/car/user/CarUserService.java
+++ b/service/src/com/android/car/user/CarUserService.java
@@ -33,6 +33,7 @@
import android.car.userlib.CarUserManagerHelper;
import android.content.Context;
import android.content.pm.UserInfo;
+import android.content.res.Resources;
import android.graphics.Bitmap;
import android.hardware.automotive.vehicle.V2_0.InitialUserInfoResponseAction;
import android.hardware.automotive.vehicle.V2_0.UsersInfo;
@@ -234,6 +235,12 @@
writer.println();
}
writer.println("EnablePassengerSupport: " + mEnablePassengerSupport);
+ writer.println("Relevant overlayable properties");
+ Resources res = mContext.getResources();
+ writer.printf("%sowner_name=%s\n", indent,
+ res.getString(com.android.internal.R.string.owner_name));
+ writer.printf("%sdefault_guest_name=%s\n", indent,
+ res.getString(R.string.default_guest_name));
}
}