[MOD][5.0.2][XT1069][22.21.28]Remove Sim number from statusbar - G 2014 Android Development

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm using gravitybox to make other modifications in the image above. But it cant remove SIM number so i use this mod
This Mod Remove Sim number, from statusbar. Works on lockscreen and un-locked screen
Instructions:
Do It Yourself
This can be done to any systemUI Of Lollipop...
1° Copy yours SystemUI.apk and framework-res.apk to PC put in a safe place and do not change these files...
Framework-res.apk is in /system/framework
SystemUI.apk is in /system/priv-app/SystemUI
Make a copy of these files and decompile SystemUI.apk using:
[TOOL] V4.0.3-xdaAutoTool ALL-Win | V5.0.0b-xdaautoAPKTool | V1.0.3-xdaautoDeoTool
To decompile and recompile follow the instructions detailed in the Thread above
change two lines in systemui.apk res/layout/signal_cluster_view.xml as follows
Open XML file with notepad
original
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimLabel" />
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label_2" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimLabel" />
changed
* change what is in RED
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label" android:layout_width="0.0dip" android:layout_height="0.0dip" style="@style/TextAppearance.StatusBar.SimLabel" />
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label_2" android:layout_width="0.0dip" android:layout_height="0.0dip" style="@style/TextAppearance.StatusBar.SimLabel" />
After the change save the XML file, recompile and Sign the apk using the tool, replace it on the phone...
To easy replace it on the phone, just replace yours MOD SystemUI.apk in the ZIP attach, flash it and tested...
If some goes wrong, replace yours original untouched SystemUI.apk in the ZIP attach and flash it...
FLASHABLE zip:
Flash the zip (SystemUI-xt1069-5.0.2-Mod.zip) on recovery, reboot and test
if something goes wrong, use the file (SystemUI-xt1069-5.0.2-Default.zip) to restore...
!!! This zip only works on android 5.0.2 XT1069 22.21.28
This version:
But if you follow the Instructions Do It Yourself, can be made to any SystemUI...
Do a full backup before
I'm not responsible for any phone brick​​
if you can not do it yourself, provide me with your SystemUI and framework-res.apk that I make modifications, and make a flash zip to you...
I do not have much time left so it may take up to 48 hours for me to do it...
Credits to creators of thread and and those who helped them...
[MOD][XT1033] Remove carrier label and SIM numbers for statusbar[Do-It-Yourself]
[MOD][5.0] Center clock for stock Android Lollipop
[TOOL] V4.0.3-xdaAutoTool ALL-Win | V5.0.0b-xdaautoAPKTool | V1.0.3-xdaautoDeoTool

Related

[TUT] How to change a static notification icon to an animated icon

I always hated the static wifi icon that is displayed in the notification bar so I set out to change it with a simple 6 step animated icon.
The original framework-res.apk contains 5 wifi icons for the different signal levels.
and they are named stat_sys_wifi_signal_0.png to stat_sys_wifi_signal_4.png and can be found in the res/drawable-hdpi and res/drawable-mdpi folders within the framework-res.apk
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
stat_sys_wifi_signal_0.png is not very useful so we'll keep that one a static icon.
stat_sys_wifi_signal_1.png to stat_sys_wifi_signal_4.png are going to be replaced by a set of 6 icons that will show a nice animation.
So now that we have a the graphics comes the hard part, how do we get these into the framework-res.apk as an animation.
The answer is, with XML files.
We need to create an xml file for each animated set and they have to have the same name as the original icons except for the extension.
So for the stat_sys_wifi_signal_1.png we create an xml file with the name stat_sys_wifi_signal_1.xml and place it in the res/drawable directory.
The content of the xml file is here below.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim0" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim1" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim2" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim3" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim4" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim5" />
</animation-list>
Some explanation about the content, this line
Code:
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim0" />
it tells the system to show the icon stat_sys_wifi_signal_1_anim0.png for 200ms (mili-seconds) and then go to the next line.
The full set of icons and xml files can be downloaded here
To re-compile the framework-res.apk you can use this
Happy modding.
Other animated Icons
Download Sync Animation
Download Upload Download Animation
wdl1908 said:
Reserved for future use.
Click to expand...
Click to collapse
Great!
Just recompile the apk after modding and install it?
Lennb said:
Great!
Just recompile the apk after modding and install it?
Click to expand...
Click to collapse
Yes I'v added a link to a frameworkrebuiler script in the first post.
wdl1908 said:
Yes I'v added a link to a frameworkrebuiler script in the first post.
Click to expand...
Click to collapse
Thank you!
Added some extra animated icons in second post.
very funny !
thanks
thanks
How would set up xml file for your data animation? What would you call it. Im trying to get http://forum.xda-developers.com/showthread.php?t=846825 to work for my lf g2x I have settingSU and framework Ive manged to compile new icons for battery,download,wifi but getting the animations to show is driving me crazy
cleanmydirt said:
How would set up xml file for your data animation? What would you call it. Im trying to get http://forum.xda-developers.com/showthread.php?t=846825 to work for my lf g2x I have settingSU and framework Ive manged to compile new icons for battery,download,wifi but getting the animations to show is driving me crazy
Click to expand...
Click to collapse
What is the name of the icons you are trying to change?
You have to make an xml file with the same name and use other names for the icons that will do the animation.

[Guide] How to add banner in "About Phone" | Noob friendly

Hello folks .... I’ve backed to xda after a looong time because exams
My new TUT for adding logo in "About Phone" .
Inspired by this THREAD
Credits :
@gravtec for inspiring big thanks for you bro .
What you need ? :
Latest APKTOOL package .
A brain .
PC .
Knowledge in decompiling and recompiling .
Lets start the GUIDE !
Resources
APKTOOL here .
Image Resolution : 700*215 .
Guide​
First Part​
Decompile Settings
Go to res/Layout folder
Download this file
paste it in Layout folder
Second Part​
Copy the image to res/drawable folder
Rename it to logo and it must be "PNG" !
EX: logo.png
Click to expand...
Click to collapse
Third Part​
Go to res/xml
open device_info_settings.xml
Add this
<PreferenceScreen android:layout="@layout/logo" android:key="od_logo" />
Click to expand...
Click to collapse
after this line
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
Click to expand...
Click to collapse
EX :
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceScreen android:layout="@layout/logo" android:key="od_logo" />
Click to expand...
Click to collapse
SAMPLE
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Reserved for future
More things will add for this feature
awesome
Good bro
Sent from my LT26ii using XDA Premium 4 mobile app
Nice guide thanks
sent from my lt26i running android 4.4 by RaymanFX
great tutorial mate! hoping to finish ur rom soon
guidance mod Setting White Balance + Staminamode is better.
trinhvanan12 said:
guidance mod Setting White Balance + Staminamode is better.
Click to expand...
Click to collapse
Those things are not as simple as adding a few lines in Settings.
They have to be ported, I.e. Some files have to be modified too.
Sent from my brain using my Xperia S1

(GUIDE)(MOD)Changeable Lockscreen text like Galaxy4.

How to add the Lockscreen Text to any lockscreen.
As most know I have implemented this feature inside the Touchwiz Resurrection rom for galaxy ace i.
As seen below.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Basicly this mod was very easy to add .
What is inside the resources.zip ?
LifeCompanionText.apk ( App to change the text )
LifeCompanion smalis for the framework.jar
SpaceFont.ttf for the CoolJazz font from S3/4
Basicly what you would need to do is:
Download Resources Attachement.
Extract it
Decompile you’re framework.jar
Go to the extract smali folder from the resources.zip and copy the smali folder to the smali folder of you’re framework.jar.
Compile framework.jar
Now we are going to add it to the frameworks location/allocate the text.
Decompile framework-res.apk
Find a lockscreen layout to you’re likes.
I used “zzz_keyguard_screen_clockwidget.xml” but you would be able to put it inside : “keyguard_screen_tab_unlock.xml” for the normal sliding tab lockscreen and such.
Open the layout you wanted and simply add this line above the clock layout or where you want
Code:
<com.touchwizres.lifecompaniontext.LifeCompanionTextView android:textSize="40.0dip" android:textColor="#ffffffff" android:id="[COLOR="RoyalBlue"]@id/life_companion_tag[/COLOR]" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#7f000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
I placed this code just below
Code:
<view android:gravity="left" android:orientation="vertical" android:id="@id/clock_time_and_date" android:paddingLeft="7.0dip" android:paddingTop="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.ClockWidget$TimeAndDate">
of the "zzz_keyguard_screen_clockwidget.xml"
Add this to the ids.xml
Code:
<item type="id" name="[COLOR="RoyalBlue"]life_companion_tag[/COLOR]">false</item>
Compile framework-res.apk
Decompile ur compiled framework-res.apk
Now we are going to fix the ID Values. From the smali .
Decompile ur compiled framework.jar
Open
Code:
com/touchwizres/lifecompaniontext/[COLOR="RoyalBlue"]LifeCompanionTextView.smali[/COLOR]
that’s inside the framework.jar
Find
Code:
const v3, 0x[COLOR="Red"]10202cc[/COLOR]
This is the “life_companion_tag” ID (
Code:
<public type="id" name="life_companion_tag" id="0x0[COLOR="Red"]10202cc[/COLOR]" />
) inside public.xml
We need to fix this to yours
Now when u have changed the code from 0x10202cc to something like 0x1020299 or something depends on ur framework-res.apk
U can compile the framework.jar
Now zip the files together and make sure these are set properly.
SpaceFont.ttf inside /system/fonts/**
LifeCompanionText.apk inside /system/apps/**
And then ofcourse you’re modified framework.jar and framework-res.apk inside /system/framework/**
Now you are done
Happy modding
On what roms can u apply this mod ?
Basicly it can be applied to ALL Roms atleast if u know what u are doing.
As Most of you all know i am a HUGE HUGE Open Source fan so in this case i fully opensourced this aswell
Here is the sourcecode: https://github.com/spacecaker/LifeCompanionLockscreentext
Import in Eclipse.
Compile app.
Export unsigned apk.
Sign apk.
Decompile apk.
Retrieve ur smali codes.
Implement in framework
Some helpers who helped me on some knowledge and ideas:
B16H22
MarioZaWa
Pineappleowl
and testers
thanks sir for your guide
sir i want to know how to port Samsunng default clockwidget to our Non tw device.
i ported but not getting hour and minute pngs
How to remove? Keep getting infinite boot whenever I remove it..
Works well.But after reboot,the text will back to"life companion".How to fix?
Android小楼阁-QQ群 439637151
来自搭载Android 2.3 GingerBread的华为Y220-T10

[2.3xx][MOD][GUIDE] AlmasToggle(Noob Friendly) (Updated v2)

24 Toggle Almas Toggle
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
AlmasToggle
I am Bored with lidroid quickpanel and my friend spacecaker toggles because no methods to switch between gridview or horizontal view and some other stuff. I make This toggle from Scratch no fork of cm11 or any other toggle source it is totally open source everyone can fork and anything but just give credit to me This toggle take 4-5 day to complete because me soo busy these day . If You need any help regarding to this post here BUT NO PM there one app where some window are located if you don't install that force close when clicking on window based toggle. Also There almas-res.apk Where the resource are located you need to put almas-res.apk to system/framework the java of the toggle will load to app to give output of images and etc. If You want to have kitkat Status_Bar_Close just open status_bar_tracking find <ImageView and replace with com.almas.systemui.BottomBar after replacing you need remove android:src="blabla" from the tag. AlmasToggle contain 24 Toggle Now and can be switch grid view and horizontal view . We talk so much let's start ?
Required
1. almas-res.apk
2.AlmasToggle.apk
3.Toggle_Smali
Instruction
1st
1. Put almas-res.apk to /system/app or /system/framework and set Permission R - W - RR (Recommended to in /system/app)
2.Install AlmasToggle to Your Phone
2nd
1.Decompile Your SystemUI.apk
2.Open smali folder Merged Toggle_Smali
3.Open /res/layout/**** any layout where you want load
4.Add These Lines
Code:
<com.almas.toggles.ToggleGridView android:layout_width="match_parent" android:layout_height="wrap_content" />
<com.almas.toggles.ToggleHorizontalView android:layout_width="wrap_content" android:layout_height="wrap_content" />
Tips
How to change Profile name and photo
Click on the Toggle
SS
Credits
AndroidFire
PxL for Toggle Images
tentenponce
AKOP
SpaceCaker
Source
Go Here
Change logs
v1
-Initial released
v2
-Added Wifi Hotspot Toggle
-Bug Fixed
-Added Toggle Order
-Many More
Features
Two Policy.
AutoUpdate
Toggle Order
Extended Toggle
more

[v2] Potato Shortcut (Custom Application shortcut in expanded view or anywhere)

What is this?
This will let you add custom application shortcuts in expanded view
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Changelog
Disappearing shortcut icon fixed
Icons are centered by default
Add icons in HorizontalScrollView if the icons reach the 6 button threshold
How to use?
Decompile your SystemUI (Must be Deodex)
Download the attached file
Please download and install PotatoShortcuts.apk attached below (You don't need to install pkg.apk anymore)
Extract the attached file
You now have 2 files , pkg.apk and SystemUISmali.zip
Install pkg.apk (Normal install)
Extract SystemUISmali.zip
You now have the smali files, paste it in the smali folder of your decompiled SystemUI
Go to res/layout/status_bar_tracking.xml
You will see this line
Code:
<com.android.systemui.statusbar.CloseDragHandle
android:id="@+id/close"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
Paste this code after that line
Code:
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.android.systemui.statusbar.potato.shortcuts.ShortcutView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" />
</HorizontalScrollView>
NOTE. You can put the code everywhere you like, I just put it in the close drag handle just to be just LOL.
Tested in Galaxy and KitKat ROM by Vanya (Dunno his XDA name)
Known bug
Nothing in v2 I guess
Permission
You can use this mod to your awesome ROM but don't change the smali names and the app name PLEASE , fixing bugs is harder than moving on (HUGOT!).
Credits
The PotatoInc (mariozawa)​
Nice guide sir. btw. is there a tutorial here on how to make dynamic tint bars?
Jedz77 said:
Nice guide sir. btw. is there a tutorial here on how to make dynamic tint bars?
Click to expand...
Click to collapse
I don't know if there is existing guide for it for GB, btw I will make guide for DSB (the one that PotatoCM is using) maybe after my thesis since I need to modify some of it components to be able to work in stock ROMS just what I did in this mod.
mariozawa said:
I don't know if there is existing guide for it for GB, btw I will make guide for DSB (the one that PotatoCM is using) maybe after my thesis since I need to modify some of it components to be able to work in stock ROMS just what I did in this mod.
Click to expand...
Click to collapse
OMG cant wait for that! some people in lenox evo group in fb already did that but they wont share any tutorials. thank you in advance!
Awesome mod btw! thumbs up! :good::good::good:
sir i have a simple question
#offtopic
Sir I created a Am/pm guide and want to add a app support to control ig via app So that user can toggle show /hide am pm but i have no idea to do it can u help me?
The stable version is finally out
can't fine version 2 of potato shortcut
the apk in the attachment is version 1.0 sir jc ?

Categories

Resources