FORUMS
Remove All Ads from XDA

[Guide] How to bring real Recent Cardstack to your ROM

1,076 posts
Thanks Meter: 1,085
 
Post Reply Email Thread
Hy I'm noobs want to share little guide for you are...
this guide is how to bring recent cardstack to youre ROM... Ok lets to mod.


First Big Thanks to :
Quote:

1. Muhammad Bagus Prasetyo (My best friend which first person who can bring cardstack on Samsung Core 2).
2. Lollifox ROM and Paranoid ROM for file comparation.



NOTE :
Quote:

1. If you get FC use LOGCAT to know the error and fix by youre self.
2. I'm try this on Stock touchwiz Kitkat 4.4.2 (My device use Spreadrum Shark (sc8830) Chipset)
3. In my stock Stock touchwiz Kitkat 4.4.2 UI will Forceclose when Im use Navbar
4. In my stock Stock touchwiz Kitkat 4.4.2 UI will Forceclose when any moddification in android.policy.jar which contain navbar modding.
5. In my heart and my mind Navbar not critical uses so I'M AVOID THE FC WHEN USE NAVBAR AND I'M NOT USE NAVBAR.
6. CONCLUSION : If youre want to fix FC when use Navbar , please compare again with Lollifox ROM file.
7. I DON'T KNOW WILL WORK ON ANOTHER OS BUT JUST TRY IT.



BUG : NOT AVAILABLE CLEAR ALL RECENT.

Requirepment :
1. Brain
2. Apktool
3. A cup of tea or cofee


STEP 1 :

Quote:

1. Decompile Framework-res.apk then marger file on attachment.
2. add this on string.xml

HTML Code:
                <string name="setting_confirmation_ask_me_later">Ask later</string>
		<string name="setting_confirmation_yes">Yes</string>
		<string name="setting_confirmation_no">No</string>
3. recompile and decompile again to get id public
4. open res/value/public.xml and dont close it.



STEP 2 :

1. Decompile framework.jar
2. marger file on attached to Landroid/content/pm/HERE
3. recompile again


STEP 3 :

1. Decompile framework2.jar
2. marger gifview.smali TO Landroid/widget/HERE
3. marger file which have name SettingConfirmationHelper...... TO Landroid/util/HERE
4. Change id public in SettingConfirmationHelper.smali with your id public on framework-res.apk/res/value/public.xml (7 ids which MUST changed)

Code:
- 0x01040bcb  ----> <public type="string" name="setting_confirmation_yes" id="0x01040bcb" />
		- 0x01040bca  ----> <public type="string" name="setting_confirmation_ask_me_later" id="0x01040bca" />
		- 0x01040bcc  ----> <public type="string" name="setting_confirmation_no" id="0x01040bcc" />
		- 0x0109014b (on smali have 2 id like this)  ----> <public type="layout" name="setting_confirmation_dialog" id="0x0109014b" />
		- 0x01020473  ----> <public type="id" name="setting_confirmation_dialog_visual_hint" id="0x01020473" />
		- 0x01020474  ----> <public type="id" name="setting_confirmation_dialog_visual_gif" id="0x01020474" />
5. recompile again


STEP 4 :

Quote:

1. Decompile SystemUI.apk and merger/replace folder file from me in drawable and drawable-hdpi
2. Delete all file on folder smali\com\android\systemui\recent\ DELETE ALL
3. Merger file which in folder recent in attachment file to smali\com\android\systemui\recent\HERE
4. Merger file which in folder sands in attachment file to smali\com\android\systemui\HERE
5. Merger file in folder Layout to Layout folder ... If exist on youre folder REPLACE IT.
6. Merger file in folder Layout-land to Layout-land folder ... If exist on youre folder REPLACE IT.
7. Change all file status_bar_recent_panel.xml and status_bar_recent_item in youre layout folder with file in folder Layout from ME.
8. Change all file status_bar_recent_panel.xml and status_bar_recent_item from folder Layout-land if you see to youre folder which have name contain land.
9. add this to string.xml

