hi Zivonche
look like you can do two things to get rid of the errors you getting.
1. "Could Not Find C:\Users\Aj\Desktop\ApkManager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk"
FOR THIS USE OPTION : 12 SIGN APK AFTER YOU DECOMPILE -> EDIT -> COMPILE
AND THEN OPTION : 13 TO INSTALL (IF NOT SYSTEM APK)
IF ITS SYSTEM APK YOU ARE MESSING WITH
> AFTER YOU DECOMPILE -> EDIT -> COMPILE " DO NOT SIGN SYSTEM APK"
> TO INSTALL THEM USE OPTION : 8 "ADB PUSH"
2. Now for all other errors i believe you gonna need new
apktool.jar (attached)
and
aapt.exe from latest SDK(attached)(
Ajthescot also mentioned that).
DOWNLOAD ATTACHED FILES, EXTRACT IT INSIDE YOUR APK MANAGER'S "OTHER" FOLDER. YES OVERWRITE THEM (TAKE BACKUP OF ORIGINAL IF YOU WANT !)
THEN BEFORE YOU PULL/DECOMPILE/EDIT/COMPILE DO THIS FIRST.
1. PULL framework-res.apk (it will in folder "place-apk-here-for-modding")
2. Move framework-res.apk from "place-apk-here-for-modding" to "other"
3. SHIFT + RIGHT CLICK on "OTHER" folder, and open command window (thnx
Ajthescot)
4. RUN THIS COMMAND : java -jar apktool.jar if framework-res.apk
(if this returns no error that means YOU ALL SAFE TO PROCEED)
5. Now start pulling any apk you want to mess with.
* IF YOU ONLY WANT TO EDIT PNGs USE OPTIONS : 1-8 (DO NOT SIGN SYSTEM APK)
IF YOU MESSING WITH XML DO NOT EXTRACT BUT DECOMPILE OPTION : 9
AND DELETE resources.arsc BEFORE YOU COMPILE AND THEN PUSH THEM.
i hope this helps
thnx.
---------------------------UPDATE-2-1-12-----------------------------
So today i ran into same error as you.
But only when i use OPTION : 1 to EXTRACT APK
The reason is APKMANAGER used 7z (ie 7za.exe in OTHER folder) to decompress files. Some apks in the same ROM has diff type of compression method i believe.
In my case i am working on DJ_STEVE Ginger STreak (for dell streak 5) ROM and "AccountAndSyncSettings.apk" gives me ERRORS SAME AS YOU DO but not "Phone.apk"
So its the 7za.exe that is unable to extract some apks and giving errors.
let me know what you come accross.
thnx.
thanks for the answer
it seems that you too have
Error
"Could Not Find C:\Users\Aj\Desktop\ApkManager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk"
maybe you didnt change anything thats way it looks ok
try to change an XML file than delete from the keep folder the resources.arsc
than create the apk and check if its exists in your new compiled apk
anyway i tried what you said
now i get an error that take a few second to appear
this it the log it is something with PNG
its too long so i cut it but thats what i get now
Code:
--------------------------------------------------------------------------
|28 Jan -- 3:30:00.01|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
'adb' is not recognized as an internal or external command,
operable program or batch file.
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
libpng error: Read Error
ERROR: Failure processing PNG image C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\mipmap-hdpi\sym_app_on_sd_unavailable_icon.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\mipmap-ldpi\sym_app_on_sd_unavailable_icon.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\mipmap-mdpi\sym_app_on_sd_unavailable_icon.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\mipmap-320dpi\sym_def_app_icon.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\mipmap-hdpi\sym_def_app_icon.png
libpng error: Read Error
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3190: error: Public symbol string/permdesc_vibrate declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3216: error: Public symbol string/permdesc_wakeLock declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3246: error: Public symbol string/permdesc_writeApnSettings declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3150: error: Public symbol string/permdesc_writeCalendar declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3138: error: Public symbol string/permdesc_writeContacts declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3284: error: Public symbol string/permdesc_writeDictionary declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3535: error: Public symbol string/permdesc_writeGeolocationPermissions declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3130: error: Public symbol string/permdesc_writeGservices declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3529: error: Public symbol string/permdesc_writeHistoryBookmarks declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3142: error: Public symbol string/permdesc_writeProfile declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3128: error: Public symbol string/permdesc_writeSecureSettings declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3126: error: Public symbol string/permdesc_writeSettings declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3022: error: Public symbol string/permdesc_writeSms declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3146: error: Public symbol string/permdesc_writeSocialStream declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3274: error: Public symbol string/permdesc_writeSyncSettings declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2990: error: Public symbol string/permgroupdesc_accounts declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2980: error: Public symbol string/permgroupdesc_costMoney declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2998: error: Public symbol string/permgroupdesc_developmentTools declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2992: error: Public symbol string/permgroupdesc_hardwareControls declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2986: error: Public symbol string/permgroupdesc_location declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2982: error: Public symbol string/permgroupdesc_messages declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2988: error: Public symbol string/permgroupdesc_network declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2984: error: Public symbol string/permgroupdesc_personalInfo declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2994: error: Public symbol string/permgroupdesc_phoneCalls declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3000: error: Public symbol string/permgroupdesc_storage declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2996: error: Public symbol string/permgroupdesc_systemTools declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2989: error: Public symbol string/permgrouplab_accounts declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2979: error: Public symbol string/permgrouplab_costMoney declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2997: error: Public symbol string/permgrouplab_developmentTools declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2991: error: Public symbol string/permgrouplab_hardwareControls declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2985: error: Public symbol string/permgrouplab_location declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2981: error: Public symbol string/permgrouplab_messages declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2987: error: Public symbol string/permgrouplab_network declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2983: error: Public symbol string/permgrouplab_personalInfo declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3634: error: Public symbol string/volume_music_hint_playing_through_bluetooth declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3635: error: Public symbol string/volume_music_hint_silent_ringtone_selected declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3639: error: Public symbol string/volume_notification declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3632: error: Public symbol string/volume_ringtone declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3640: error: Public symbol string/volume_unknown declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3760: error: Public symbol string/vpn_text declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3761: error: Public symbol string/vpn_text_long declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3758: error: Public symbol string/vpn_title declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3759: error: Public symbol string/vpn_title_long declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3610: error: Public symbol string/wait declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3755: error: Public symbol string/wallpaper_binding_label declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2816: error: Public symbol string/wday1_date1_time1_wday2_date2_time2 declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2817: error: Public symbol string/wday1_date1_wday2_date2 declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:2820: error: Public symbol string/wday_date declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3460: error: Public symbol string/web_user_agent declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3461: error: Public symbol string/web_user_agent_target_content declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3790: error: Public symbol string/websearch declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3571: error: Public symbol string/week declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3572: error: Public symbol string/weeks declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3594: error: Public symbol string/whichApplication declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3651: error: Public symbol string/wifi_available_sign_in declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3652: error: Public symbol string/wifi_available_sign_in_detailed declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3656: error: Public symbol string/wifi_p2p_dialog_title declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3663: error: Public symbol string/wifi_p2p_enabled_notification_message declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3662: error: Public symbol string/wifi_p2p_enabled_notification_title declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3658: error: Public symbol string/wifi_p2p_failed_message declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3659: error: Public symbol string/wifi_p2p_pbc_go_negotiation_request_message declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3661: error: Public symbol string/wifi_p2p_pin_display_message declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3660: error: Public symbol string/wifi_p2p_pin_go_negotiation_request_message declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3657: error: Public symbol string/wifi_p2p_turnon_message declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3655: error: Public symbol string/wifi_tether_configure_ssid_default declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3653: error: Public symbol string/wifi_watchdog_network_disabled declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3654: error: Public symbol string/wifi_watchdog_network_disabled_detailed declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3573: error: Public symbol string/year declared here is not defined.
C:\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\public.xml:3574: error: Public symbol string/years declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Zivo\AppData\Local\Temp\APKTOOL4698831773035226226.tmp, -x, -S, C:\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, C:\apk_manager_4.9\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Zivo\AppData\Local\Temp\APKTOOL4698831773035226226.tmp, -x, -S, C:\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, C:\apk_manager_4.9\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more