Combine a message as one string and give it to snet_event_log

snet_event_log gets 3 arguments. Combine a message of revoking
permission when group changed and give it to 3rd argument of
snet_event_log.

Test: Repo'd scenario and looked at log
Bug: 79443138
Change-Id: Iecf0505bb7927891aa879d0cacedcf94872b9452
This commit is contained in:
Koji Fukui
2018-05-09 11:38:01 +09:00
committed by Philip P. Moltmann
parent a1aafd7718
commit acae3ef802

View File

@@ -449,9 +449,10 @@ public class PermissionManagerService {
userId) == PackageManager.PERMISSION_GRANTED) {
EventLog.writeEvent(0x534e4554, "72710897",
newPackage.applicationInfo.uid,
"Revoking permission", permissionName, "from package",
packageName, "as the group changed from",
oldPermissionGroupName, "to", newPermissionGroupName);
"Revoking permission " + permissionName +
" from package " + packageName +
" as the group changed from " + oldPermissionGroupName +
" to " + newPermissionGroupName);
try {
revokeRuntimePermission(permissionName, packageName, false,