• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Add Clear All Recents Button on Stock 5.0.1

Search This thread

garynych

Senior Member
Dec 28, 2012
343
296
Moscow

mod for odex/deodex stock 5.0.1
install from recovery



thanks for help noskojv from 4pda

Bug:
if the erase button has disappeared,rotate to portrait and back,a button will appear again
 

Attachments

  • ClearAllRecentsButton_501.zip
    2.2 MB · Views: 7,813
  • Screenshot_2015-01-17-16-21-15.jpg
    Screenshot_2015-01-17-16-21-15.jpg
    156.4 KB · Views: 3,716
  • Screenshot_2015-01-17-16-21-20.jpg
    Screenshot_2015-01-17-16-21-20.jpg
    140 KB · Views: 3,724
Last edited:

garynych

Senior Member
Dec 28, 2012
343
296
Moscow
How to edit add recent apps

Sent from my Nexus 5 using Xparent BlueTapatalk 2
decompile my mod

this for stock

\smali\com\android\systemui\recents
RecentsActivity.smali and RecentsConfiguration.smali

and from \smali\com\android\systemui\recents\views
RecentsView$DismissAll.smali
RecentsView.smali
TaskStackView$TaskStackViewCallbacks.smali
TaskStackView.smali
TaskView$DismissLongPressed.smali
TaskView$TaskViewCallbacks.smali
TaskView.smali

and from \res\layout
recents.xml


if rom no stock, check all id in these files with your public.xml and from my mod
 
Last edited:
  • Like
Reactions: rsalas187

eqagunn

Senior Member
Jan 13, 2015
56
19
Works great. Except button appears only in portrait mode, no button in landscape mode.

May I ask how did you remove persistant Google Search bar from Recents?
I use Nova Prime and it's able to remove it only from homescreen.
 
Last edited:

garynych

Senior Member
Dec 28, 2012
343
296
Moscow
Hmm. It's still there after install on my device.
maybe try wipe ?

or try this version
here is my what I use,as you can see nothing and never was ...
this is a slightly modified version than above

PS by the way,I have a system deodex
 

Attachments

  • SystemUI.apk
    3.6 MB · Views: 376
  • Screenshot_2015-01-18-17-49-38.jpg
    Screenshot_2015-01-18-17-49-38.jpg
    123.2 KB · Views: 1,677
  • Like
Reactions: arsen4oo

DonDizzurp

Senior Member
Aug 15, 2009
2,614
442
The Internet
I've actually gotten used to just leaving more of my most frequently used apps open. It's faster when multitasking. Hopefully the next update fixes the huge memory leaks.

---------- Post added at 11:11 AM ---------- Previous post was at 11:10 AM ----------

Hi, could u please put the clear all button at bottom left so that its convinient to press it ?

It'll overlap with the cards which makes it slightly difficult and less convenient to place it there.
 

Planters76

Senior Member
Aug 7, 2012
263
135
Missouri Valley
Here is how you can add battery percentage to this mod
Decompile SystemUI.apk get it here
Add smali to SystemUI\smali\com\erryy get it here
Recompile SystemUI.apk
Decompile SystemUI.apk

Edit SystemUI\res\layout\keyguard_status_bar.xml (this is lock screen & will prevent double percentage)
On line 12
change
PHP:
android:layout_width="wrap_content" android:layout_height="wrap_content"
to
PHP:
android:layout_width="0.0dip" android:layout_height="0.0dip"

Edit SystemUI\res\layout\signal_cluster_view.xml (this adds percentage where there is no percentage for battery)
Add this on line 15
PHP:
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="@dimen/battery_level_text_size" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

Recompile SystemUI.apk and push it to System/priv-app/SystemUI/SystemUI.apk
Make sure the permissions are correct and reboot your phone
 

Attachments

  • Screenshot_2015-01-18-12-40-42.jpg
    Screenshot_2015-01-18-12-40-42.jpg
    108.2 KB · Views: 1,109
  • Screenshot_2015-01-18-12-40-52.jpg
    Screenshot_2015-01-18-12-40-52.jpg
    208.9 KB · Views: 1,093
  • Screenshot_2015-01-18-12-41-03.jpg
    Screenshot_2015-01-18-12-41-03.jpg
    142.1 KB · Views: 1,061
  • Screenshot_2015-01-18-12-41-18.jpg
    Screenshot_2015-01-18-12-41-18.jpg
    160.2 KB · Views: 1,077
  • Screenshot_2015-01-18-12-41-10.jpg
    Screenshot_2015-01-18-12-41-10.jpg
    84.3 KB · Views: 985

boxcar8028

Senior Member
Mar 15, 2011
955
220
Seattle, WA

mod for odex/deodex stock 5.0.1
install from recovery



thanks for help noskojv from 4pda

Bug:
if the erase button has disappeared,rotate to portrait and back,a button will appear again

hey, gaynych, thanks for the great mods. I’m currently using your “Center clock and the battery charge in percent” mod and I really like it. I also wanted to use this mod “Add Clear All Recents” but for some reason I can’t seem to get both to work on my stock N5 at the same time. I try flashing one zip after the other but only one would work at a time. I also try flashing one first reboot and then flashing the other but only the last flash would work but not both at the same time. I’m I doing something wrong. or can you please combo them into one zip. a combo zip would be awesome and a back to stock zip. would be great to. Thank you so much for the great mods. :good:
 

garynych

Senior Member
Dec 28, 2012
343
296
Moscow
hey, gaynych, thanks for the great mods. I’m currently using your “Center clock and the battery charge in percent” mod and I really like it. I also wanted to use this mod “Add Clear All Recents” but for some reason I can’t seem to get both to work on my stock N5 at the same time. I try flashing one zip after the other but only one would work at a time. I also try flashing one first reboot and then flashing the other but only the last flash would work but not both at the same time. I’m I doing something wrong. or can you please combo them into one zip. a combo zip would be awesome and a back to stock zip. would be great to. Thank you so much for the great mods. :good:
combo 3 in 1
 

Attachments

  • SystemUI.apk
    3.6 MB · Views: 198

wweasel

Senior Member
Mar 5, 2011
119
34
Malaga
Thanks garynych very much for all your greats mods for ours Nexus.

Please, could you make a version with battery and clear all recent button, without the center clock?

TIA
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13

    mod for odex/deodex stock 5.0.1
    install from recovery



    thanks for help noskojv from 4pda

    Bug:
    if the erase button has disappeared,rotate to portrait and back,a button will appear again
    4
    hey, gaynych, thanks for the great mods. I’m currently using your “Center clock and the battery charge in percent” mod and I really like it. I also wanted to use this mod “Add Clear All Recents” but for some reason I can’t seem to get both to work on my stock N5 at the same time. I try flashing one zip after the other but only one would work at a time. I also try flashing one first reboot and then flashing the other but only the last flash would work but not both at the same time. I’m I doing something wrong. or can you please combo them into one zip. a combo zip would be awesome and a back to stock zip. would be great to. Thank you so much for the great mods. :good:
    combo 3 in 1
    3

    I have attached the combo of the Center clock, Battery charge percent and Clear All Recents zip. Im using this on my stock N5 and I love it. :good:
    2
    Dont try this in 5.1!!!
    Who needa try dis in Stock 5.1?
    I tried and got error "Unfortunately, System UI has stopped"
    I tried this with nandroid backup and after getting this error went back to TWRP and restored my system. After reboot screen went to blackscreen.
    the only FIX was Re-Flashing of 5.1 again!!
    2
    Yes. Tested in xtraSmooth rom and masive FC's. Wait for 5.1 version!