The string value alone can't disambiguate; you need to find which resource ID the UI actually consumes. Here are the practical ways, from cheapest to most conclusive:
1. Trace the references in the source tree
Resource names are referenced either as @string/… in XML or R.string.… in code:
For each hit, look at the surrounding element: a <item name="title"> in a menu XML, an android:hint in a layout, a setTitle(R.string.…) in an Activity, etc. That context usually tells you immediately which one feeds the Search item you see. If only one of the two appears anywhere outside strings.xml, that's your answer; a string with zero references is dead.
2. Dump the live UI hierarchy
On the device, with the app showing the interface:
Find the node whose text is Search and note its resource-id. Then locate that view ID in the app's res/layout/*.xml and see which @string/… it points to. Caveat: if the text is set programmatically (setText(R.string.…)), the layout will have no text attribute and you fall back to method 1 or 3.
3. Match resource IDs in the compiled APK
Since the app is closed-source, you can go through its binary:
This gives each entry's numeric ID (e.g. 0x7f0f0123). Then decompile with apktool d app.apk and grep the smali for that hex constant:
bash
grep -rn '0x7f0f0123' app_apk/smali/
Only the code path actually rendering your interface will reference one of the two IDs.
4. Brute-force rebuild
Since you're building LineageOS yourself, the simplest conclusive test: temporarily change the two strings to unique markers (SearchAAA, SearchBBB), rebuild just that app, install it, and see which marker appears in the interface. Two minutes of build time, zero ambiguity.
In practice, method 1 resolves it most of the time; use 3 or 4 when the string is assembled dynamically or referenced through an overlay.
Nov 15, 12:11am
This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.
This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.