Skocz do zawartości

Rekomendowane odpowiedzi

Opublikowano

Witam, jak w tytule mam problem ze skompilowaniem Settings.apk z 6.4.21 dla Note 2. O ile mogę bez problemu to zdekompilować do już w drugą stronę mam same błędy - nie ważne czy używam zewnętrznego aapt (wyciągnięty z Mi PC Suite) czy też nie.

Używam ApkTool 2.1.0

Zależności 1, 16, 17 zainstalowane (framework-res.apk, miui.apk, framework-ext-res.apk) a mimo to przy próbie kompilacji ciągle mam masę błędów:

Spoiler

W: warning: string 'system_alert_window_off' has no default translation.
W: warning: string 'system_alert_window_on' has no default translation.
W: warning: string 'system_alert_window_settings' has no default translation.
W: warning: string 'system_alert_window_summary' has no default translation.
W: warning: string 'system_backup' has no default translation.
W: warning: string 'system_backup_info' has no default translation.
W: warning: string 'system_ui_settings' has no default translation.
W: warning: string 'tap_to_wake' has no default translation.
W: warning: string 'tap_to_wake_summary' has no default translation.
W: warning: string 'task_backup_cancel_progress' has no default translation.
W: warning: string 'task_backup_finished_local' has no default translation.
W: warning: string 'task_canceled' has no default translation.
W: warning: string 'task_canceled_all_local' has no default translation.
W: warning: string 'task_canceled_local' has no default translation.
W: warning: string 'task_cloud_backup_cancel_dialog' has no default translation.

W: warning: string 'task_failed' has no default translation.
W: warning: string 'task_failed_all_local' has no default translation.
W: warning: string 'task_failed_local' has no default translation.
W: warning: string 'task_finished' has no default translation.
W: warning: string 'task_local_backup_cancel_dialog' has no default translation.

W: warning: string 'task_pending' has no default translation.
W: warning: string 'task_post_running' has no default translation.
W: warning: string 'task_pre_running' has no default translation.
W: warning: string 'task_progress' has no default translation.
W: warning: string 'task_restore_cancel_dialog' has no default translation.
W: warning: string 'task_restore_cancel_progress' has no default translation.
W: warning: string 'task_restore_finished_local' has no default translation.
W: warning: string 'task_restore_none' has no default translation.
W: warning: string 'task_running_backup_dialog' has no default translation.
W: warning: string 'task_running_backup_hint' has no default translation.
W: warning: string 'task_running_dialog' has no default translation.
W: warning: string 'task_running_hint' has no default translation.
W: warning: string 'task_running_restore_dialog' has no default translation.
W: warning: string 'task_running_restore_hint' has no default translation.
W: warning: string 'task_service_not_launched' has no default translation.
W: warning: string 'task_stopped_exception' has no default translation.
W: warning: string 'title_dolby_control' has no default translation.
W: warning: string 'tnhwrevision_settings_list_item_summary' has no default tran
slation.
W: warning: string 'tnhwrevision_settings_list_item_title' has no default transl
ation.
W: warning: string 'total_memory' has no default translation.
W: warning: string 'total_num' has no default translation.
W: warning: string 'touch_assistant' has no default translation.
W: warning: string 'touch_filtered_warning' has no default translation.
W: warning: string 'trust_agent_disabled_device_admin' has no default translatio
n.
W: warning: string 'unit_byte' has no default translation.
W: warning: string 'unit_piece' has no default translation.
W: warning: string 'unknown_app' has no default translation.
W: warning: string 'unknown_hint' has no default translation.
W: warning: string 'unlock_disable_frp_warning_content_password' has no default
translation.
W: warning: string 'unlock_disable_frp_warning_content_password_fingerprint' has
 no default translation.
