[Android Software Development] ZduneX25:
Unfortunately it's MediaFile.smali form framework.jar.out I used aosp ROM as a base and am getting only 3 hunks (which is great), but they are too messed up to be fixable.

z25@aosp:~/patchrom/haida$ make firstpatch
/home/z25/patchrom/tools/patch_miui_framework.sh /home/z25/patchrom/android/google-framework /home/z25/patchrom/android `pwd`
<<< create temp directory to store the old, new source and destination smali code with .line removed
<<< compute the difference between /home/z25/patchrom/haida/temp/old_smali/android.policy.jar.out and /home/z25/patchrom/haida/temp/new_smali/android.policy.jar.out
<<< apply the patch into the /home/z25/patchrom/haida/android.policy.jar.out
patching file /home/z25/patchrom/haida/android.policy.jar.out/./smali/com/android/internal/policy/impl/Policy.smali
patching file '/home/z25/patchrom/haida/android.policy.jar.out/./smali/com/android/internal/policy/impl/PhoneWindowManager$18$1.smali'
patching file '/home/z25/patchrom/haida/android.policy.jar.out/./smali/com/android/internal/policy/impl/KeyguardUpdateMonitor$SimArgs.smali'
patching file /home/z25/patchrom/haida/android.policy.jar.out/./smali/com/android/internal/policy/impl/KeyguardViewMediator.smali
Hunk #11 succeeded at 2092 with fuzz 2 (offset 48 lines).
Hunk #12 succeeded at 2574 (offset 109 lines).
patching file /home/z25/patchrom/haida/android.policy.jar.out/./smali/com/android/internal/policy/impl/PhoneWindow.smali
patching file '/home/z25/patchrom/haida/android.policy.jar.out/./smali/com/android/internal/policy/impl/LockPatternKeyguardView$3.smali'
patching file '/home/z25/patchrom/haida/android.policy.jar.out/./smali/com/android/internal/policy/impl/PhoneWindowManager$18.smali'
patching file /home/z25/patchrom/haida/android.policy.jar.out/./smali/com/android/internal/policy/impl/LockPatternKeyguardView.smali
Hunk #5 succeeded at 756 (offset 3 lines).
Hunk #6 succeeded at 1164 (offset 3 lines).
Hunk #7 succeeded at 1634 (offset 3 lines).
Hunk #8 succeeded at 1706 (offset 3 lines).
Hunk #9 succeeded at 3073 (offset 3 lines).
patching file '/home/z25/patchrom/haida/android.policy.jar.out/./smali/com/android/internal/policy/impl/PhoneWindow$DecorView.smali'
patching file /home/z25/patchrom/haida/android.policy.jar.out/./smali/com/android/internal/policy/impl/PhoneWindowManager.smali
Hunk #5 succeeded at 4900 (offset 54 lines).
Hunk #6 succeeded at 6675 (offset 54 lines).
Hunk #7 succeeded at 6687 (offset 54 lines).
Hunk #8 succeeded at 7026 (offset 54 lines).
Hunk #9 succeeded at 7191 (offset 54 lines).
Hunk #10 succeeded at 7206 (offset 54 lines).
Hunk #11 succeeded at 10522 (offset 153 lines).
Hunk #12 succeeded at 10542 (offset 153 lines).
patching file /home/z25/patchrom/haida/android.policy.jar.out/./smali/com/android/internal/policy/impl/KeyguardViewManager.smali
<<< compute the difference between /home/z25/patchrom/haida/temp/old_smali/services.jar.out and /home/z25/patchrom/haida/temp/new_smali/services.jar.out
<<< apply the patch into the /home/z25/patchrom/haida/services.jar.out
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/am/AppErrorDialog.smali
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/am/ActivityManagerService.smali
Hunk #1 succeeded at 1324 (offset 13 lines).
Hunk #2 succeeded at 62981 (offset 462 lines).
Hunk #3 succeeded at 63017 (offset 462 lines).
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/am/BaseErrorDialog.smali
patching file '/home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/am/AppErrorDialog$1.smali'
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/am/ActivityStack.smali
Hunk #1 succeeded at 6100 (offset -25 lines).
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/LightsService.smali
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/wm/WindowManagerService.smali
Hunk #4 succeeded at 11867 (offset -21 lines).
Hunk #5 succeeded at 34183 (offset 54 lines).
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/ServerThread.smali
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/ConnectivityService.smali
Hunk #2 succeeded at 6863 (offset 136 lines).
Hunk #3 succeeded at 10426 (offset 248 lines).
patching file '/home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/LightsService$Light.smali'
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/BackupManagerService.smali
Hunk #1 succeeded at 7368 (offset 7 lines).
Hunk #2 succeeded at 7448 (offset 7 lines).
Hunk #3 succeeded at 7607 (offset 7 lines).
Hunk #4 succeeded at 7687 (offset 7 lines).
Hunk #5 succeeded at 10850 (offset -7 lines).
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/pm/Settings.smali
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/pm/GrantedPermissions.smali
patching file /home/z25/patchrom/haida/services.jar.out/./smali/com/android/server/pm/PackageManagerService.smali
<<< compute the difference between /home/z25/patchrom/haida/temp/old_smali/framework.jar.out and /home/z25/patchrom/haida/temp/new_smali/framework.jar.out
<<< apply the patch into the /home/z25/patchrom/haida/framework.jar.out
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/app/ShutdownThread$CloseDialogReceiver.smali'
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/app/ShutdownThread.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/view/menu/ActionMenuView.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/view/menu/ActionMenuPresenter.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/SmsUsageMonitor.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/AdnRecordCache.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/gsm/SIMRecords.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/gsm/GsmDataConnectionTracker.smali
Hunk #1 succeeded at 6808 (offset 185 lines).
Hunk #2 FAILED at 8997.
Hunk #3 succeeded at 9780 (offset 178 lines).
Hunk #4 succeeded at 9889 (offset 178 lines).
Hunk #5 succeeded at 10678 (offset 213 lines).
1 out of 5 hunks FAILED -- saving rejects to file /home/z25/patchrom/haida/temp/reject/framework.jar.out/./smali/com/android/internal/telephony/gsm/GsmDataConnectionTracker.smali.rej
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali
Hunk #1 succeeded at 6683 (offset 48 lines).
Hunk #2 succeeded at 6908 (offset 48 lines).
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/AdnRecord.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/IccPhoneBookInterfaceManager.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/DataConnectionTracker.smali
Hunk #1 succeeded at 1414 (offset 2 lines).
Hunk #2 succeeded at 1440 (offset 2 lines).
Hunk #3 succeeded at 2432 (offset 2 lines).
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/IIccPhoneBook.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/CallerInfo.smali
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/IIccPhoneBook$Stub.smali'
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/CallerInfoAsyncQuery.smali
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/IIccPhoneBook$Stub$Proxy.smali'
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/cdma/CdmaDataConnectionTracker.smali
Hunk #1 succeeded at 1105 (offset 105 lines).
Hunk #2 succeeded at 3027 with fuzz 2 (offset 129 lines).
Hunk #3 succeeded at 3337 (offset 162 lines).
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/IccProvider.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/WapPushOverSms.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/SMSDispatcher.smali
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/CallerInfoAsyncQuery$CallerInfoAsyncQueryHandler.smali'
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/telephony/IccPhoneBookInterfaceManagerProxy.smali
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/widget/LockPatternUtils$PasswordFileObserver.smali'
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/widget/LockPatternUtils.smali
Hunk #1 succeeded at 527 (offset 13 lines).
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/widget/multiwaveview/Ease.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/widget/multiwaveview/MultiWaveView.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/widget/multiwaveview/Tweener.smali
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/com/android/internal/widget/multiwaveview/Ease$Quad.smali'
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/android/app/ApplicationPackageManager$ResourceName.smali'
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/app/ApplicationPackageManager.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/app/ActivityThread.smali
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/android/app/ContextImpl$11.smali'
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/android/app/DownloadManager$CursorTranslator.smali'
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/app/DownloadManager.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/app/Activity.smali
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/android/app/DownloadManager$Query.smali'
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/view/View.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/view/ViewRootImpl.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/view/HapticFeedbackConstants.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/os/Vibrator.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/graphics/drawable/NinePatchDrawable.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/accounts/AccountManagerService.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/content/res/AssetManager.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/content/res/Resources.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/content/res/Configuration.smali
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/android/content/res/Resources$Theme.smali'
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/content/pm/ResolveInfo.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/content/pm/ApplicationInfo.smali
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/android/content/pm/ParceledListSlice$1.smali'
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/content/pm/PackageItemInfo.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/content/pm/PackageManager.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/content/pm/PackageParser.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/media/AudioService.smali
Hunk #1 succeeded at 258 (offset 2 lines).
Hunk #2 succeeded at 560 with fuzz 1 (offset 2 lines).
Hunk #3 succeeded at 4573 (offset 14 lines).
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/media/MediaFile.smali
Hunk #1 succeeded at 138 (offset 12 lines).
Hunk #2 succeeded at 311 (offset 28 lines).
Hunk #3 FAILED at 294.
Hunk #4 succeeded at 445 (offset 44 lines).
Hunk #5 FAILED at 1066.
2 out of 5 hunks FAILED -- saving rejects to file /home/z25/patchrom/haida/temp/reject/framework.jar.out/./smali/android/media/MediaFile.smali.rej
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/telephony/TelephonyManager.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/telephony/PhoneNumberUtils.smali
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/widget/TimePicker.smali
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/android/widget/TimePicker$4.smali'
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/android/widget/TimePicker$5.smali'
patching file /home/z25/patchrom/haida/framework.jar.out/./smali/android/widget/SuggestionsAdapter.smali
patching file '/home/z25/patchrom/haida/framework.jar.out/./smali/android/widget/QuickContactBadge$QueryHandler.smali'

>>> patch miui into target framework is done. Please look at /home/z25/patchrom/haida/temp/reject to resolve any conflicts!

___________

Sent form awesome Neo V