I want to access the host filesystem from my Java Card, I have been through the java.io and javacardx.external package definitions however it has been of little help. My goal is to check whether a certain path on the host device (Android Phone) is a valid dir or not.
How to access the host filesystem from Java Card API
532 views Asked by User3 At
1
There are 1 answers
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in JAVACARD
- How to return a slice in Java
- Is it possible Java Card supports NIO,like event-driven, reactor
- How do I read EF.PLMNsel?
- Can't install .cap file on NXP P71D321
- How can I upload a SIM applet through OTA
- How to communicate programmatically with the JCOP simulator, how to programmatically send APDUs to a JCOP simulator?
- Problem Loading Signed CAP file directly to Supplementary Security Domain
- an error occurred while building a Java Card project in Eclipse javax/xml/bind/JAXBException
- Bitcoin Transaction signing using Javacard
- Gemalto SmartCard Get status issue
- How to use APDU I/O API in Eclipse
- InitialiseSecureChannel error during profile package installation on an eUICC
- Why euicc manager get NO_SUCH_ELEMENT aka errcode 3?
- Java Card Eclipse Plug-in: APDU I/O API is hanging on powerUp()
- What are the correct steps to have a supplementary security domain with DAP verification?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The code in Java Card is run on the SIM, the SIM provides a (security) related service to the phone, not the other way around. There are no direct methods for reading data from the host filesystem to the SIM.
To get the file system information you would have to encode such a service in your host and use it to provide the data to the SIM card (which obviously must be programmed to request and / or receive the information).
There are ways of requesting information from the handset profile, but those do not extend to any possible host file systems. You can find the related constants in the
MEProfilewhich is part of the on card SIM API. These pieces of information can be requested through theProactiveHandlerinterface.The above also shows a way how to retrieve information from the host, by reversing the half-duplex APDU communication protocol, which only handles commands initiated by the terminal.