[Android Q&A, Help & Troubleshooting] snifer3k:
hi im porting a MIUI rom to thl w200s mtk6592

when i make firstpatch i got this...

1 out of 1 hunk FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/view/ViewRootImpl$ViewRootHandler.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/Notification.smali

Hunk #1 FAILED at 97.

Hunk #2 FAILED at 158.

Hunk #3 FAILED at 192.

Hunk #4 FAILED at 220.

Hunk #5 FAILED at 254.

Hunk #6 FAILED at 535.

Hunk #7 FAILED at 804.

Hunk #8 FAILED at 1473.

8 out of 8 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/Notification.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/ActivityManager.smali

Hunk #1 FAILED at 447.

1 out of 1 hunk FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/ActivityManager.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/ActivityThread.smali

Hunk #1 FAILED at 10562.

Hunk #2 FAILED at 12303.

Hunk #3 FAILED at 12422.

3 out of 3 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/ActivityThread.smali.rej

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/ApplicationPackageManager$ResourceName.smali'

Hunk #1 FAILED at 9.

1 out of 1 hunk FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/ApplicationPackageManager$ResourceName.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/SearchDialog.smali

Hunk #1 FAILED at 614.

Hunk #2 FAILED at 776.

2 out of 2 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/SearchDialog.smali.rej

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/ContextImpl$14.smali'

Hunk #1 FAILED at 31.

Hunk #2 FAILED at 41.

2 out of 2 hunks FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/ContextImpl$14.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/DownloadManager.smali

Hunk #1 FAILED at 8.

Hunk #2 FAILED at 658.

2 out of 2 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/DownloadManager.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/ContextImpl.smali

Hunk #1 FAILED at 8.

Hunk #2 FAILED at 495.

Hunk #3 FAILED at 1251.

Hunk #4 FAILED at 3963.

Hunk #5 FAILED at 6440.

5 out of 5 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/ContextImpl.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/SearchManager.smali

Hunk #1 FAILED at 188.

1 out of 1 hunk FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/SearchManager.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/backup/FullBackup.smali

Hunk #1 FAILED at 191.

1 out of 1 hunk FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/backup/FullBackup.smali.rej

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/INotificationManager$Stub$Proxy.smali'

Hunk #1 FAILED at 36.

1 out of 1 hunk FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/INotificationManager$Stub$Proxy.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/Dialog.smali

Hunk #1 FAILED at 12.

Hunk #2 FAILED at 197.

Hunk #3 FAILED at 477.

Hunk #4 FAILED at 845.

Hunk #5 FAILED at 2038.

Hunk #6 FAILED at 2087.

6 out of 6 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/Dialog.smali.rej

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/LauncherActivity$ActivityAdapter.smali'

Hunk #1 FAILED at 268.

1 out of 1 hunk FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/LauncherActivity$ActivityAdapter.smali.rej'

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/DownloadManager$Request.smali'

Hunk #1 FAILED at 762.

Hunk #2 FAILED at 791.

2 out of 2 hunks FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/DownloadManager$Request.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/LauncherActivity.smali

Hunk #1 FAILED at 8.

1 out of 1 hunk FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/LauncherActivity.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/Activity.smali

Hunk #1 FAILED at 15.

Hunk #2 FAILED at 439.

Hunk #3 FAILED at 2432.

Hunk #4 FAILED at 2705.

Hunk #5 FAILED at 3474.

Hunk #6 FAILED at 4854.

Hunk #7 FAILED at 5145.

Hunk #8 FAILED at 5597.

Hunk #9 FAILED at 6009.

9 out of 9 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/Activity.smali.rej

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/DownloadManager$CursorTranslator.smali'

Hunk #1 FAILED at 9.

Hunk #2 FAILED at 260.

Hunk #3 FAILED at 299.

Hunk #4 FAILED at 331.

Hunk #5 FAILED at 401.

Hunk #6 FAILED at 472.

Hunk #7 FAILED at 505.

7 out of 7 hunks FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/DownloadManager$CursorTranslator.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/INotificationManager.smali

Hunk #1 FAILED at 15.

1 out of 1 hunk FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/INotificationManager.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/ApplicationPackageManager.smali

Hunk #1 FAILED at 1476.

Hunk #2 FAILED at 2610.

Hunk #3 FAILED at 4453.

3 out of 3 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/ApplicationPackageManager.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/ActivityOptions.smali

Hunk #1 FAILED at 306.

1 out of 1 hunk FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/ActivityOptions.smali.rej

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/DownloadManager$Query.smali'

Hunk #1 FAILED at 170.

Hunk #2 FAILED at 496.

Hunk #3 FAILED at 509.

