Skip to content

Commit 2cc5294

Browse files
committed
Fix Android Canary Support
1 parent 36f27c0 commit 2cc5294

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

daemon/src/main/java/org/lsposed/lspd/service/UserService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ public static List<UserInfo> getUsers() throws RemoteException {
7171
IUserManager um = getUserManager();
7272
List<UserInfo> users = new LinkedList<>();
7373
if (um == null) return users;
74-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
74+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R &&
75+
Build.VERSION.SDK_INT < Build.VERSION_CODES.BAKLAVA) {
7576
users = um.getUsers(true, true, true);
7677
} else {
7778
try {

0 commit comments

Comments
 (0)