How to remove
{
"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"
}
icon from status bar
This is a very easy mod if you follow all the steps exactly!
Thanks to nivron for creating this excellent tutorial on how to SMALI/BAKSMALI. Use the steps in his tutorial to decompile SystemUI.apk.
Additional thanks to SteelH for this thread.
In StatusBarPolicy.smali file look for the following code:
Code:
.method private final updateVolume()V
.registers 7
.prologue
const/4 v2, 0x1
const/4 v4, 0x0
NOTE: The actual code already has a blank line between .registers 7 and .prologue.
Insert return-void in the line below .registers 7, so the final code looks like this:
Code:
.method private final updateVolume()V
.registers 7
return-void
.prologue
const/4 v2, 0x1
const/4 v4, 0x0
Recompile classes.dex and replace it in the SystemUI.apk per nivron's tutorial mentioned above. Push SystemUI.apk back to the phone and reboot. Now when you select silent mode, the icon will not show on the taskbar.
Related
Changing the date format
I own the VZW variant of the phone, but it seems this file is the same with all variants.
This mod will achieve this:
{
"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"
}
Method 1
1. Locate DateView.smali in smali\com\android\systemui\statusbar\policy
2. On line 262 delete
Code:
invoke-static {v0}, Landroid/text/format/DateFormat;->getLongDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;
3. Add
Code:
const-string v4, "EEEE, MMM d, yyyy"
invoke-static {v4, v3}, Landroid/text/format/DateFormat;->format(Ljava/lang/CharSequence;Ljava/util/Date;)Ljava/lang/CharSequence;
4. I prefer the "Day of week, Month (short), Day (w/o leading 0), Year" format, but you may choose to format it how you wish. Use this to help you with formatting.
Method 2
If you already like the way I've formatted the date. You can simply replace your DateView.smali with mine and compile your SystemUI.
There's no line 262 in the Sprint variant. There're 3 instances of this particular code in our DateView.smali. What's the surrounding code? I don't want to mess with the wrong lines one at a time...
EDIT: Ok, so I read the code wrong. I found 1 place in the smali file with the code, it's .line 136. However, performing the MOD makes the status bar disappear and forcecloses SystemUI.apk. It seems there's a difference b/w VZW and Sprint implementations of the date format. Pity...
{
"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"
}
This mod allows lockscreen to rotate based on sensor. To install just flash LockScreenSensorEnable.zip from recovery.
This mod is based on alquez's Unofficial CM7 build dated 20120717 and may not work with other builds.
Don't try this on other ROMs.
Don't forget to make backup before flashing.
I take no responsibility for any harm that comes to your phone as a result of applying this mod.
Download:
LockScreenSensorEnable.zip
How to:
Decompile android.policy.jar with apktool
in com\android\internal\policy\impl\KeyguardViewManager.smali
Find:
Code:
const/4 v1, 0x[COLOR="Red"]5[/COLOR]
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->screenOrientation:I
.line 121
const-string v1, "Keyguard"
Change to:
Code:
const/4 v1, 0x[COLOR="red"]2[/COLOR]
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->screenOrientation:I
.line 121
const-string v1, "Keyguard"
I would have been gone with cm7 but there is problem in usb tether in latest build so i am waiting for fix....
Cm 7 will be most stable non sense rom ....with cm9 theme it looks awsm...thanx 4 developing...thanx hitted.
Sent from my HTC Wildfire S A510e using xda app-developers app
This guide will show you how to change the incoming call widget color for 4.2.1 and 4.1.2.
1. Decompile SecPhone.apk
2. Open smali\com\android\phone\IncomingCallWidget$Handle.smali with Notepad++
3. In .method private init()V search for mCircleColor:I above it you wil see something like:
Code:
[COLOR=#ffa500][COLOR=#ffa500][COLOR=#ffa500][COLOR=#0000ff]const[/COLOR] [COLOR=#d2691e]v6[/COLOR], [COLOR=#ff00ff]0x7f02039b[/COLOR][/COLOR][/COLOR][/COLOR]
[COLOR=#ffa500][COLOR=#ffa500][COLOR=#ffa500] [COLOR=#0000ff]invoke-virtual[/COLOR] {[COLOR=#d2691e]v5[/COLOR], [COLOR=#d2691e]v6[/COLOR]}, [COLOR=#808080]Landroid/widget/[/COLOR][COLOR=#008080]ImageView[/COLOR];->[COLOR=#6b8e23]setBackgroundResource[/COLOR](I)[COLOR=#ffa500]V[/COLOR][/COLOR][/COLOR][/COLOR]
[COLOR=#ffa500][COLOR=#ffa500] [COLOR=#008000].line 485[/COLOR][/COLOR][/COLOR]
[COLOR=#ffa500]
[COLOR=#ffa500] :[COLOR=#ff1493]goto_0[/COLOR][/COLOR]
[COLOR=#ffa500]
[COLOR=#0000ff]const[/COLOR] [COLOR=#d2691e]v5[/COLOR], -[COLOR=#ff00ff]0x9e5eeb[/COLOR]
[/COLOR][COLOR=#ffa500][/COLOR][COLOR=#ffa500] iput [COLOR=#d2691e]v5[/COLOR], [COLOR=#d2691e]p0[/COLOR], [COLOR=#808080]Lcom/android/phone/[/COLOR][COLOR=#008080]IncomingCallWidget$Handle[/COLOR];->[COLOR=#9370db]mCircleColor[/COLOR]:I[/COLOR]
[/COLOR][COLOR=#ffa500][/COLOR]
Change this constv5, -0x9e5eeb to what ever color you want (takes hex value) eg: constv5, 0xff000000 would be black.
4. Change ic_jog_dial_answer.png in drawable-xhdpi to match color.
5. Recompile.
6. Hit thanks. Your done.
{
"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"
}
Thanks!
Very nice! Thanks for your hard work, big push on thanks button for you mate!
Mr.Mefisto said:
Very nice! Thanks for your hard work, big push on thanks button for you mate!
Click to expand...
Click to collapse
No worries mate.
AndroidFire's Toggles
Yeah You hear Right it is AndroidFire's Toggles which has Advanced Features it can be switch to GridView and ListView also. Currently it has 10 toggles after my exam i will make more toggles. To Add this toggles to your statusbar very easy thanks to @SpaceCaker for methods which does not required smali editing
Screenshot
{
"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"
}
REQUIREMENT
=AndroidFire's Toggles File
=Brain
=Tool for decompling and recompling i recommended to use AF Apk
Instruction
1. Decompile Your SystemUI.apk
2. Merged with latest version of Toggle file
3.Open xml where You want to load toggles
4. Add this line
Code:
<com.androidfire.toggles.TogglesView android:layout_width="wrap_content" android:layout_height="wrap_content" />
5. Recompile Your App
6. Install ToggleSettings to control togges
7. Enjoy
Credit
@SpaceCaker
@AndroidFire
CM
Bugs
Not Found //If You find bug please report it
CHANGELOG and FAQ;
CHANGELOG
v1
V1 Initial Release:
Added 10 Toggles
Added Settings
FAQ
Not Found
Extra
Not Ready Will Soon
First to Comment [emoji2] [emoji1] . Share some Ss of ur Systemui with all toggles in Grid as well as List View & also of ur settings app..
Very nice. But... It haven't toggle Reboot + Shutdown
This mod will make Soung Alive by pass checking so make effects supported all bluetooth devices
I just found when some ROM supported but some not
Have Fun with new Sound
{
"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"
}
Decompile system\priv-app\SoundAlive_20_L
Edit
\smali\com\sec\android\app\soundalive\framework
Find .method public static isSupportSoundAliveBT(I)Z
Replace all method with this:
Code:
.method public static isSupportSoundAliveBT(I)Z
.locals 1
.param p0, "soundAlive" # I
.prologue
.line 214
const/4 v0, 0x1
return v0
.end method
Recompile ..... DONE
Wish i understood this
For SoundAlive_31, below is under smali/com/sec/android/app/soundalive/policy/SoundAlivePolicyManager.smali
.method public static isSupportSoundAliveBT(I)Z
.locals 1
.param p0 # I
const/4 v0, 0x1
return v0
.end method
Click to expand...
Click to collapse
Will your mod work same on SoundAlive_31?
wcoast said:
Will your mod work same on SoundAlive_31?
Click to expand...
Click to collapse
I don`t have that.
You can try to find .method public static isSupportSoundAliveBT(I)Z on smali
Yea same here i can't find that anywhere