HTML Code:
    <string name="status_bar_recents_card_stack_title">Recents card stack view</string>
    <string name="status_bar_recents_card_stack_message">Would you like to enable recents card stack view?</string>
    <string name="navbar_recents_clear_all_title">Clear all</string>
    <string name="navbar_recents_clear_all_message">Would you like the recents button to clear all apps?</string>
    <string name="floating_mode_blacklisted_app">The current app is blacklisted as it may not work as expected in floating mode</string>
    <string name="status_bar_recent_floating_item_title">Floating mode</string>
10. add this to values/dimen.xml

HTML Code:
    <dimen name="status_bar_recents_card_margin">15.0dip</dimen>
    <dimen name="status_bar_recents_app_color_bar_height">50.0dip</dimen>
    <dimen name="status_bar_recents_app_color_bar_label_size">16.0dip</dimen>
    <dimen name="status_bar_recents_app_color_bar_icon_size">30.0dip</dimen>
    <dimen name="status_bar_recents_app_color_bar_icon_margin">13.0dip</dimen>
    <dimen name="status_bar_recents_app_color_bar_button_sep">9.0dip</dimen>
    <dimen name="status_bar_recents_app_color_bar_button_margin">18.0dip</dimen>
    <dimen name="status_bar_recents_app_color_bar_button_size">14.0dip</dimen>
11. add this to values/ids.xml

HTML Code:
    <item type="id" name="floating_mode_blacklisted_app">false</item>
    <item type="id" name="app_top_colored_bar">false</item>
    <item type="id" name="app_floating">false</item>
    <item type="id" name="app_kill">false</item>
    <item type="id" name="app_thumbnail_border">false</item>
    <item type="id" name="recent_launch_floating">false</item>
add this to values/color.xml

HTML Code:
    <color name="status_bar_recents_app_bar_color">#ffdcdcdc</color>
    <color name="status_bar_recents_app_label_color_dark">#e0181818</color>
    <color name="status_bar_recents_app_label_color_light">#e0ffffff</color>
12. recompile and decompile again.
13. Go to smali\com\android\systemui\recent\HERE ... change the ids on smalis ... Because contain a lot off id so Im give my id public off my SystemUI and my Framework... use it to compere ids. Compare in this smali :
--> RecentTasksLoader.smali
--> RecentsVerticalScrollView.smali
--> RecentsPanelView.smali
--> RecentsHorizontalScrollView.smali
--> RecentsCardStackView.smali
--> RecentsActivity.smali
--> Recents.smali
--> FadedEdgeDrawHelper.smali
14. open basestatusbar in Lcom/android/systemui/statusbar/BaseStatusBar.smali
--> add this under # instance fields

Code:
.field protected mImmersiveModeStyle:I
--> search .method public toggleRecentApps()V
change whole method with this :
-->
Code:
                        .method public toggleRecentApps()V
				.locals 2

				const/16 v0, 0x3fc

				iget-object v1, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mHandler:Lcom/android/systemui/statusbar/BaseStatusBar$H;

				invoke-virtual {v1, v0}, Landroid/os/Handler;->removeMessages(I)V

				iget-object v1, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mHandler:Lcom/android/systemui/statusbar/BaseStatusBar$H;

				invoke-virtual {v1, v0}, Landroid/os/Handler;->sendEmptyMessage(I)Z

				return-void
			.end method
--> next search .method protected toggleRecentsActivity()V
change whole method with this :
-->
Code:
                         .method protected toggleRecentsActivity()V
				.locals 4

				iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mRecents:Lcom/android/systemui/RecentsComponent;

				if-eqz v0, :cond_0

				iget-boolean v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mBlockRecents:Z

				if-nez v0, :cond_0

				iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mRecents:Lcom/android/systemui/RecentsComponent;

				iget-object v1, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mDisplay:Landroid/view/Display;

				iget v2, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mLayoutDirection:I

				invoke-virtual {p0}, Lcom/android/systemui/statusbar/BaseStatusBar;->getStatusBarView()Landroid/view/View;

				move-result-object v3

				iget p0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mImmersiveModeStyle:I

				invoke-interface {v0, v1, v2, v3, p0}, Lcom/android/systemui/RecentsComponent;->toggleRecents(Landroid/view/Display;ILandroid/view/View;I)V

				:cond_0
				return-void
			.end method
