Alpay
Alpay

Reputation: 1368

Where to put keystore file in Android?

I am currently working on a project that involves ssl communication. So, I want to copy my bks file to the device' s internal memory and access it afterwards. I am using a specific library for communication and I have to provide the bks file' s full path as a parameter to this library. Where should I put this bks file? Into the raw or assets folder or somewhere else? From which uri can I access this file? (In windows I am giving it C:\keys\blah.bks, so I have to give a similar uri like /data/data/com.example.exampleapplication/my_app/blah.bks or something like this.) How is this achieved in Android system?

Thanks in advance

Upvotes: 2

Views: 1840

Answers (1)

CQM
CQM

Reputation: 44278

Store it in the assets folder of your app.

but consider encrypting it and letting your program decrypt it, since files in the assets folder are user accessible

Upvotes: 1

Related Questions