Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[Q] Help defining values in PhoneNumberUtils.smali [SOLVED]

$
0
0
It seems to be a reoccurring problem across many roms, even some stock, that incoming calls without prefix (+47 etc) does not do lookup (and match) to contact stored with prefixes. Now there is an app called Prefixer wich can do alot with the subject, but it seems no app can actually manipulate the incoming call ID. Thus, after alot of ravaging through here and other forums, I've been led to the conclusion that this is bad/wrong values in the following file:

Framework.jar->classes/android/telephony/PhoneNumberUtils.smali

Now the values I was told to look for was :

Code:

.local v7, minMatchLen:I
const/4 v7, 0xb

.local v0, minMatchLen:I
const/4 v0, 0xb

And change the minMatchLen:I vaules to:

Code:

.local v7, minMatchLen:I
const/4 v7, 0x7

.local v0, minMatchLen:I
const/4 v0, 0x7

Now - When I extracted the PhoneNumberUtils.mali from my current rom (Gthrill V3 (CM10 mod), The corresponding values were:

Code:

.local v7, minMatchLen:I
const/16 v7, 0xb

.local v0, minMatchLen:I
const/16 v0, 0xb

What I'm really wondering here is - can someone elaborate what these lines define - and what the practical difference between "const/4" and "const/16" acually is?

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>