[General Questions and Answers] shaowd:
I'm using Sony Xperia Z2 with official CM12.1.

I have managed to disable the emulated sdcard function to fully use the external sdcard.

One of the steps is editing storage_list.xml which is located in framework-res.apk

I do not have a available PC now, so I use apktool application on Android.

after recompiling, everything works except some UI dialog box. (Look at the snapshots)

Recent update: I tried the latest apktool on PC, the same problem.

This is the log of apktool:

Decompile:

I: Using Apktool 2.0.3-9402bd-SNAPSHOT on framework-res.apk

I: Loading resource table...

I: Decoding AndroidManifest.xml with resources...

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

Recompile:

I: Using Apktool 2.0.3-9402bd-SNAPSHOT

W: Could not find sources

I: Building resources...

warning: string 'app_no_restricted_accounts' has no default translation.

warning: string 'description_direction_down' has no default translation.

warning: string 'description_direction_left' has no default translation.

warning: string 'description_direction_right' has no default translation.

warning: string 'description_direction_up' has no default translation.

warning: string 'description_target_camera' has no default translation.

warning: string 'description_target_search' has no default translation.

warning: string 'description_target_silent' has no default translation.

warning: string 'description_target_soundon' has no default translation.

warning: string 'description_target_unlock' has no default translation.

warning: string 'lockscreen_battery_short' has no default translation.

warning: string 'lockscreen_charged' has no default translation.

warning: string 'lockscreen_low_battery' has no default translation.

warning: string 'lockscreen_plugged_in' has no default translation.

warning: string 'mediaSize_iso_a0' has no default translation.

warning: string 'mediaSize_iso_a1' has no default translation.

warning: string 'mediaSize_iso_a10' has no default translation.

warning: string 'mediaSize_iso_a2' has no default translation.

warning: string 'mediaSize_iso_a3' has no default translation.

warning: string 'mediaSize_iso_a4' has no default translation.

warning: string 'mediaSize_iso_a5' has no default translation.

warning: string 'mediaSize_iso_a6' has no default translation.

warning: string 'mediaSize_iso_a7' has no default translation.

warning: string 'mediaSize_iso_a8' has no default translation.

warning: string 'mediaSize_iso_a9' has no default translation.

warning: string 'mediaSize_iso_b0' has no default translation.

warning: string 'mediaSize_iso_b1' has no default translation.

warning: string 'mediaSize_iso_b10' has no default translation.

warning: string 'mediaSize_iso_b2' has no default translation.

warning: string 'mediaSize_iso_b3' has no default translation.

warning: string 'mediaSize_iso_b4' has no default translation.

warning: string 'mediaSize_iso_b5' has no default translation.

warning: string 'mediaSize_iso_b6' has no default translation.

warning: string 'mediaSize_iso_b7' has no default translation.

warning: string 'mediaSize_iso_b8' has no default translation.

warning: string 'mediaSize_iso_b9' has no default translation.

warning: string 'mediaSize_iso_c0' has no default translation.

warning: string 'mediaSize_iso_c1' has no default translation.

warning: string 'mediaSize_iso_c10' has no default translation.

warning: string 'mediaSize_iso_c2' has no default translation.

warning: string 'mediaSize_iso_c3' has no default translation.

warning: string 'mediaSize_iso_c4' has no default translation.

warning: string 'mediaSize_iso_c5' has no default translation.

warning: string 'mediaSize_iso_c6' has no default translation.

warning: string 'mediaSize_iso_c7' has no default translation.

warning: string 'mediaSize_iso_c8' has no default translation.

warning: string 'mediaSize_iso_c9' has no default translation.

warning: string 'mediaSize_na_gvrnmt_letter' has no default translation.

warning: string 'mediaSize_na_junior_legal' has no default translation.

warning: string 'mediaSize_na_ledger' has no default translation.

warning: string 'mediaSize_na_legal' has no default translation.

warning: string 'mediaSize_na_letter' has no default translation.

warning: string 'mediaSize_na_tabloid' has no default translation.

warning: string 'media_route_chooser_grouping_done' has no default translation.

warning: string 'permdesc_hotwordRecognition' has no default translation.

warning: string 'permdesc_magnify_display' has no default translation.

warning: string 'permdesc_markNetworkSocket' has no default translation.

warning: string 'permdesc_retrieve_window_info' has no default translation.

warning: string 'permlab_hotwordRecognition' has no default translation.

warning: string 'permlab_magnify_display' has no default translation.

warning: string 'permlab_markNetworkSocket' has no default translation.

warning: string 'permlab_retrieve_window_info' has no default translation.

warning: string 'throttle_warning_notification_message' has no default translation.

warning: string 'throttle_warning_notification_title' has no default translation.

warning: string 'throttled_notification_message' has no default translation.

warning: string 'throttled_notification_title' has no default translation.

warning: string 'transient_navigation_confirmation' has no default translation.

warning: string 'transient_navigation_confirmation_long' has no default translation.

warning: string 'use_physical_keyboard' has no default translation.

warning: string 'wifi_display_notification_disconnect' has no default translation.

warning: string 'wifi_display_notification_message' has no default translation.

warning: string 'wifi_display_notification_title' has no default translation.

I: Copy original files...

I: Copy AndroidManifest.xml...

I: Copy META-INF...

I: Building apk file...

I only edited storage_list.xml and leave everything else untouched.

I really didn't see a error. But why the hell it goes wrong? Could someone tell me any information about this? Or could someone modify a framework-res.apk for me to test? (use a PC) Thank you very much!!