I'm Modifying my systemui.apk, what do I need to edit to hide GPS icon when the GPS is turned off?
It's a smali edit... A real pain in the ass if you know nothing about smali.. But a sinch for most devs.
Sent from my HTCONE using xda premium
BrianBaker said:
It's a smali edit... A real pain in the ass if you know nothing about smali.. But a sinch for most devs.
Sent from my HTCONE using xda premium
Click to expand...
Click to collapse
While i appreciate the response, it did in no way help me do this on my own. I am well aware of the devs being able to do this, but what good is that if i want to learn myself?
for the record, thanks to O.M.J., here it is
find:
.method private updateGpsoneVisibility()V
.locals 4
.prologue
const/4 v3, 0x1
const/4 v2, 0x0
change:
const/4 v3, 0x1
to:
const/4 v3, 0x0
Well there ya go.. If you can figure it out and removal of the headphones plugged in icon please let me know because I tried and can not decompile the systemui apk on windows 8..
Sent from my HTCONE using xda premium
BrianBaker said:
Well there ya go.. If you can figure it out and removal of the headphones plugged in icon please let me know because I tried and can not decompile the systemui apk on windows 8..
Sent from my HTCONE using xda premium
Click to expand...
Click to collapse
if you can find the location, and send me your systemui.apk file i can do it for you
94tbird said:
if you can find the location, and send me your systemui.apk file i can do it for you
Click to expand...
Click to collapse
What resource files are you using when decompiling systemui.apk? I keep getting missing resource errors.
Related
Hy all,
ive spend the whole day trying to get the notification pulldown background semi-transparent red. First it was driving me mad, that it didnt work with jus modding "shade_bg.png, till i found out, that there is a possibillity, that the xml file maybe has a color code instead of pointing to that png. So i decompiled it and changed
What ROM are you trying to do this on? Also, what are the errors that you are getting when it fails to compile?
1.) Decompile SystemUI.apk
In smali/com/android/systemui/statusbar/StatusBarService.smali
Search for the following line:
.method onBarViewAttached()V
Shortly after that, you will find this:
const/4 v0, 0x2
Click to expand...
Click to collapse
change this to
const/4 v0, -0x3
Click to expand...
Click to collapse
2.) In res/layout/status_bar_tracking.xml
Change the following:
<View android:background="#ff212121" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Click to expand...
Click to collapse
to
<View android:background="@drawable/shade_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Click to expand...
Click to collapse
3.) Finally, change res/drawable-hdpi/shade_bg.png to your transparent background
Ok thx alot gonna give it a try
Edit:
@david1171 Im on CM7 RC2, errorlogs are attached, log2 is from ApkManager 4.8.7 the other one from 4.9.
@Master Tried it, but could only find this:
Code:
.method onBarViewAttached()V
.locals 7
.prologue
const/4 v1, -0x1
.line 1234
const/4 v5, -0x3
Any other ideas?
Sent from my Nexus S using Tapatalk
Bump!
Sent from my Nexus S using Tapatalk
I made mine completely transparent by editing the 'Shade_bd.png' in photoshop, i guess if u wanted it semi transparent with red tint u can try it on photoshop..
klone96 said:
I made mine completely transparent by editing the 'Shade_bd.png' in photoshop, i guess if u wanted it semi transparent with red tint u can try it on photoshop..
Click to expand...
Click to collapse
That's also what I've done many times in the past, works fine even if you don't have Photoshop, I use paint.net and its fine.
Sent from my Nexus S
Could one of u post ur unthemed systemUI.apk? Cause i think u have a different one since i even tried to make it plain black to see if i did something wrong with adding alpha layer (using gimp).
Sent from my Nexus S using Tapatalk
shrooms90 said:
Could one of u post ur unthemed systemUI.apk? Cause i think u have a different one since i even tried to make it plain black to see if i did something wrong with adding alpha layer (using gimp).
Sent from my Nexus S using Tapatalk
Click to expand...
Click to collapse
Sure, give me a few minutes and ill be on my laptop. Just one thing that occurred to me, make sure you flatten the image, otherwise it won't work at all.
Sent from my Nexus S
Edit: Uploaded 2 unthemed versions, both taken from the update.zip of the respective rom. One is from Master's stock deodexed 2.3.3 and the other is from NS Collab 1.09 (this one already has a semi transparent shade)
Thx alot ill try when i get home
Sent from my Nexus S using Tapatalk
shrooms90 said:
Thx alot ill try when i get home
Sent from my Nexus S using Tapatalk
Click to expand...
Click to collapse
MattedBlues has a semitransparent grey notif dropdown. Once I get to my other lappy I'll check out the xmls and post anything pertinent.
Will the stock one work on cm7 rc2 cause i had no luck just changing the png on the other one. It stayed semi transparent black like it was before so i guess the xml contains the colour code aswell. Didnt decompile it so im not sure.
Sent from my Nexus S using Tapatalk
shrooms90 said:
Will the stock one work on cm7 rc2 cause i had no luck just changing the png on the other one. It stayed semi transparent black like it was before so i guess the xml contains the colour code aswell. Didnt decompile it so im not sure.
Sent from my Nexus S using Tapatalk
Click to expand...
Click to collapse
I'm pretty sure that by default the NS collab one I gave you already had a transparent black shade. Try using a red or something, just make sure there is only 1 layer when you save
If you tried to use the stock one on CM7 it may work but you will probably have many issues and loads of CM7 features wont work.
Sent from my Nexus S
Jonathon Grigg said:
I'm pretty sure that by default the NS collab one I gave you already had a transparent black shade. Try using a red or something, just make sure there is only 1 layer when you save
If you tried to use the stock one on CM7 it may work but you will probably have many issues and loads of CM7 features wont work.
Sent from my Nexus S
Click to expand...
Click to collapse
Yes ive seen the transparent shade bg, but that must be coded in an xml, cause it didnt even work when i made it solid black. It is still the same semi-trans black. It is even the same when i put original cm7 shade bg in the ns collab systemUI.
Thanks for ur help and ur patience
Sent from my Nexus S using Tapatalk
Any other sugestions?
Sent from my Nexus S using Tapatalk
Ok somehow it worked now with the systemUI.apk from NS collab. I found out that i have to create a new image instead of modding the existing one. But i have no idea why nothing changed when i just copied the stock shade_bg.png into the same apk. When i tried it again today it worked. Maybe i was just to tired the other day
Glad it worked I'm attempting the same thing you needed for a project of mine now so I know what to do if I get stuck
Sent from my Nexus S
Hello, I bought Sonny Sekhon's Lucid Theme from the market and it's almost perfect for me. EXCEPT the pull down notification. How do I edit it so that it would look like the pulldown from minimalbread? It's the only thing I want to change from Lucid.
I also got the MellowYellow theme but I want to change it so that the horizontal dividers in menu are transparent or black (as long as I dont see them. ) Please see attached screenshot.
You would have to decompile the .apk then recompile it.
MIUI themes are much easier to mod
Nah you could edit it without d compiling with winzip. Just open the apk in winzip and swap the files out.
Sent from my Nexus S MV from the XDA Premium app.
Those lines are more than likely .9 PNG files. In my experience swapping files in winzip causes errors, but I guess that works too
Sent from my Nexus S using xda premium
nbeebe24 said:
Those lines are more than likely .9 PNG files. In my experience swapping files in winzip causes errors, but I guess that works too
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
I've never had a problem. Done it many many times.
Sent from my Nexus S MV from the XDA Premium app.
Also they are nine patches.
Hey guys,
So I decided to take a stab at altering SystemUI.apk to uncenter the clock, but I've run into some problems. Just FYI, I am total noob at this so I could be doing something incredibly stupid, but oh well.
Anyway, I was able to successfully decompile the apk, edit res\layout\status_bar.xml to set <com.android.systemui.statusbar.Clock... android:gravity="right">, build the apk again, sign it, and push it to my phone, however after all that the status bar just does not show up. I don't think it's the decompiling, building, or signing that's messing up because I performed all of those without editing any of the xml files, pushed it to my phone, and everything worked perfectly.
So what am I missing? Is changing "center" to "right" really enough to kill the statusbar? Do I need to edit something in framework-res.apk or some other file to be compatible with the new SystemUI.apk? Or is it that I need to change something in the smali folders as well as the res folders for it to work?
Any ideas that you guys have would be awesome. I'm not sure if I'm just missing something simple, or if I'm in way over my head with this stuff and need to do more than the hour and a half research and trial and error that I've put in so far =) Thanks guys!
There's a bit more to it than that
There's some moving around to do too.
I attached the original status_bar.xml for you to compare to. (it's already decompiled)
If you wanted you could just replace it with this one. Thought it might help to see what all was changed.
(the attached zip file is not flashable)
Don't sign system apps either. Signing may be why it isn't showing up but I've never signed a system app to know and without looking at it I think you need to put right|center not just right and I am not positive but you may need to move the padding of the status bar icons to the left so there is no overlap.
Sent from my Galaxy Nexus using xda premium
Easy guys. Just take a stock systemui.apk and move /res/layout/status_bar.xml over to the modded one. Then push. Don't even need to decompile.
Sent from my VS920 4G using Tapatalk 2
mtmichaelson said:
Easy guys. Just take a stock systemui.apk and move /res/layout/status_bar.xml over to the modded one. Then push. Don't even need to decompile.
Sent from my VS920 4G using Tapatalk 2
Click to expand...
Click to collapse
Hey its he wanted to do it himself
Sent from my Galaxy Nexus using xda premium
MT makes it look like a walk in the park...lol
mtmichaelson said:
Easy guys. Just take a stock systemui.apk and move /res/layout/status_bar.xml over to the modded one. Then push. Don't even need to decompile.
Sent from my VS920 4G using Tapatalk 2
Click to expand...
Click to collapse
capt730 said:
MT makes it look like a walk in the park...lol
Click to expand...
Click to collapse
Well his method really is a walk in the park if you can move one file to another lol.
Sent from my Galaxy Nexus using xda premium
Hmm, something is still wrong. I tried editing the status_bar.xml again, but the status bar still wouldn't show up. Then I deleted the file that was there and pasted in the stock status_bar.xml that Kane posted, pushed it to my phone, and still no status bar/notification pull down. Am I not compiling the apk right?
I'll be on IRC for the next 40 minutes or so if anyone wants to hop on and help me out =)
Did you compile the apk after replacing the XML?
Sent from my VS910 4G using Tapatalk 2
Yup, I actually finally got it to work and just need to tweak a couple things. I took the SystemUI.apk from the latest ICK.zip update, modified the SystemUI.apk file, then created a flashable zip for it. I don't know if it was using a flashable zip that worked, where just using adb push didn't, or if starting over with a different SystemUI.apk was what did it.
@kane: BTW, do you know the hex color code for your ICK theme icons? I was trying to match the color for the clock, but it's slightly off. And Thanks for the stock apk, without comparing the two, I never would have figured out the format for putting the clock back =)
@beamer: Thanks for the heads up to not sign the apk, worked without doing so. That was an annoying step anyway =)
the stock ICS colors are 33B5E5 and 0099CC
I used 33B5E5 for all the edits I did in the ICK theme
0099CC is a little bit darker
I didn't read the whole post but after pushing systemui did you reboot if you don't reboot you won't get a statusbar
Sent from my Galaxy Nexus using xda premium
Beamer9408 said:
I didn't read the whole post but after pushing systemui did you reboot if you don't reboot you won't get a statusbar
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I did. I'm thinking the problem was actually the dalvik-cache, maybe? After i got the clock right aligned, i tried to hide some of the status icons like mute and the alarm clock, but i couldn't get any of them hidden and it was driving me crazy. Then i decided to wipe dalvik and it worked perfectly.
Sent from my VS910 4G using xda premium
I would like to learn what is needed to be changed in a ROM/apps in order to get the blackedout / inverted look. I'm I'm wanting to do this on a cm10.1 based ROM and I know how to use apktool and other just not sure what to edit in the .XML files. I have made changes in colors.XML and drawable.XML but for some reason it does nothing for me.
Have searched and found plenty on theming but none really get in to the .XML part of.
I know there are themes and inverted gapps already out there but would still like to learn how its done.
Any help would be great and I know how to use the thanks button...
Sent from my GT-N7000 using XDA Premium HD app
Go to frameworks/base/core/res/res/drawable/background_holo_dark.xml and change android:endColor value to
android:endColor="#ff000000"
prior to compile.
Sent from my GT-P7300 using xda premium
mithun46 said:
Go to frameworks/base/core/res/res/drawable/background_holo_dark.xml and change android:endColor value to
android:endColor="#ff000000"
prior to compile.
Sent from my GT-P7300 using xda premium
Click to expand...
Click to collapse
Thanks I will give that a try and see what happens
Sent from my GT-N7000 using XDA Premium HD app
How about blacking out the menus like power menu they are still gray popup when you press menu button and stuff of that nature
Sent from my GT-N7000 using XDA Premium HD app
ttibbetts83 said:
How about blacking out the menus like power menu they are still gray popup when you press menu button and stuff of that nature
Sent from my GT-N7000 using XDA Premium HD app
Click to expand...
Click to collapse
I don't have my build machine now after 2 weeks I will reply you .and sent me your gtalk address thru pm . we can chat
Sent from my GT-P7300 using xda premium
Well,pls post solutions if you find one as this university is for learning and I guess many would love to learn that!
Sent from my MT11i using xda premium
Ghostfreak NB said:
Well,pls post solutions if you find one as this university is for learning and I guess many would love to learn that!
Sent from my MT11i using xda premium
Click to expand...
Click to collapse
The solution is he got things inverted.
Now he wants more and I don't have my build machine now to say him More
Sent from my GT-P7300 using xda premium
mithun46 said:
The solution is he got things inverted.
Now he wants more and I don't have my build machine now to say him More
Sent from my GT-P7300 using xda premium
Click to expand...
Click to collapse
how would i get the greys in the menus to black ave been look and trying different thinks but no luck
seems that blackingout of roms and apps is not something anyone is welling to shear
ttibbetts83 said:
seems that blackingout of roms and apps is not something anyone is welling to shear
Click to expand...
Click to collapse
It's probably something you'll need to spend a bit of time Googling about.
XperienceD said:
It's probably something you'll need to spend a bit of time Googling about.
Click to expand...
Click to collapse
I have
Sent from my GT-N7000 using XDA Premium HD app
mithun46 said:
Go to frameworks/base/core/res/res/drawable/background_holo_dark.xml and change android:endColor value to
android:endColor="#ff000000"
prior to compile.
Sent from my GT-P7300 using xda premium
Click to expand...
Click to collapse
The above quote is good for changing the background of the settings list and the background of the setup when first install. If you want to get rid of the grey that is in the menus the more needs to be changed and its all found in framework-res.apk in the res/drawable xhpi folder in the form of .PNG or .9.PNG files and they include BG. Or background in the names menu_background.9.PNG is one for example.
Now onto next change how to change clock color in status bar. Just doing it one at a time sence the info is very hard to fine and not much help on it, will keep updating as I find the answers. Just exploring through files and change stuff to see what happens.
Sent from my GT-N7000 using XDA Premium HD app
ttibbetts83 said:
The above quote is good for changing the background of the settings list and the background of the setup when first install. If you want to get rid of the grey that is in the menus the more needs to be changed and its all found in framework-res.apk in the res/drawable xhpi folder in the form of .PNG or .9.PNG files and they include BG. Or background in the names menu_background.9.PNG is one for example.
Now onto next change how to change clock color in status bar. Just doing it one at a time sence the info is very hard to fine and not much help on it, will keep updating as I find the answers. Just exploring through files and change stuff to see what happens.
Sent from my GT-N7000 using XDA Premium HD app
Click to expand...
Click to collapse
thats real devving
I don't want blinkfeed at home screen
it takes battery and useless feature
any mod for remove blinkfeed
Sent from my HTC One using xda app-developers app
japjit100 said:
I don't want blinkfeed at home screen
it takes battery and useless feature
any mod for remove blinkfeed
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
dont think it can be done ...
also if you uncheck everything in the settings it wont use up anything
Blinkfeed uses hardly any battery unless you are constantly refreshing and using it
Just install Nova Launcher and blinkfeed will be gone
Sent from my Nexus 7 using xda app-developers app
jonny68 said:
Blinkfeed uses hardly any battery unless you are constantly refreshing and using it
Just install Nova Launcher and blinkfeed will be gone
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
I use Nova Prime and in Modaco Toolbox settings there is an option to have basically an icon in app drawer that takes you to BlinkFeed if you choose..
Sent from my HTC One using Xparent Gray Tapatalk 2
jonny68 said:
Blinkfeed uses hardly any battery unless you are constantly refreshing and using it
Just install Nova Launcher and blinkfeed will be gone
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
I want use sense launcher without blinkfeed
Sent from my HTC One using xda app-developers app
Would like the same. Don't want to change launchers but also would like to remove blinkfeed
Sent from my HTC One using Tapatalk 4 Beta
If you're stock, you can't remove it, you need to make another screen the home screen.
Out of sight-seeing of mind.
Sent from that FBI van parked down the street.
any mod or rom for it
Sent from my HTC One using xda app-developers app
japjit100 said:
any mod or rom for it
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?p=42842156
Once I get rooted, I'm flashing this ROM. I was on it for the longest with my Inspire. And I'm a ROM flashing junkie.
https://www.youtube.com/watch?v=8_ebctlQvk4&feature=youtube_gdata_player
Sent from that FBI van parked down the street.
ghostryder12 said:
http://forum.xda-developers.com/showthread.php?p=42842156
Once I get rooted, I'm flashing this ROM. I was on it for the longest with my Inspire. And I'm a ROM flashing junkie.
https://www.youtube.com/watch?v=8_ebctlQvk4&feature=youtube_gdata_player
Sent from that FBI van parked down the street.
Click to expand...
Click to collapse
O__o you still can't remove blinkfeed with that rom
CheesyNutz said:
O__o you still can't remove blinkfeed with that rom
Click to expand...
Click to collapse
Even if you DeSense @ setup?
Sent from that FBI van parked down the street.
ghostryder12 said:
Even if you DeSense @ setup?
Sent from that FBI van parked down the street.
Click to expand...
Click to collapse
that would be the ONLY way to remove it to my understanding
Blinkfeed is embedded in the Sense launcher. AFAIK, you can't have one without the other.
iElvis said:
Blinkfeed is embedded in the Sense launcher. AFAIK, you can't have one without the other.
Click to expand...
Click to collapse
really?
hmm: you guys can try this:
smali\com\htc\launcher\util\protection.smali
.method public static isFeedEnabled()Z
.locals 1
.prologue
.line 6
const/4 v0, 0x1
return v0
.end method
##################################
so 0x1 is with blinkingfeed, 0x0 will not let you have it.
good luck
Ive searched that in "prism.apk" but dont found that text in the "protection.smali"
Onepagebook said:
really?
hmm: you guys can try this:
smali\com\htc\launcher\util\protection.smali
.method public static isFeedEnabled()Z
.locals 1
.prologue
.line 6
const/4 v0, 0x1
return v0
.end method
##################################
so 0x1 is with blinkingfeed, 0x0 will not let you have it.
good luck
Click to expand...
Click to collapse
Interesting. That is the first I've heard of a blinkfeed killer. If it anyone gets it to work, please confirm. I like Blinkfeed, but it would be good to know.
What would happen if i were to uninstall blinkfeed apk and all other assoiciated with it using titanium backup?
H Teee C uno
JoshuaFCB said:
What would happen if i were to uninstall blinkfeed apk and all other assoiciated with it using titanium backup?
H Teee C uno
Click to expand...
Click to collapse
Blinkfeed in embedded into Prism.apk which is the sense launcher (used to be called rosie) and the problem here is how to remove blinkfeed from the sense launcher, means how to keep using Prism but without blinkfeed.
PS: I searched for the text posted by OPB in Protection.smali and didn't found it (checked in 4.1.2 Prism and 4.2.2 as well)
Sent from my HTC One
I think i found something:
Prism\res\layout\workspace_pages.xml:
<?xml version="1.0" encoding="UTF-8"?>
-<merge xmlns:launcher="http://schemas.android.com/apk/res/com.htc.launcher" xmlns:android="http://schemas.android.com/apk/res/android">
<include layout="@layout/feed_view" android:id="@id/feed"/>
<include layout="@layout/workspace_screen" android:id="@id/cell1"/>
<include layout="@layout/workspace_screen" android:id="@id/cell2"/>
<include layout="@layout/workspace_screen" android:id="@id/cell3"/>
<include layout="@layout/workspace_screen" android:id="@id/cell4"/>
</merge>
Click to expand...
Click to collapse
But saadly i cant recompile the apk to test it
Someone can help me?
jonny68 said:
Blinkfeed uses hardly any battery unless you are constantly refreshing and using it
Just install Nova Launcher and blinkfeed will be gone
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Omg please work! I love sense and htc. The main reason i got the m7. But i HATE blinkfeed. Please all make it go away. :silly: