Skip to content

Instantly share code, notes, and snippets.

@fenrir-naru
Last active January 10, 2017 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fenrir-naru/2d0e000639019e0ee6a976a439628e8c to your computer and use it in GitHub Desktop.
Save fenrir-naru/2d0e000639019e0ee6a976a439628e8c to your computer and use it in GitHub Desktop.
com/miui/fmservice/FmServiceUtils.smali modification for Japan FM band
.class public Lcom/miui/fmservice/FmServiceUtils;
.super Ljava/lang/Object;
.source "FmServiceUtils.java"
# static fields
.field public static final BASE_FREQUENCY:F = 0.1f
.field public static final FRAMEWORK_AUDIOSOURCE_FM:I = 0x7ce
.field public static final FRAMEWORK_STREAM_FM:I = 0x3
.field public static final MAX_FREQUENCY:I = 0x438
.field public static final MIN_FREQUENCY:I
# direct methods
.method static constructor <clinit>()V
.registers 2
.prologue
.line 17
invoke-static {}, Lmiui/os/Build;->getRegion()Ljava/lang/String;
move-result-object v0
.line 18
.local v0, "region":Ljava/lang/String;
const-string v1, "MY"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_11
.line 19
const/16 v1, 0x36b
sput v1, Lcom/miui/fmservice/FmServiceUtils;->MIN_FREQUENCY:I
.line 25
:goto_10
return-void
.line 20
:cond_11
const-string v1, "BR"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1e
.line 21
const/16 v1, 0x36e
sput v1, Lcom/miui/fmservice/FmServiceUtils;->MIN_FREQUENCY:I
goto :goto_10
.line 23
:cond_1e
const/16 v1, 0x2f8
sput v1, Lcom/miui/fmservice/FmServiceUtils;->MIN_FREQUENCY:I
goto :goto_10
.end method
.method public constructor <init>()V
.registers 1
.prologue
.line 7
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment