Hi Jacky,

This is due to the recent changes for the fixing the issue with calling
system method without qualified user. This API change in the WSO2-Agent
requires access to hidden APIs(those APIs are available at runtime).

Hence, you need to replace your SDK; android.jar file as in
https://github.com/anggrayudi/android-hidden-api/tree/master/android-23.

Thanks,
Rasika

On Sat, Aug 27, 2016 at 9:35 AM, Jacky.Lam <[email protected]> wrote:

> Dear all,
>
>
>
> Sorry if it is re-post.
>
>
>
> Currently, I try to follow the instruction on
> https://docs.wso2.com/display/EMM201/White+Labeling+WSO2+EMM+Android+Agent
> to build my own wso2 agent for Android.
>
> I am using Android Studio 2.1.3 on Windows 7. The document seems a bit
> outdate as it asks me to open the project under <EMM_SOURCE_HOME>/modules/
> mobile-agent/android.
>
> But I found that there are two separate projects under the that. One is
> client and one is system-service. I try to build both of them, but both of
> them failed.
>
>
>
> The build error for client is like this:
>
>
>
> C:\shared\source\product-mdm\modules\mobile-agents\android\
> client\client\src\main\java\org\wso2\emm\agent\services\
> NetworkConnectedReceiver.java
> Error:(42, 28) error: cannot find symbol method startServiceAsUser(Intent,
> UserHandle)
> C:\shared\source\product-mdm\modules\mobile-agents\android\
> client\client\src\main\java\org\wso2\emm\agent\utils\CommonUtils.java
> Error:(432, 11) error: cannot find symbol method startServiceAsUser(Intent,
> UserHandle)
> Error:(445, 11) error: cannot find symbol method startServiceAsUser(Intent,
> UserHandle)
> Note: Some input files use or override a deprecated API.
>
>
>
> Build error for system-service is even more, but also complaining
> startServiceAsUser() is not existing.
>
>
>
> Am I downloading the correct source and following the right instruction to
> build? Please help.
>
>
>
> Thanks.
>
> Jacky
>
>
> <http://bbpos.com>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With Regards,

*Rasika Perera*
Software Engineer
LinkedIn: http://lk.linkedin.com/in/rasika90

[image: wso2-signature-general.png] <https://wso2.com/signature>

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to