[HOW-TO] Clear 'Em All! - How to add Clear All Recents Button on Stock KitKat

Search This thread

vk2r

Senior Member
Feb 2, 2011
219
20
@enricocid, I've checked everything thoroughly.
I've made ​​the changes you asked me, and unfortunately, pressing the button, SystemUI down.

Apparently, the code of the file "RecentsPanelView$2" is not compatible with Android 4.1.1.

I was wondering if maybe you have some code compatible with Android 4.1.1, because apparently that's the problem.

I found this error in the log:
Code:
03-22 12:22:59.393 E/AndroidRuntime(1901): FATAL EXCEPTION: main
03-22 12:22:59.393 E/AndroidRuntime(1901): java.lang.NoSuchMethodError: com.android.systemui.recent.RecentsPanelView.access$900
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at com.android.systemui.recent.RecentsPanelView$2.onClick(RecentsPanelView.java:485)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.view.View.performClick(View.java:4084)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.view.View$PerformClick.run(View.java:16966)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.os.Handler.handleCallback(Handler.java:615)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.os.Handler.dispatchMessage(Handler.java:92)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.os.Looper.loop(Looper.java:137)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at java.lang.reflect.Method.invokeNative(Native Method)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at java.lang.reflect.Method.invoke(Method.java:511)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at dalvik.system.NativeStart.main(Native Method)
03-22 12:22:59.408 D/dalvikvm(1651): GC_EXPLICIT freed 117K, 11% free 19706K/21895K, paused 7ms+6ms, total 72ms
 
Last edited:
E

EnricoD

Guest
@enricocid, I've checked everything thoroughly.
I've made ​​the changes you asked me, and unfortunately, pressing the button, SystemUI down.

Apparently, the code of the file "RecentsPanelView$2" is not compatible with Android 4.1.1.

I was wondering if maybe you have some code compatible with Android 4.1.1, because apparently that's the problem.

I found this error in the log:
Code:
03-22 12:22:59.393 E/AndroidRuntime(1901): FATAL EXCEPTION: main
03-22 12:22:59.393 E/AndroidRuntime(1901): java.lang.NoSuchMethodError: com.android.systemui.recent.RecentsPanelView.access$900
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at com.android.systemui.recent.RecentsPanelView$2.onClick(RecentsPanelView.java:485)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.view.View.performClick(View.java:4084)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.view.View$PerformClick.run(View.java:16966)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.os.Handler.handleCallback(Handler.java:615)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.os.Handler.dispatchMessage(Handler.java:92)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.os.Looper.loop(Looper.java:137)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at android.app.ActivityThread.main(ActivityThread.java:4745)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at java.lang.reflect.Method.invokeNative(Native Method)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at java.lang.reflect.Method.invoke(Method.java:511)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
03-22 12:22:59.393 E/AndroidRuntime(1901): 	at dalvik.system.NativeStart.main(Native Method)
03-22 12:22:59.408 D/dalvikvm(1651): GC_EXPLICIT freed 117K, 11% free 19706K/21895K, paused 7ms+6ms, total 72ms

I will review your files again ;)
 

PigFire

Senior Member
Sep 22, 2013
156
56
i get an error recompile after add script at RecentsPanelView.smali :

C:\APKtools\STOCK>apktool b SystemUI
I: Using Apktool 2.0.0-Beta9 on SystemUI
I: Checking whether sources has changed...
I: Smaling...
SystemUI\smali\com\android\systemui\recent\RecentsHorizontalScrollView.smali[111
3,15] no viable alternative at input 'count'
SystemUI\smali\com\android\systemui\recent\RecentsHorizontalScrollView.smali[111
9,15] no viable alternative at input 'scrollX'
SystemUI\smali\com\android\systemui\recent\RecentsHorizontalScrollView.smali[112
2,15] no viable alternative at input 'i'
SystemUI\smali\com\android\systemui\recent\RecentsHorizontalScrollView.smali[112
5,15] no viable alternative at input 'delayCounter'
SystemUI\smali\com\android\systemui\recent\RecentsHorizontalScrollView.smali[113
7,15] no viable alternative at input 'child'
SystemUI\smali\com\android\systemui\recent\RecentsHorizontalScrollView.smali[113
7,21] no viable alternative at input 'Landroid/view/View;'
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: com/android/systemui/recent/RecentsHorizontalScrollView.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:338)
at brut.androlib.Androlib.buildSources(Androlib.java:299)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)

C:\APKtools\STOCK>

My device Nexus 4 stock rom