[Android General] BIade:
Hello my friends!

I'm trying to recompile Settings.apk from AOSB 1.2.9 (its kk 4.4.2) for 3 days now :(

Modifying Strings.xml in values worked without any problem, but modifying device_info_settings.xml doesn't work at all. I just want to remove some entries. but after modding i get a FC when I click on "About Phone".

Tried 1000 different versions of apktool. (framwork-res is installed properly, decompilings works, recompiling only gives translation-warnings but builds)

But somehow it does not build the files of the XML-folder properly.

Decompile-Log:

C:\apktool-compiled>java -jar apktool.jar if framework-res.apk
I: Framework installed to: C:\Users\Blade\apktool\framework\1.apk

C:\apktool-compiled>java -jar apktool.jar d -s Settings0.apk
I: Copying raw classes.dex file...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Blade\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...

Recompile Log:

C:\apktool-compiled>java -jar apktool.jar b Settings0
I: Copying classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'category_printers' has no default translation in C:\apkto
ol-compiled\Settings0\res; found: az_AZ ne_NP si_LK
aapt: warning: string 'cell_broadcast_settings_summary' has no default translati
on in C:\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne
ne_NP si si_LK
aapt: warning: string 'cpu_set_on_boot' has no default translation in C:\apktool
-compiled\Settings0\res; found: en_GB
aapt: warning: string 'cpu_set_on_boot_summary' has no default translation in C:
\apktool-compiled\Settings0\res; found: en_GB
aapt: warning: string 'dialog_test' has no default translation in C:\apktool-com
piled\Settings0\res; found: af
aapt: warning: string 'dialog_test_button' has no default translation in C:\apkt
ool-compiled\Settings0\res; found: af
aapt: warning: string 'dialog_test_message' has no default translation in C:\apk
tool-compiled\Settings0\res; found: af
aapt: warning: string 'experimental_webview' has no default translation in C:\ap
ktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si s
i_LK
aapt: warning: string 'experimental_webview_summary' has no default translation
in C:\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne ne
_NP si si_LK
aapt: warning: string 'hardware_keys_enable_custom_title' has no default transla
tion in C:\apktool-compiled\Settings0\res; found: fr hu uk
aapt: warning: string 'io_sched_set_on_boot' has no default translation in C:\ap
ktool-compiled\Settings0\res; found: en_GB
aapt: warning: string 'io_sched_set_on_boot_summary' has no default translation
in C:\apktool-compiled\Settings0\res; found: en_GB
aapt: warning: string 'io_scheds_summary' has no default translation in C:\apkto
ol-compiled\Settings0\res; found: en_GB
aapt: warning: string 'location_category_app_settings' has no default translatio
n in C:\apktool-compiled\Settings0\res; found: az_AZ ne_NP si_LK
aapt: warning: string 'lockscreen_enable_widgets_summary' has no default transla
tion in C:\apktool-compiled\Settings0\res; found: th zh_CN
aapt: warning: string 'lockscreen_enable_widgets_title' has no default translati
on in C:\apktool-compiled\Settings0\res; found: th zh_CN
aapt: warning: string 'lockscreen_vibrate_enabled_head' has no default translati
on in C:\apktool-compiled\Settings0\res; found: af ca cs iw uk
aapt: warning: string 'lockscreen_vibrate_enabled_title' has no default translat
ion in C:\apktool-compiled\Settings0\res; found: af ca cs iw uk
aapt: warning: string 'navigation_bar_category' has no default translation in C:
\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl pt r
u th uk zh_CN
aapt: warning: string 'navigation_bar_help_text' has no default translation in C
:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl pt
ru th uk zh_CN
aapt: warning: string 'navigation_bar_menu_editable' has no default translation
in C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl
pt ru th uk zh_CN
aapt: warning: string 'navigation_bar_menu_locked' has no default translation in
C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl p
t ru th uk zh_CN
aapt: warning: string 'navigation_bar_reset_message' has no default translation
in C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl
pt ru th uk zh_CN
aapt: warning: string 'navigation_bar_reset_toast' has no default translation in
C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl p
t ru th uk zh_CN
aapt: warning: string 'navigation_bar_save_message' has no default translation i
n C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl
pt ru th uk zh_CN
aapt: warning: string 'navigation_bar_tips' has no default translation in C:\apk
tool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl pt ru th
uk zh_CN
aapt: warning: string 'navigation_bar_tips_title' has no default translation in
C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl pt
ru th uk zh_CN
aapt: warning: string 'navigation_bar_title' has no default translation in C:\ap
ktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl pt ru t
h uk zh_CN
aapt: warning: string 'navigation_ring_title' has no default translation in C:\a
pktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl pt ru
th uk zh_CN
aapt: warning: string 'navring_action_google_now' has no default translation in
C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl pt
zh_CN
aapt: warning: string 'navring_action_kill_app' has no default translation in C:
\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl pt r
u th uk zh_CN
aapt: warning: string 'navring_action_none' has no default translation in C:\apk
tool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl pt ru th
uk zh_CN
aapt: warning: string 'navring_action_open_ime_switcher' has no default translat
ion in C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt n
l pl pt ru th uk zh_CN
aapt: warning: string 'navring_action_ring_silent' has no default translation in
C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl p
t ru th uk zh_CN
aapt: warning: string 'navring_action_ring_vibrate' has no default translation i
n C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl
pt ru th uk zh_CN
aapt: warning: string 'navring_action_ring_vibrate_silent' has no default transl
ation in C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt
nl pl pt ru th uk zh_CN
aapt: warning: string 'navring_action_screen_off' has no default translation in
C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl pt
ru th uk zh_CN
aapt: warning: string 'navring_action_take_screenshot' has no default translatio
n in C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl
pl pt ru th uk zh_CN
aapt: warning: string 'navring_action_torch' has no default translation in C:\ap
ktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl pt ru t
h uk zh_CN
aapt: warning: string 'navring_choose_action_title' has no default translation i
n C:\apktool-compiled\Settings0\res; found: af ca cs de es fr hu it iw lt nl pl
pt ru th uk zh_CN
aapt: warning: string 'nfc_payment_ask' has no default translation in C:\apktool
-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si si_LK
aapt: warning: string 'print_services_title' has no default translation in C:\ap
ktool-compiled\Settings0\res; found: az et hy ka km lo mn ms ne si
aapt: warning: string 'process_stats_ram_use' has no default translation in C:\a
pktool-compiled\Settings0\res; found: az_AZ ne_NP si_LK
aapt: warning: string 'processor_summary' has no default translation in C:\apkto
ol-compiled\Settings0\res; found: en_GB
aapt: warning: string 'screen_animation_off_title' has no default translation in
C:\apktool-compiled\Settings0\res; found: af ca cs de es hu it nl pt ru
aapt: warning: string 'screen_animation_style_electronbeam' has no default trans
lation in C:\apktool-compiled\Settings0\res; found: af ca cs de es hu it nl pt r
u
aapt: warning: string 'screen_animation_style_fade' has no default translation i
n C:\apktool-compiled\Settings0\res; found: af ca cs de es hu it nl pt ru
aapt: warning: string 'screen_animation_style_title' has no default translation
in C:\apktool-compiled\Settings0\res; found: af ca cs de es hu it nl pt ru
aapt: warning: string 'status_bar_battery_status_circle' has no default translat
ion in C:\apktool-compiled\Settings0\res; found: zh_CN
aapt: warning: string 'status_bar_battery_status_circle_percentage' has no defau
lt translation in C:\apktool-compiled\Settings0\res; found: zh_CN
aapt: warning: string 'status_bar_style_icon' has no default translation in C:\a
pktool-compiled\Settings0\res; found: zh_CN
aapt: warning: string 'wifi_display_available_devices' has no default translatio
n in C:\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne
ne_NP si si_LK
aapt: warning: string 'wifi_display_disconnect_text' has no default translation
in C:\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne ne
_NP si si_LK
aapt: warning: string 'wifi_display_disconnect_title' has no default translation
in C:\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne n
e_NP si si_LK
aapt: warning: string 'wifi_display_paired_devices' has no default translation i
n C:\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne ne_
NP si si_LK
aapt: warning: string 'wifi_display_search_for_devices' has no default translati
on in C:\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne
ne_NP si si_LK
aapt: warning: string 'wifi_display_searching_for_devices' has no default transl
ation in C:\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms
ne ne_NP si si_LK
aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_disabled' h
as no default translation in C:\apktool-compiled\Settings0\res; found: az az_AZ
et hy ka km lo mn ms ne ne_NP si si_LK
aapt: warning: string 'wifi_display_settings_empty_list_wifi_display_off' has no
default translation in C:\apktool-compiled\Settings0\res; found: az az_AZ et hy
ka km lo mn ms ne ne_NP si si_LK
aapt: warning: string 'wifi_display_status_available' has no default translation
in C:\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne n
e_NP si si_LK
aapt: warning: string 'wifi_display_summary_disabled' has no default translation
in C:\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne n
e_NP si si_LK
aapt: warning: string 'wifi_display_summary_off' has no default translation in C
:\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne ne_NP
si si_LK
aapt: warning: string 'wifi_display_summary_on' has no default translation in C:
\apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne ne_NP s
i si_LK
aapt: warning: string 'wimax_settings_summary' has no default translation in C:\
apktool-compiled\Settings0\res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si
si_LK
I: Building apk file...

