It's the former. It's OK to include some registration code in the source 
our partner uses to do the build. Do you know any details on how to include 
the JAR in their build?

Andre

On Monday, May 2, 2016 at 10:25:45 AM UTC-4, Dave Smith wrote:
>
> Andre -
>
> How did you plan to integrate the system service at runtime? Are you 
> injecting the code into system_server, or are you packaging the result 
> into a separate application process (a la the pattern used by the Bluetooth 
> and NFC services)? If the latter, the issue should be fairly 
> straightforward as you can just provide the APK and the final build can 
> include it using BUILD_PREBUILT. This is generally my preferred approach 
> to adding system services.
>
> If the former, that may be more difficult as there isn't a clean 
> separation between the code you are adding and the framework code that you 
> change. In this case, at least some of the code to register the service may 
> be need to be in the sources, while the service implementation itself could 
> be a JAR listed as a dependency in the makefile of framework core.
>
> Cheers,
> Dave Smith, PE
> @devunwired
>
> On 29 Apr 2016, at 17:18, Andre Zuban wrote:
>
> Hello!
>
> I know how to add another Android system service to the platform build
> when I do the final builds, but in a situation when some partners do
> the actual builds and produce the final FW I need to give them the
> service in a prebuilt form (I guess as a jar file) to be included into
> their platform build because I cannot give them the sources (for
> intellectual property reasons). How can I do that? I guess this should
> be easily achievable.
>
> Thanks,
> Andre
>
> -- 
> -- 
> You received this message because you are subscribed to the "Android 
> Building" mailing list.
> To post to this group, send email to [email protected] 
> <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
> ------------------------------
>
> You received this message because you are subscribed to the Google Groups 
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
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-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to