Go Back   Android Forums > Android Phones > HTC Wildfire S > Wildfire S - All Things Root
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

test: Reply
 
LinkBack Thread Tools
Old July 11th, 2012, 11:22 AM   #1 (permalink)
On Probation
Thread Author (OP)
 
Join Date: May 2012
Posts: 19
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 4 Times in 3 Posts
Default Turorial: No Recent apps in notification bar for wildfire S (need rooted device)

Hey guys if you want to get notification bar without having recently used apps you should get to use following mod which need to modify systemui.apk file.

This mod is based on file "StatusBarFlag.smali" which is found in systemui.apk file (search for it in systemui folder after decompiling it using apktool.


Modify the below line in the "StatusBarFlag.smali" file using text editor Notepad++.

Insert "const/4 v0, 0x0" between ":goto_0 and sput-booleen v0,..." The code should be like
this-->

:goto_0
const/4 v0, 0x0
sput-boolean v0, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z


-Systemui.apk decomilation and recompilation method:

Required softwaregoogle for the tools to get them):
- APKtool (apktool1.4.3.tar, apktool-install-windows-r04-brut1.tar)
- an enhanced text editor to edit the XML/smali files with (i use Notepad++);
- *Root Explorer or any other root explorer out there (i use ES File Explorer);
- any archive utility that can open .ZIP files (7zip, WinRAR etc.);
- Windows PC.
*Note: yes, you have to have root.

Step 1 (installing the tools):
- Download and install the latest Java Runtime Environment (APKtool needs at least ver. 1.6);
- Download "apktool-install-windows-r04-brut1.tar" and "apktool1.4.3.tar" and unzip
them into a folder of your choosing;

Step 2 (preparing to decompile):
- In order to properly decompile/compile SystemUI.apk, you need to install the framework with
APKtool;
- Open your root explorer of choice and navigate to /system/framework;
- Copy both "framework-res.apk" and "com.htc.resources.apk" to the SD card, then move them to
your PC either via cable or via a software of your choosing (i use AirDroid);
- Put both "framework-res.apk" and "com.htc.resources.apk" into the folder where you've
extracted APKtool;
- Open a command prompt (Windows button + R then type "cmd") and navigate to the folder
where you have APKtool and the framework APKs;
- Type "apktool if framework-res.apk" then "apktool if com.htc.resources.apk". Your files will be
processed and the required bits will be "installed" in "C:/Users/<yourusername>/apktool
/framework";
- You can now delete both APKs from the folder.

Step 3 (proper decompilation):

- Copy your SystemUI.apk from "/system/app" to the folder where you've extracted APKtool;
- Open a command prompt, navigate to the APKtool folder, type "apktool d SystemUI.apk" and
wait 'till APKtool has finished. You should get no errors whatsoever and your APK should now be
decompiled into "readable format" in "<yourAPKtoolfolder>/SystemUI". Edit the file StatusBarFlag.smali with the text editor of your choosing.

Step 4 (proper compilation):
- After making the desired changes in the systemui.apk, it's now time to compile it;
- Open a command prompt, navigate to the APKtool folder then type "apktool b SystemUI". Your
APK will now be compiled to "<yourAPKtoolfolder>/SystemUI/dist" (again, you should get no
errors whatsoever). DON'T USE IT YET!
- Being a system app, SystemUI.apk must first be signed with the proper keys else odds are it
won't work. To do that, you need to rename the SystemUI.apk you're editing (the original one)
into SystemUI.zip, open it with an archive manager then extract META-INF and
AndroidManifest.xml to the "<yourAPKtoolfolder>/SystemUI/build/apk" folder, then run the
"apktool b SystemUI" command again. Your APK will now be built with the proper keys included,
and is now fully functional. You may "pick it up" from the "<yourAPKtoolfolder>/SystemUI/dist"
folder;
- You can now flash the resulting (modded) APK to your device either via ADB or via a way of
your choosing (.ZIP from recovery etc.) or just replace the old systemui.apk with modified systemui.apk using esfile manager, rootexplorer etc.
Enjoy

upadhyay is offline  
Last edited by upadhyay; July 11th, 2012 at 11:36 AM.
Reply With Quote
The Following 2 Users Say Thank You to upadhyay For This Useful Post:
k3yur (August 5th, 2012), Scyllax (July 22nd, 2012)
Sponsors
Old July 22nd, 2012, 10:08 AM   #2 (permalink)
New Member
 
Join Date: May 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 5
Thanked 0 Times in 0 Posts
Default

I tried, and it worked flawlessly.
Scyllax is offline  
Reply With Quote
Old July 24th, 2012, 11:15 AM   #3 (permalink)
On Probation
Thread Author (OP)
 
Join Date: May 2012
Posts: 19
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by Scyllax View Post
I tried, and it worked flawlessly.

Hey thanks for replying and if any one want how to change grid colums 4X5 & 4X4, i can write tutorial.
upadhyay is offline  
Reply With Quote
Old July 27th, 2012, 11:44 AM   #4 (permalink)
New Member
 
Join Date: May 2012
Posts: 7
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 0 Times in 0 Posts
Default

not working for me..i have tried for eqdkp sense 3.5
k3yur is offline  
Reply With Quote
Old July 28th, 2012, 07:36 AM   #5 (permalink)
On Probation
Thread Author (OP)
 
Join Date: May 2012
Posts: 19
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by k3yur View Post
not working for me..i have tried for eqdkp sense 3.5
Bro its only for sense 2.1
upadhyay is offline  
Reply With Quote
Old August 5th, 2012, 08:23 AM   #6 (permalink)
New Member
 
Join Date: May 2012
Posts: 7
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 0 Times in 0 Posts
Default

thanks man..now it worked
k3yur is offline  
Reply With Quote
Old September 3rd, 2012, 11:05 AM   #7 (permalink)
Member
 
senthamil's Avatar
 
Join Date: Jun 2012
Location: Chennai, India
Posts: 206
 
Device(s): HTC Desire X with ICS **Un-rooted** Last One: HTC WFS(rooted) Rom's : DSCPLX1, CM7.2, CM9 Alpha
Carrier: Tata Docomo

Thanks: 30
Thanked 51 Times in 43 Posts
Send a message via Skype™ to senthamil realtek2000
Default

Hey,
Is this really works...?
Since the recent apps annoying, I tried but couldn't found the file "StatusBarFlag.smali"on SystemUI folder after decompiled. I tried many times.

Presently Using : GB 2.3.5 Stock ROM with Sense 2.1

Is there any way...? (Even i tried on UOT Kitchen)....
__________________
If this helped you, Just press THANKS. It's not really Hard to press!
senthamil is offline  
Last edited by senthamil; September 3rd, 2012 at 11:08 AM. Reason: Presently
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > HTC Wildfire S > Wildfire S - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:13 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.