W: warning: string 'unlock_disable_frp_warning_content_pattern' has no default t
ranslation.
W: warning: string 'unlock_disable_frp_warning_content_pattern_fingerprint' has
no default translation.
W: warning: string 'unlock_disable_frp_warning_content_pin' has no default trans
lation.
W: warning: string 'unlock_disable_frp_warning_content_pin_fingerprint' has no d
efault translation.
W: warning: string 'unlock_disable_frp_warning_content_unknown' has no default t
ranslation.
W: warning: string 'unlock_disable_frp_warning_content_unknown_fingerprint' has
no default translation.
W: warning: string 'unlock_disable_frp_warning_ok' has no default translation.
W: warning: string 'unlock_disable_frp_warning_title' has no default translation
.
W: warning: string 'unlock_setup_wizard_fingerprint_details' has no default tran
slation.
W: warning: string 'usage_access' has no default translation.
W: warning: string 'usage_access_description' has no default translation.
W: warning: string 'usage_type_camera' has no default translation.
W: warning: string 'usage_type_flashlight' has no default translation.
W: warning: string 'usb_midi_summary' has no default translation.
W: warning: string 'usb_midi_title' has no default translation.
W: warning: string 'usb_use' has no default translation.
W: warning: string 'usb_use_MIDI' has no default translation.
W: warning: string 'usb_use_charging_only' has no default translation.
W: warning: string 'usb_use_file_transfers' has no default translation.
W: warning: string 'usb_use_photo_transfers' has no default translation.
W: warning: string 'user_add_max_count' has no default translation.
W: warning: string 'user_enable_calling_and_sms_confirm_message' has no default
translation.
W: warning: string 'user_enable_calling_and_sms_confirm_title' has no default tr
anslation.
W: warning: string 'verify_applications' has no default translation.
W: warning: string 'verify_applications_summary' has no default translation.
W: warning: string 'view_install_log' has no default translation.
W: warning: string 'virtual_sim_global_category_title' has no default translatio
n.
W: warning: string 'virtual_sim_global_description' has no default translation.
W: warning: string 'virtual_sim_global_title' has no default translation.
W: warning: string 'virus_scanner_lib_update_success' has no default translation
.
W: warning: string 'volte_provisioned_flag_off' has no default translation.
W: warning: string 'volte_provisioned_flag_on' has no default translation.
W: warning: string 'vpn_disconnect' has no default translation.
W: warning: string 'vpn_disconnect_confirm' has no default translation.
W: warning: string 'vpn_done' has no default translation.
W: warning: string 'vpn_forget' has no default translation.
W: warning: string 'vpn_version' has no default translation.
W: warning: string 'webview_license_title' has no default translation.
W: warning: string 'wifi_alert_lockdown_by_device_owner' has no default translat
ion.
W: warning: string 'wifi_ap_band_config' has no default translation.
W: warning: string 'wifi_ap_choose_2G' has no default translation.
W: warning: string 'wifi_ap_choose_5G' has no default translation.
W: warning: string 'wifi_assistant_dialog_message' has no default translation.
W: warning: string 'wifi_assistant_explanation_message' has no default translati
on.
W: warning: string 'wifi_assistant_permission_accepted' has no default translati
on.
W: warning: string 'wifi_assistant_setting_summary' has no default translation.
W: warning: string 'wifi_assistant_setting_title' has no default translation.
W: warning: string 'wifi_assistant_vpn_message' has no default translation.
W: warning: string 'wifi_automatically_connect_summary' has no default translati
on.
W: warning: string 'wifi_automatically_connect_title' has no default translation
.
W: warning: string 'wifi_calling_mode_dialog_title' has no default translation.
W: warning: string 'wifi_calling_mode_title' has no default translation.
W: warning: string 'wifi_calling_off_explanation' has no default translation.
W: warning: string 'wifi_calling_settings_title' has no default translation.
W: warning: string 'wifi_connected_no_internet' has no default translation.
W: warning: string 'wifi_disabled_wifi_failure' has no default translation.
W: warning: string 'wifi_enable_data_and_wifi_roam' has no default translation.
W: warning: string 'wifi_enable_data_and_wifi_roam_summary' has no default trans
lation.
W: warning: string 'wifi_menu_remember' has no default translation.
W: warning: string 'wifi_no_internet' has no default translation.
W: warning: string 'wifi_sap_no_channel_error' has no default translation.
W: warning: string 'wifi_scan_notify_text' has no default translation.
W: warning: string 'wifi_secured_first_item' has no default translation.
W: warning: string 'wifi_secured_second_item' has no default translation.
W: warning: string 'wifi_security_passpoint' has no default translation.
W: warning: string 'wifi_select_assistant_dialog_title' has no default translati
on.
W: warning: string 'wifi_switch_away_when_unvalidated' has no default translatio
n.
W: warning: string 'wifi_title' has no default translation.
W: warning: string 'work_profile_usage_access_warning' has no default translatio
n.
W: warning: string 'write_settings' has no default translation.
W: warning: string 'write_settings_description' has no default translation.
W: warning: string 'write_settings_off' has no default translation.
W: warning: string 'write_settings_on' has no default translation.
W: warning: string 'write_settings_preference' has no default translation.
W: warning: string 'write_settings_summary' has no default translation.
W: warning: string 'write_settings_title' has no default translation.
W: warning: string 'write_system_settings' has no default translation.
W: warning: string 'xiaomi_router' has no default translation.
W: warning: string 'xiaomi_router_location' has no default translation.
W: warning: string 'zen_access_empty_text' has no default translation.
W: warning: string 'zen_access_warning_dialog_summary' has no default translatio
n.
W: warning: string 'zen_access_warning_dialog_title' has no default translation.

