You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Karl Pauls (JIRA)" <ji...@apache.org> on 2018/08/22 10:06:00 UTC

[jira] [Commented] (FELIX-5913) Felix not working with Android anymore

    [ https://issues.apache.org/jira/browse/FELIX-5913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16588652#comment-16588652 ] 

Karl Pauls commented on FELIX-5913:
-----------------------------------

[~tom@phinneyridge.com], yes, that is correct. We removed android support in FELIX-5828 for now. The main reason is that I don't have the bandwidth to rework it and it seems that not only DexFile is deprecated but alas, it isn't even working in newer versions of Android anymore. 

As I pointed out in FELIX-5828, I think it should be possible to reimplement Android support properly using a PathClassloader. It would basically entail to add the bundle content as well as all bundle classpath contents to a pathclassloader (and probably all matching native libs as well) and then use the PathClassloader instead of the BundleClassloader. Alas, I will not have the time to play around with that (at least for now). 

That said, I'm totally in favour to add something like this again. Would you be interested in working on it?

> Felix not working with Android anymore
> --------------------------------------
>
>                 Key: FELIX-5913
>                 URL: https://issues.apache.org/jira/browse/FELIX-5913
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-6.0.0, framework-6.0.1
>            Reporter: Tom Rutchik
>            Priority: Major
>         Attachments: BundleWiringImpl.java
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The lastest 6.0.0 and 6.0.1 release no longer works on Android.
> The code form the 5.6.10 version necessary to make it work was not ported into these versions.
> Some code needs to be added to the class BundleWiringImpl class to allow for android support. All of the code necessary to due that can be found in the 5.6.10 version.
> I've added the code and have tested it and it's working fine again.  I've attached an implementation of BundleWiringImpl that works with android. It's basically the 6.0.1 implementation with the extra code from 5.6.10.  You should be able to do a file diff on the 6.0.1 to see where I had to add the missing code.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)