Closed sanjog152 closed 7 years ago
@sanjog152 can you email the .apk to olivia.dang@microsoft.com? We will look into your issue.
@oydang This issue has been resolved. The problem was with APK itself.
1- I have created APK file using Android Studio. One file is release.apk and another is android-release-unsigned.apk. 2- This error I got when I was tried to wrap release.apk which is a signed APK. 3- This problem has been solved by wrapping android-release-unsigned.apk with AWT and wrapped version of apk produced successfully.
Don't wrap a signed APK with AWT it will fail. Always wrap with your android-release-unsigned.apk.
App crashes in device after deployment without giving any error message. For that one I will open another issue.
Sorry @oydang I cant share that apk file with you as my company policy doesn't allow me to do the same.
Hi @sanjog152 that should not be happening. The App Wrapping Tool should be able to wrap a signed .apk and overwrite the first signature.
When wrapping the signed apk, can you attach or email me the verbose log file that gets saved to the temp directory?
Not working for signed APK. I already sent my apk file to you. @oydang Do you find any work around?
@oydang I am waiting for the solution.
@sanjog152 I have not received an email from you with the .apk. Please resend to olivia.dang@microsoft.com or msintuneappsdk@microsoft.com.
@oydang @msintuneappsdk sent you one new mail from sanjog@wizergos.com email ID. Please check (spam folder as well) and let me know.
Error Message Wrapping: D:\Temp\Client\NBC\platforms\android\build\outputs\apk\android-universal-release-unsigned.apk Exception in thread "main" java.lang.RuntimeException: AppWrapping failed Failed to package app. com.microsoft.intune.mam.apppackager.utils.AppPackagerException: Failed to load app resource table. com.microsoft.intune.mam.apppackager.utils.ResourceUtils.loadResourceTable(ResourceUtils.java:161) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.mergeResources(ResourceUtils.java:101) com.microsoft.intune.mam.apppackager.v2.V2WrapperAgent.wrapResources(V2WrapperAgent.java:94) com.microsoft.intune.mam.apppackager.AbstractWrapperAgent.wrap(AbstractWrapperAgent.java:68) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:129) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:191) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:54) brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Linh\AppData\Local\Temp\brut_util_Jar_7824778085145360203.tmp, p, --forced-package-id, 127, --rename-manifest-package, com.microsoft.intune.mam, -F, C:\Users\Linh\AppData\Local\Temp\APKTOOL1393019471524826794.tmp, -0, arsc, -I, C:\Users\Linh\AppData\Local\Temp\IntuneAppWrappingTool-1955788519068459418\framework\1.apk, -S, C:\Users\Linh\AppData\Local\Temp\IntuneAppWrappingTool-1955788519068459418\sourceApk\res, -M, C:\Users\Linh\AppData\Local\Temp\IntuneAppWrappingTool-1955788519068459418\sourceApk\AndroidManifest.xml] brut.androlib.Androlib.buildResourcesFull(Androlib.java:465) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.loadResourceTable(ResourceUtils.java:156) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.mergeResources(ResourceUtils.java:101) com.microsoft.intune.mam.apppackager.v2.V2WrapperAgent.wrapResources(V2WrapperAgent.java:94) com.microsoft.intune.mam.apppackager.AbstractWrapperAgent.wrap(AbstractWrapperAgent.java:68) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:129) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:191) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:54) brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Linh\AppData\Local\Temp\brut_util_Jar_7824778085145360203.tmp, p, --forced-package-id, 127, --rename-manifest-package, com.microsoft.intune.mam, -F, C:\Users\Linh\AppData\Local\Temp\APKTOOL1393019471524826794.tmp, -0, arsc, -I, C:\Users\Linh\AppData\Local\Temp\IntuneAppWrappingTool-1955788519068459418\framework\1.apk, -S, C:\Users\Linh\AppData\Local\Temp\IntuneAppWrappingTool-1955788519068459418\sourceApk\res, -M, C:\Users\Linh\AppData\Local\Temp\IntuneAppWrappingTool-1955788519068459418\sourceApk\AndroidManifest.xml] brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425) brut.androlib.Androlib.buildResourcesFull(Androlib.java:451) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.loadResourceTable(ResourceUtils.java:156) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.mergeResources(ResourceUtils.java:101) com.microsoft.intune.mam.apppackager.v2.V2WrapperAgent.wrapResources(V2WrapperAgent.java:94) com.microsoft.intune.mam.apppackager.AbstractWrapperAgent.wrap(AbstractWrapperAgent.java:68) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:129) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:191) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:54) brut.common.BrutException: could not exec command: [C:\Users\Linh\AppData\Local\Temp\brut_util_Jar_7824778085145360203.tmp, p, --forced-package-id, 127, --rename-manifest-package, com.microsoft.intune.mam, -F, C:\Users\Linh\AppData\Local\Temp\APKTOOL1393019471524826794.tmp, -0, arsc, -I, C:\Users\Linh\AppData\Local\Temp\IntuneAppWrappingTool-1955788519068459418\framework\1.apk, -S, C:\Users\Linh\AppData\Local\Temp\IntuneAppWrappingTool-1955788519068459418\sourceApk\res, -M, C:\Users\Linh\AppData\Local\Temp\IntuneAppWrappingTool-1955788519068459418\sourceApk\AndroidManifest.xml] brut.util.OS.exec(OS.java:89) brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419) brut.androlib.Androlib.buildResourcesFull(Androlib.java:451) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.loadResourceTable(ResourceUtils.java:156) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.mergeResources(ResourceUtils.java:101) com.microsoft.intune.mam.apppackager.v2.V2WrapperAgent.wrapResources(V2WrapperAgent.java:94) com.microsoft.intune.mam.apppackager.AbstractWrapperAgent.wrap(AbstractWrapperAgent.java:68) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:129) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:191) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:54) The application could not be wrapped.
at RunWrapper.runWrapper(RunWrapper.java:472)
at RunWrapper.wrapApp(RunWrapper.java:436)
at RunWrapper.wrap(RunWrapper.java:62)
at MAMWrapper.main(MAMWrapper.java:12)
@oydang could you please help me to look at this issue? Thanks
Hi @oydang we are getting the following message when we try to wrap Failed to sign the output app because the input app was signed by Android Signature Scheme V2. This signing cannot currently be performed by the App Wrapping Tool. Please s ign the wrapped app using the same tools used to sign the input app. And on opening the app it shows parse error
Hi @Ramc4, Android Signature Scheme v2 is currently not supported. Please reach out to msintuneppsdk@microsoft.com so we can get some more information from you.
WRN Application wrapping in progress. App Wrapping Tool Version: 1.0.2380.1 DBG Begin Packaging: C:\Appsource\app-release.apk DBG [APKTool] Begin decoding APK file: C:\Appsource\app-release.apk INF Using Apktool 2.3.4 on app-release.apk INF Loading resource table... INF Decoding AndroidManifest.xml with resources... INF Loading resource table from file: C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\framework\1.apk INF Regular manifest package... INF Decoding file-resources... VRB Win version: 0x4563000a = 1164115978 (Windows Vista) INF Decoding values / XMLs... INF Baksmaling classes.dex... INF Baksmaling classes2.dex... INF Copying assets and libs... INF Copying unknown files... INF Copying original files... DBG [APKTool] Finish decoding APK file: C:\Appsource\app-release.apk DBG [APKTool] Begin decoding APK file: C:\Program Files (x86)\Microsoft Intune Mobile Application Management\Android\App Wrapping Tool\lib\IntuneAppBase.apk INF Using Apktool 2.3.4 on IntuneAppBase.apk INF Loading resource table... INF Decoding AndroidManifest.xml with resources... INF Loading resource table from file: C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\framework\1.apk INF Regular manifest package... INF Decoding file-resources... INF Decoding values / XMLs... INF Baksmaling classes.dex... INF Copying assets and libs... INF Copying unknown files... INF Copying original files... DBG [APKTool] Finish decoding APK file: C:\Program Files (x86)\Microsoft Intune Mobile Application Management\Android\App Wrapping Tool\lib\IntuneAppBase.apk DBG [WrapperAgent][Begin] Updating app manifest. DBG [Manifest] Begin merging manifests. WRN [main manifest:5] Manifest has more than one /manifest/uses-permission[@name=android.permission.INTERNET] element. DBG [Manifest] Finish merging manifests. DBG [WrapperAgent][End] Updating app manifest. DBG [WrapperAgent][Begin] Updating app resources. DBG [Res][Begin] Merging app resources. DBG [Res][Begin] Merging app resources of type Animator. DBG [Res][End] Merging app resources of type Animator DBG [Res][Begin] Merging app resources of type Anim. DBG [Res][End] Merging app resources of type Anim DBG [Res][Begin] Merging app resources of type Color. DBG [Res][End] Merging app resources of type Color DBG [Res][Begin] Merging app resources of type Drawable. DBG [Res][End] Merging app resources of type Drawable DBG [Res][Begin] Merging app resources of type MipMap. DBG [Res][End] Merging app resources of type MipMap DBG [Res][Begin] Merging app resources of type Layout. DBG [Res][End] Merging app resources of type Layout DBG [Res][Begin] Merging app resources of type Menu. DBG [Res][End] Merging app resources of type Menu DBG [Res][Begin] Merging app resources of type Raw. DBG [Res][End] Merging app resources of type Raw DBG [Res][Begin] Merging app resources of type Values. DBG [Res][End] Merging app resources of type Values DBG [Res][Begin] Merging app resources of type Xml. DBG [Res][End] Merging app resources of type Xml INF Checking whether resources has changed... INF Building resources... VRB command ran: VRB [C:\Users\CHARLE~1\AppData\Local\Temp\brut_util_Jar_9150316104207221209.tmp, p, --forced-package-id, 127, --rename-manifest-package, AppPackager.AppBase, --no-version-vectors, -F, C:\Users\CHARLE~1\AppData\Local\Temp\APKTOOL6202789126055331412.tmp, -0, arsc, -I, C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\framework\1.apk, -S, C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\sourceApk\res, -M, C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\sourceApk\AndroidManifest.xml] INF Loading resource table... DBG [Res][End] Merging app resources. DBG [WrapperAgent][End] Updating app resources. DBG [WrapperAgent][Begin] Updating app source code. DBG [Smali] Begin rewriting smali. DBG [Smali] Begin writing rules to file. DBG [Smali] Finish writing rules to file. DBG [Smali] Multi-dex application detected. DBG [Smali] Begin processing folder: C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\externalApk\smali DBG [Smali] Finish processing folder: C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\externalApk\smali DBG [Smali] Begin processing folder: C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\sourceApk\smali DBG [Smali] Finish processing folder: C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\sourceApk\smali DBG [Smali] Begin processing folder: C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\sourceApk\smali_classes2 DBG [Smali] Finish processing folder: C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\sourceApk\smali_classes2 DBG [Res] Reassigning id of resource dimen/offline_startup_app_icon_container_inset from 7f010000 to 7f0600aa in class Lcom/microsoft/intune/mam/R$dimen;. DBG [Dex] Skipping rewrite of class [Landroid/support/multidex/MultiDex;] because it is whitelisted. DBG [Res] Reassigning id of resource drawable/offline_startup_app_icon_container from 7f020000 to 7f0700cb in class Lcom/microsoft/intune/mam/R$drawable;. DBG [Res] Reassigning id of resource string/intune_account_disallowed from 7f060000 to 7f0b004c in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_account_disallowed_fmt from 7f060001 to 7f0b004d in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_account_removed_fmt from 7f060002 to 7f0b004e in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_account_explanation from 7f060003 to 7f0b004f in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_accounts_description from 7f060004 to 7f0b0050 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_accounts_explanation_all_added from 7f060005 to 7f0b0051 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_accounts_title from 7f060006 to 7f0b0052 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_branding_managed_by from 7f060007 to 7f0b0053 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_cancel from 7f060008 to 7f0b0054 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_get_the_app from 7f060009 to 7f0b0055 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_go_back from 7f06000a to 7f0b0056 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_initialization_failure from 7f06000b to 7f0b0057 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_must_restart from 7f06000c to 7f0b0058 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ok from 7f06000d to 7f0b0059 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_policy_required_message from 7f06000e to 7f0b005a in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_install_play_store_not_enabled_message from 7f06000f to 7f0b005b in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_install_required_message from 7f060010 to 7f0b005c in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_removed_notify_system_wipe from 7f060011 to 7f0b005d in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_removed_notify_wipe from 7f060012 to 7f0b005e in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource id/offline_logo_textView from 7f030000 to 7f08013f in class Lcom/microsoft/intune/mam/R$id;. DBG [Res] Reassigning id of resource layout/wg_offline_startup_blocked from 7f040000 to 7f0a0079 in class Lcom/microsoft/intune/mam/R$layout;. DBG [Res] Reassigning id of resource raw/intune_mam_manifest from 7f050000 to 7f0d0000 in class Lcom/microsoft/intune/mam/R$raw;. DBG [Res] Reassigning id of resource style/MAMActivityBaseTheme from 7f070000 to 7f0c01a6 in class Lcom/microsoft/intune/mam/R$style;. DBG [Res] Reassigning id of resource style/MAMAlertDialogTheme from 7f070001 to 7f0c01a5 in class Lcom/microsoft/intune/mam/R$style;. DBG [Res] Reassigning id of resource style/MAMButton from 7f070002 to 7f0c01a7 in class Lcom/microsoft/intune/mam/R$style;. DBG [Res] Reassigning id of resource style/MAMDialogTheme from 7f070003 to 7f0c01a8 in class Lcom/microsoft/intune/mam/R$style;. DBG [Res] Reassigning id of resource style/MAMDialogWithTrasparentBackground from 7f070004 to 7f0c01a9 in class Lcom/microsoft/intune/mam/R$style;. DBG [Smali] Finish rewriting smali. DBG [WrapperAgent][End] Updating app source code. DBG [APKTool] Begin encoding directory into APK file: C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\sourceApk INF Using Apktool 2.3.4 INF Checking whether sources has changed... INF Smaling smali folder into classes.dex... DBG [APKTool] Finish encoding directory into APK file: C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingTool-8546867284631587922\sourceApk WRN Verbose logs can be found at: C:\Users\CHARLE~1\AppData\Local\Temp\IntuneAppWrappingToolLog_20190522_171757.txt. ERR The application could not be wrapped. org.jf.util.ExceptionWithContext: Exception occurred while writing code_item for method Lcom/google/android/gms/internal/firebase_auth/zzgv;->zzgt()Lcom/google/android/gms/internal/firebase_auth/zzgv; org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:825) org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:268) org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:246) brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:61) brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36) brut.androlib.Androlib.buildSourcesSmali(Androlib.java:419) brut.androlib.Androlib.buildSources(Androlib.java:350) brut.androlib.Androlib.build(Androlib.java:302) com.microsoft.intune.mam.apppackager.utils.APKToolWrapper.encodeAPK(APKToolWrapper.java:172) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:111) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:213) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:57) org.jf.util.ExceptionWithContext: Error while writing instruction at code offset 0x6c org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1098) org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:821) org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:268) org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:246) brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:61) brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36) brut.androlib.Androlib.buildSourcesSmali(Androlib.java:419) brut.androlib.Androlib.buildSources(Androlib.java:350) brut.androlib.Androlib.build(Androlib.java:302) com.microsoft.intune.mam.apppackager.utils.APKToolWrapper.encodeAPK(APKToolWrapper.java:172) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:111) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:213) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:57) org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65558 org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116) org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:348) org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1058) org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:821) org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:268) org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:246) brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:61) brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36) brut.androlib.Androlib.buildSourcesSmali(Androlib.java:419) brut.androlib.Androlib.buildSources(Androlib.java:350) brut.androlib.Androlib.build(Androlib.java:302) com.microsoft.intune.mam.apppackager.utils.APKToolWrapper.encodeAPK(APKToolWrapper.java:172) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:111) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:213) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:57)
getting above error when I try to wrap the apk file
@charllespalani please update to the latest version of the App Wrapper. If you still see issues, please file a new issue as this issue has been closed for quite some time
This issue is happening with latest app wrapper only.
We are able to wrap the app with older version of app wrapper. Thanks, Charles
Get Outlook for iOShttps://aka.ms/o0ukef
From: Ryan Gormley notifications@github.com Sent: Wednesday, May 22, 2019 7:52 PM To: msintuneappsdk/intune-app-wrapping-tool-android Cc: Charles Palani, Technology; Mention Subject: Re: [msintuneappsdk/intune-app-wrapping-tool-android] App Wrapping failed (#1)
@charllespalanihttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcharllespalani&data=02%7C01%7Ccharlespa%40mashreq.com%7C5c1a7d34b0b442e4ab4708d6dec0dcda%7Cfa2187fa88304fa28a74fb8c523dd6c1%7C0%7C0%7C636941317262671527&sdata=3nyLKEIaZC4SapB4q9PplyeisO2068d2K7%2BBGFZ3wJI%3D&reserved=0 please update to the latest version of the App Wrapper. If you still see issues, please file a new issue as this issue has been closed for quite some time
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmsintuneappsdk%2Fintune-app-wrapping-tool-android%2Fissues%2F1%3Femail_source%3Dnotifications%26email_token%3DAMEOPSLFZI6LUMSY6TXOPDTPWVJIVA5CNFSM4CTPWREKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV7GYRA%23issuecomment-494824516&data=02%7C01%7Ccharlespa%40mashreq.com%7C5c1a7d34b0b442e4ab4708d6dec0dcda%7Cfa2187fa88304fa28a74fb8c523dd6c1%7C0%7C0%7C636941317262671527&sdata=NystqZRfyvXVLy0ex099OSFCW64hr4MaIWAvvrpUzys%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMEOPSPAOOA4OQGQKMPFOWTPWVJIVANCNFSM4CTPWREA&data=02%7C01%7Ccharlespa%40mashreq.com%7C5c1a7d34b0b442e4ab4708d6dec0dcda%7Cfa2187fa88304fa28a74fb8c523dd6c1%7C0%7C0%7C636941317262681521&sdata=JrJQ9rsNzEtH%2FlhsVyC9NHwtxAcDkMGGALMvbgJ4%2FiU%3D&reserved=0.
[Disclaimer _____ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Mashreq, its affiliates, or any of its subsidiaries. Finally, the recipient should check this email and any attachments for the presence of viruses. Mashreq, its affiliates, or any of its subsidiaries accepts no liability for any damage caused by any virus transmitted by this email.]
@rygo-msft again i have tried with latst version of app wrapper and its giving an below error,
com.microsoft.intune.mam.apppackager.utils.AppPackagerException: The keystore 'C:\Program Files (x86)\Java\jre1.8.0_211\bin\keystorefile' could not be loaded.
com.microsoft.intune.mam.apppackager.utils.SignApkWrapper.validateArguments(SignApkWrapper.java:192)
com.microsoft.intune.mam.apppackager.utils.SignApkWrapper.
Please assist ......
issue got fixed after regenerated the new keystore file.thanks!
App wrapping failed with following message. I have tested a sample open source apk file which is working fine but for my app it is failing with below message.
Application wrapping in progress. App Wrapping Tool Version: 1.0.1611.1 Using Apktool 2.0.2 on apps.apk Loading resource table... Decoding AndroidManifest.xml with resources... Loading resource table from file: C:\Users\ADMINI~1\AppData\Local\Temp\3\IntuneAppWrappingTool-1128699354140051161\fram work\1.apk Regular manifest package... Decoding file-resources... Decoding values */* XMLs... Baksmaling classes.dex... Copying assets and libs... Copying unknown files... Copying original files... Using Apktool 2.0.2 on IntuneAppBase.apk Loading resource table... Decoding AndroidManifest.xml with resources... Loading resource table from file: C:\Users\ADMINI~1\AppData\Local\Temp\3\IntuneAppWrappingTool-1128699354140051161\fram work\1.apk Regular manifest package... Decoding file-resources... Decoding values */* XMLs... Baksmaling classes.dex... Copying assets and libs... Copying unknown files... Copying original files... Checking whether resources has changed... Building resources... Failed to package app. com.microsoft.intune.mam.apppackager.utils.AppPackagerException: Failed to load app resource table. com.microsoft.intune.mam.apppackager.utils.ResourceUtils.loadResourceTable(ResourceUtils.java:161) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.mergeResources(ResourceUtils.java:101) com.microsoft.intune.mam.apppackager.v2.V2WrapperAgent.wrapResources(V2WrapperAgent.java:94) com.microsoft.intune.mam.apppackager.AbstractWrapperAgent.wrap(AbstractWrapperAgent.java:68) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:129) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:191) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:54) brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec com and: [C:\Users\ADMINI~1\AppData\Local\Temp\3\brut_util_Jar_6928754153162249063.tmp, p, --forced-package-id, 127, --rena e-manifest-package, com.microsoft.intune.mam, -F, C:\Users\ADMINI~1\AppData\Local\Temp\3\APKTOOL2062910737509710499.tmp -0, arsc, -I, C:\Users\ADMINI~1\AppData\Local\Temp\3\IntuneAppWrappingTool-1128699354140051161\framework\1.apk, -S, C: Users\ADMINI~1\AppData\Local\Temp\3\IntuneAppWrappingTool-1128699354140051161\sourceApk\res, -M, C:\Users\ADMINI~1\AppD ta\Local\Temp\3\IntuneAppWrappingTool-1128699354140051161\sourceApk\AndroidManifest.xml] brut.androlib.Androlib.buildResourcesFull(Androlib.java:465) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.loadResourceTable(ResourceUtils.java:156) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.mergeResources(ResourceUtils.java:101) com.microsoft.intune.mam.apppackager.v2.V2WrapperAgent.wrapResources(V2WrapperAgent.java:94) com.microsoft.intune.mam.apppackager.AbstractWrapperAgent.wrap(AbstractWrapperAgent.java:68) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:129) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:191) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:54) brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\ADMINI~1\AppData\ ocal\Temp\3\brut_util_Jar_6928754153162249063.tmp, p, --forced-package-id, 127, --rename-manifest-package, com.microsof .intune.mam, -F, C:\Users\ADMINI~1\AppData\Local\Temp\3\APKTOOL2062910737509710499.tmp, -0, arsc, -I, C:\Users\ADMINI~1 AppData\Local\Temp\3\IntuneAppWrappingTool-1128699354140051161\framework\1.apk, -S, C:\Users\ADMINI~1\AppData\Local\Tem \3\IntuneAppWrappingTool-1128699354140051161\sourceApk\res, -M, C:\Users\ADMINI~1\AppData\Local\Temp\3\IntuneAppWrappin Tool-1128699354140051161\sourceApk\AndroidManifest.xml] brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425) brut.androlib.Androlib.buildResourcesFull(Androlib.java:451) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.loadResourceTable(ResourceUtils.java:156) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.mergeResources(ResourceUtils.java:101) com.microsoft.intune.mam.apppackager.v2.V2WrapperAgent.wrapResources(V2WrapperAgent.java:94) com.microsoft.intune.mam.apppackager.AbstractWrapperAgent.wrap(AbstractWrapperAgent.java:68) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:129) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:191) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:54) brut.common.BrutException: could not exec command: [C:\Users\ADMINI~1\AppData\Local\Temp\3\brut_util_Jar_692875 153162249063.tmp, p, --forced-package-id, 127, --rename-manifest-package, com.microsoft.intune.mam, -F, C:\Users\ADMINI 1\AppData\Local\Temp\3\APKTOOL2062910737509710499.tmp, -0, arsc, -I, C:\Users\ADMINI~1\AppData\Local\Temp\3\IntuneAppWr ppingTool-1128699354140051161\framework\1.apk, -S, C:\Users\ADMINI~1\AppData\Local\Temp\3\IntuneAppWrappingTool-1128699 54140051161\sourceApk\res, -M, C:\Users\ADMINI~1\AppData\Local\Temp\3\IntuneAppWrappingTool-1128699354140051161\sourceA k\AndroidManifest.xml] brut.util.OS.exec(OS.java:89) brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419) brut.androlib.Androlib.buildResourcesFull(Androlib.java:451) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.loadResourceTable(ResourceUtils.java:156) com.microsoft.intune.mam.apppackager.utils.ResourceUtils.mergeResources(ResourceUtils.java:101) com.microsoft.intune.mam.apppackager.v2.V2WrapperAgent.wrapResources(V2WrapperAgent.java:94) com.microsoft.intune.mam.apppackager.AbstractWrapperAgent.wrap(AbstractWrapperAgent.java:68) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:129) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:191) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:54) The application could not be wrapped.