W: warning: string 'zen_event_rule_enabled_toast' has no default translation.
W: warning: string 'zen_event_rule_type_name' has no default translation.
W: warning: string 'zen_mode_add_rule' has no default translation.
W: warning: string 'zen_mode_alarms' has no default translation.
W: warning: string 'zen_mode_automation_settings_title' has no default translati
on.
W: warning: string 'zen_mode_calls' has no default translation.
W: warning: string 'zen_mode_configure_rule' has no default translation.
W: warning: string 'zen_mode_delete_rule' has no default translation.
W: warning: string 'zen_mode_delete_rule_button' has no default translation.
W: warning: string 'zen_mode_delete_rule_confirmation' has no default translatio
n.
W: warning: string 'zen_mode_end_time_next_day_summary_format' has no default tr
anslation.
W: warning: string 'zen_mode_event_rule_calendar' has no default translation.
W: warning: string 'zen_mode_event_rule_calendar_any' has no default translation
.
W: warning: string 'zen_mode_event_rule_reply' has no default translation.
W: warning: string 'zen_mode_event_rule_reply_any_except_no' has no default tran
slation.
W: warning: string 'zen_mode_event_rule_reply_yes' has no default translation.
W: warning: string 'zen_mode_event_rule_reply_yes_or_maybe' has no default trans
lation.
W: warning: string 'zen_mode_event_rule_summary_any_calendar' has no default tra
nslation.
W: warning: string 'zen_mode_event_rule_summary_calendar_template' has no defaul
t translation.
W: warning: string 'zen_mode_event_rule_summary_reply_template' has no default t
ranslation.
W: warning: string 'zen_mode_from_call' has no default translation.
W: warning: string 'zen_mode_from_none' has no default translation.
W: warning: string 'zen_mode_from_sms' has no default translation.
W: warning: string 'zen_mode_option_alarms' has no default translation.
W: warning: string 'zen_mode_priority_settings_title' has no default translation
.
W: warning: string 'zen_mode_reminders' has no default translation.
W: warning: string 'zen_mode_repeat_callers' has no default translation.
W: warning: string 'zen_mode_repeat_callers_summary' has no default translation.

W: warning: string 'zen_mode_rule_name' has no default translation.
W: warning: string 'zen_mode_rule_name_hint' has no default translation.
W: warning: string 'zen_mode_rule_name_warning' has no default translation.
W: warning: string 'zen_mode_rule_not_found_text' has no default translation.
W: warning: string 'zen_mode_rule_summary_combination' has no default translatio
n.
W: warning: string 'zen_mode_rule_type' has no default translation.
W: warning: string 'zen_mode_rule_type_unknown' has no default translation.
W: warning: string 'zen_mode_schedule_rule_days' has no default translation.
W: warning: string 'zen_mode_schedule_rule_days_all' has no default translation.

W: warning: string 'zen_mode_schedule_rule_days_none' has no default translation
.
W: warning: string 'zen_mode_selected_callers' has no default translation.
W: warning: string 'zen_mode_selected_messages' has no default translation.
W: warning: string 'zen_mode_summary_alarms_only_by_time' has no default transla
tion.
W: warning: string 'zen_mode_summary_alarms_only_indefinite' has no default tran
slation.
W: warning: string 'zen_mode_summary_always' has no default translation.
W: warning: string 'zen_mode_summary_combination' has no default translation.
W: warning: string 'zen_schedule_rule_enabled_toast' has no default translation.