Beginning of the original xml-file:

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen android:layout="@layout/logo_row" android:key="probam_logo" />
<PreferenceScreen android:title="@string/additional_system_update_settings_list_item_title" android:key="additional_system_update_settings">
<intent android:targetPackage="@string/additional_system_update" android:action="android.intent.action.MAIN" android:targetClass="@string/additional_system_update_menu" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/device_status" android:key="status_info" android:summary="@string/device_status_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Status" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/pbupdate_settings_title" android:key="cm_updates" android:summary="@string/pbupdate_settings_summary">
<intent android:targetPackage="com.probam.updater" android:action="android.intent.action.MAIN" android:targetClass="com.probam.updater.MainActivity" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/pbstats_settings_title" android:key="probam_stats" android:summary="@string/pbstats_settings_summary">
<intent android:targetPackage="android.probamstats" android:action="android.intent.action.MAIN" android:targetClass="android.probamstats.ProBamStats" />
</PreferenceScreen>

Beginning of the modded xml:

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen android:layout="@layout/logo_row" android:key="probam_logo" />
<PreferenceScreen android:title="@string/additional_system_update_settings_list_item_title" android:key="additional_system_update_settings">
<intent android:targetPackage="@string/additional_system_update" android:action="android.intent.action.MAIN" android:targetClass="@string/additional_system_update_menu" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/device_status" android:key="status_info" android:summary="@string/device_status_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Status" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/pbstats_settings_title" android:key="probam_stats" android:summary="@string/pbstats_settings_summary">
<intent android:targetPackage="android.probamstats" android:action="android.intent.action.MAIN" android:targetClass="android.probamstats.ProBamStats" />
</PreferenceScreen>

What I removed:

<PreferenceScreen android:title="@string/pbupdate_settings_title" android:key="cm_updates" android:summary="@string/pbupdate_settings_summary">
<intent android:targetPackage="com.probam.updater" android:action="android.intent.action.MAIN" android:targetClass="com.probam.updater.MainActivity" />
</PreferenceScreen>

Can anyone help me? Should I also post a LogCat of the ForceClose?

Thank you soo much

Blade