microsoftconnect / intune-app-wrapping-tool-android

Use the Intune App Wrapping Tool for Android to enable Android apps to be managed by Microsoft Intune
28 stars 11 forks source link

Package successfully login no response #76

Closed 163shuai closed 1 year ago

163shuai commented 1 year ago

Apps that are distributed through the intune background after intune wrapping are stuck on the login page and do not display errors

Steps to reproduce the behavior: Distribution of the download wrapper Apk via intune backend Start the program login account password, and then card master

Expected behavior: Can log in

Smartphones Device: [GalaxyNode10,HUAWEI YAL-AL00] OS: [android 10 ]

Response version minSdkVersion 23 targetSdkVersion 30

Intune app wrapping tool Version of the wrapper -(1.0.3610.6- latest one) Platform is your app based in (Java - android native) Package successfully login no response

Intune app wrapping tool Steps

STEP 1 ------------------------------------------------------------------------->

Open windows powershell

run following--> Import-Module "C:\Program Files (x86)\Microsoft Intune Mobile Application Management\Android\App Wrapping Tool\IntuneAppWrappingTool.psm1"

STEP 2 ------------------------------------------------------------------------->

invoke-AppWrappingTool -InputPath C:\intne\testApp.apk -OutputPath C:\intune\testApp_wrapped-unsigned.apk -Verbose

STEP 3 ------------------------------------------------------------------------->

Go to build-tools path D:\Android\Sdk\build-tools\30.0.3 , open cmd --->

zipalign -v -p 4 "C:\intune\testApp_wrapped-unsigned.apk" "C:\intune\testApp_wrapped-unsigned-aligned.apk"

STEP 4 ------------------------------------------------------------------------->

apksigner sign --ks "C:\intune\test.jks" -ks-pass pass:test --ks-key-alias test --out "C:\intune\testApp_wrapped-signed.apk" "C:\intune\testApp_wrapped-unsigned-aligned.apk"

bannus commented 1 year ago

Hi @163shuai, thanks for the report.

  1. Can you confirm that your app works as expected before applying the App Wrapping Tool?
  2. Can you share more information about why you believe this to be caused by the App Wrapping Tool? Are there any runtime logs that point to an issue in the wrapping process?
  3. Are you able to share your app or a simple project that can reproduce this issue?
FAngelvs commented 1 year ago

@bannus I might be having the same issue.

Our app works fine when unwrapped, but wrapped one fails to run.

Start an app Email and password is being requested with a usual MS login screen I enter my credentials Form is posted to the server and mobile phone displays full screen loading indicator. Blue one first and than it switches to green one. And it just endlessly shows that loading indicator like on a screenshot below.

image

I were able to install this same app on my Android 10 device today and after that sign in screen, I were getting screen like on a screenshot below. Later, I reinstalled Company Portal and the app itself and tried to run it again. Got the issue described above

Screenshot 2023-01-20 170231
163shuai commented 1 year ago

@bannus App Wrapping Tool is OK until it is updated Application download address : https://www.pgyer.com/Z0p7 The application is uploaded to the intune platform

wapping-log app-log.txt

meghandaly commented 1 year ago

@FAngelvs and @163shuai Can y'all do us a favor and collect the Company Portal logs while reproducing the observed behavior?

163shuai commented 1 year ago

@bannus The app-log.txt in the comments above is the log

rygo-msft commented 1 year ago

Hi @163shuai, while logcat logs are sometimes helpful, they are usually insufficient for investigating these issues. Can you please share the logs from the Company Portal app as Meghan requested?

Thanks

collect the Company Portal logs

FAngelvs commented 1 year ago

As it appeared, this looks to be resolved for us now. Our users got the latest version of the Company Portal app and everything works fine now.

163shuai commented 1 year ago

@rygo-msft I still can't log in here. Please check

log.zip

rygo-msft commented 1 year ago

@163shuai the logs indicate that your app has not been targeted for policy. Intune wrapped apps must be targeted for APP policy in order to use. https://learn.microsoft.com/en-us/mem/intune/apps/app-protection-policies

163shuai commented 1 year ago

After policy binding I got the latest version of the company portal application and everything is fine now.