W: warning: string 'zen_schedule_rule_type_name' has no default translation.
W: C:\Program Files (x86)\Minimal ADB and Fastboot\Settings\res\layout\provision
_page_layout.xml:4: error: Error: No resource found that matches the given name
(at 'layout' with value '@miui.system:layout/provision_bg').
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec (exit code = 1): [C:\User
s\Artur\AppData\Local\Temp\brut_util_Jar_5237911886427373034.tmp, p, --forced-pa
ckage-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code,
21, --version-name, 5.0.2, -F, C:\Users\Artur\AppData\Local\Temp\APKTOOL65970370
59982246659.tmp, -0, dex, -0, arsc, -0, xml, -0, res/raw/translation_contributor
s, -0, res/raw-cs/translation_contributors, -0, res/raw-de/translation_contribut
ors, -0, res/raw-el/translation_contributors, -0, res/raw-fr/translation_contrib
utors, -0, res/raw-hr/translation_contributors, -0, res/raw-hu/translation_contr
ibutors, -0, res/raw-it/translation_contributors, -0, res/raw-iw/translation_con
tributors, -0, res/raw-mk/translation_contributors, -0, res/raw-pl/translation_c
ontributors, -0, res/raw-pt-PT/translation_contributors, -0, res/raw-ro/translat
ion_contributors, -0, res/raw-sk/translation_contributors, -0, res/raw-sl/transl
ation_contributors, -0, res/raw-sr/translation_contributors, -0, res/raw-tr/tran
slation_contributors, -0, res/raw-vi/translation_contributors, -0, arsc, -I, C:\
Users\Artur\apktool\framework\1.apk, -I, C:\Users\Artur\apktool\framework\16.apk
, -I, C:\Users\Artur\apktool\framework\17.apk, -S, C:\Program Files (x86)\Minima
l ADB and Fastboot\Settings\res, -M, C:\Program Files (x86)\Minimal ADB and Fast
boot\Settings\AndroidManifest.xml]
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:433)
        at brut.androlib.Androlib.buildResources(Androlib.java:371)
        at brut.androlib.Androlib.build(Androlib.java:281)
        at brut.androlib.Androlib.build(Androlib.java:254)
        at brut.apktool.Main.cmdBuild(Main.java:224)
        at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
 exec (exit code = 1): [C:\Users\Artur\AppData\Local\Temp\brut_util_Jar_52379118
86427373034.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sd
k-version, 21, --version-code, 21, --version-name, 5.0.2, -F, C:\Users\Artur\App
Data\Local\Temp\APKTOOL6597037059982246659.tmp, -0, dex, -0, arsc, -0, xml, -0,
res/raw/translation_contributors, -0, res/raw-cs/translation_contributors, -0, r
es/raw-de/translation_contributors, -0, res/raw-el/translation_contributors, -0,
 res/raw-fr/translation_contributors, -0, res/raw-hr/translation_contributors, -
0, res/raw-hu/translation_contributors, -0, res/raw-it/translation_contributors,
 -0, res/raw-iw/translation_contributors, -0, res/raw-mk/translation_contributor
s, -0, res/raw-pl/translation_contributors, -0, res/raw-pt-PT/translation_contri
butors, -0, res/raw-ro/translation_contributors, -0, res/raw-sk/translation_cont
ributors, -0, res/raw-sl/translation_contributors, -0, res/raw-sr/translation_co
ntributors, -0, res/raw-tr/translation_contributors, -0, res/raw-vi/translation_
contributors, -0, arsc, -I, C:\Users\Artur\apktool\framework\1.apk, -I, C:\Users
\Artur\apktool\framework\16.apk, -I, C:\Users\Artur\apktool\framework\17.apk, -S
, C:\Program Files (x86)\Minimal ADB and Fastboot\Settings\res, -M, C:\Program F
iles (x86)\Minimal ADB and Fastboot\Settings\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:433)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:419)
        ... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\
Artur\AppData\Local\Temp\brut_util_Jar_5237911886427373034.tmp, p, --forced-pack
age-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21
, --version-name, 5.0.2, -F, C:\Users\Artur\AppData\Local\Temp\APKTOOL6597037059
982246659.tmp, -0, dex, -0, arsc, -0, xml, -0, res/raw/translation_contributors,
 -0, res/raw-cs/translation_contributors, -0, res/raw-de/translation_contributor
s, -0, res/raw-el/translation_contributors, -0, res/raw-fr/translation_contribut
ors, -0, res/raw-hr/translation_contributors, -0, res/raw-hu/translation_contrib
utors, -0, res/raw-it/translation_contributors, -0, res/raw-iw/translation_contr
ibutors, -0, res/raw-mk/translation_contributors, -0, res/raw-pl/translation_con
tributors, -0, res/raw-pt-PT/translation_contributors, -0, res/raw-ro/translatio
n_contributors, -0, res/raw-sk/translation_contributors, -0, res/raw-sl/translat
ion_contributors, -0, res/raw-sr/translation_contributors, -0, res/raw-tr/transl
ation_contributors, -0, res/raw-vi/translation_contributors, -0, arsc, -I, C:\Us
ers\Artur\apktool\framework\1.apk, -I, C:\Users\Artur\apktool\framework\16.apk,
-I, C:\Users\Artur\apktool\framework\17.apk, -S, C:\Program Files (x86)\Minimal
ADB and Fastboot\Settings\res, -M, C:\Program Files (x86)\Minimal ADB and Fastbo
ot\Settings\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:95)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:427)
        ... 6 more

C:\Program Files (x86)\Minimal ADB and Fastboot>

 

Opublikowano

Dzięki, w teorii pomogło bo mogę skompilować, lecz po podpisaniu (używając kluczy dla platform) nie mogę zainstalować (jako aktualizację do Settings.apk) - nie wyświetla się żaden tekstowy błąd w stylu "Błąd parsowania pakietu" tylko wielki czerwony krzyżyk. Generalnie chciałem dodać sobie w menu ustawień odnośnik do wywołania UsbSettings. Settings_headers odpowiednio z edytowałem wykorzystując już istniejące stringi i grafiki a mimo to po kompilacji/podpisaniu nie mogę zainstalować :/

  • mrosi zablokował(a) ten temat
Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
×
×
  • Dodaj nową pozycję...