[Q] How to modify notification toggle - Galaxy S II Q&A, Help & Troubleshooting

Hello,
I would like know how to add a data toggle in notification widget in KG1 2.3.4 Rom.
Like in Cognition 1.15 Rom.
Which file must be modified to add a toggle ?
Thank you

I try to find in xml files in framework-res.apk and framework.jar but i don't know what to look for.

cerede2000 said:
I try to find in xml files in framework-res.apk and framework.jar but i don't know what to look for.
Click to expand...
Click to collapse
Look inside systemUI.apk, should be in there, not in framework-res.apk...

Related

[Q] How to add data toggle in notification

Hello Developers,
I want to know how to add the data toggle in notification.
I saw the need to change SystemUI.apk (xml and Smali) but this does not seem to be enough because I have the CF's.
Can you tell me more?
Thank you!
yes please
Yeah i was under the impression that it's Kernel/ROM dependent but its a massive feature im missing coming from a HTC desire running CM7 and im not up for testing the CM nightlies with a new baby to look after just in case my wife needs me asap lol
Please What do not say how to add the data toggle
cerede2000 said:
Hello Developers,
I want to know how to add the data toggle in notification.
I saw the need to change SystemUI.apk (xml and Smali) but this does not seem to be enough because I have the CF's.
Can you tell me more?
Thank you!
Click to expand...
Click to collapse
Wrong thread. You can find out more on " Samsung Galaxy S2 Q&A"
No one answers in Q & A as seems to be the case here.
Why no one wants to unravel the mystery
cerede2000 is right, this is a key feature, that I personally would love to see, on a stockish sgs2 rom.
I've recently noticed the appearance of the data toggle, which was promising, but no way to customise.
perhaps now that the devs are getting more stable roms they could delve further into this?
Ah one can dream.
Hold power button... Data off. hehe
Otherwise, I think Cognition ROM has it.
Yes Cognition have it
But i would add to my stock rom
Juste need answer at what files modified for add data toggle ?
Thanks!
cerede2000 said:
Yes Cognition have it
But i would add to my stock rom
Juste need answer at what files modified for add data toggle ?
Thanks!
Click to expand...
Click to collapse
Posted on your other thread in Q&A... It's in SystemUI.apk, can't say where though.
I try to modify SystemUI.apk in smali files but have FC's
Are you sure is just SystemUI.apk ?
I do not understand when I put directly SystemUI.apk of Cognition ROM it works well.
However when I change my ROM from my stock SystemUI.apk XXKG3 j'obtient one of FC's SystemUI.apk.
Please help me.
Here is my SystemUI.apk : http://www.multiupload.com/15QBK0IX9U
What is wrong with my SystemUI changed.
Thank you!
The reason is that your stock ROM is odexed and the other is deodexed.
This thread should be in the Q&A section.
Absolutely not! I deodex my rom...
Please look at my SystemUI.apk to tell me if something is wrong.
Thank you
cerede2000 said:
Please look at my SystemUI.apk to tell me if something is wrong.
Thank you
Click to expand...
Click to collapse
I didn't saw your nor cognition SystemUI.apk. but pushing the .png is not enough.
You should have to edit and modify .xml (baksmali) :
quickpanel_quick_settings.xml in /res/layout/
ids.xml and string.xml in res/values
don't touch to public.xml as it is auto generated when recompilation with APK_Manager
Not tested, but you should compare the files above
sicopat said:
I didn't saw your nor cognition SystemUI.apk. but pushing the .png is not enough.
You should have to edit and modify .xml (baksmali) :
quickpanel_quick_settings.xml in /res/layout/
ids.xml and string.xml in res/values
don't touch to public.xml as it is auto generated when recompilation with APK_Manager
Not tested, but you should compare the files above
Click to expand...
Click to collapse
I not only added the png. I changed the xml files and smali files.
I edit by hand public.xml.
I'll let ApkManager do I see if I have no FC's.
Great! It's work!
We had to do to just let ApkManager public.xml!

[Q] Status bar (Transparent)

