KernelSU icon indicating copy to clipboard operation
KernelSU copied to clipboard

Case sensitive search bug

Open TheSingular opened this issue 2 years ago • 0 comments

Please check before submitting an issue

  • [X] I have searched the issues and haven't found anything relevant
  • [X] I will upload bugreport file in KernelSU Manager - Settings - Report log
  • [X] I know how to reproduce the issue which may not be specific to my device

Describe the bug

This is a bug report copied mostly from the same issue from APatch , which I assume is relevant if not exactly the same bug because it's known fact that APatch took much of its manager code from KernelSU. The bug has been fixed over there, I'm actually surprised no one reported it here yet.

When searching for installed apps to modify su permissions, the search is case insensitive when there are no spaces involved, on the other hand, if a space is inserted into the search bar, search becomes case sensitive.

To Reproduce

  1. Install any app with spaces in its name. (Or use an already installed app, "Kernel Flasher" in this example)
  2. Open KernelSU
  3. Go to Superuser tab
  4. Search for the app without matching the case(like "kernel" or "KERNEL" or whatever)
  5. Observe that the app disappears from the list as soon as a space is inserted (like "kernel ")
  6. Go back and correct the case to exactly match the app (like "Kernel ")
  7. Observe that the app returns to the list

Expected behavior

App stays in the list when searching without exact case matching.

Screenshots

Screenshots taken from the APatch issue, behaves exactly the same in KernelSU.

image image image

Logs

KernelSU_bugreport_2024-03-18_09_16.tar.gz

Device info

  • Device: Xiaomi 12T
  • OS Version: 14
  • KernelSU Version: 11628
  • Manager Version: v0.9.0-3-ga5e7655 (11631)
  • Kernel Version: 5.10.168-android12-9-.....

Additional context

No response

TheSingular avatar Mar 18 '24 06:03 TheSingular