Android OS Forum banner
1 - 4 of 4 Posts

·
Premium Member
Joined
·
847 Posts
This comes up frequently, and the icon is annoying. If you don't know what icon I'm talking about, it looks like one of the two that are attached to the post and lives next to the signal indicator. First, I'm going to assume you know how to decompile/recompile an APK. If you don't, well, go find out how to do that first, then come back because it isn't terribly difficult, and knowledge is power
Now, what you need is SystemUI and you need to decompile it into resources (images and xml) and smali (java bytecode). Once that is done, we're looking for one specific file.

In the decompiled apk, find smali/com/android/systemui/statusbar/policy/LocationController.smali and open it in your favorite text editor. Replace the entire contents of the file with the following (NOTE: This is for VRALL4, it may be slightly different if you are on a different build):

Code:
.class public Lcom/android/systemui/statusbar/policy/LocationController;<br />
.super Landroid/content/BroadcastReceiver;<br />
.source "LocationController.java"<br />
<br />
<br />
# annotations<br />
.annotation system Ldalvik/annotation/MemberClasses;<br />
    value = {<br />
        Lcom/android/systemui/statusbar/policy/LocationController$1;,<br />
        Lcom/android/systemui/statusbar/policy/LocationController$StatusBarHandler;<br />
    }<br />
