On Wed, Feb 23, 2011 at 2:16 AM, patrick Immling <[email protected]>wrote:

> Hi,
>
> I am trying to add a new security provider on Android.
>
> I know that to add this I need to first modify files:
>
> Security.java and/or security.properties in <android_sources>/libcore/
> security/src/main/java/java/security/
>

you don't need to modify those file, you can just add one at runtime with
Services.insertProviderAt if you like with in application. but yes, if you
are trying to make this a system wide provider you can change those.


> But where do you put the sources itself?
>

put them where ever you want. you could just build them as part of an app
and include them in an APK. if you want to make them system wide, then they
need to be on the classpath. in the current system, the harmony and android
providers are in core.jar but the BouncyCastleProvider moved to
bouncycastle.jar in gingerbread. but if you make a new jar, you need to
update the systemwide classpath. if you want them in an existing jar, look
at the Android.mk file for that jar and modify the source list to include
your files.

Do I need to use the jarsigner to sign the provider jar???
>

no

-bri

-- 
You received this message because you are subscribed to the Google Groups 
"Android Security Discussions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-security-discuss?hl=en.

Reply via email to