[Galaxy Ace S5830 General] gypsy214:
Im trying to decompile a framwork-res.apk with some changes on values to make tethering work and I get this error. I tried to decompile without changes and it worked so i dont know what the deal is. Here is the thread http://xdaforums.com/showthread.php?t=2057344

C:\Android\APK>apktool d framework-res.apk

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

C:\Android\APK>apktool b framework-res

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

C:\Android\APK\framework-res\res\values\arrays.xml:843: error: Error parsing XML

: mismatched tag

C:\Android\APK\framework-res\res\values\public.xml:5391: error: Public symbol ar

ray/carrier_properties declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5389: error: Public entry ide

ntifier 0x107003c entry index is larger than available symbols (index 60, total

symbols 19).

C:\Android\APK\framework-res\res\values\public.xml:5389: error: Public symbol ar

ray/common_nicknames declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5375: error: Public symbol ar

ray/config_autoBrightnessButtonBacklightValues declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5373: error: Public symbol ar

ray/config_autoBrightnessHysteresisLevels declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5376: error: Public symbol ar

ray/config_autoBrightnessKeyboardBacklightValues declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5374: error: Public symbol ar

ray/config_autoBrightnessLcdBacklightValues declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5372: error: Public symbol ar

ray/config_autoBrightnessLevels declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5363: error: Public symbol ar

ray/config_cdma_dun_supported_types declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5355: error: Public symbol ar

ray/config_data_usage_network_types declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5382: error: Public symbol ar

ray/config_dynamicAutoBrightnessHighHysteresisLevels declared here is not define

d.

C:\Android\APK\framework-res\res\values\public.xml:5383: error: Public symbol ar

ray/config_dynamicAutoBrightnessHighHysteresisValues declared here is not define

d.

C:\Android\APK\framework-res\res\values\public.xml:5380: error: Public symbol ar

ray/config_dynamicAutoBrightnessLevels declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5378: error: Public symbol ar

ray/config_dynamicAutoBrightnessLowHysteresisLevels declared here is not defined

.

C:\Android\APK\framework-res\res\values\public.xml:5379: error: Public symbol ar

ray/config_dynamicAutoBrightnessLowHysteresisValues declared here is not defined

.

C:\Android\APK\framework-res\res\values\public.xml:5381: error: Public symbol ar

ray/config_dynamicAutoBrightnessValues declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5368: error: Public symbol ar

ray/config_keyboardTapVibePattern declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5366: error: Public symbol ar

ray/config_longPressVibePattern declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5351: error: Public symbol ar

ray/config_masterVolumeRamp declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5377: error: Public symbol ar

ray/config_minimumExpressiveBrightnessValues declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5361: error: Public symbol ar

ray/config_mobile_hotspot_provision_app declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5392: error: Public symbol ar

ray/config_multiWindowSupportAppList declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5387: error: Public symbol ar

ray/config_oemUsbModeOverride declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5353: error: Public symbol ar

ray/config_protectedNetworks declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5369: error: Public symbol ar

ray/config_safeModeDisabledVibePattern declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5370: error: Public symbol ar

ray/config_safeModeEnabledVibePattern declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5371: error: Public symbol ar

ray/config_scrollBarrierVibePattern declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5365: error: Public symbol ar

ray/config_serialPorts declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5386: error: Public symbol ar

ray/config_sms_enabled_locking_shift_tables declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5385: error: Public symbol ar

ray/config_sms_enabled_single_shift_tables declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5350: error: Public symbol ar

ray/config_statusBarIcons declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5359: error: Public symbol ar

ray/config_tether_bluetooth_regexs declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5360: error: Public symbol ar

ray/config_tether_dhcp_range declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5362: error: Public entry ide

ntifier 0x1070021 entry index is larger than available symbols (index 33, total

symbols 19).

C:\Android\APK\framework-res\res\values\public.xml:5362: error: Public symbol ar

ray/config_tether_upstream_types declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5356: error: Public symbol ar

ray/config_tether_usb_regexs declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5357: error: Public symbol ar

ray/config_tether_wifi_regexs declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5358: error: Public symbol ar

ray/config_tether_wimax_regexs declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5384: error: Public entry ide

ntifier 0x1070037 entry index is larger than available symbols (index 55, total

symbols 19).

C:\Android\APK\framework-res\res\values\public.xml:5384: error: Public symbol ar

