Messages: Please use the inbrite.com forum for our discussions & Q&A.

News: It is reported that iTunes 9 is compatible with jailbroked iPhones... Now I got an iPhone 3GS. I will be posting something about it...

Sponsors links:

Thursday, September 07, 2006

Hex Edit Guide - part 4

Hex Edit Guide
part 4
Continue from [Hex Edit guide part 1] , [part 2] & [part 3].

This part covers:
- edit kjava/j2me*.pat files to set permission for java midlets.

edit kjava/j2me*.pat files

Each java midlet has a corresponding pat file. The phone system use the pat file to determine the permissions for the midlets. You can edit the pat file to change the permissions. In the pat file, each offset represents a particular permission, and the value of the offset sets the option of the permission.

The following offsets determine selected option for corresponding permission

offset 06: Network Related > Data Network
offset 08: Network Related > Messaging
offset 0A: Network Related > App Auto-Start
offset 0C: Network Related > Connectivity Options
offset 0E: User Data Related > Multimedia Recording
offset 10: User Data Related > User Data Read Capability
offset 12: User Data Related > User Data Write Capability
offset 14: User Data Related > App Data Sharing

Possible values of the above offsets:
00 = 'access denied',
01 = 'always ask',
02 = 'ask once per app',
04 = 'never ask'

The following offsets determine available options for corresponding permission

offset 07: Network Related > Data Network
offset 09: Network Related > Messaging
offset 0B: Network Related > App Auto-Start
offset 0D: Network Related > Connectivity Options
offset 0F: User Data Related > Multimedia Recording
offset 11: User Data Related > User Data Read Capability
offset 13: User Data Related > User Data Write Capability
offset 15: User Data Related > App Data Sharing

Possible values of the offsets:
00 = no access/item not displayed,
01 = 'always ask' option,
02 = 'ask once per app',
03 = 'never ask',
04 = full unprompted access

Steps:
1. use P2K software to download the pat file of the midlet that you want to set permission. The file is in /c/mobile/kjava if the midlet is installed in phone memory. Please make a backup of the file.
2. open the file using Hex editor.
3. according to the above listed offsets, set the value of the offsets to grant the prefered permission.
4. save the pat file and upload it back to the same location of the phone.
5. restart the phone to see the change.

(Note: This guide will not work on most of those custom-made firmwares. It is for retail firmware only)

Sponsors links:

7 comments:

10:49 AM, October 21, 2006 Anonymous said...

Just wanted to say, this guide was right on the money. My phone however is NOT. I sucessfully edited the permissions, restarted, then went through and checked, sure enough the permissions were there. Then, I started the app, and then sure enough, it went right back to being "ask only" WTF is this? something coded into the firmware or something? If you have any ideas, mail me: maples$at$cablerocket$dot$com.

12:07 PM, October 21, 2006 Yuet said...

It is the firmware. I have no solution for it.

7:07 AM, February 16, 2007 Anonymous said...

The pat files keep getting erased. I do not know why this is happening...

2:08 PM, February 16, 2007 Yuet said...

your firmware doesn't support it. you have to flash to other firmware such as ABR.

8:38 AM, February 27, 2007 funkngruvn888 said...

i cant find the pat files using p2k tools. how can i find them?

8:39 AM, February 27, 2007 funkngruvn888 said...

by the way fon is L7, firmware is r4513 ... eor..

2:27 PM, February 27, 2007 Yuet said...

what version of p2ktools? do u see /c/mobile/kjava?


yuetblog.blogspot.com Web