Hunk #4 FAILED at 606.

4 out of 4 hunks FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/DownloadManager$Query.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/StatusBarManager.smali

Hunk #1 FAILED at 123.

Hunk #2 FAILED at 460.

2 out of 2 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/StatusBarManager.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/LoadedApk.smali

Hunk #1 FAILED at 1767.

Hunk #2 FAILED at 2404.

2 out of 2 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/LoadedApk.smali.rej

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/INotificationManager$Stub.smali'

Hunk #1 FAILED at 40.

Hunk #2 FAILED at 377.

Hunk #3 FAILED at 388.

3 out of 3 hunks FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/INotificationManager$Stub.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/app/ProgressDialog.smali

Hunk #1 FAILED at 3.

Hunk #2 FAILED at 641.

2 out of 2 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/app/ProgressDialog.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/Chronometer.smali

Hunk #1 FAILED at 9.

Hunk #2 FAILED at 247.

2 out of 2 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/Chronometer.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/SuggestionsAdapter.smali

Hunk #1 FAILED at 9.

Hunk #2 FAILED at 338.

2 out of 2 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/SuggestionsAdapter.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/DatePicker.smali

Hunk #1 FAILED at 7.

Hunk #2 FAILED at 43.

Hunk #3 FAILED at 216.

Hunk #4 FAILED at 240.

Hunk #5 FAILED at 979.

Hunk #6 FAILED at 995.

Hunk #7 FAILED at 1008.

Hunk #8 FAILED at 1031.

Hunk #9 FAILED at 1153.

Hunk #10 FAILED at 1170.

Hunk #11 FAILED at 1268.

Hunk #12 FAILED at 1392.

Hunk #13 FAILED at 1468.

13 out of 13 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/DatePicker.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/QuickContactBadge.smali

Hunk #1 FAILED at 9.

Hunk #2 FAILED at 461.

Hunk #3 FAILED at 506.

3 out of 3 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/QuickContactBadge.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/CompoundButton.smali

Hunk #1 FAILED at 11.

Hunk #2 FAILED at 285.

2 out of 2 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/CompoundButton.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/ProgressBar.smali

Hunk #1 FAILED at 909.

Hunk #2 FAILED at 1210.

Hunk #3 FAILED at 2792.

3 out of 3 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/ProgressBar.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/EdgeEffect.smali

Hunk #1 FAILED at 3.

Hunk #2 FAILED at 136.

2 out of 2 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/EdgeEffect.smali.rej

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/AbsListView$FlingRunnable.smali'

Hunk #1 FAILED at 70.

Hunk #2 FAILED at 459.

Hunk #3 FAILED at 907.

Hunk #4 FAILED at 1132.

Hunk #5 FAILED at 1442.

5 out of 5 hunks FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/AbsListView$FlingRunnable.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/Toast.smali

Hunk #1 FAILED at 391.

1 out of 1 hunk FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/Toast.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/OverScroller.smali

Hunk #1 FAILED at 30.

Hunk #2 FAILED at 131.

Hunk #3 FAILED at 243.

Hunk #4 FAILED at 251.

Hunk #5 FAILED at 273.

Hunk #6 FAILED at 281.

Hunk #7 FAILED at 571.

Hunk #8 FAILED at 853.

Hunk #9 FAILED at 906.

9 out of 9 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/OverScroller.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/AbsListView.smali

Hunk #1 FAILED at 20.

Hunk #2 FAILED at 29.

Hunk #3 FAILED at 151.

Hunk #4 FAILED at 296.

Hunk #5 FAILED at 322.

Hunk #6 FAILED at 334.

Hunk #7 FAILED at 388.

Hunk #8 FAILED at 502.

Hunk #9 FAILED at 1831.

Hunk #10 FAILED at 2273.

Hunk #11 FAILED at 2371.

Hunk #12 FAILED at 2489.

Hunk #13 FAILED at 3063.

Hunk #14 FAILED at 3153.

Hunk #15 FAILED at 3505.

Hunk #16 FAILED at 3853.

Hunk #17 FAILED at 3960.

Hunk #18 FAILED at 4904.

Hunk #19 FAILED at 5321.

Hunk #20 FAILED at 5560.

Hunk #21 FAILED at 6629.

Hunk #22 FAILED at 9400.

Hunk #23 FAILED at 10267.

Hunk #24 FAILED at 11750.

Hunk #25 FAILED at 11874.

Hunk #26 FAILED at 11945.

Hunk #27 FAILED at 11978.

Hunk #28 FAILED at 12396.

Hunk #29 FAILED at 14868.

Hunk #30 FAILED at 15228.

Hunk #31 FAILED at 15866.

Hunk #32 FAILED at 16112.

