Loading Modules into Android phones

by perumal316 » Thu, 12 Aug 2010 01:55:57 GMT


Sponsored Links
 Hi All,

I am wondering whether it is possible to load a module into an Android
phone.

Is Module Loading option disabled for all phones by default?

It is disabled for emulator, ADP1 but I have not checked with phones
bought from telcos etc?

Anyone has any experience regarding this?

Thanks and Regards,
Perumal

-- 



Loading Modules into Android phones

by Danke Xie » Thu, 12 Aug 2010 04:18:43 GMT


 In my opinion, you should be able to recompile the kernel with module
support enabled, and then you will be able to load a module into
android. There doesn't seem to be a reason why the kernel cannot
support modules, though it's likely that some existing drivers might
not work as modules themselves.




-- 


Sponsored Links


Loading Modules into Android phones

by perumal316 » Thu, 12 Aug 2010 04:22:37 GMT


 Yes,

But in order for me to use the new compiled kernel the OS have to be
unlocked like in Developer phones or in emulator. How do load modules
into those locked phones (like those bought from telcos)?

Regards,
Perumal





-- 



Loading Modules into Android phones

by Danke Xie » Thu, 12 Aug 2010 04:34:42 GMT


 I can't think of a way to load a module into a kernel that doesn't
support it... are there userspace versions of these drivers?






-- 



Loading Modules into Android phones

by perumal316 » Thu, 12 Aug 2010 07:14:26 GMT


 Hi Danke,

I have no idea whether such a thing exists or can be done. Hopefully
an someone here can enlighten us with an answer.

Regards,
Perumal







-- 



Loading Modules into Android phones

by perumal316 » Thu, 12 Aug 2010 07:15:38 GMT


 Hi Danke,

I have no idea whether such a thing exists or can be done. Hopefully
someone here can enlighten us with an answer.

Regards,
Perumal







-- 



Other Threads

1. How to best maintain two different versions of the same app?

I've suggested using Eclipse project dependency, but haven't whether or not
it works for Android projects.




Hi,

this seems to be a very basic need, but googling it I got the impression
that is not easily or elegantly solvable.

The requirement is totally simple: I want to have a lite and pro version of
an app. There is a little bit of difference between those two apps, but they
are 99% identically.
Unfortunately it seems that the best choice is to really treat this as two
projects that are one and the same and copy over the source code and assets
from one to the other. The Android Manifest file must be different, because
the Android Market - for some reason - makes the implementation's package
name the ID.

Working around this ID issue the straight forward approach would be to have
a third project with the common code that exports its code, libraries and in
a best case scenario also the ressources to the other two objects.
Unfortunately this doesn't work. Only the actual Android projects generate
the R.class and so the common project would need to be dependent on it,
which would make it a cycle ;(

Am I thinking too complicated? Do I miss the obvious?

Cheers,
Mariano

--

2. Bouncycastle encryption algorithms and android

I'm trying to use BouncyCastle with android to implement ECDH and EL
Gamal. I've added the bouncycastle jar file (bcprov-jdk16-144.jar) and
written some code that works with my computers jvm however when I try
and port it to my android application it throws:


java.security.NoSuchAlgorithmException: KeyPairGenerator ECDH
implementation not found


A sample of the code is:


Security.addProvider(new
org.bouncycastle.jce.provider.BouncyCastleProvider());

java.security.KeyPairGenerator keyGen =
org.bouncycastle.jce.provider.asymmetric.ec.KeyPairGenerator.getInstance
("ECDH", "BC");
ECGenParameterSpec ecSpec = new ECGenParameterSpec("prime192v1");

keyGen.initialize(ecSpec, SecureRandom.getInstance("SHA1PRNG"));


KeyPair pair = keyGen.generateKeyPair();
PublicKey pubk = pair.getPublic();
PrivateKey prik = pair.getPrivate();


I then wrote a simple program to see what encryption algorithms are
available and ran it on my android emulator and on my computers jvm
the code was:

Set<Provider.Service> rar = new
org.bouncycastle.jce.provider.BouncyCastleProvider().getServices();
    Iterator<Provider.Service> ir = rar.iterator();
    while(ir.hasNext())
        System.out.println(ir.next().getAlgorithm());



On android I do not get any of the EC algorithms while ran normally on
my computer it's fine.

I'm also getting the following two errors when compiling for a lot of
the bouncy castle classes:

01-07 17:17:42.548: INFO/dalvikvm(1054): DexOpt: not resolving
ambiguous class 'Lorg/bouncycastle/asn1/ASN1Encodable;'

01-07 17:17:42.548: DEBUG/dalvikvm(1054): DexOpt: not verifying 'Lorg/
bouncycastle/asn1/ess/OtherSigningCertificate;': multiple definitions



One method I tried which has not worked is:

I took the bouncycastle source code and made a new jar with the
package name changed so that I wouldn't get the DexOpt errors, I also
added android.jar before creating the jar so that I wouldn't get the
"Conversion to Dalvik format failed: Unable to execute dex: null"
error when building.

This removed the DexOpt errors and when I ran the code to see what
cryptographic algorithms are allowed it said that El Gamal and ECDH
are available but I still get the same errors and exceptions thrown
when trying my sample code.


What am I doing wrong?

3. Edinburgh design agency looking for local Android Developers

4. Intent Call Action

5. Enhancement to Emulator

6. Android icon sometimes open new app sometimes brings up old

7. Back ground of List View