ray/config_twoDigitNumberPattern declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5364: error: Public symbol ar

ray/config_usbHostBlacklist declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5367: error: Public symbol ar

ray/config_virtualKeyVibePattern declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5408: error: Public symbol ar

ray/default_apps_for_carcradle declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5409: error: Public symbol ar

ray/default_apps_for_deskcradle declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5407: error: Public symbol ar

ray/default_apps_for_earphone declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5406: error: Public symbol ar

ray/default_apps_for_spen declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5388: error: Public symbol ar

ray/hideApnBlackList declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5390: error: Public entry ide

ntifier 0x107003d entry index is larger than available symbols (index 61, total

symbols 19).

C:\Android\APK\framework-res\res\values\public.xml:5390: error: Public symbol ar

ray/imAddressTypes declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5348: error: Public entry ide

ntifier 0x1070013 entry index is larger than available symbols (index 19, total

symbols 19).

C:\Android\APK\framework-res\res\values\public.xml:5348: error: Public symbol ar

ray/maps_starting_lat_lng declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5349: error: Public entry ide

ntifier 0x1070014 entry index is larger than available symbols (index 20, total

symbols 19).

C:\Android\APK\framework-res\res\values\public.xml:5349: error: Public symbol ar

ray/maps_starting_zoom declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5352: error: Public symbol ar

ray/networkAttributes declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5337: error: Public symbol ar

ray/preloaded_color_state_lists declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5336: error: Public symbol ar

ray/preloaded_drawables declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5354: error: Public symbol ar

ray/radioAttributes declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5338: error: Public symbol ar

ray/special_locale_codes declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5339: error: Public symbol ar

ray/special_locale_names declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5334: error: Public symbol ar

ray/telephony_provider_3lm declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5335: error: Public symbol ar

ray/telephony_provider_oem declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5403: error: Public symbol ar

ray/zzz_tts_lockscreen_1_missed_call declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5404: error: Public symbol ar

ray/zzz_tts_lockscreen_1_unread_message declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5400: error: Public symbol ar

ray/zzz_tts_lockscreen_calls_and_messages declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5401: error: Public symbol ar

ray/zzz_tts_lockscreen_n_missed_calls declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5402: error: Public symbol ar

ray/zzz_tts_lockscreen_n_unread_messages declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5395: error: Public symbol ar

ray/zzz_tts_lockscreen_time declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5393: error: Public symbol ar

ray/zzz_tts_lockscreen_time_am declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5394: error: Public symbol ar

ray/zzz_tts_lockscreen_time_pm declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5405: error: Public symbol ar

ray/zzz_tts_string_langs declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5398: error: Public symbol ar

ray/zzz_tts_temp_celsius declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5399: error: Public symbol ar

ray/zzz_tts_temp_fahrenheit declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5396: error: Public symbol ar

ray/zzz_tts_temperature declared here is not defined.

C:\Android\APK\framework-res\res\values\public.xml:5397: error: Public symbol ar

ray/zzz_tts_temperature_for_sina declared here is not defined.

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl

ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-

sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\yorgule\AppData\Local\Te

mp\APKTOOL5394719428698010725.tmp, -x, -S, C:\Android\APK\framework-res\res, -M,

C:\Android\APK\framework-res\AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib .java:357)

at brut.androlib.Androlib.buildResources(Androlib.jav a:282)

at brut.androlib.Androlib.build(Androlib.java:205)

at brut.androlib.Androlib.build(Androlib.java:176)

at brut.apktool.Main.cmdBuild(Main.java:218)

at brut.apktool.Main.main(Main.java:74)

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not

exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:

\Users\yorgule\AppData\Local\Temp\APKTOOL539471942 8698010725.tmp, -x, -S, C:\And

roid\APK\framework-res\res, -M, C:\Android\APK\framework-res\AndroidManifest.xml

]

at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav

a:349)

at brut.androlib.Androlib.buildResourcesFull(Androlib .java:335)

... 5 more

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd

k-version, 16, --target-sdk-version, 16, -F, C:\Users\yorgule\AppData\Local\Temp

\APKTOOL5394719428698010725.tmp, -x, -S, C:\Android\APK\framework-res\res, -M, C

:\Android\APK\framework-res\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:89)

at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav

a:347)

... 6 more

C:\Android\APK>

This is the error i get when trying to recompile framework-res