15. go to Lcom/android/systemui/ replace RecentsComponent.smali with my RecentsComponent.smali which Im attachment.
16. All done ... RECOMPILE all edited apk and jar ... AND DONT FORGET TO SIGN THE APK FILE.
17. Put All editted file to flashable.zip and flash it....

I has been attached all file and the guide in xml type. Download in attached file.

I'm from Indonesian specially from Central Java and I'm bad in English so I'm so sorry for my bad English in whole text in this guide .

I'm only need a little Credit if you use this guide. Thank you!


AND PLEASE SEARCH ALL ID ON SMALI AND COMPARE/CHANGE WITH YOURE ID...SEARCH ONE BY ONE ON ALL SMALI IN "RECENT" FOLDER... BE CAREFUL FOR ALL ID's


DON'T FORGET TO HIT THANKS BUTTON IF YOU LIKE MY WORK AND HELP YOU


For Video Recent Cardstact from this guide Go HERE YOUTUBE
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2015-12-13-14-24-42.png
Views:	1244
Size:	175.2 KB
ID:	3574952  
Attached Files
File Type: zip [GUIDE] How to bring REAL cardstack to youre ROM_SA.zip - [Click for QR Code] (462.6 KB, 342 views)
The Following 9 Users Say Thank You to Ih24n For This Useful Post: [ View ] Gift Ih24n Ad-Free
18th December 2015, 04:45 AM |#2  
Darkstar085's Avatar
Senior Member
Flag champua,odisha
Thanks Meter: 1,597
 
Donate to Me
More
Thanks bro.. U help me a lot..
18th December 2015, 12:58 PM |#3  
Ih24n's Avatar
OP Senior Member
Flag Sukoharjo
Thanks Meter: 1,085
 
Donate to Me
More
Quote:
Originally Posted by Darkstar085

Thanks bro.. U help me a lot..

Youre welcome sir... ... if it help you dont forget to hit thanks button
The Following 2 Users Say Thank You to Ih24n For This Useful Post: [ View ] Gift Ih24n Ad-Free
18th December 2015, 02:59 PM |#5  
Ih24n's Avatar
OP Senior Member
Flag Sukoharjo
Thanks Meter: 1,085
 
Donate to Me
More
Quote:
Originally Posted by Darkstar085

I never forgot to do that

Thank you sir... if you get problem post here ... if i can help i will help you
The Following 2 Users Say Thank You to Ih24n For This Useful Post: [ View ] Gift Ih24n Ad-Free
18th December 2015, 03:48 PM |#6  
Darkstar085's Avatar
Senior Member
Flag champua,odisha
Thanks Meter: 1,597
 
Donate to Me
More
Ya sure.. By2way Your English is not bad at all
19th December 2015, 02:29 AM |#7  
Ih24n's Avatar
OP Senior Member
Flag Sukoharjo
Thanks Meter: 1,085
 
Donate to Me
More
Quote:
Originally Posted by Darkstar085

Ya sure.. By2way Your English is not bad at all

Wkwkwk thank you sir ... but on test i get C :'D
The Following User Says Thank You to Ih24n For This Useful Post: [ View ] Gift Ih24n Ad-Free
19th December 2015, 02:54 AM |#8  
Darkstar085's Avatar
Senior Member
Flag champua,odisha
Thanks Meter: 1,597
 
Donate to Me
More
Quote:
Originally Posted by Ih24n

Wkwkwk thank you sir ... but on test i get C :'D

C is not bad..
4th February 2016, 05:57 AM |#9  
Member
Thanks Meter: 8
 
More
Is it work on Android 4.3, CM10.2 ?
6th February 2016, 03:16 AM |#10  
Ih24n's Avatar
OP Senior Member
Flag Sukoharjo
Thanks Meter: 1,085
 
Donate to Me
More
Quote:
Originally Posted by Timeral

Is it work on Android 4.3, CM10.2 ?

I dont know work in JB or not . because im only tested on KK only.... You can try work or bot on JB.
7th February 2016, 02:53 PM |#11  
Member
Thanks Meter: 8
 
More
Quote:
Originally Posted by Ih24n

I dont know work in JB or not . because im only tested on KK only.... You can try work or bot on JB.

but on android4.3, there is not a framework2.jar in framework,so i don't know how to deal with it.
Post Reply Subscribe to Thread

Tags
galaxy-core-2

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes