[MOD][4.4.2][XT1052] Remove carrier label from status bar - Moto X Android Development

I couldn't find any way to remove the carrier label on stock xt1052 without using xposed (which doesn't work on ART). Here is my solution.
Install:
Replace SystemUI.apk with the attached in /system/priv-app
Change the permissions of the apk to -rw --r --r
Reboot
Enjoy!

Related

[Q] SystemUI.apk without META_INF

I am trying to modify a few APKs in an updated ROM I just installed. I was able to modify these in a previous release but now I am having trouble with SystemUI.apk. The SystemUI.apk in the ROM has no META-INF. How does this work?
If I modify and replace, I loose my status bar. If I copy the original from the ROM back, my status bar does not return. The only way to get my status bar back is to restore from a full backup.
Any help in how to modify this, or just understand how it is working in the first place would be appreciated.
What are you using to decompile the apks? Are you getting any error messages when you try to recompile it?
Apktool 1.4.5174001. No errors or warnings on decompile. No errors and one translation warning on compile.
Have you placed the right 1.apk and 2.apk in your C:\Documents and Settings\"your user name"\apktools
Yup framework-res and twframework-res from this ROM. Even though it looks like its only using 1.apk.
Update:
It's not the decompiling tools at all. I tried copying the unmodified SystemUI.apk back to /system/app, verified ownership and permissions. When I rebooted the phone, the same thing happened. No notification bar.
IDK sorry try pulling a systemui from a stock updated rom and past all you modified on that one. Sorry I could not help more Ill try to work on mine when I get home see if I can figure anything else for you.
I got it to work, sort of. I took the ROM and placed my SystemUI.apk inside, then flashed. I'm still curious about this SystemUI not being signed but still working as long as its not replaced.
Update:
After I found that the above worked, I create my own update.zip with just the SystemUI.apk inside. This also worked! Is there some reason that it did? The only difference I can tell is that the file access and modify time stamps are set to 2008
Code:
[email protected]:/ $ stat /system/app/SystemUI.apk
stat /system/app/SystemUI.apk
File: /system/app/SystemUI.apk
Size: 1108265 Blocks: 2168 IO Block: 4096 regular file
Device: b318h/45848d Inode: 41066 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ UNKNOWN) Gid: ( 0/ UNKNOWN)
Access: 2008-08-01 12:00:00.000000000
Modify: 2008-08-01 12:00:00.000000000
Change: 2012-05-26 23:27:02.000000000
I'm glad it worked out for you.

[Q] Android reverts SystemUI.apk edits

Hi! I have a very odd problem: somehow my SystemUI.apk mods won't keep (i.e. after pushing, the XML edits are reversed to stock). I'm attempting to remove the brightness slider. It should be a simple edit to the tw_status_bar_expanded.xml: add the red code; many others have used this edit successfully (Verizon GS3, international GS3, etc.):
Code:
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" [B][COLOR="Red"]android:visibility="gone"[/COLOR][/B] android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
However, it didn't work on my phone, even after three attempts. So, on a hunch, I edited something totally different:
Code:
android:background="ff000000"
to
Code:
android:background="00000000"
-- which should make the brightness bar transparent: that didn't work after pushing, either! Frustrated, I pulled the SystemUI.apk back and saw that...somehow...the XML had "reverted" back to stock, showing
Code:
[B]android:background="ff000000"[/B]
Here's my "flow," if anyone can diagnose this wacky issue:
1. Use Virtual Ten Studios (an IDE, integrated development environment) to pull SystemUI.apk (after installing framework-res.apk resources).
2. Create backup of SystemUI.apk
3. Edit XML in SystemUI.apk -> save -> recompile and zipalign.
4. Copy AndroidManifest.xml and META-INF folder from backup apk to modded apk.
5. Boot phone into recovery -> push modded SystemUI.apk to /system/app [states that it pushed correctly] (I do recovery because, as I just learned, you can't push to a phone that's on, if it has a secure kernel; adb remount or adb shell mount still yield permission denied, but recovery doesn't!).
6. Reboot.
I thought it was just a fluke, but I ran the experiment again, this time changing the color of the bar: ff000000 -> ff000001 (left is XML before pushing; right is XML after pulling): http://prntscr.com/qoqcx
Thought it could be a permissions issue, but I ran adb shell -> chmod 644 /system/app/SystemUI.apk from recovery. Still doesn't work! I pulled the just-modded pushed APK and, boom, there it lies with none of my edits. :/
Any thoughts out there?
There's got to be a reason... My phone can't be a demon. Right?
For what it's worth, I've successfully flashed a SystemUI.apk as a flashable zip, so my phone isn't immune. There's just something wrong with my process....
A friendly bump because of subforum change!

How to change battery,signal,wifi and data icons

Requirements:
1.root explorer
2.battery,wifi,signal,and data icons
3.brain
Lets start
1.open root explorer/system/app/ and copy
SystemUI.apk to ur sdcard (this is ur back up)
2.go to system/app and extract your
systemUI.apk and Go to extracted.
3.Tap the SystemUI folder and go to res/
drawable mdip. find the wifi,signal and data
you like to change.
4.Rename ur new icon to original name like
this>
stat_sys_signal_1.png
stat_sys_signal_2.png
stat_sys_signal_3.png
stat_sys_signal_4.png
stat_sys_signal_1_fully.png etc.
stat_sys_wifi_1.png etc. (or the name of ur
orig icon in res/drawable mdip)
5.after u rename all of .pngs paste it to res/
drawable mdip and replace.
6.zip your systemui folder and rename it to
SystemUI.apk
7.Move or Copy ur new SystemUI.apk to /
System and change the permission to r-w-r-r
and move it again to System/app then reboot.
u will see your new signal,data,wifi icon
If ur battery icon was not in res/drawable
mdip
it is in framework. just dont the same
procedure above. Happy Modding

Less Ugly KitKat

For KitKat users here is some files for better UI look
- Icons
- lg_dockmenu_ic_allapps : ( root required )
1. decompile your LGHome.apk
2. find png icon " lg_dockmenu_ic_allapps " and replace with new (keep png name from apk )
3. recompile LGHome.apk
4. put in system/private app (replace old) , set permissions to rw- r– r
5. reboot

Cant remove access to status bar permanently in android Oreo on Samsung - lost status

Hello
I need to remove the access to status bar permanently in android Oreo but its visible and can see it(Samsung j7core - android 8)(Apktool 2.3.3).
I follow from this post and this one :
My steps is:
1- adb pull /system/priv-app/SystemUI/SystemUI.apk
2- adb pull /system/framework/framework-res.apk
3- apktool if framework-res.apk
4- apktool if SystemUI.apk
5- apktool d SystemUI.apk
6- Open SystemUI\res\layout\status_bar.xml and add android:clickable="false" to the top most xml element
7- Open xhdpi folder and replace the corrupt pip_dismiss_scrim.9.png file with the file on the top of my post link
8- run apktool b SystemUI
9- Go to SystemUI\original and copy AndroidManifest.xml and META-INF to SystemUI\build\apk\
10- run apktool b SystemUI again
11- Go to SystemUI\dist\ and override the device's original SystemUI.apk with the one at SystemUI\dist\SystemUI.apk with adb push SystemUI\dist\SystemUI.apk /system/priv-app/SystemUI/SystemUI.apk
12- change the permissions of SystemUI.apk
13- reboot device
14- see result >>> failed > the status bar and nav bar are lost ! cant see both of them
I do this steps on android 6 and worked perfectly .
Which step is wrong or must be do ?
please help ...
Many thanks.

Categories

Resources