What are the smali / xml edits to remove the location icon? - HTC EVO 3D

What are the smali / xml edits to remove the location icon? I can make the pings transparent but that leaves a black spot in the task bar.
Any help is appreciated.

Big thanks to OMJ for the answer!
OMJ said:
This MOD will hide the GPS status reticle
{
"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"
}
and
This was made possible by RMarkwald!
This guide is a reference for the smali code change that must be made inside of SystemUI.apk to properly hide the GPS icons.
You need to edit \com\android\systemui\statusbar\policy\HtcCdmaStat usBar.smali
Search for:
Code:
.method private updateMtGpsIcon()V
.registers 8
.prologue
const/4 v5, 0x3
const/4 v4, 0x1
const/4 v3, 0x0
const-string v6, "gpsone"
Replace with:
Code:
.method private updateMtGpsIcon()V
.registers 8
.prologue
const/4 v5, 0x3
const/4 v4, 0x[COLOR=red]0[/COLOR]
const/4 v3, 0x0
const-string v6, "gpsone"
Click to expand...
Click to collapse

Thx, but it was a repost.....credit goes to RMarkWald/SteelH
http://forum.xda-developers.com/showpost.php?p=16325872&postcount=6

do i need to be rooted?

MadRed said:
do i need to be rooted?
Click to expand...
Click to collapse
short answer: yes
long answer: to have write access to the system partition in order to permanently replace the SystemUI.apk file, you will need to have s-off/bootloader unlocked (which will allow writing to internal memory where /system is located) and you will need root access to modify/replace the SystemUI.apk file.

Related

[MOD/Tutorial] Change voodoo control app status icon

Hi everyone,
So I'm a big fan of supercurio's work with Voodoo sound, but I'm also a semi-OCD theming/graphic design nerd, lol.
So I made a couple gingerbread style status icons, and found a way to enable them in the voodoo control app, and thought I'd share them for anyone else that's interested.
{
"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"
}
http://dl.dropbox.com/u/9401664/stat_notify_icon.png
http://dl.dropbox.com/u/9401664/stat_notify_icon 2.png
Download whichever icon you prefer (please note, that the white space in both icons is actually "negative" space, so that will be transparent, and inherit the color of your status bar) and make sure its named stat_notify_icon.png
Then decompile the voodoo control app (I used apk manager), and browse to /smali/org/projectvoodoo/controlapp and open VolumeManager.smali
Change line 846 in VolumeManager.smali to:
Code:
const v9, 0x7f020002
Save and close that file, and navigate to /res/values and open Public.xml
Right after
Code:
<public type="drawable" name="icon" id="0x7f020001" />
Add the following line, then save and close:
Code:
<public type="drawable" name="stat_notify_icon" id="0x7f020002" />
Now copy the icon into /res/drawable-hdpi
Finally, compile, sign (zipalign if you want) and install.
Make sure you uninstall your old version first, or this will fail to install because of the signature mis-match.
Anyway, hope someone else likes this, and Supercurio is free to use either icon in the app if he wants.
Cheers everyone, =)
Thanks Jocelyn!!! Great mod, your ocd is a blessing for us nerds

[Solved] Smali problem, rly need help - tried it over 8 hours now =D

I've started a project which you can see here:
Leedrodi Tweaks
I've added the tweak now, so that you can change song with the volume buttons, when teh screen is off.
The tweak is working fine - but now I want to be able to toggle this feature on/off in the Leedroid Tweaks.
The code changes in the Tweaks.apk are done.
So only the implementation in the smali file is missing.
I tried it for several hours, without success:
The edited smali file:
{
"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"
}
The red box marks the code Ive added
decompiled in java code:
as you can see the code changes also have effects to other lines, which makes teh code unusable.
I tried for more than 5 hours now different combinations - each time some lines are messed up:
The same smali code is used for the tweak to enable the volume buttons to wake up the phone and there it is working fine:
Code:
.method private isWakeKeyWhenKeyguardShowing(I)Z
.locals 7
.parameter "keyCode"
.prologue
const/4 v3, 0x1
const/4 v2, 0x0
iget-object v5, p0, Lcom/android/internal/policy/impl/KeyguardViewMediator;->mContext:Landroid/content/Context;
invoke-virtual {v5}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v5
const-string v6, "tweaks_use_volume"
const p0, 0x0
invoke-static {v5, v6, p0}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
move-result v5
if-eqz v5, :cond_0
const v1, 0x18
if-eq p1, v1, :cond_1
const v1, 0x19
if-eq p1, v1, :cond_1
.line 1018
:cond_0
sparse-switch p1, :sswitch_data_0
..wtf is going wrong there =/