Hunk #33 FAILED at 17429.

Hunk #34 FAILED at 17461.

Hunk #35 FAILED at 17478.

Hunk #36 FAILED at 18028.

36 out of 36 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/AbsListView.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/NumberPicker.smali

Hunk #1 FAILED at 32.

Hunk #2 FAILED at 50.

Hunk #3 FAILED at 86.

Hunk #4 FAILED at 96.

Hunk #5 FAILED at 112.

Hunk #6 FAILED at 126.

Hunk #7 FAILED at 141.

Hunk #8 FAILED at 179.

Hunk #9 FAILED at 260.

Hunk #10 FAILED at 274.

Hunk #11 FAILED at 294.

Hunk #12 FAILED at 2377.

Hunk #13 FAILED at 2418.

Hunk #14 FAILED at 2963.

Hunk #15 FAILED at 3265.

Hunk #16 FAILED at 3619.

Hunk #17 FAILED at 3628.

Hunk #18 FAILED at 3646.

Hunk #19 FAILED at 3655.

Hunk #20 FAILED at 3664.

Hunk #21 FAILED at 3673.

Hunk #22 FAILED at 3682.

Hunk #23 FAILED at 3854.

Hunk #24 FAILED at 4098.

Hunk #25 FAILED at 4618.

Hunk #26 FAILED at 4665.

Hunk #27 FAILED at 4682.

Hunk #28 FAILED at 4703.

Hunk #29 FAILED at 4744.

Hunk #30 FAILED at 4752.

Hunk #31 FAILED at 4788.

Hunk #32 FAILED at 4796.

32 out of 32 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/NumberPicker.smali.rej

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/QuickContactBadge$QueryHandler.smali'

Hunk #1 FAILED at 70.

1 out of 1 hunk FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/QuickContactBadge$QueryHandler.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/PopupWindow.smali

Hunk #1 FAILED at 7.

Hunk #2 FAILED at 1339.

Hunk #3 FAILED at 1404.

Hunk #4 FAILED at 1936.

4 out of 4 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/PopupWindow.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/MediaController.smali

Hunk #1 FAILED at 6.

Hunk #2 FAILED at 1713.

Hunk #3 FAILED at 1722.

3 out of 3 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/MediaController.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/RemoteViews.smali

Hunk #1 FAILED at 71.

Hunk #2 FAILED at 1135.

Hunk #3 FAILED at 1686.

3 out of 3 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/RemoteViews.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/SearchView.smali

Hunk #1 FAILED at 1406.

Hunk #2 FAILED at 1789.

Hunk #3 FAILED at 2590.

Hunk #4 FAILED at 2875.

4 out of 4 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/SearchView.smali.rej

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/Toast$TN.smali'

Hunk #1 FAILED at 172.

1 out of 1 hunk FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/Toast$TN.smali.rej'

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/AbsListView$MultiChoiceModeWrapper.smali'

Hunk #1 FAILED at 160.

1 out of 1 hunk FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/AbsListView$MultiChoiceModeWrapper.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/TextView.smali

Hunk #1 FAILED at 7568.

Hunk #2 FAILED at 8025.

Hunk #3 FAILED at 22240.

Hunk #4 FAILED at 24047.

Hunk #5 FAILED at 24782.

Hunk #6 FAILED at 24829.

Hunk #7 FAILED at 24899.

7 out of 7 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/TextView.smali.rej

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/ImageView.smali

Hunk #1 FAILED at 1177.

1 out of 1 hunk FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/ImageView.smali.rej

patching file '/home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/OverScroller$SplineOverScroller.smali'

Hunk #1 FAILED at 49.

Hunk #2 FAILED at 71.

Hunk #3 FAILED at 376.

Hunk #4 FAILED at 1079.

Hunk #5 FAILED at 1098.

Hunk #6 FAILED at 1134.

Hunk #7 FAILED at 1260.

Hunk #8 FAILED at 1447.

Hunk #9 FAILED at 1471.

Hunk #10 FAILED at 1579.

10 out of 10 hunks FAILED -- saving rejects to file '/home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/OverScroller$SplineOverScroller.smali.rej'

patching file /home/parallels/MIUI2/secondary-framework.jar.out/./smali/android/widget/TimePicker.smali

Hunk #1 FAILED at 7.

Hunk #2 FAILED at 242.

Hunk #3 FAILED at 472.

Hunk #4 FAILED at 831.

Hunk #5 FAILED at 1327.

5 out of 5 hunks FAILED -- saving rejects to file /home/parallels/MIUI2/temp/reject/secondary-framework.jar.out/./smali/android/widget/TimePicker.smali.rej

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

anybody can help?