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

Failed to package app #22

Closed bhumin3i closed 5 years ago

bhumin3i commented 5 years ago

Application wrapping in progress. App Wrapping Tool Version: 1.0.2501.1 The package name for this app is 'xxx.xxx.xxxx'. If you need to specify the package name during deployment, please use this one. Failed to package app. com.microsoft.intune.mam.apppackager.utils.AppPackagerException: Signing the APK failed because the SignApk tool reported an error. com.microsoft.intune.mam.apppackager.utils.SignApkWrapper.signIfRequested(SignApkWrapper.java:279) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:226) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:58) java.lang.IllegalArgumentException: unsupported signature algorithm "SHA1WITHRSA-VERBOSE com.android.signapk.SignApk.getDigestAlgorithm(SignApk.java:190) com.android.signapk.SignApk.signApk(SignApk.java:1090) com.microsoft.intune.mam.apppackager.utils.SignApkWrapper.signIfRequested(SignApkWrapper.java:277) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:226) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:58) Signing the APK failed because the SignApk tool reported an error. Verbose logs can be found at: C:\xxxxx...\Local\Temp\IntuneAppWrappingToolLog_20190312_184430.txt. The application could not be wrapped.

AndroidManifest.xml <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="27" />

UPDATE : also try
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="26" />

but same error :(

bhumin3i commented 5 years ago

intuneAppWrappingToolLog.txt is

WRN Application wrapping in progress. App Wrapping Tool Version: 1.0.2501.1
DBG Begin Packaging: C:\Program Files (x86)\Microsoft Intune Mobile Application Management\Android\App Wrapping Tool\.\app-release-unsigned.apk
DBG [APKTool] Begin decoding APK file: C:\Program Files (x86)\Microsoft Intune Mobile Application Management\Android\App Wrapping Tool\.\app-release-unsigned.apk
INF Using Apktool 2.3.4 on app-release-unsigned.apk
INF Loading resource table...
INF Decoding AndroidManifest.xml with resources...
INF Loading resource table from file: C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\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 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\.\app-release-unsigned.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\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\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.
DBG [Manifest] Finish merging manifests.
DBG [WrapperAgent][End] Updating app manifest.
DBG [WrapperAgent][Begin] Updating app resources.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_cab_background_top_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_list_divider_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_list_focused_holo.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_list_longpressed_holo.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_list_pressed_holo_dark.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_list_pressed_holo_light.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_list_selector_disabled_holo_dark.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_list_selector_disabled_holo_light.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_popup_background_mtrl_mult.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_scrubber_track_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_spinner_mtrl_am_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_switch_track_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_tab_indicator_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_textfield_activated_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_textfield_default_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/common_google_signin_btn_text_light_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/notification_bg_low_normal.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/notification_bg_low_pressed.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/notification_bg_normal.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-hdpi-v4/notification_bg_normal_pressed.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-ldrtl-hdpi-v17/abc_spinner_mtrl_am_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-ldrtl-mdpi-v17/abc_spinner_mtrl_am_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-ldrtl-xhdpi-v17/abc_spinner_mtrl_am_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-ldrtl-xxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-ldrtl-xxxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_cab_background_top_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_list_divider_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_list_focused_holo.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_list_longpressed_holo.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_list_pressed_holo_dark.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_list_pressed_holo_light.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_list_selector_disabled_holo_dark.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_list_selector_disabled_holo_light.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_popup_background_mtrl_mult.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_scrubber_track_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_spinner_mtrl_am_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_switch_track_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_tab_indicator_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_textfield_activated_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_textfield_default_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/common_google_signin_btn_text_light_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/notification_bg_low_normal.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/notification_bg_low_pressed.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/notification_bg_normal.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-mdpi-v4/notification_bg_normal_pressed.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_list_divider_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_list_focused_holo.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_list_longpressed_holo.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_list_pressed_holo_dark.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_list_pressed_holo_light.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_dark.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_list_selector_disabled_holo_light.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_popup_background_mtrl_mult.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_spinner_mtrl_am_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_switch_track_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_textfield_default_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/common_google_signin_btn_text_light_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/notification_bg_low_normal.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/notification_bg_low_pressed.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/notification_bg_normal.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xhdpi-v4/notification_bg_normal_pressed.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_list_divider_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_list_focused_holo.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_list_longpressed_holo.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_list_pressed_holo_dark.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_dark.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_light.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_popup_background_mtrl_mult.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_switch_track_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_textfield_default_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxhdpi-v4/common_google_signin_btn_text_light_normal_background.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxxhdpi-v4/abc_switch_track_mtrl_alpha.9.png.
DBG [Yaml] Removed item from doNotCompress: res/drawable-xxxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png.
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\HP\AppData\Local\Temp\brut_util_Jar_1419694937203266175.tmp, p, --forced-package-id, 127, --rename-manifest-package, AppPackager.AppBase, --no-version-vectors, -F, C:\Users\HP\AppData\Local\Temp\APKTOOL6213533054996724159.tmp, -0, arsc, -I, C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\framework\1.apk, -S, C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\sourceApk\res, -M, C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\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] Single-dex application detected.
DBG [Smali] Begin processing folder: C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\externalApk\smali
DBG [Smali] Finish processing folder: C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\externalApk\smali
DBG [Smali] Begin processing folder: C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\sourceApk\smali
DBG [Smali] Finish processing folder: C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\sourceApk\smali
DBG [Res] Reassigning id of resource dimen/offline_startup_app_icon_container_inset from 7f010000 to 7f060074 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 7f07007e in class Lcom/microsoft/intune/mam/R$drawable;.
DBG [Res] Reassigning id of resource string/intune_account_disallowed from 7f060000 to 7f0e00c3 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/intune_account_disallowed_fmt from 7f060001 to 7f0e00c4 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/intune_account_removed_fmt from 7f060002 to 7f0e00c5 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/intune_allowed_account_explanation from 7f060003 to 7f0e00c6 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/intune_allowed_accounts_description from 7f060004 to 7f0e00c7 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/intune_allowed_accounts_explanation_all_added from 7f060005 to 7f0e00c8 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/intune_allowed_accounts_title from 7f060006 to 7f0e00c9 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_branding_managed_by from 7f060007 to 7f0e00ca in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_cancel from 7f060008 to 7f0e00cb in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_get_the_app from 7f060009 to 7f0e00cc in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_go_back from 7f06000a to 7f0e00cd in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_initialization_failure from 7f06000b to 7f0e00ce in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_mamca_failed_message from 7f06000c to 7f0e00cf in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_mamca_failed_title from 7f06000d to 7f0e00d0 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_must_restart from 7f06000e to 7f0e00d1 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_ok from 7f06000f to 7f0e00d2 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_policy_required_message from 7f060010 to 7f0e00d3 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 7f060011 to 7f0e00d4 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_ssp_install_required_message from 7f060012 to 7f0e00d5 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_ssp_removed_notify_system_wipe from 7f060013 to 7f0e00d6 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource string/wg_offline_ssp_removed_notify_wipe from 7f060014 to 7f0e00d7 in class Lcom/microsoft/intune/mam/R$string;.
DBG [Res] Reassigning id of resource id/offline_logo_textView from 7f030000 to 7f0800c4 in class Lcom/microsoft/intune/mam/R$id;.
DBG [Res] Reassigning id of resource layout/wg_offline_startup_blocked from 7f040000 to 7f0a003b in class Lcom/microsoft/intune/mam/R$layout;.
DBG [Res] Reassigning id of resource raw/intune_mam_manifest from 7f050000 to 7f0d0001 in class Lcom/microsoft/intune/mam/R$raw;.
DBG [Res] Reassigning id of resource style/MAMActivityBaseTheme from 7f070000 to 7f0f0160 in class Lcom/microsoft/intune/mam/R$style;.
DBG [Res] Reassigning id of resource style/MAMAlertDialogTheme from 7f070001 to 7f0f0164 in class Lcom/microsoft/intune/mam/R$style;.
DBG [Res] Reassigning id of resource style/MAMButton from 7f070002 to 7f0f0161 in class Lcom/microsoft/intune/mam/R$style;.
DBG [Res] Reassigning id of resource style/MAMDialogTheme from 7f070003 to 7f0f0162 in class Lcom/microsoft/intune/mam/R$style;.
DBG [Res] Reassigning id of resource style/MAMDialogWithTrasparentBackground from 7f070004 to 7f0f0163 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\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\sourceApk
INF Using Apktool 2.3.4
INF Copying C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\sourceApk classes.dex file...
INF Checking whether resources has changed...
INF Building resources...
VRB command ran: 
VRB [C:\Users\HP\AppData\Local\Temp\brut_util_Jar_1419694937203266175.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 26, --version-code, 22600, --version-name, 2.26.beta, --no-version-vectors, -F, C:\Users\HP\AppData\Local\Temp\APKTOOL8489153240091908527.tmp, -0, arsc, -0, META-INF/android.arch.core_runtime.version, -0, META-INF/android.arch.lifecycle_livedata-core.version, -0, META-INF/android.arch.lifecycle_runtime.version, -0, META-INF/android.arch.lifecycle_viewmodel.version, -0, META-INF/com.android.support_animated-vector-drawable.version, -0, META-INF/com.android.support_appcompat-v7.version, -0, META-INF/com.android.support_support-compat.version, -0, META-INF/com.android.support_support-core-ui.version, -0, META-INF/com.android.support_support-core-utils.version, -0, META-INF/com.android.support_support-fragment.version, -0, META-INF/com.android.support_support-media-compat.version, -0, META-INF/com.android.support_support-v13.version, -0, META-INF/com.android.support_support-v4.version, -0, META-INF/com.android.support_support-vector-drawable.version, -0, META-INF/services/com.fasterxml.jackson.core.JsonFactory, -0, png, -0, jpg, -0, woff2, -0, ico, -0, gif, -0, JPG, -0, jpeg, -0, assets/www/build/main.css.map, -0, ogg, -0, arsc, -I, C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\framework\1.apk, -S, C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\sourceApk\res, -M, C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\sourceApk\AndroidManifest.xml]
INF Copying libs... (/lib)
INF Copy original files...
INF Copy META-INF...
INF Building apk file...
INF Copying unknown files/dir...
VRB Copying unknown file build-data.properties with method 8
VRB Copying unknown file protobuf.meta with method 8
VRB Copying unknown file sentry-build.properties with method 0
VRB Copying unknown file error_prone/Annotations.gwt.xml with method 8
VRB Copying unknown file jsr305_annotations/Jsr305_annotations.gwt.xml with method 8
VRB Copying unknown file okhttp3/internal/publicsuffix/publicsuffixes.gz with method 0
VRB Copying unknown file third_party/java_src/error_prone/project/annotations/Annotations.gwt.xml with method 8
VRB Copying unknown file third_party/java_src/error_prone/project/annotations/Google_internal.gwt.xml with method 8
INF Built apk...
DBG [APKTool] Finish encoding directory into APK file: C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingTool-9177071432858837120\sourceApk
WRN The package name for this app is 'xxx.xxx.xxx'. If you need to specify the package name during deployment, please use this one.
DBG Finish Packaging: C:\Program Files (x86)\Microsoft Intune Mobile Application Management\Android\App Wrapping Tool\.\app-release-unsigned.apk
INF [Sign APK] Preparing for signing.
INF [Sign APK] Invoking the SignApk tool.
INF [Sign APK] Signing finished.
ERR Failed to package app.
    com.microsoft.intune.mam.apppackager.utils.AppPackagerException: Signing the APK failed because the SignApk tool reported an error.
        com.microsoft.intune.mam.apppackager.utils.SignApkWrapper.signIfRequested(SignApkWrapper.java:279)
        com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:226)
        com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:58)
    java.lang.IllegalArgumentException: unsupported signature algorithm "SHA1WITHRSA-VERBOSE
        com.android.signapk.SignApk.getDigestAlgorithm(SignApk.java:190)
        com.android.signapk.SignApk.signApk(SignApk.java:1090)
        com.microsoft.intune.mam.apppackager.utils.SignApkWrapper.signIfRequested(SignApkWrapper.java:277)
        com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:226)
        com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:58)
