@@ -62,19 +62,19 @@ private static ClipData getPrimaryClip(Method method, boolean alternativeMethod,
62
62
return (ClipData ) method .invoke (manager , FakeContext .PACKAGE_NAME );
63
63
}
64
64
if (alternativeMethod ) {
65
- return (ClipData ) method .invoke (manager , FakeContext .PACKAGE_NAME , null , ServiceManager . USER_ID );
65
+ return (ClipData ) method .invoke (manager , FakeContext .PACKAGE_NAME , null , FakeContext . ROOT_UID );
66
66
}
67
- return (ClipData ) method .invoke (manager , FakeContext .PACKAGE_NAME , ServiceManager . USER_ID );
67
+ return (ClipData ) method .invoke (manager , FakeContext .PACKAGE_NAME , FakeContext . ROOT_UID );
68
68
}
69
69
70
70
private static void setPrimaryClip (Method method , boolean alternativeMethod , IInterface manager , ClipData clipData )
71
71
throws InvocationTargetException , IllegalAccessException {
72
72
if (Build .VERSION .SDK_INT < Build .VERSION_CODES .Q ) {
73
73
method .invoke (manager , clipData , FakeContext .PACKAGE_NAME );
74
74
} else if (alternativeMethod ) {
75
- method .invoke (manager , clipData , FakeContext .PACKAGE_NAME , null , ServiceManager . USER_ID );
75
+ method .invoke (manager , clipData , FakeContext .PACKAGE_NAME , null , FakeContext . ROOT_UID );
76
76
} else {
77
- method .invoke (manager , clipData , FakeContext .PACKAGE_NAME , ServiceManager . USER_ID );
77
+ method .invoke (manager , clipData , FakeContext .PACKAGE_NAME , FakeContext . ROOT_UID );
78
78
}
79
79
}
80
80
@@ -109,9 +109,9 @@ private static void addPrimaryClipChangedListener(Method method, boolean alterna
109
109
if (Build .VERSION .SDK_INT < Build .VERSION_CODES .Q ) {
110
110
method .invoke (manager , listener , FakeContext .PACKAGE_NAME );
111
111
} else if (alternativeMethod ) {
112
- method .invoke (manager , listener , FakeContext .PACKAGE_NAME , null , ServiceManager . USER_ID );
112
+ method .invoke (manager , listener , FakeContext .PACKAGE_NAME , null , FakeContext . ROOT_UID );
113
113
} else {
114
- method .invoke (manager , listener , FakeContext .PACKAGE_NAME , ServiceManager . USER_ID );
114
+ method .invoke (manager , listener , FakeContext .PACKAGE_NAME , FakeContext . ROOT_UID );
115
115
}
116
116
}
117
117
0 commit comments