Discussion:
[android-porting] Port single module from AOSP to Samsung tablet
j***@gmail.com
2018-07-16 06:33:58 UTC
Permalink
Hey,
How can I port single module (assume libnfc-nci) to a spesific device?

I don't want to compile and port the whole AOSP for my device and there
isn't unofficial ROM for my device that i can compile and take from him
the .so's that I need.

can someone please refer me to how it can be done? (what do I need for
this? do i need to link the compile process to a pre-built kernel of my ROM
? what are the necessary steps for this porting)

thank you
jack
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Glenn Kasten
2018-07-17 15:09:49 UTC
Permalink
Unfortunately, that approach rarely works. You almost always need to
re-build
from the original source code tree, modified with specific changes to your
particular
library. Sorry!
Post by j***@gmail.com
Hey,
How can I port single module (assume libnfc-nci) to a spesific device?
I don't want to compile and port the whole AOSP for my device and there
isn't unofficial ROM for my device that i can compile and take from him
the .so's that I need.
can someone please refer me to how it can be done? (what do I need for
this? do i need to link the compile process to a pre-built kernel of my ROM
? what are the necessary steps for this porting)
thank you
jack
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Satish Patel
2018-07-17 04:09:13 UTC
Permalink
Hi,
Post by j***@gmail.com
Hey,
How can I port single module (assume libnfc-nci) to a spesific device?
I don't want to compile and port the whole AOSP for my device and there
isn't unofficial ROM for my device that i can compile and take from him
the .so's that I need.
​In this case you can build your module and put it under system.img. There
is a way to pack and unpack system.img

Also, your module will not be accessible through regular system service. So
you might need to write your own daemon for the same and if at all your ROM
runs with selinux enable, it might give your further trouble. You need to
tweak sepolicy so that access to your module is allowed from user space
app.​


can someone please refer me to how it can be done? (what do I need for
Post by j***@gmail.com
this? do i need to link the compile process to a pre-built kernel of my ROM
? what are the necessary steps for this porting)
thank you
jack
--
--
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google Groups
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
Regards,
satish patel
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...