ERR Signing the APK failed because the SignApk tool reported an error.
WRN Verbose logs can be found at: C:\Users\HP\AppData\Local\Temp\IntuneAppWrappingToolLog_20190312_185033.txt.
ERR The application could not be wrapped.
rygo-msft commented 5 years ago

Hi @bhumin3i, It looks like this may be an issue with a malformed parameter. It looks like you may be missing a space in between the signing algortihm and the -VERBOSE flag The relevant failure is java.lang.IllegalArgumentException: unsupported signature algorithm "SHA1WITHRSA-VERBOSE

bhandaribhumin commented 5 years ago

@rygo-msft thanks for instant replay, is this KeyStore file issue? And I can’t understand after reinstall wrapping tools than only it will come. I try with all latest wrapping version. Please help me on this I’m stuck. Also give me some idea where can I set/change SHA1...algorithm?

rygo-msft commented 5 years ago

The problem appears to be with the comand itself. The logs you provided list the signature algorithm as "SHA1WITHRSA-VERBOSE". This isn't a valid signature algorithm for the wrapper.

What is likely occuring is that there is a typo in your invocation of the wrapper where there is no separation between the -SigAlg and -Verbose parameters.

For example

Invoke-AppWrappingTool -InputPath unwrapped.apk -OutputPath wrapped.apk -SigAlg SHA1withRSA-Verbose -KeyStorePath keystore.keystore -KeyAlias keyalias

Because there is no space between the parameters, they will be parsed as one parameter. Adding a space following SHA1withRSA should resolve the issue.

Invoke-AppWrappingTool -InputPath unwrapped.apk -OutputPath wrapped.apk -SigAlg SHA1withRSA -Verbose -KeyStorePath keystore.keystore -KeyAlias keyalias
bhandaribhumin commented 5 years ago

@rygo-msft thanks a lot man, I’ll try tomorrow and get back to you.

bhumin3i commented 5 years ago

@rygo-msft thanks for hint about -SigAlg i'm using different algorithm when i extract .keystore file it will show me different one and when i used that one it is working. :) yippeee....