Join Today
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2007
    Location
    Undisclosed
    Posts
    826

    Default java permission to read the memory card..

    how to give permission to java application to access the memory card files.. pls help me

  2. #2
    Join Date
    Aug 2007
    Location
    Etawah, U.P., India
    Posts
    226

    Default

    Taken from alpha43's sticky"guide to modding your E6"

    D. HOW TO CHANGE AN APPLICATION'S PERMISSIONS

    Many apps (=midlet) need to be able to read or write files to the phone's directories, however, the MID2.0 security model was designed so that only signed midlets are able to have unlimited access to potentially dangerous operations such as filesystem access, connection with internet, sending SMS etc. If a midlet is not signed, then access is disabled (which means that when you run the app you are not even shown a File Open" menu option). In order to get a signed midlet, the developer has had to have purchased a security certificate from Motorola, which many developers do not want to do (especially for free apps) - so if you install these midlets on the E6 they will not appear to work properly.

    However there is a way to overcome this. Every app has a registry.txt file associated with it that can be edited to give the app the needed permission. If you install an app and it is not able to open/read/write files correctly then try the following. Some apps that you need to do this for to get them working correctly are Quicknotes, Minipauker, Trekbuddy, cTunes and Anyview.

    Here are the instructions:[/list]Copy the jar file to your phone
    Tap on the file to install it and install it on the SD card (important!)
    Plug the phone into the PC
    Using windows explorer (USB Storage mode) navigate to \.system\java\DownloadApps\MIDletXXXX on your SD card where MIDletXXXX is the last directory in DownloadApps in alphabetic ascending order.
    Make a copy of the file registry.txt (in case you need to recover original file)
    Edit the file registry.txt with a editor compatible with unix (eg wordpad). Do not use MS Word or Notepad! (Be sure the file has a line saying: Jar-URL: appname.jar - if not, you are in the wrong directory)
    Change the values to these ones
    - DRM-Mode: Allowed
    - Is-Trusted: 1
    - Domain: Manufacturer
    so that it looks like the code below.
    Save the file and disconnect from PC
    Reboot the phone - the app should now be able to read and write files.
    Code:
    Jar-Path: /mmc/mmca1/.system/java/DownloadApps/MIDlet20006/Files/Minipauker.jar
    Jad-Path: /mmc/mmca1/.system/java/DownloadApps/MIDlet20006/Files/Minipauker.jad
    Perm-Path: /mmc/mmca1/.system/java/DownloadApps/MIDlet20006/permfile.txt
    Suite-Icon: /mmc/mmca1/.system/java/DownloadApps/MIDlet20006/Files/MIDlet-1.png
    DRM-Mode: Allowed
    Is-Trusted: 1
    Jar-URL: Minipauker.jar
    Description:
    Domain: Manufacturer
    Signer-Name:
    Mot-JavaVM-Heapsize: 0
    Delete-Notify:
    Num-MIDlets: 1
    MIDlet-1: j2mesync, /mmc/mmca1/.system/java/DownloadApps/MIDlet20006/Files/MIDlet-1.png, de.ohli.Minipauker.Minipauker.
    After this the app should be able to read/write files correctly.
    There is an app called "java hacker by Dedreks" to make things easy too.

    Try reading all information or performing a search before posting a thread. Most of the time the info one is looking for is already there.

  3. #3
    Join Date
    Mar 2008
    Location
    God's own Country, INDIA.
    Posts
    370

    Default

    You can also use any of the available java hackers.
    I liked Jar Delegate and Eakrin's Java Domain Changer.

    Java Hacker
    http://www.motorolafans.com/forums/a...va-hacker.html

    Jar Delegate
    http://www.motorolafans.com/forums/e...ons-cnfox.html

    Eakrin's Java Domain Changer
    http://www.motorolafans.com/forums/d...-a1200-e6.html


 
+ Reply to Thread

Similar Threads

  1. how to transfer java app frm phone memory to memory card?
    By osmanrokr in forum E6 General Chat
    Replies: 0
    Last Post: 10-28-2008, 01:07 PM
  2. my e6 don't read memory card
    By RfA in forum E6 General Chat
    Replies: 3
    Last Post: 10-14-2008, 12:05 PM
  3. Replies: 7
    Last Post: 03-29-2008, 11:59 PM
  4. Help: Phone can not read SD card. Get "Memory card Unavailable"
    By julioszabo in forum A1200 General Chat
    Replies: 9
    Last Post: 02-28-2008, 12:49 AM
  5. HELP: Memory card not being read all the time
    By tmulhearn in forum E6 General Chat
    Replies: 14
    Last Post: 12-06-2007, 05:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1