[Q] Latest notification color in smali

Hi.
I'm trying to theme my touchwiz 4.1.2 notification bar, and I achived putting color to everything except the latest notification:
{
"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 guess the color for this is in this smali code:
Code:
.class public Lcom/android/systemui/statusbar/LatestItemView;
.super Landroid/widget/FrameLayout;
.source "LatestItemView.java"
# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 3
.parameter "context"
.parameter "attrs"
.prologue
.line 27
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 28
return-void
.end method
# virtual methods
.method public onRequestSendAccessibilityEvent(Landroid/view/View;Landroid/view/accessibility/AccessibilityEvent;)Z
.registers 5
.parameter "child"
.parameter "event"
.prologue
.line 37
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onRequestSendAccessibilityEvent(Landroid/view/View;Landroid/view/accessibility/AccessibilityEvent;)Z
move-result v1
if-eqz v1, :cond_15
.line 40
invoke-static {}, Landroid/view/accessibility/AccessibilityEvent;->obtain()Landroid/view/accessibility/AccessibilityEvent;
move-result-object v0
.line 41
.local v0, record:Landroid/view/accessibility/AccessibilityEvent;
invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/LatestItemView;->onInitializeAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V
.line 42
invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/LatestItemView;->dispatchPopulateAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)Z
.line 43
invoke-virtual {p2, v0}, Landroid/view/accessibility/AccessibilityEvent;->appendRecord(Landroid/view/accessibility/AccessibilityRecord;)V
.line 44
const/4 v1, 0x1
.line 46
.end local v0 #record:Landroid/view/accessibility/AccessibilityEvent;
:goto_14
return v1
:cond_15
const/4 v1, 0x0
goto :goto_14
.end method
.method public setOnClickListener(Landroid/view/View$OnClickListener;)V
.registers 2
.parameter "l"
.prologue
.line 32
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 33
return-void
.end method
How do I edit this to get the #FF1a1a1a background color that I want it to have?
Thanks in advance,
pemell

[Help] TV- Out (Developers)

Hey! I have a gingerbread phone, this phone has two versions the old version (aka v2) has tv-out option available in settings, but in new version (aka v3) there is no option of tv-out in settings.
Many v3 users are able to get tv-out work by using the settings app from v2 but this doesn't worked for me! I was thinking that if any developer knows how to add/enable this option than i will be thankful
//by using the v2 settings app in my v3 i was able to get the option but there is one option missing by which i can enable or disable
shown in fig
{
"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 also tried this method but still no luck!
Decompile framework.jar
open file \ smali \ com \ MediaTek \ featureoption
\ FeatureOption.s
mali
search string: ". MTK_TVOUT_ public final static field
SUPPORT: Z = false "
change so: ". MTK_TVOUT_ public final static field
SUPPORT: Z = true "
recompile framework.jar and replace framework.jar
check in settings / display options appear if it is TV-OUT
change file / system / lib / tvoutjni.so and / system / lib /
tvoutpattern.so the original lib files (which support
TVout)
for automatic rotation on tv-out
Click to expand...
Click to collapse

[Guide How-to] Sound effect supported all bluetooth devices

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
binh24 said:
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
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
Click to expand...
Click to collapse
Can you upload recompiled file for the novice, thank you.
mkim055 said:
Can you upload recompiled file for the novice, thank you.
Click to expand...
Click to collapse
OK here
:good::good:
binh24 said:
OK here
Click to expand...
Click to collapse
Not work on my N910F android 4.4.4

Categories

Resources