Hi Praveen,

Error in screenshot[1] can happen if you have already installed the system
app with a different signature or if your device is unavailable to adb.
Please do following and verify your device is viewable on adb.

Move to *~/Android/Sdk/platform-tools *and run *adb devices* and check if
your device is being listed.
If not, go to developer options and revoke USB debugging keys and reconnect
the device.
Now the device should be visible on the list. Then run *adb shell pm list
packages | grep 'wso2'* and see if the system app is already installed. If
then, uninstall it, try build and install the system app again.

Regards,
Malintha



On Mon, Oct 24, 2016 at 6:32 PM, Praveen J <
praveen.josephmasilam...@nexttechnosolutions.co.in> wrote:

> Hi Dev,
>
> Good Evening, Thanks for your response. We have tried your solution,
>
>
> You can get the correct android.jar file using the repository [2]
> <https://github.com/anggrayudi/android-hidden-api>. This contains
> the android.jar (unlocked hidden APIs) files for all SDK versions. Also,
> you might find the article [3]
> <http://wso2.com/library/articles/2016/07/article-advanced-handling-of-cope-android-devices-using-wso2-enterprise-mobility-manager/>
> helpful which describes Handling of COPE Android Devices.
>
>
> ​​
> I have attached the screen shots [1] and [2] for issues faced while
> building the system service application in android studio with custom
> android.jar file in the SDK path and the issues arise while installing
> application in the mobile it shows the application is already installed
> even for the first time and fails to uninstall the application.
>
>
> This is a JDK level issue. This happens because of JVM not trusting the
> certificates when installing signed jars. As a workaround to fix this
> issue, if you are using OpenJDK switch to Oracle JDK 1.7_79 and if you
> are using Oracle JDK already and version 1.7_80, downgrade it to 1.7_79.
> More information about this issue can be found at [1]
> <https://bugs.eclipse.org/bugs/show_bug.cgi?id=309059>.
>
>
> We have tried your above solution most of the build got success except
> distribution build please refer the attached screenshot[3] for your kind
> reference.
>
>
> Once yo correctly set up the work profile, the EMM Agent application
> automatically copied to the work profile. So you can uninstall the EMM
> Agent from your personal profile and proceed with the normal enrolling
> process with the EMM Agent that is in the work profile.
> Note that the work profile generation setup might fail because of the OS
> customizations that would have been done on some of the devices by the
> manufacturers.
>
>
> Regarding your above comments, Is there any alternate solution for OS
> customized devices?
>
> And one more, Is there any solution for the error while xml parshing when
> I start server using -DworkerNode for production? Please refer the
> screen[4]. Awaiting for your response.
>
>
> 23.10.2016, 20:11, "Madawa Soysa" <mada...@wso2.com>:
>
> Hi Praveen,
>
> Regarding your questions 3, 4 and 5,
>
> 3. This is a JDK level issue. This happens because of JVM not trusting the
> certificates when installing signed jars. As a workaround to fix this
> issue, if you are using OpenJDK switch to Oracle JDK 1.7_79 and if you
> are using Oracle JDK already and version 1.7_80, downgrade it to 1.7_79.
> More information about this issue can be found at [1]
> <https://bugs.eclipse.org/bugs/show_bug.cgi?id=309059>.
>
> 4. You can get the correct android.jar file using the repository [2]
> <https://github.com/anggrayudi/android-hidden-api>. This contains
> the android.jar (unlocked hidden APIs) files for all SDK versions. Also,
> you might find the article [3]
> <http://wso2.com/library/articles/2016/07/article-advanced-handling-of-cope-android-devices-using-wso2-enterprise-mobility-manager/>
> helpful which describes Handling of COPE Android Devices.
>
> 5. Once yo correctly set up the work profile, the EMM Agent application
> automatically copied to the work profile. So you can uninstall the EMM
> Agent from your personal profile and proceed with the normal enrolling
> process with the EMM Agent that is in the work profile.
>
> Note that the work profile generation setup might fail because of the OS
> customizations that would have been done on some of the devices by the
> manufacturers.
>
>
> [1] - https://bugs.eclipse.org/bugs/show_bug.cgi?id=309059
> [2] - https://github.com/anggrayudi/android-hidden-api
> [3] - http://wso2.com/library/articles/2016/07/article-
> advanced-handling-of-cope-android-devices-using-wso2-
> enterprise-mobility-manager/
>
> Regards,
> Madawa
>
> On Sat, Oct 22, 2016 at 3:20 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi All,
>
> Good day, Thanks for the response. Now MySQL connection works fine in
> 2.2.0 beta. And I need some clarifications and doubts which I have listed
> out below,
>
> 1. Please let me know the steps for WSO2 EMM 2.2.0 beta to Production,SSL
> certificate installation and I have faced some SSO login url redirect
> problem not opened (https://my_ip:9443/store) in mobile. So need some
> clear steps for EMM to production.
>
> 2. And I have faced some email configuration[link1] problem in emm. I have
> used WSO2 EMM 2.2.0 Beta version. For example first user received
> invitation email correctly but once again sent invitation email for another
> user I got error[1.png] in server console and continuously got same error
> when send invite to user. Please find the attached sceenshot for your
> reference..
>
> *link1:* https://docs.wso2.com/display/EMM220/General+Server+
> Configurations#GeneralServerConfigurations-WSO2EMMemailconfigurations
>
> 3. Regarding product-emm setup, I have followed the given urls which you
> have suggested. But I got error[2.png] in maven build MDM p2 profile gen.
> Please refer the screenshot for your refererence.
>
> 4. Regarding App silent install and uninstall, As per your suggestion we
> have followed the below url[link2]. But we have doubt in how to build the
> android.jar file from an Android Open Source Project
> <https://source.android.com/compatibility/cts/downloads.html> in this
> link each android version have four types of download link
>
> so please let me know the which link I have use to download. and let me
> know the steps to generate android.jar file using Andoid open source
> project. and one more how to get the system application signed via device
> vendor(firmware signing key)?
>
> *link2: *https://docs.wso2.com/display/EMM220/Integrating+the+
> Android+System+Service+Application#IntegratingtheAndroidSystemSer
> viceApplication-IntegratingWSO2EMMandthesystemserviceapplication
>
> 5. Regarding data containersation, As per your suggested url[link3] we
> understand the 5th step but after uninstall the agent app what i do? and
> also I have one doubt after create Agent work profile on mobile
> Setting->Account its shows Work profile isn't available yet [3.png].
>
> Please refer the screenshot for your kind reference.
>
> *link3: *https://docs.wso2.com/display/EMM210/Data+Containerization+
> for+Android+Device#DataContainerizationforAndroidDevice-
> ApplyingAndroiddeviceoperations
>
> Please clarify my doubts awaiting for your valuable response. Thank You!
>
>
>
> 22.10.2016, 00:06, "Lakshani Gamage" <laksh...@wso2.com>:
>
> Hi Praveen,
>
> Setting up EMM2.2.0 with MYSQL is a little bit different than EMM2.1.0.
> But docs for 2.2.0 are not finalized yet. We will update the docs soon.
>
> Until the docs are completed, please execute both
> <EMM_HOME>/dbscripts/apimgt/mysql.sql and 
> <EMM_HOME>/dbscripts/appmgt/mysql.sql
> scripts on your AM_DB. Then restart the server and try to publish an app
> again.
>
> Thanks,
> Lakshani.
>
> On Fri, Oct 21, 2016 at 7:56 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi All,
>
> Good day, Thanks for your help and support, Now device monitoring works
> fine after the suggested changes. And regarding latest version of WSO2 EMM
> 2.2.0 Beta version we have faced mysql error. As per document I have
> followed to setting up the MySQL.
>
> When I clicked 'Add app to publish' button I got 500 error[1.png] page and
> in terminal[2.png] WSO2AM_DB.APM_BUSINESS_OWNER doesn't exist issue. Please
> refer the attached screenshot. for your kind reference.
>
> And also let me know how to run the server automatically without manual
> control.
>
>
> 21.10.2016, 10:28, "Dilan Udara Ariyaratne" <dil...@wso2.com>:
>
> Hi Praveen,
>
> Have you set authorization attributes correctly as described in the docs
> [1].
> In default single server set up, you have to set following properties in
> either way in portal/configs/designer.json
>
> "authorization": {
>         "activeMethod": "oauth",
>         "methods": {
>             "oauth": {
>                 "attributes": {
>                     "idPServer": "https://localhost:9443/oauth2/token";,
> (or https://<your_ip>:9443/oauth2/token)
>                     "dynamicClientProperties": {
>                         "callbackUrl": "https://localhost:9443/portal";,
> (or https://<your_ip>:9443/portal)
>                         "clientName": "portal",
>                         "owner": "admin",
>                         "applicationType": "JaggeryApp",
>                         "grantType": "password refresh_token
> urn:ietf:params:oauth:grant-type:saml2-bearer",
>                         "saasApp": false,
>                         "dynamicClientRegistrationEndPoint": "
> https://localhost:9443/dynamic-client-web/register/";, (or https://
> <your_ip>:9443/dynamic-client-web/register/)
>                         "tokenScope": "Production"
>                     }
>                 }
>             }
>         }
>     }
>
> References:
> [1] https://docs.wso2.com/display/EMM220/General+Server+Configurations#
> GeneralServerConfigurations-EnablingDashboardServerCommunication
>
>
> Cheers,
> Dilan.
>
>
> *Dilan U. Ariyaratne*
> Senior Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>
>
> On Thu, Oct 20, 2016 at 5:15 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi All,
>
> I have checked the device monitoring using latest Beta 2.2.0. In dashboard
> EMM Analytics shows fine but device count and active inactive devices are
> not showing refer the screenshot for your kind reference.
>
> But I have entrolled device in MDM. So please guide me which step I have
> missed. and also refer the below link which i have refered.
>
> *URL:*
>
> https://docs.wso2.com/display/EMM220/General+Server+Configurations#
> GeneralServerConfigurations-EnablingDashboardServerCommunication
>
> 20.10.2016, 09:20, "Megala Uthayakumar" <meg...@wso2.com>:
>
> Hi Praveen,
>
> This is a known issue in EMM as per the jira [1]. It is fixed in the
> latest version. Can you try out the latest beta2 pack[2], to access the
> dashboard.
>
> [1] https://wso2.org/jira/browse/EMM-1523
> [2] https://github.com/wso2/product-emm/releases
>
> Thanks.
>
> Regards,
> Megala
>
> On Wed, Oct 19, 2016 at 5:45 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi All,
>
> Thank you for your quick response and support. Now I'm working on that
> based on your suggestion. if any doubts I will let you know.
>
> And one more clarification regarding dashboard server (
> https://<EMM_HOST>:<EMM_PORT>/portal) When i logged in portal there is no
> EMM Analytics Dashboard and for your info I also enbled the dasboard server
> communication.
>
> But I didn't get any result, Please refer the below links which i have
> referred and followed.
>
> https://docs.wso2.com/display/EMM210/Accessing+the+WSO2+EMM+
> Device+Monitoring+Dashboard
>
> https://docs.wso2.com/display/EMM210/Monitoring+Devices+via+the+Dashboard
>
> Please give some suggestion how to setup the dashboard server.
>
>
> 19.10.2016, 16:52, "Madawa Soysa" <mada...@wso2.com>:
>
> Hi Praveen,
>
> Regarding your last question, 5th step of the data containerization guide
> [1]
> <https://docs.wso2.com/display/EMM210/Data+Containerization+for+Android+Device#DataContainerizationforAndroidDevice-ApplyingAndroiddeviceoperations>
>  means
> that you can uninstall the agent installed in your personal profile.
>
> [1] - https://docs.wso2.com/display/EMM210/Data+
> Containerization+for+Android+Device#DataContainerizationforAndroidDevice-
> ApplyingAndroiddeviceoperations
>
> Regards,
> Madawa
>
> On Wed, Oct 19, 2016 at 3:35 PM, Rasika Perera <rasi...@wso2.com> wrote:
>
> Hi Praveen,
>
> It's great to hear that you started using WSO2 EMM. Please find inline
> comments below.
>
> Regarding to setup project-emm, Actually I already setup the project in
> IntelliJ IDE but i don't know how to run the product and debug so please
> guide me via steps how to setup the project and work with source code and
> finally built the product using Maven.
> We are using three repositories; CDMF and CDMF-plugins and Product EMM to
> build the product. Please refer [1] for additional details. You can debug
> the EMM server as per [3]. If you find any issue you can raise JIRAs on [2]
> and even you can fix and send us a PR to relevant repository.
>
> Then I need clarification regarding how to install and uninstall app
> silent using Application management? And we got some search result in stack
> overflow about that but they discussed about old version and i have
> mentioned the link below for your reference. So please give some suggestion
> how to achieve this.
> In order to get it work silent app install/uninstall you need to install
> WSO2 Android Agent as a System App. Please follow instructions on [4] to
> enable it.
>
> [1] https://docs.wso2.com/display/EMM220/Working+with+the+Source+Code
> [2] https://wso2.org/jira/projects/EMM/
> [3] https://dzone.com/articles/how-debug-wso2-carbon-kernel
> [4] https://docs.wso2.com/display/EMM220/Integrating+
> the+Android+System+Service+Application
>
>
> On Wed, Oct 19, 2016 at 2:42 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi Sir/Madam,
>
> Good day, I'm using WSO2 EMM 2.1.0 and I need to customise the source code
> So I need your support and i have some doubts and clarification which i
> have listed out below.
>
> Regarding to setup project-emm, Actually I already setup the project in
> IntelliJ IDE but i don't know how to run the product and debug so please
> guide me via steps how to setup the project and work with source code and
> finally built the product using Maven.
>
> Then I need clarification regarding how to install and uninstall app
> silent using Application management? And we got some search result in stack
> overflow about that but they discussed about old version and i have
> mentioned the link below for your reference. So please give some suggestion
> how to achieve this.
>
> http://stackoverflow.com/questions/26008471/application-management-in-
> wso2-emm
>
> And finally data containerisation in Android lollipop using Android for
> work. And I have followed the below link instructions.
>
> https://docs.wso2.com/display/EMM210/Data+Containerization+
> for+Android+Device#DataContainerizationforAndroidDevice-
> ApplyingAndroiddeviceoperations
>
> In device registration section I'm stuck with 5th step after uninstall the
> app what i do further? So please guide me. Awaiting for your response. And
> let me know if any comments.
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> <http://wso2.com/signature>
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
>
> *Madawa Soysa* / Software Engineer
> mada...@wso2.com / +94714616050
>
> *WSO2 Inc.*
> lean.enterprise.middleware
>
>   <https://wso2.com/signature>
>
>
>
>
>
>
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>
>
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer, WSO2*
>
> *Mobile : +94 71 5478184 <%2B94%20%280%29%20773%20451194>*
> *Blog : http://lakshanigamage.blogspot.com/
> <http://lakshanigamage.blogspot.com/>*
>
>
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
>
> *Madawa Soysa* / Software Engineer
> mada...@wso2.com / +94714616050
>
> *WSO2 Inc.*
> lean.enterprise.middleware
>
>   <https://wso2.com/signature>
>
>
>
>
>
>
>
> --
> *Thanks & Regards,*
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com>*
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malintha Fernando
Software Engineer
WSO2 Inc. | http://wso2.com
Mobile : +94 718874922
Blog : http://blog.malintha.org

Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to