I have a solution for anyone on a 3UK KU990 who is having the “Java.Lang.SecurityException: Can’t access restricted API” problem when running a third party Java application. Three have basically crippled any ‘untrusted’ applications by preventing them from performing certain tasks. In order to fix this you need to manually edit the h3g.pol file located in LGAPPS/Media/Java/Certs – the problem with this is that h3g.pol is a core OS file… so we have to essentially cripple the phone temporarily in order to edit the file.
*Warning* I’ve not really considered the impact that implementing this hack will have on any other app’s – this is simply how I managed to do it. Modifying your phones configuration in this way can SERIOUSLY frack up your phone if you don’t know what you are doing. Three will not replace your phone or repair it for free if you bugger this up
- Download EFS – its what we will use to connect to the handset to steal a copy of the OS
- Create a folder on your C:\ drive called LGBACKUP
- Run EFS and click on the file explorer item on the menu bar.
- From the new window tick the box next to the listing for your phone and click connect. The list refreshes every few seconds so you have about 5 seconds to select the phone and click Connect.
- EFS will now connect to your phone and you will see the following window. In the top pane are the files located on your phone. The bottom pane shows files on your computer.
- Using the bottom pane navigate to your C:\LGBACKUP folder
- In the top pane find the folder called LGAPPS - this contains your phones operating system. Right click and Rename the LGAPPS folder to TOTO. Your phone will probably display a yellow screen because it thinks its just been raped.
- Right click again and click Refresh. LGAPPS may re-appear above TOTO - don’t worry.
- Navigate to TOTO/Media/Java/Certs/ and find h3g.pol. Right click h3g.pol and click Read. This will copy the file to the C:\LGBACKUP folder you selected in the bottom pane
- Copy the h3g.pol from the C:\LGBACKUP folder to your desktop so you have a clean version to revert to if it all goes wrong. Don’t edit the copy you just placed on your desktop, only C:\LGBACKUP\h3g.pol should be edited. If you can’t be arsed making a backup then don’t expect me to help when it all goes wrong!
- Open C:\LGBACKUP\h3g.pol in Notepad and scroll to the bottom of the file where you should see this…
domain: untrusted
session(oneshot): network_access
session(oneshot): application_auto_invocation
session(oneshot): messaging
session(oneshot): local_connectivity
session(oneshot): multimedia_recording
session(oneshot): phone_call
session(oneshot): launch_midlet
- Paste this over the above in C:\LGBACKUP\h3g.pol…
domain: untrusted
blanket(oneshot): network_access
allow: application_auto_invocation
session(oneshot): messaging
allow: local_connectivity
allow: multimedia_recording
allow: read_user_data_access
allow: write_user_data_access
allow: file_connection
session(oneshot): phone_call
session(oneshot): h3g_info
session(oneshot): launch_midlet
- Note that this will allow ANY third party application total access to your phones file system so please be careful what you install!
- Right click on h3g.pol in the bottom pane on EFS and click Write. This will upload the file to your phone
- Right click TOTO, click Rename and change the folders name to LGAPPS then right click and select Refresh.
- Click the Disconnect button and select Yes when prompted to restart the phone.
- Delete and re-install the apps you are having problems with to reset thier permissions
- Done!
You should now be able to run any Java app you want! I used it to fix TrekBuddy and it works perfectly.




*MAJOR FLAW WITH THIS FIX*
THE FILE YOU RENAME TO TOTO IS NOT ORIGINALLY CALLED LGAPPS.IT IS LGAPP.IF YOU FOLLOW THE POST AND RENAME IT TO LGAPPS YOUR PHONE WILL REMANE WITH THE YELLOW SCREEN OF DEATH,HOWEVER IF YOU LLOG BAG IN WITH EFS AND SIMPLE RENAME THE FOLDER FROM LGAPPS TO LGAPP THEN REFRESH,AFTER YOU DISCONNECT,YOUR PHONE WILL REBOOT AS NORMAL AND ALL WILL BE FIXED.
Yes, sometimes it is called LGAPP and other times its LGAPPS depending on the opperator and firmware version. The important thing is that you rename it the same as it was originally.
PS STILL CAN’T GET THIRD PARTY APPS (MEDIA PLAYERS) TO ACCESS AMY MUSIC FILES ON MY HANDSET MEMORY OR EXTERNAL MEMORY,DOES NOT WORK,DON’T RECOMMEND TRYING.
1. Please don’t use all caps – it makes the internet sad.
2. I suspect you have edited the h3g.pol file incorrectly. Please bear in mind this fix only works for phones on the 3 network – on other networks the h3g.pol file will be called something else – you will have to work that one out yourself.
3. It worked perfectly for me – if it doesn’t for you then either something is different about your phone or you are doing it wrong.
fair enough, i AM on 3 network and my phone is branded for 3.i cut and paste your example above and have checked it and it is identical and i am not the only one that it has NOT worked for.and the original folder is called LGAPP(in capitals)not LGAPPS as you posted,if people follow this part of the post their phone will never reboot and you have used caps throughout your post so don’t be funny.good day.
If you could install third party apps already and they worked then you really didn’t need to use this guide. It was intended to allow users with a Three KU990 to allow apps without a certificate from H3G to run.
Clearly 3 have made some changes since I did it – I suggest you read up about java permissions and make the nessesary changes or revert to the backup you made of the pol file.