Nov 15, 12:06am

The prefix of each name usually tells you which screen it belongs to (Signal names strings <ClassName>__<purpose> or <ClassName>_<purpose>), but if you want proof rather than a guess, here are reliable ways, easiest first:

1. Check where each candidate is referenced in the source

Each string is used in exactly one place (layout, menu XML, or code), so grep for the name itself:

bash
grep -rn "SearchToolbar_search" app/src/
grep -rn "conversation_list_search_description" app/src/
  • A hit in res/menu/*.xml or res/layout/*.xml as android:title="@string/..." or android:contentDescription="@string/..." tells you it's a menu title vs. an accessibility label.
  • A hit in Java/Kotlin (R.string.X) shows which class sets it.
  • abc_searchview_description_search and m3c_search_bar_search come from AppCompat/Material libraries, so you can eliminate them unless the element is an AppCompat SearchView or an M3 SearchBar.
  • search_menu_title is the generic "Search" menu title used by many activities.

So first identify what kind of element you saw (toolbar icon, overflow menu item, text field, bottom bar) and on which screen, then only the matching prefix remains.

2. uiautomator dump on a live device

Reproduce the screen, then:

bash
adb shell uiautomator dump /sdcard/ui.xml
adb pull /sdcard/ui.xml

The XML gives you the element's resource-id, text, and content-desc. If the element is labeled via content description, you can then match that against which candidate strings are wired as contentDescription in the layouts (step 1). Note the dump gives you view IDs, not string IDs directly, but combined with the source it usually settles it.

3. Android Studio Layout Inspector (debuggable build)

If you build Signal from source (assembleDebug), run it and use Tools > Layout Inspector: click the element, read its android:id and text, then jump to the code/layout that inflates it. This is the most precise for in-app views.

4. Runtime hook with Frida (no source build needed, works on the release app)

Hook resource resolution and log every string lookup while you tap the element:

javascript
Java.perform(function () {
  var Resources = Java.use('android.content.res.Resources');
  Resources.getString.overload('int').implementation = function (id) {
    var name = this.getResourceEntryName(id);
    if (name.toLowerCase().includes('search')) {
      console.log('getString: ' + name);
    }
    return this.getString(id);
  };
});

Interact with the UI; the exact name is printed. This is the definitive answer when the UI element is only reachable at runtime (e.g., an overflow menu item).

5. Brute force via a local build

Change each candidate value in a scratch build (Search → Search1, Search2, …) and see which one changes on screen. Slow, but zero ambiguity.

Practical shortcut for your list

If the "Search" you saw is the magnifying-glass icon in a screen's top app bar, it's almost certainly the screen-specific one, e.g. SearchToolbar_search (used by Signal's in-conversation search toolbar) or SelectContactScreen__search / AddToGroupActivity_search for contact pickers. If it's a content description for accessibility, look at conversation_list_search_description. If it's an overflow menu entry, it's search_menu_title. Confirm with grep -rn on the name to see the exact usage site.

Nov 15, 12:06am

This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.

Vibe can make mistakes. Check answers. Learn more