[REQ]ICS Modified SystemUI.apk w/out AT&T Logo - AT&T Samsung Galaxy S II Skyrocket SGH-I727

The title pretty much sums it up. I'm fine with the stock icons and looks, but I would love a modified SystemUI.apk that just gets rid of the AT&T logo. I'm pretty sure I can remember what carrier I'm using. Especially since it's branded on the front of the phone.

working on it..

I've been looking through the code... can't find anything. I seriously need to brush up on my smaliing
Sent from my SAMSUNG-SGH-I727 using XDA

me either i cant find it..

tw_status_bar.xml in SystemUI.apk\res\layout
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:gravity="center_vertical" android:id="@id/carrierLabel" android:background="#ff000000" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
is the first thing you're gonna want to get rid of...
theres plenty more carrier and touchwiz references in there as well. Theres also alot of non tw_ layout xmls, for instance status_bar.xml that samsung left in there so i would start replacing tw xmls with the standard.

I could not find most of the standard xmls....status_bar and more weren't in there...

is your res folder just a bunch of images?
if you just simply extract the SystemUI, you wont see them. you're gonna want to decompile it instead. otherwise theyre in resources.arsc
removing all the references in res/values should help...
like
Code:
<public type="id" name="carrierLabel" id="0x7f0f00af" />

Ah found it. And I took it out. I'll test it and upload.
After I get home, that is...
Sent from my SAMSUNG-SGH-I727 using XDA

http://forum.xda-developers.com/showthread.php?t=1568128
love this + apex launcher.
I think it will hold many of you over in the mean time, for me im not sure i'll ever want to change

theHOTNESS said:
tw_status_bar.xml in SystemUI.apk\res\layout
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:gravity="center_vertical" android:id="@id/carrierLabel" android:background="#ff000000" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
is the first thing you're gonna want to get rid of...
theres plenty more carrier and touchwiz references in there as well. Theres also alot of non tw_ layout xmls, for instance status_bar.xml that samsung left in there so i would start replacing tw xmls with the standard.
Click to expand...
Click to collapse
Set layout_width and layout_height to "0.0dip". I also set padding from 4 to 0, but I'm not sure that's required. Recompile and its gone. I don't think you need to edit the others (I didn't).
BTW, don't edit the tw_status_bar_expanded unless your intent is to remove the "AT&T" when you drag the bar down (by the "Clear" button). IMO, it looks weird to remove that one because then the date and the button shift left.

Can we get the information needed to make this happen to the dev over at this theme: http://forum.xda-developers.com/showthread.php?t=1568128&page=5
So he can make this happen in his next update? That would be amazing.

romracer said:
Set layout_width and layout_height to "0.0dip". I also set padding from 4 to 0, but I'm not sure that's required. Recompile and its gone. I don't think you need to edit the others (I didn't).
BTW, don't edit the tw_status_bar_expanded unless your intent is to remove the "AT&T" when you drag the bar down (by the "Clear" button). IMO, it looks weird to remove that one because then the date and the button shift left.
Click to expand...
Click to collapse
glad it worked for you. yeah i noticed removing it completely was somewhat of a bad idea because of the layout changes. its almost like you have to leave placeholders or things float places like css.
new to messing with android files but its funny how much the xml resembles html/css formatting. i would have thought they would have gone a little more "absolute" like apples cocoa bs but i guess this makes more sense for android given all the different screen sizes and dpis...
yeah i took mine out of the expanded as well.
the other edit was a different approach...instead of removing it from the layout i was getting rid of what it referenced to (so no other xml could use @id/carrierLabel) both will work but the former is more elegant.

Related

removing icons from the notification bar?