.end annotation<br />
<br />
<br />
# static fields<br />
.field private static final EVENT_STOP_GPS_TONE:I = 0x40<br />
<br />
.field private static final GPS_NOTIFICATION_ID:I = 0x3d8d7<br />
<br />
.field private static final GPS_NOTI_STATUS:Ljava/lang/String; = "gps_notification_sounds"<br />
<br />
.field private static final [URL=TAG:Ljava/lang/String]TAG:Ljava/lang/String[/URL]; = "StatusBar.LocationController"<br />
<br />
.field private static final sLBSImages:[I<br />
<br />
<br />
# instance fields<br />
.field private LBS_ENABLED:Ljava/lang/String;<br />
<br />
.field private LBS_ENABLED_CHANGE_ACTION:Ljava/lang/String;<br />
<br />
.field private VZW_PROVIDER:Ljava/lang/String;<br />
<br />
.field private [URL=mContext:Landroid/content/Context]mContext:Landroid/content/Context[/URL];<br />
<br />
.field private [URL=mFocusToneGenerator:Landroid/media/ToneGenerator]mFocusToneGenerator:Landroid/media/ToneGenerator[/URL];<br />
<br />
.field private final [URL=mHandler:Landroid/os/Handler]mHandler:Landroid/os/Handler[/URL];<br />
<br />
.field private [URL=mMyContext:Landroid/content/Context]mMyContext:Landroid/content/Context[/URL];<br />
<br />
.field private [URL=mNotificationService:Landroid/app/INotificationManager]mNotificationService:Landroid/app/INotificationManager[/URL];<br />
<br />
.field private [URL=mService:Landroid/app/StatusBarManager]mService:Landroid/app/StatusBarManager[/URL];<br />
<br />
<br />
# direct methods<br />
.method static constructor <clinit>()V<br />
    .locals 1<br />
<br />
    .prologue<br />
    .line 79<br />
    const/4 v0, 0x2<br />
<br />
    new-array v0, v0, [I<br />
<br />
    fill-array-data v0, :array_0<br />
<br />
    sput-object v0, Lcom/android/systemui/statusbar/policy/LocationController;->sLBSImages:[I<br />
<br />
    return-void<br />
<br />
    nop<br />
<br />
    :array_0<br />
    .array-data 0x4<br />
        0xc6t 0x0t 0x2t 0x7ft<br />
        0xc7t 0x0t 0x2t 0x7ft<br />
    .end array-data<br />
.end method<br />
<br />
.method public constructor <init>(Landroid/content/Context;)V<br />
    .locals 4<br />
    .parameter "context"<br />
<br />
    .prologue<br />
    const/4 v3, 0x0<br />
<br />
    .line 87<br />
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V<br />
<br />
    .line 69<br />
    new-instance v2, Lcom/android/systemui/statusbar/policy/LocationController$StatusBarHandler;<br />
<br />
    invoke-direct {v2, p0, v3}, Lcom/android/systemui/statusbar/policy/LocationController$StatusBarHandler;-><init>(Lcom/android/systemui/statusbar/policy/LocationController;Lcom/android/systemui/statusbar/policy/LocationController$1;)V<br />
<br />
    iput-object v2, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mHandler:Landroid/os/Handler;<br />
<br />
    .line 78<br />
    iput-object v3, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mService:Landroid/app/StatusBarManager;<br />
<br />
    .line 83<br />
    const-string v2, "com.android.internal.location.intent.action.LBS_ENABLED_CHANGE"<br />
<br />
    iput-object v2, p0, Lcom/android/systemui/statusbar/policy/LocationController;->LBS_ENABLED_CHANGE_ACTION:Ljava/lang/String;<br />
<br />
    .line 84<br />
    const-string v2, "lbsEnabled"<br />
<br />
    iput-object v2, p0, Lcom/android/systemui/statusbar/policy/LocationController;->LBS_ENABLED:Ljava/lang/String;<br />
<br />
    .line 85<br />
    const-string v2, "vzw_lbs"<br />
<br />
    iput-object v2, p0, Lcom/android/systemui/statusbar/policy/LocationController;->VZW_PROVIDER:Ljava/lang/String;<br />
<br />
    .line 88<br />
    iput-object p1, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mContext:Landroid/content/Context;<br />
<br />
    .line 89<br />
    iput-object p1, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mMyContext:Landroid/content/Context;<br />
<br />
    .line 91<br />
    new-instance v0, Landroid/content/IntentFilter;<br />
<br />
    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V<br />
<br />
    .line 92<br />
    .local v0, [URL=filter:Landroid/content/IntentFilter]filter:Landroid/content/IntentFilter[/URL];<br />
    const-string v2, "android.location.GPS_ENABLED_CHANGE"<br />
<br />
    invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V<br />
<br />
    .line 93<br />
    const-string v2, "android.location.GPS_FIX_CHANGE"<br />
<br />
    invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V<br />
<br />
    .line 97<br />
    invoke-virtual {p1, p0, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;<br />
<br />
    .line 99<br />
    const-string v2, "notification"<br />
<br />
    invoke-virtual {p1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;<br />
<br />
    move-result-object v1<br />
<br />
    check-cast v1, Landroid/app/NotificationManager;<br />
<br />
    .line 101<br />
    .local v1, [URL=nm:Landroid/app/NotificationManager]nm:Landroid/app/NotificationManager[/URL];<br />
    invoke-static {}, Landroid/app/NotificationManager;->getService()Landroid/app/INotificationManager;<br />
<br />
    move-result-object v2<br />
<br />
    iput-object v2, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mNotificationService:Landroid/app/INotificationManager;<br />
<br />
    .line 109<br />
    return-void<br />
.end method<br />
<br />
.method private GenerateBeep()V<br />
    .locals 13<br />
<br />
    .prologue<br />
    const/4 v12, 0x0<br />
<br />
    const/4 v11, 0x1<br />
<br />
    .line 114<br />
    iput-object v12, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mFocusToneGenerator:Landroid/media/ToneGenerator;<br />
<br />
    .line 115<br />
    const/4 v3, 0x0<br />
<br />
    .line 116<br />
    .local v3, MIN_VOLUME_LEV:I<br />
    const/4 v1, 0x7<br />
<br />
    .line 117<br />
    .local v1, MAX_VOLUME_LEV:I<br />
    const/16 v4, 0xe<br />
<br />
    .line 118<br />
    .local v4, VOLUME_STEP:I<br />
    const/4 v2, 0x0<br />
<br />
    .line 119<br />
    .local v2, MIN_VOLUME:I<br />
    const/16 v0, 0x64<br />
<br />
    .line 120<br />
    .local v0, MAX_VOLUME:I<br />
    move v8, v0<br />
<br />
    .line 122<br />
    .local v8, mCurVol:I<br />
    iget-object v9, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mContext:Landroid/content/Context;<br />
<br />
    const-string v10, "audio"<br />
<br />
    invoke-virtual {v9, v10}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;<br />
<br />
    move-result-object v5<br />
<br />
    check-cast v5, Landroid/media/AudioManager;<br />
<br />
    .line 124<br />
    .local v5, [URL=audioManager:Landroid/media/AudioManager]audioManager:Landroid/media/AudioManager[/URL];<br />
    invoke-virtual {v5, v11}, Landroid/media/AudioManager;->getStreamVolume(I)I<br />
<br />
    move-result v8<br />
<br />
    .line 126<br />
    const-string v9, "StatusBar.LocationController"<br />
<br />
    new-instance v10, Ljava/lang/StringBuilder;<br />
<br />
    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V<br />
<br />
    const-string v11, "GenerateBeep: Volumei Level:"<br />
<br />
    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;<br />
<br />
    move-result-object v10<br />
<br />
    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;<br />
<br />
    move-result-object v10<br />
<br />
    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;<br />
<br />
    move-result-object v10<br />
<br />
    invoke-static {v9, v10}, Landroid/util/Slog;->e(Ljava/lang/String;Ljava/lang/String;)I<br />
<br />
    .line 128<br />
    if-lt v8, v3, :cond_2<br />
<br />
    if-gt v8, v1, :cond_2<br />
<br />
    .line 130<br />
    if-eq v8, v1, :cond_1<br />
<br />
    .line 131<br />
    mul-int/2addr v8, v4<br />
<br />
    .line 135<br />
    :goto_0<br />
    const-string v9, "StatusBar.LocationController"<br />
<br />
    new-instance v10, Ljava/lang/StringBuilder;<br />
<br />
    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V<br />
<br />
    const-string v11, "GenerateBeep: valid Volume:"<br />
<br />
    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;<br />
<br />
    move-result-object v10<br />
<br />
    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;<br />
<br />
    move-result-object v10<br />
<br />
    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;<br />
<br />
    move-result-object v10<br />
<br />
    invoke-static {v9, v10}, Landroid/util/Slog;->e(Ljava/lang/String;Ljava/lang/String;)I<br />
<br />
    .line 144<br />
    :goto_1<br />
    :try_start_0<br />
    new-instance v9, Landroid/media/ToneGenerator;<br />
<br />
    const/4 v10, 0x1<br />
<br />
    invoke-direct {v9, v10, v8}, Landroid/media/ToneGenerator;-><init>(II)V<br />
<br />
    iput-object v9, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mFocusToneGenerator:Landroid/media/ToneGenerator;<br />
    :try_end_0<br />
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0<br />
<br />
    .line 151<br />
    :goto_2<br />
    iget-object v9, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mFocusToneGenerator:Landroid/media/ToneGenerator;<br />
<br />
    if-eqz v9, :cond_0<br />
<br />
    .line 152<br />
    iget-object v9, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mHandler:Landroid/os/Handler;<br />
<br />
    const/16 v10, 0x40<br />
<br />
    invoke-virtual {v9, v10}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;<br />
<br />
    move-result-object v7<br />
<br />
    .line 153<br />
    .local v7, [URL=m:Landroid/os/Message]m:Landroid/os/Message[/URL];<br />
    iget-object v9, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mFocusToneGenerator:Landroid/media/ToneGenerator;<br />
<br />
    const/16 v10, 0x1c<br />
<br />
    invoke-virtual {v9, v10}, Landroid/media/ToneGenerator;->startTone(I)Z<br />
<br />
    .line 154<br />
    iget-object v9, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mHandler:Landroid/os/Handler;<br />
<br />
    const-wide/16 v10, 0x1f4<br />
<br />
    invoke-virtual {v9, v7, v10, v11}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z<br />
<br />
    .line 157<br />
    .end local v7           #m:Landroid/os/Message;<br />
    :cond_0<br />
    return-void<br />
<br />
    .line 133<br />
    :cond_1<br />
    move v8, v0<br />
<br />
    goto :goto_0<br />
<br />
    .line 138<br />
    :cond_2<br />
    const-string v9, "StatusBar.LocationController"<br />
<br />
    const-string v10, "Error getting current volume: Setting volume as max volume"<br />
<br />
    invoke-static {v9, v10}, Landroid/util/Slog;->e(Ljava/lang/String;Ljava/lang/String;)I<br />
<br />
    .line 139<br />
    move v8, v0<br />
<br />
    goto :goto_1<br />
<br />
    .line 145<br />
    :catch_0<br />
    move-exception v6<br />
<br />
    .line 147<br />
    .local v6, [URL=e:Ljava/lang/Exception]e:Ljava/lang/Exception[/URL];<br />
    iput-object v12, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mFocusToneGenerator:Landroid/media/ToneGenerator;<br />
<br />
    .line 148<br />
    sget-object v9, Ljava/lang/System;->err:Ljava/io/PrintStream;<br />
<br />
    invoke-virtual {v9, v6}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V<br />
<br />
    goto :goto_2<br />
.end method<br />
<br />
.method static synthetic access$100(Lcom/android/systemui/statusbar/policy/LocationController;)Landroid/media/ToneGenerator;<br />
    .locals 1<br />
    .parameter "x0"<br />
<br />
    .prologue<br />
    .line 60<br />
    iget-object v0, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mFocusToneGenerator:Landroid/media/ToneGenerator;<br />
<br />
    return-object v0<br />
.end method<br />
<br />
.method static synthetic access$102(Lcom/android/systemui/statusbar/policy/LocationController;Landroid/media/ToneGenerator;)Landroid/media/ToneGenerator;<br />
    .locals 0<br />
    .parameter "x0"<br />
    .parameter "x1"<br />
<br />
    .prologue<br />
    .line 60<br />
    iput-object p1, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mFocusToneGenerator:Landroid/media/ToneGenerator;<br />
<br />
    return-object p1<br />
.end method<br />
<br />
.method private checkLBSStatus()Z<br />
    .locals 1<br />
<br />
    .prologue<br />
    .line 300<br />
    const/4 v0, 0x0<br />
<br />
    return v0<br />
.end method<br />
<br />
.method private final updateLBS(Landroid/content/Intent;)V<br />
    .locals 0<br />
    .parameter "intent"<br />
<br />
    .prologue<br />
    .line 290<br />
    return-void<br />
.end method<br />
<br />
<br />
# virtual methods<br />
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V<br />
    .locals 15<br />
    .parameter "context"<br />
    .parameter "intent"<br />
<br />
    .prologue<br />
    .line 162<br />
    invoke-virtual/range {p2 .. p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;<br />
<br />
    move-result-object v7<br />
<br />
    .line 163<br />
    .local v7, [URL=action:Ljava/lang/String]action:Ljava/lang/String[/URL];<br />
    const-string v1, "enabled"<br />
<br />
    const/4 v2, 0x0<br />
<br />
    move-object/from16 v0, p2<br />
<br />
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z<br />
<br />
    move-result v8<br />
<br />
    .line 171<br />
    .local v8, enabled:Z<br />
    const/4 v13, 0x0<br />
<br />
    .line 172<br />
    .local v13, valueFromPrefs:Z<br />
    const-string v1, "StatusBar.LocationController"<br />
<br />
    const-string v2, "onReceive: [GPS ICON]"<br />
<br />
    invoke-static {v1, v2}, Landroid/util/Slog;->d(Ljava/lang/String;Ljava/lang/String;)I<br />
<br />
    .line 182<br />
    const-string v1, "android.location.GPS_FIX_CHANGE"<br />
<br />
    invoke-virtual {v7, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z<br />
<br />
    move-result v1<br />
<br />
    if-eqz v1, :cond_0<br />
<br />
    if-eqz v8, :cond_0<br />
<br />
    .line 184<br />
    const v10, 0x10806c7<br />
<br />
    .line 185<br />
    .local v10, iconId:I<br />
    const v12, 0x7f0a0083<br />
<br />
    .line 186<br />
    .local v12, textResId:I<br />
    const/4 v14, 0x1<br />
<br />
    .line 228<br />
    .local v14, visible:Z<br />
    :goto_0<br />
    if-eqz v14, :cond_2<br />
<br />
    .line 229<br />
    :try_start_0<br />
    new-instance v9, Landroid/content/Intent;<br />
<br />
    const-string v1, "android.settings.LOCATION_SOURCE_SETTINGS"<br />
<br />
    invoke-direct {v9, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V<br />
<br />
    .line 230<br />
    .local v9, [URL=gpsIntent:Landroid/content/Intent]gpsIntent:Landroid/content/Intent[/URL];<br />
    const/high16 v1, 0x1000<br />
<br />
    invoke-virtual {v9, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;<br />
<br />
    .line 231<br />
    const/4 v1, 0x0<br />
<br />
    const/4 v2, 0x0<br />
<br />
    move-object/from16 v0, p1<br />
<br />
    invoke-static {v0, v1, v9, v2}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;<br />
<br />
    move-result-object v11<br />
<br />
    .line 233<br />
    .local v11, [URL=pendingIntent:Landroid/app/PendingIntent]pendingIntent:Landroid/app/PendingIntent[/URL];<br />
    new-instance v1, Landroid/app/Notification$Builder;<br />
<br />
    iget-object v2, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mContext:Landroid/content/Context;<br />
<br />
    invoke-direct {v1, v2}, Landroid/app/Notification$Builder;-><init>(Landroid/content/Context;)V<br />
<br />
    invoke-virtual {v1, v10}, Landroid/app/Notification$Builder;->setSmallIcon(I)Landroid/app/Notification$Builder;<br />
<br />
    move-result-object v1<br />
<br />
    iget-object v2, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mContext:Landroid/content/Context;<br />
<br />
    invoke-virtual {v2, v12}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;<br />
<br />
    move-result-object v2<br />
<br />
    invoke-virtual {v1, v2}, Landroid/app/Notification$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;<br />
<br />
    move-result-object v1<br />
<br />
    const/4 v2, 0x1<br />
<br />
    invoke-virtual {v1, v2}, Landroid/app/Notification$Builder;->setOngoing(Z)Landroid/app/Notification$Builder;<br />
<br />
    move-result-object v1<br />
<br />
    invoke-virtual {v1, v11}, Landroid/app/Notification$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;<br />
<br />
    move-result-object v1<br />
<br />
    invoke-virtual {v1}, Landroid/app/Notification$Builder;->getNotification()Landroid/app/Notification;<br />
<br />
    move-result-object v5<br />
<br />
    .line 241<br />
    .local v5, [URL=n:Landroid/app/Notification]n:Landroid/app/Notification[/URL];<br />
    const/4 v1, 0x0<br />
<br />
    iput-object v1, v5, Landroid/app/Notification;->tickerView:Landroid/widget/RemoteViews;<br />
<br />
    .line 242<br />
    const/4 v1, 0x0<br />
<br />
    iput-object v1, v5, Landroid/app/Notification;->tickerText:Ljava/lang/CharSequence;<br />
<br />
    .line 244<br />
    const/4 v1, 0x1<br />
<br />
    iput v1, v5, Landroid/app/Notification;->priority:I<br />
<br />
    .line 246<br />
    const/4 v1, 0x1<br />
<br />
    new-array v6, v1, [I<br />
<br />
    .line 247<br />
    .local v6, idOut:[I<br />
    iget-object v1, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mNotificationService:Landroid/app/INotificationManager;<br />
<br />
    iget-object v2, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mContext:Landroid/content/Context;<br />
<br />
    invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;<br />
<br />
    move-result-object v2<br />
<br />
    const/4 v3, 0x0<br />
<br />
    const v4, 0x3d8d7<br />
<br />
    invoke-interface/range {v1 .. v6}, Landroid/app/INotificationManager;->enqueueNotificationWithTag(Ljava/lang/String;Ljava/lang/String;ILandroid/app/Notification;[I)V<br />
    :try_end_0<br />
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0<br />
<br />
    .line 261<br />
    .end local v5           #n:Landroid/app/Notification;<br />
    .end local v6           #idOut:[I<br />
    .end local v9           #gpsIntent:Landroid/content/Intent;<br />
    .end local v11           #pendingIntent:Landroid/app/PendingIntent;<br />
    :goto_1<br />
    return-void<br />
<br />
    .line 189<br />
    .end local v10           #iconId:I<br />
    .end local v12           #textResId:I<br />
    .end local v14           #visible:Z<br />
    :cond_0<br />
    const-string v1, "android.location.GPS_ENABLED_CHANGE"<br />
<br />
    invoke-virtual {v7, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z<br />
<br />
    move-result v1<br />
<br />
    if-eqz v1, :cond_1<br />
<br />
    if-nez v8, :cond_1<br />
<br />
    .line 191<br />
    const/4 v14, 0x0<br />
<br />
    .line 192<br />
    .restart local v14       #visible:Z<br />
    const/4 v12, 0x0<br />
<br />
    .restart local v12       #textResId:I<br />
    move v10, v12<br />
<br />
    .restart local v10       #iconId:I<br />
    goto :goto_0<br />
<br />
    .line 199<br />
    .end local v10           #iconId:I<br />
    .end local v12           #textResId:I<br />
    .end local v14           #visible:Z<br />
    :cond_1<br />
    const-string v1, "StatusBar.LocationController"<br />
<br />
    const-string v2, "onReceive: [GPS ICON] GPS is on, but not receiving fixes"<br />
<br />
    invoke-static {v1, v2}, Landroid/util/Slog;->d(Ljava/lang/String;Ljava/lang/String;)I<br />
<br />
    .line 200<br />
    const v10, 0x7f0200c5<br />
<br />
    .line 201<br />
    .restart local v10       #iconId:I<br />
    const v12, 0x7f0a0082<br />
<br />
    .line 202<br />
    .restart local v12       #textResId:I<br />
    const/4 v14, 0x1<br />
<br />
    .restart local v14       #visible:Z<br />
    goto :goto_0<br />
<br />
    .line 254<br />
    :cond_2<br />
    :try_start_1<br />
    iget-object v1, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mNotificationService:Landroid/app/INotificationManager;<br />
<br />
    iget-object v2, p0, Lcom/android/systemui/statusbar/policy/LocationController;->mContext:Landroid/content/Context;<br />
<br />
    invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;<br />
<br />
    move-result-object v2<br />
<br />
    const v3, 0x3d8d7<br />
<br />
    invoke-interface {v1, v2, v3}, Landroid/app/INotificationManager;->cancelNotification(Ljava/lang/String;I)V<br />
    :try_end_1<br />
    .catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_0<br />
<br />
    goto :goto_1<br />
<br />
    .line 258<br />
    :catch_0<br />
    move-exception v1<br />
<br />
    goto :goto_1<br />
.end method
Save the file, rebuild SystemUI.apk and enjoy
 

Attachments

·
Premium Member
Joined
·
847 Posts
Discussion Starter · #4 ·
I updated the OP with new info. Found that the previous change would still allow the icon to appear sometimes. New code should squash it for good.
 
1 - 4 of 4 Posts
Top