Hey guys,
I am customizing ICS LP8 Rom. Any one know how what I need to edit in "framework-res.apk" to make the drop down notification background from status bar transparent??
Tks
I think you want twframework-res.apk, not framework-res.apk.
After decompiling, look in twframework-res.apk/res/drawable-hdpi for status_bar_item_background_normal.9.png.
Sorry, actually, I think it's in SystemUI.apk? I can't remember... but the file name is still status_bar_item_background_normal.9.png, I believe.
EDIT: Boy, I'm rusty.
Should be in framework-res.apk after all: /res/drawable-hdpi/status_bar_background.png.
ctomgee said:
EDIT: Boy, I'm rusty.
Should be in framework-res.apk after all: /res/drawable-hdpi/status_bar_background.png.
Click to expand...
Click to collapse
Thanks ctomgee,
Just toke a look but it does´t look like it, there is a png with that name but its not the background
Mad_Rick said:
Thanks ctomgee,
Just toke a look but it does´t look like it, there is a png with that name but its not the background
Click to expand...
Click to collapse
Ok, I was looking at an old project when I de-compiled framework-res.apk to mod my battery icon. Could be out-dated and wrong... give me a sec.
EDIT: hold on, actually. Are you on odexed stock? Because I am.... and it could be different for you if you are deodexed, or running a custom ROM.
EDIT 2: ok, I've downloaded my (stock, odexed) framework-res.apk, twframework-res.apk, and SystemUI.apk. I found my notification background in both framework-res.apk and SystemUI.apk, both in /res/drawable-hdpi, both named status_bar_background.png. I'm not sure which one it is though.
ctomgee said:
EDIT: hold on, actually. Are you on odexed stock?
EDIT 2: ok, I've downloaded my (stock, odexed) framework-res.apk, twframework-res.apk, and SystemUI.apk. I found my notification background in both framework-res.apk and SystemUI.apk, both in /res/drawable-hdpi, both named status_bar_background.png. I'm not sure which one it is though.
Click to expand...
Click to collapse
I am on "NEAT ROM LP8"(thanks Salesale) Fully Deodexed, Zipaligned.
Mad_Rick said:
I am on "NEAT ROM LP8"(thanks Salesale) Fully Deodexed, Zipaligned.
Click to expand...
Click to collapse
Hmm... then I'm guessing it would be in your SystemUI.apk. Check there. Decompile, look in /res/drawable-hdpi for all the images starting with "status_bar...".
If you don't find it there, look in the same location, same criteria, in framework-res.apk.

how to change the lockscreen clock fonts

I'm on stock 4.0.3. I want to change the lockscreen clock fonts. I tried Clockopia.tff changing in font but didn't work. I read it somewhere I can be done on framework.res.apk. How to do it? I don't know. Help will be appreciated
regards!
fakeprince said:
I'm on stock 4.0.3. I want to change the lockscreen clock fonts. I tried Clockopia.tff changing in font but didn't work. I read it somewhere I can be done on framework.res.apk. How to do it? I don't know. Help will be appreciated
regards!
Click to expand...
Click to collapse
If you are referring to the lock screen clock then these are PNG files located in framework-res.apk in the folder res > drawable-hdpi they start with zzz_unlock_clock_0 through to zzz_unlock_clock_9.
You can create your own style of png using something like photoshop and replace these png's with your own. You need to decompile the framework-res.apk replace these png.s with exactly the same name then recompile the framework-res.apk and flash it onto your phone.
ag4751 said:
If you are referring to the lock screen clock then these are PNG files located in framework-res.apk in the folder res > drawable-hdpi they start with zzz_unlock_clock_0 through to zzz_unlock_clock_9.
You can create your own style of png using something like photoshop and replace these png's with your own. You need to decompile the framework-res.apk replace these png.s with exactly the same name then recompile the framework-res.apk and flash it onto your phone.
Click to expand...
Click to collapse
I thought adding a .ttf file would be enough but that seems a bit more complicated. I think I'm gonna keep the stock clock fonts. Thanks man!

[REQ] CM9 circle battery for stock ICS 4.0.4?