i've looked over the guide for creating themes, and searched the forums, and i can't figure this out. i tried using ninjamorph to remove the battery icon (by replacing all the icons with a blank transparent 1x1 png), but on reboot it still left the gap where the icon was supposed to be...
i'd like to just get rid of the battery icon and have it shift everything else to the right, so that there's room for more stuff (rather than having the gap stay there like i encountered)...
can anyone help me with this? i'm also thinking about removing the signal meter and using real signal instead...
Its in services.jar in your system/framework dir.
Sent from my ADR6300 using Tapatalk
ok, but how do i actually remove them? the only tutorials i've found on editing services.jar deal with just changing the notification bar colors...i haven't found anything that tells me how to remove icons.
Get the name of the icon you want to remove. Then look it up in public.xml to get its reference address. Then search the status bar classes for where it is referenced. That should get you started.
i must be losing my mind...where do i find public.xml? i am really struggling with this...i've read anything and googled anything and everything i can think of without any luck figuring this out. i've extracted framework-res.apk and can't find public.xml anywhere in there...
i'm sure this is something very simple that will click in my head as soon as someone says something to make it click, but right now i feel very stupid and frustrated...
You're not losing your mind. You have to decompile framework-res in order to read that file.
ok, i've gotten it decompiled thru apktool. we'll see how far i get this time...thanks for your help!
ok, i found this in public.xml...
<public type="drawable" name="stat_sys_battery_0" id="0x01080292" />
<public type="drawable" name="stat_sys_battery_10" id="0x01080293" />
<public type="drawable" name="stat_sys_battery_100" id="0x01080294" />
<public type="drawable" name="stat_sys_battery_20" id="0x01080295" />
<public type="drawable" name="stat_sys_battery_40" id="0x01080296" />
<public type="drawable" name="stat_sys_battery_60" id="0x01080297" />
<public type="drawable" name="stat_sys_battery_80" id="0x01080298" />
but i'm having a hard time finding it in the classes...i don't know if i'm looking in the right place. i ran this:
java -jar baksmali-1.2.4.jar -x services.jar
which gave me a bunch of output .smali files. i've been looking through these to try to find 0x01080292 (for example), but i haven't found anything even remotely close to that in any file i've looked in so far. am i even on the right track here? what should i be doing next?
Look in StatusBarPolicy.smali for references to the battery. I have not done this yet, but if I was to guess, that is where I would start. Forget about the public.xml file. Just look for code that has to do with the battery icons.
unfortunately, i guess this is way over my head...i can't make anything out of these smali files. i have no idea where to even start...
i found what i think is the battery code (there are a ton of references to the battery icon in StatusBarPolicy.smali), but i don't even know where to start to get it to remove the icon...
http://forum.xda-developers.com/showthread.php?t=740502
Would looking at these help you at all?
they do help a bit, in that i can see the differences...but i don't know what changes are for the battery and which are for the location (i'm running skyraider). there's no file that just does location so i can strip that out, at least not for 8/1 based roms...

Make Launcher Orientation to Landscape (Sensor)

