Page 35 of 132 FirstFirst ... 152526272829303132333435363738394041424344455585 ... LastLast
Results 341 to 350 of 1316
Discuss [Solution] International/local caller ID matching at the iPhone "2G" (Rev. 1) - Hackint0sh.org; Originally Posted by aviegas Besides, if it calls just the "strict" entrypoint in AppSupport, why ...
  1. #341
    Senior Professional Array timschuerewegen's Avatar

    Join Date
    Aug 2007
    Location
    Belgium
    Posts
    450
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    Quote Originally Posted by aviegas View Post
    Besides, if it calls just the "strict" entrypoint in AppSupport, why the 1->0 patch did not work?
    Correct. I even patched decomposedPhoneNumbersEqual so that it would always compare loose (which is deeper than that 1 -> 0 patch) but it also did not change dialpad behaviour.


  2. #342
    The Man Array aviegas's Avatar

    Join Date
    Sep 2007
    Posts
    1,108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    73

    Default

    Quote Originally Posted by kultschar View Post
    I am about to upgrade to unlocked 1.1.2 but this whole thing is confusing me -

    Firstly my countrys int code is 3 digits +500

    We have no area codes and thus just use 5 numbered telephone numbers for both land lines and mobiles

    e.g. landline (+500) 21343
    Mobile (+500) 51343

    Im a bit scared to upgrade until I get this stuff sussed out - im not even sure if I can with a 3 digit international dialing code as most are 2.

    Anybody willing to point me in the right direction??

    PS - I live on a Island with 3000 people so im the only one likely to have an iPhone in my country!!
    Tell us the country name please, and do not use a + unless it means the start of the dial number from the international patther (+ mean add the local IDD here).

    I assue it's a 3 digit country code, no area code and a 8 digits telefone number.

    +XXX-500NNNNN

    Is this the case? So give us the country code and the 3 digit prefix and I will post the file for you.

  3. #343
    Senior Professional Array

    Join Date
    Oct 2007
    Posts
    473
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    30

    Default

    Hi there aviegas,

    Im from the Falkland Islands

    500 is the digit country code, we have no area code and our telephone numbers never exceed 5 digits

    e.g. home tel: 22310
    Mobile: 52310

    Best regards

    Paul

  4. #344
    The Man Array aviegas's Avatar

    Join Date
    Sep 2007
    Posts
    1,108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    73

    Default

    Quote Originally Posted by timschuerewegen View Post
    Correct. I even patched decomposedPhoneNumbersEqual so that it would always compare loose (which is deeper than that 1 -> 0 patch) but it also did not change dialpad behaviour.
    Hummm..... may be it's coded in a different way.

    Like: a match is performed only when the number has more digits than the minimum phone length for a given country ?????? As returned by CPPhoneMinimumDigitsForCountry???

    That may be a possible approach and a reasonable way of avoiding unnecessry matchings. For example, if the minimum length is 8, there is no reason for matching with 7 or less digits.

    Even, maybe what we are seeing is a bug! The code to avoid unnecessary checks for less-than them min_length is may be actually doing less-than-or-equal......
    Or it's done on purpose by Apple....

    This is a possible program logic, and it has some logic too

  5. #345
    Senior Professional Array timschuerewegen's Avatar

    Join Date
    Aug 2007
    Location
    Belgium
    Posts
    450
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    Quote Originally Posted by aviegas View Post
    Hummm..... may be it's coded in a different way.

    Like: a match is performed only when the number has more digits than the minimum phone length for a given country ?????? As returned by CPPhoneMinimumDigitsForCountry???

    That may be a possible approach and a reasonable way of avoiding unnecessry matchings. For example, if the minimum length is 8, there is no reason for matching with 7 or less digits.

    Even, maybe what we are seeing is a bug! The code to avoid unnecessary checks for less-than them min_length is may be actually doing less-than-or-equal......
    Or it's done on purpose by Apple....

    This is a possible program logic, and it has some logic too
    I think I tried that.

    be 32 00 - 0 6
    be 32 00 0 1 7
    be 32 00 0 3 6

    My address book contains "+32 3 646 89 53" and dialpad matches "00 32 3 646 89 53" and "03 646 89 53" and "3 646 89 53" but not "646 89 53". It's even wrong to match "3 646 89 53" because it's not a valid number. minimumMatchingDigitsForCountry is 6.

    Btw, it's actually correct for dialpad to not match "646 89 53" because it's also an invalid number. In Belgium area code is mandatory.
    Last edited by timschuerewegen; 11-18-2007 at 12:03 AM.


  6. #346
    Senior Professional Array timschuerewegen's Avatar

    Join Date
    Aug 2007
    Location
    Belgium
    Posts
    450
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    I think I found something very interesting ... the AddressBook framework ... and here it comes ... uses decompo*******Number and decomposedPhoneNumbersEqual. Maybe the nts_FindUIDsMatchingPhoneNumbers function is involved.

  7. #347
    Senior Professional Array timschuerewegen's Avatar

    Join Date
    Aug 2007
    Location
    Belgium
    Posts
    450
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    Quote Originally Posted by timschuerewegen View Post
    I think I found something very interesting ... the AddressBook framework ... and here it comes ... uses decompo*******Number and decomposedPhoneNumbersEqual. Maybe the nts_FindUIDsMatchingPhoneNumbers function is involved.
    This also appears to be a dead end. However, I managed to patch something and dialpad no longer recognised any phone number. Hopefully that won't turn out to be a dead end as well.

  8. #348
    Senior Professional Array timschuerewegen's Avatar

    Join Date
    Aug 2007
    Location
    Belgium
    Posts
    450
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    Found it! At offset 0x2DE8 in the AppSupport file change "3F 10 DD E5" into "01 10 A0 E3". Before patching these bytes, try running those "phoneNumbersEqual" test again, but use "phoneNumbersEqual_test" instead of "phoneNumbersEqual". This will give you an extra number. I did not know what this number was until just now

  9. #349
    The Man Array aviegas's Avatar

    Join Date
    Sep 2007
    Posts
    1,108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    73

    Default

    Quote Originally Posted by timschuerewegen View Post
    Found it! At offset 0x2DE8 in the AppSupport file change "3F 10 DD E5" into "01 10 A0 E3". Before patching these bytes, try running those "phoneNumbersEqual" test again, but use "phoneNumbersEqual_test" instead of "phoneNumbersEqual". This will give you an extra number. I did not know what this number was until just now
    Will look into that. Can you elaborate on what you have found?

  10. #350
    Advanced Array

    Join Date
    Sep 2007
    Posts
    32
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by timschuerewegen View Post
    http://www.sendspace.com/file/h3kvsk (contains windows x86, mac os x i386 and mac os x ppc versions)

    • Download pntedit.exe application (see link above)
    • Grab copy of AppSupport from firmware 1.1.2
    • Run "pntedit.exe read AppSupport PhoneNumberTemplates.txt"
    • Edit PhoneNumberTemplates.txt
    • Run "pntedit.exe write AppSupport PhoneNumberTemplates.txt AppSupport.Patched"
    • Replace AppSupport on iPhone with AppSupport.Patched


    If you receive a "Could not add string xxx" error during "pntedit.exe write" then you either have more than 8 different country name strings ("us", "ca", "de", etc.) which is the maximum or you have too many different other strings. Try deleting what you do not need to decrease the number of unique strings. For example, the strings "40", "50," "70" and "90" are only used by the "fr" entries. If you delete all "fr" entries you free up one country string ("fr") and five other strings ("33", "40", "50," "70" and "90").

    The number of entries for the phonenumber templates table is 32. If you have less entries in your .txt file then the last entry will be duplicated x times which should be ok. If you have more entries in your .txt file then they will be ignored because there is no room for them.

    Have fun.
    Sorry for the complete regression on your conversation here tim and aviegas and this question is intended for anyone who completed the above successfully. I do not get how it works at all and not able to progress from step two :
    Run "pntedit.exe read AppSupport PhoneNumberTemplates.txt"
    I am running on a mac and when i double click pntedit it opens up terminal. How do I open appsupport there, and where is PhoneNumberTemplates.txt?

    Would appreciate a noob explanation for those who upgraded to 112 and cant progress.

    Many thanks for your amazing work!


 

 

LinkBacks (?)

  1. 07-13-2009, 03:48 PM
  2. 03-17-2009, 03:51 PM
  3. 03-17-2009, 12:45 PM
  4. 03-17-2009, 12:43 PM
  5. 03-16-2009, 04:14 PM
  6. 02-14-2009, 03:43 PM
  7. 01-14-2009, 03:29 PM
  8. 01-14-2009, 02:08 PM

Similar Threads

  1. [1.1.3] International Caller ID Problem
    By GreatLicker in forum iPhone "2G" (Rev. 1)
    Replies: 3
    Last Post: 03-05-2008, 07:20 PM
  2. Replies: 106
    Last Post: 03-03-2008, 06:53 PM
  3. Caller ID for local numbers... is it possible?
    By nemesis1218 in forum Free Toolchain Software (Cydia App's)
    Replies: 4
    Last Post: 01-08-2008, 11:48 PM
  4. Replies: 21
    Last Post: 11-22-2007, 01:23 PM
  5. Matching contacts to UK caller ids?
    By jhrfc in forum General
    Replies: 7
    Last Post: 09-23-2007, 11:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 10:06 AM.
twitter, follow us!