Samsung u740 (Dual Flip) Hacking/Applications
Network Nag in downloaded Applications (Google Maps, etc)
Disclaimer: Any of the hacks on this site could damage your phone and possibly void your warranty, not to mention is possibly a terms of service dealbreaker for your mobile carrier
<< Back to main index
Okay, so this is where you could really start fucking up your phone, so dont say I didn't warn you. Untrusted (aka third party) mobile apps by default dont get very nice permissions, which makes it difficult for apps such as google maps, or email readers to access the network... you'd think the phone was running VISTA or something, asking permission every 3 seconds to allow/deny access to the app to the network.. so lets get rid of that stupid nagging question!
Go download QPST, no its not supposed to be free, and no its not supposed to be available to the public. Google/BitTorrent was invented for a reason :)
Okay, so you have QPST 2.7 Build 215 installed? great...
Fire up the "QPST Configuration" application.
Click on the "Ports" tab
If you dont see the COM port listed that your phone is on, click on the "Add New Port.." button in the bottom right to add it
Now you should see your COM port listed, as well as the Phone, mine says "SURF6500-ZRF6500 (N3) (ESN here)"
Excellent, now we're ready for some fun. From the "Start Clients" menu at the top, choose "EFS Explorer", this will launch the explorer application and a window will pop up for you to choose your phone AND enter the SPC (see Obtaining your Phone's SPC if you dont know what your SPC is)
So choose your phone, type in your SPC, and click OK.. a window will come up "Please wait" while it retreives the directory and file information from the phone's embedded file system... it should take about 20 seconds, maybe longer, maybe less, something like that.
Approach 1 - modifying permissions for a specific application
When the dialog goes away, you're ready to start browsing the phone... what we need is in the folder /brew/mod/obione/jas/index, so browse to that. On the right hand side you should see a bunch of files... "1.txt", "2.txt", "3.txt" ... etc. Each of these files represents the settings for an application that exists on your phone. Some of them will be built in apps, others will be downloaded ones. The ones you downloaded are probably the higher numbered ones. Select all the numbered files, and drag them to your Desktop, or some folder somewhere, wherever the heck you want to put them.
Now, minimize that QPST EFS Explorer, and start opening the files that you downloaded locally in NOTEPAD or whatever editor you want to use (im a fan of VIM) until you find the one you want (the name will be 7 or so rows up from the bottom of the file, with a header "NAME:")
Okay, so you got the file, great, now look up near the top, a few lines down, theres a line that says "PERM", this is where the fun begins! It probably looks something like:
Lets call it "key"="val" pairs for the sake of labelling everything something...
The different Key's (13 of them, 0 through 12) represent a different permission on the phone. Here is the list:
0: Network access
1: Message receive
2: Message Deliver
3: Pim Read
4: Pim Write
5: Application Self Start
11: Device Info
The different Val's (3 of them, 0 through 2) are the values that can be assigned to each permission. Here's the list:
0: No access
1: Ask for access
2: Grant access without asking
Allright, so armed with that knowledge, we can see the default for Google Maps is "0=1" (Network access = Ask for access). All we need to do is change this to "0=2" (Network access = Grant access without asking).
So now we have
Go ahead and save that file, and exit your editor
Now remember that QPST EFS Explorer that we minimized? bring that puppy back up (hopefully you're still in /brew/mod/obione/jas/index)
Drag the file from your local system, back onto the existing one on the phone. It will prompt you to overwrite the existing one, just hit yes.
Now, shutdown all of QPST, unplug your phone, turn it OFF and back ON again, and go ahead and launch your favourite app without the annoying nag asking for permission to do everything
Approach 2 - modifying permissions for a all applications
I have not gotten this method to work, it seems that _policy.txt is replaced/recreated by the phone back to its default every time the phone boots
Use the same approach as 1 above, but instead of editing the #.txt file for the specific application, modify the brew/mod/obione/_policy.txt file. This will set permissions for all applications on the phone. Copy all lines from the "domain: Bell-Trust" section into "domain: untrusted" to give all untrusted apps full access to everything.
Last Updated: December 19, 2007 @ 11PM
Email: contact <at> u740.ca