I've been trying to do this for a while now but it always keeps force closing no matter what edits I make.
I am trying to get my latest launcher, Xperia Arc Launcher for Samsung Galaxy S to be able to go into both portrait and sensor modes in the homescreen at the very least and hopefully the app drawer as well.
I have edited the Android Manifest in the apk to edit the line:
'android:screenOrientation=portrait'
edited to:
'android:screenOrientation=sensor'
And I thought that was the last thing to do it. Apparently not, help anyone?
Try putting it in each layout.xml. That's what i do.
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
So I could edit my launcher similar to this to achieve automatic orientation?
Sent from my Zio using XDA Premium App
Mattix724 said:
So I could edit my launcher similar to this to achieve automatic orientation?
Sent from my Zio using XDA Premium App
Click to expand...
Click to collapse
Depends.
In short, yes, but it would stretch horribly.
You'd need to create a portrait and landscape layout and then listen for when the orientation switches then change to a different layout.
I imagine so anyway, i've never actually tried it.
Meltus said:
Depends.
In short, yes, but it would stretch horribly.
You'd need to create a portrait and landscape layout and then listen for when the orientation switches then change to a different layout.
I imagine so anyway, i've never actually tried it.
Click to expand...
Click to collapse
So for now I can just try your first post and it will at least rotate?
EDIT - There are no layout.xml's in my launcher.apk file.....
Syn Ack said:
I've been trying to do this for a while now but it always keeps force closing no matter what edits I make.
I am trying to get my latest launcher, Xperia Arc Launcher for Samsung Galaxy S to be able to go into both portrait and sensor modes in the homescreen at the very least and hopefully the app drawer as well.
I have edited the Android Manifest in the apk to edit the line:
'android:screenOrientation=portrait'
edited to:
'android:screenOrientation=sensor'
And I thought that was the last thing to do it. Apparently not, help anyone?
Click to expand...
Click to collapse
Well, what is the actual stack trace? There is a bug somewhere in your code that is causing the crash, and it isn't the screenOrientation parameter in the manifest. Also, removing the attribute entirely is probably what you actually want (the "unspecified" value), as that is what will "Do The Right Thing" in regards to the sensor, keyboard sliders, etc...
Meltus said:
Try putting it in each layout.xml. That's what i do.
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
Click to expand...
Click to collapse
That has nothing to do with the screen orientation, that just sets whether the linear layout places things horizontally or vertically.
kllrnohj said:
Also, removing the attribute entirely is probably what you actually want (the "unspecified" value), as that is what will "Do The Right Thing" in regards to the sensor, keyboard sliders, etc...
Click to expand...
Click to collapse
So I should just set it like this?
android:screenOrientation=""
________________________
Doesn't matter because apparently I can't recompile the apk after editing AndroidManifest.xml. This sucks.
Just to raise it from the dead. Thanks Meltus and kllrnohj for your valuable advice.
I have followed up from what you said, adding the android:screenOrientation:"sensor" to every xml file in the layout folders (actually just replaced <RelativeLayout with <RelativeLayout android:screenOrientation:"sensor" to make it quicker. I was getting an error if i wrote androidrientation and not android:screenOrientation
I manage to compile and all, but the .apk will just not launch. I have a second launcher just incase something goes wrong with the Sony Ericsson Home apk.
Any ideas? I even tried adding the following statement on AndroidManifest.xml:
<activity android:theme="@style/HomeTheme" android:label="@string/home_application_name_txt" android:name=".HomeActivity" android:launchMode="singleTask" android:screenOrientation="sensor" android:configChanges="mcc|mnc|orientation">
Click to expand...
Click to collapse
but without any proper results....
Happy new year btw
Set it to this :
android:screenOrientation="user"
pratyush.creed said:
Set it to this :
android:screenOrientation="user"
Click to expand...
Click to collapse
when I'm compile and then I'm decompile the result of my mod. When Im check at the line "android:screenOrientation="user" the result is not "user" but comeback again at "nosensor".
Any Idea why is that?

Brightness slider in notification bar pull down?

This thread talks about the ability to add the brightness slider to the pull down notification area by doing the following mod in SystemUI.apk:
Open res/layout/tw_status_bar_expanded.xml and removing the android:visibility="gone" from the following line:
Code:
<LinearLayout android:orientation="horizontal" android:focusable="true" android:visibility="gone" android:clickable="true" android:layout_width="fill_parent" android:layout_height="56.0dip">
Well, Ninjamorph cannot handle this task since you need to decompile tw_status_bar_expanded.xml to edit that code line, so if anyone could use my attached already highly modded SystemUI.apk (it has a toggle edits, GPS icon removed, battery icons) and decompile, edit the code line, recompile and repost, I would much appreciate it.
Thanks in advance!
Lock-N-Load said:
This thread talks about the ability to add the brightness slider to the pull down notification area by doing the following mod in SystemUI.apk:
Open res/layout/tw_status_bar_expanded.xml and removing the android:visibility="gone" from the following line:
Code:
<LinearLayout android:orientation="horizontal" android:focusable="true" android:visibility="gone" android:clickable="true" android:layout_width="fill_parent" android:layout_height="56.0dip">
Well, Ninjamorph cannot handle this task since you need to decompile tw_status_bar_expanded.xml to edit that code line, so if anyone could use my attached already highly modded SystemUI.apk (it has a toggle edits, GPS icon removed, battery icons) and decompile, edit the code line, recompile and repost, I would much appreciate it.
Thanks in advance!
Click to expand...
Click to collapse
This should work. There were 2 errors while de-compiling regarding your e911 cross hair images. No errors on building though so should be ok.
mastamoon said:
This should work. There were 2 errors while de-compiling regarding your e911 cross hair images. No errors on building though so should be ok.
Click to expand...
Click to collapse
Thanks.. I will try it out and report back. Likely, the errors were the fact that the 2 GPS crosshair images were deleted that stops those annoying crosshairs from showing up
UPDATE: so... yes the 2 errors were the missing png files for the GPS icon. I could fix that easy though with Ninjamorph.
Now, you got the brightness slider in place BUT it does not work it doesn't do anything. I don't blame this on you so no worries as it seems to mean that some other additinal edit needs to be made as this just put the slider in place BUT does not actually activate it's function. So.. kinda worthless sadly
Lock-N-Load said:
UPDATE: so... yes the 2 errors were the missing png files for the GPS icon. I could fix that easy though with Ninjamorph.
Now, you got the brightness slider in place BUT it does not work it doesn't do anything. I don't blame this on you so no worries as it seems to mean that some other additinal edit needs to be made as this just put the slider in place BUT does not actually activate it's function. So.. kinda worthless sadly
Click to expand...
Click to collapse
Half way there
mastamoon said:
Half way there
Click to expand...
Click to collapse
true that.. but I dont know the other half and it would no doubt require deeper edited code to make the slider actually do something
oh well, thanks for the help as I did not expect this would be the outcome.
Lock-N-Load said:
true that.. but I dont know the other half and it would no doubt require deeper edited code to make the slider actually do something
oh well, thanks for the help as I did not expect this would be the outcome.
Click to expand...
Click to collapse
Yeah it looks like the Power Widget edits are what actually do the stuff that slider is requesting. Unfortunately I don't have time to do much smali'ing now, but maybe somebody can finish it up for you. Or in reverse, take a completed one and move your images over to it.
mastamoon said:
Yeah it looks like the Power Widget edits are what actually do the stuff that slider is requesting. Unfortunately I don't have time to do much smali'ing now, but maybe somebody can finish it up for you. Or in reverse, take a completed one and move your images over to it.
Click to expand...
Click to collapse
agreed 100%. I would have to carry over my battery images and the GPS cross hair mod - which I can do with Ninjamorph easy - but then I need to use whatever toggle setup comes in the completed one that has the brightness slider and I rather like the ones I got.
So, for now, I guess I will just sit tight on what I have.
If you like your current toggles, it's only a matter of swapping out the images of lidroid.
Sent from my SCH-I535

[How-To] Edit Contacts.apk/Phone.apk for dialer pad ?

hi everybody, I need some help with dialer pad.
As you can see at the pic, there is much space at the right. The lowermost buttons are not in proper line. How i can resize them to put them in a proper line? Do I need to edit smali codes / values codes? Thanks in advance
The images don't need to be resized.
However you'll have to modify the layout. But this will be a task.
First you'll have to find out which layout it is that contains those three buttons.
The way I narrow my search down is, I go into red/drawable-hdpi/xhdpi/xxhdpi or whatever the resolution is. And look for those icons. Once you find the dialer, phone and contact add icon. Copy the names of these .png's to something then using one of the .png's copy the name and in the layouts folder. Search the images name. This will narrow down the layout.xml's and then from there you can find it. Once you find the layout.
There will be three lines that determine the images, you can fix the layouts by using the following code.
android:layout_gravity="center|center"
android:gravity="center"
Change the first one to where you want to button to be displayed so if its on the right side make it "right|center" or "center|right"
Hopefully I helped.
Sent from my Nexus 5 using Tapatalk
krishneelg3 said:
The images don't need to be resized.
However you'll have to modify the layout. But this will be a task.
First you'll have to find out which layout it is that contains those three buttons.
The way I narrow my search down is, I go into red/drawable-hdpi/xhdpi/xxhdpi or whatever the resolution is. And look for those icons. Once you find the dialer, phone and contact add icon. Copy the names of these .png's to something then using one of the .png's copy the name and in the layouts folder. Search the images name. This will narrow down the layout.xml's and then from there you can find it. Once you find the layout.
There will be three lines that determine the images, you can fix the layouts by using the following code.
android:layout_gravity="center|center"
android:gravity="center"
Change the first one to where you want to button to be displayed so if its on the right side make it "right|center" or "center|right"
Hopefully I helped.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
thanks for your answer
I tried but doesn't fix it. I found what image it shows at dialer pad. it's '' ic_add_contact_holo_dark '' ( how i found it is? I have change the image with another bigger resolution one. Dialer pad shows it bigger but didnt cover more place ( i have thought that if change the icon wiht bigger one maybe it could cover all transparent space. but it didnt ) so with that way i found which image is that! Then,
I followed ur tellings. '' ic_add_contact_holo_dark '' is in Contacts.apk and the layout xml is '' speed_dial_input_dialog.xml '' . Here is the xml codes :
HTML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="horizontal" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<EditText android:id="@id/number" android:layout_width="0.0dip" android:layout_height="48.0dip" android:layout_marginTop="16.0dip" android:layout_weight="0.8" android:inputType="phone" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/contacts" android:layout_width="0.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_add_contact_holo_dark" android:layout_weight="0.2" style="?android:attr/buttonBarButtonStyle" />
</LinearLayout>
I have changed '' android:layout_gravity="center_vertical" '' to android:layout_gravity="center|right"
but doesnt fix it, u have any idea ? really thanks for your help
Mind pulling the .apk from your device and uploading it? Perhaps I can fix it for you.
Sent from my Nexus 5 using Tapatalk
krishneelg3 said:
Mind pulling the .apk from your device and uploading it? Perhaps I can fix it for you.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
here is the link: http://yadi.sk/d/ggjXtOnVQVrjt
Contacts.apk , Phone.apk and Framework-res.apk ...
Thanks
@SmiLeToLife thanks, I will take a look at it in an hour or so. Just woke up.
I'll let you know if I finish it
EDIT -
Couldn't find the needed layout. Sorry :\

System UI mod for Official Lollipop

I have managed to mod the SystemUI of my note 3 to my liking but one thing is not possible for me to do.
I have hidden the sfinder menu. Increased transparency of recent apps background.
And changed status bar icons to stock lollipop.
But i have just noticed that the clear button in notification panel takes so much space.
Is there a way to hide it? Or make it as an overlay instead of wasting space.
Plssssssss tell me if anyone knows a way.
See the screenshot for explanation
I'm not on LP, so just guessing, because I can't try it.
TWRP or ADB is recommended to fix the SystemUI if it crashes after that, or make an zip with the original SystemUI.
SystemUI.apk\res\layout\clear_all.xml
hide possibility:
change this:
android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size"
to
android:textSize="0.0dip"
change this:
android:layout_width="wrap_content"
to
android:layout_width="0.0dip"
change this
android:layout_height="@dimen/carrier_label_height"
to
android:layout_height="0.0dip"
If the "Clear" text is gone after that, than it's the right xml.
or just test it first make the "Clear" text black: android:textColor="@drawable/clear_all_button_state" change to android:textColor="#FF000000"
If there is no change try to make changes here: SystemUI.apk\res\layout\status_bar_notification_dismiss_all.xml
android:layout_width & height to 0.0dip
If one of them is working, than add your modified xml to layout-land folder, so the Clear button should be gone only in landscape mode.
(let the original xml in the layout folder)
tkari4 said:
I'm not on LP, so just guessing, because I can't try it.
TWRP or ADB is recommended to fix the SystemUI if it crashes after that, or make an zip with the original SystemUI.
SystemUI.apk\res\layout\clear_all.xml
hide possibility:
change this:
android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size"
to
android:textSize="0.0dip"
change this:
android:layout_width="wrap_content"
to
android:layout_width="0.0dip"
change this
android:layout_height="@dimen/carrier_label_height"
to
android:layout_height="0.0dip"
If the "Clear" text is gone after that, than it's the right xml.
or just test it first make the "Clear" text black: android:textColor="@drawable/clear_all_button_state" change to android:textColor="#FF000000"
If there is no change try to make changes here: SystemUI.apk\res\layout\status_bar_notification_dismiss_all.xml
android:layout_width & height to 0.0dip
If one of them is working, than add your modified xml to layout-land folder, so the Clear button should be gone only in landscape mode.
(let the original xml in the layout folder)
Click to expand...
Click to collapse
I already tried that. The file is right and the clear button goes away. But still the notification panel does not take all the available space. It still stays the same way with the clear button gone.
royawais said:
I already tried that. The file is right and the clear button goes away. But still the notification panel does not take all the available space. It still stays the same way with the clear button gone.
Click to expand...
Click to collapse
SystemUI.apk\res\values\dimens.xml
Try to set this two to 0.0dip
<dimen name="close_handle_height">34.0dip</dimen>
<dimen name="close_handle_underlap">34.0dip</dimen>
You have now about 60.0dip empty space at the bottom, so 2x34 maybe...
if no change, than find each line which one contents clear in it:
for example:
<dimen name="clear_all_padding_top">12.0dip</dimen>
Thanks Thanks Thanks
Thanks Sooooooooooooo Much
The closing handle was occupying that space
Now it is perfect.
Thanks sooo much.
I might be asking for more help in future.
I hope U dont mind.
Thanks again.
Sooo happy to get my first fix from xda.
royawais said:
Thanks Thanks Thanks
Thanks Sooooooooooooo Much
The closing handle was occupying that space
Now it is perfect.
Thanks sooo much.
I might be asking for more help in future.
I hope U dont mind.
Thanks again.
Sooo happy to get my first fix from xda.
Click to expand...
Click to collapse
Could you please mod my SystemUI apk to not show S-Finder/Quick Connect? :fingers-crossed:
I have the recent apps screen background set to transparent.. I don't mind the Clear button too..
I have created a new thread consisting of all the mods I am using.
http://forum.xda-developers.com/galaxy-note-3/themes-apps/mods-collection-note-3-lollipop-t3148518
It also has how to hide the buttons in recents apps as well

Categories

Resources