I'm building a custom ROM for my XPERIA Mini Pro.
I really need the CM9 circle battery and blue notification icons (they also can be found in Real ICS).
I tried using UOT, but it changed only the oower icons (not the network and battery).
Thank you!
Get the systemui.apk and decompile to extract the icons :laugh:
cachanilla86 said:
Get the systemui.apk and decompile to extract the icons :laugh:
Click to expand...
Click to collapse
So just decompile SystemUI with the icons I want -> Decompile my SystemUI -> Copy the icons I want and Recompile??
mexusbg said:
So just decompile SystemUI with the icons I want -> Decompile my SystemUI -> Copy the icons I want and Recompile??
Click to expand...
Click to collapse
Yes, It's that easy. For example, for my SK17 and MK16 i replaced the battery icons for the ones in the xperia gx (or maybe any nxt), because the battery icon has a white border and it's more visible
I used 7zip to open systemui.apk, the i extracted the folder named res, inside res are many folders, some say HDPI or MDPI, in one of these are the battery icons...replace or edite the ones you want and open systemui again and drag and drop the new res folder, say yes to whatever messange and you are done :good:
U can simply use Tickle My Android !!! :good:
Outlaw13 said:
U can simply use Tickle My Android !!! :good:
Click to expand...
Click to collapse
I have a problem:
I pull files. Install the frameworks (framework-res.apk and SemcGenericUxpRes.apk), then decompile SystemUI.apk and framework-res.apk.
Add the icons (from the Tackle My Android presents). Recompile the files and Prepare sys app for pushing and then push the files.
Now status bar is missing (if i push back the original systemui and framework-res it's pack).
BTW I get "W: Cannot find sources" for framework-res
Any help would be appreciated.
EDIT:
Manually decompiling and recompiling did the job. It works now .... But charging animation is not that smooth as the one I extracted it from? (note I updated the corresponding xml file too).
mexusbg said:
I have a problem:
I pull files. Install the frameworks (framework-res.apk and SemcGenericUxpRes.apk), then decompile SystemUI.apk and framework-res.apk.
Add the icons (from the Tackle My Android presents). Recompile the files and Prepare sys app for pushing and then push the files.
Now status bar is missing (if i push back the original systemui and framework-res it's pack).
BTW I get "W: Cannot find sources" for framework-res
Click to expand...
Click to collapse
I had the same problem...
but i don't know how did i fix it !!
Making a zip file works better than pushing the files !

[REQ] Semi-Transparent Pulldown

Does anyone know how to make the notification pull down semi-transparent? I'm OK with vrtheme, but have no idea what to change with TW. I have seen it done in a few MODS for the phone but none by themselves. I have seen the option with Multi Mod but it isn't ready to go yet.
nweaver11 said:
Does anyone know how to make the notification pull down semi-transparent? I'm OK with vrtheme, but have no idea what to change with TW. I have seen it done in a few MODS for the phone but none by themselves. I have seen the option with Multi Mod but it isn't ready to go yet.
Click to expand...
Click to collapse
Its an xml edit, decompile the systemui.apk, go to res/ values/ drawables.xml. Open that xml with notepad++ or a similar text editor, go the the line "notification_background_color" change from ff000000 to 80000000 for semi trans the lower the first number the more transparent it will be. Then recompile the systemui.apk. Then either you can pull the resources.arsc file from the built apk and put in a vrtheme flashable, or just push the whole new systemui.apk to your phone.
rwc95 said:
Its an xml edit, decompile the systemui.apk, go to res/ values/ drawables.xml. Open that xml with notepad++ or a similar text editor, go the the line "notification_background_color" change from ff000000 to 80000000 for semi trans the lower the first number the more transparent it will be. Then recompile the systemui.apk. Then either you can pull the resources.arsc file from the built apk and put in a vrtheme flashable, or just push the whole new systemui.apk to your phone.
Click to expand...
Click to collapse
Thanks. I'll give it a shot.
Can you make a apk or flashable zip of this?
Sent from my epic rooted SCH-I545 S4 stock!
Haxzor11 said:
Can you make a apk or flashable zip of this?
Sent from my epic rooted SCH-I545 S4 stock!
Click to expand...
Click to collapse
I would, but I have not been able to get it to work.
nweaver11 said:
Does anyone know how to make the notification pull down semi-transparent? I'm OK with vrtheme, but have no idea what to change with TW. I have seen it done in a few MODS for the phone but none by themselves. I have seen the option with Multi Mod but it isn't ready to go yet.
Click to expand...
Click to collapse
nottach xposed mod found here on xda.
has about 70 mods, but each has an on/off toggle so u can just enable this one mod.

Categories

Resources