moto360怎么在語言中選擇中文呢?相信不少用戶都會有這個想法,之前小編為大家?guī)砹岁P(guān)于刷去中文包的方法,下面則是幫助親們在語言選擇列表中添加上中文噢,下面,是詳細(xì)內(nèi)容介紹!
原理很簡單。添加對語言的支持即可。
首先要想辦法把你的moto360 解鎖并ROOT了。才能修改系統(tǒng)文件。
限制語言的軟件為\system\priv-app\ClockworkSetup.apk。此軟件定義了包括手機(jī)設(shè)置、開機(jī)初始配置等等。
首先deodex ClockworkSetup.apk,將odex合并進(jìn)軟件,這樣才能反編譯dex。
而開機(jī)語言位于如下:
\smali\com\google\android\clockwork\setup\SupportedLocales.smali
此文件完整的method如下:
.method static constructor <clinit>()V
.locals 5
.prologue
.line 9
const/16 v0, 0xd
new-array v0, v0, [Ljava/util/Locale;
const/4 v1, 0x0
new-instance v2, Ljava/util/Locale;
const-string v3, "de"
const-string v4, "DE"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x1
new-instance v2, Ljava/util/Locale;
const-string v3, "en"
const-string v4, "US"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x2
new-instance v2, Ljava/util/Locale;
const-string v3, "en"
const-string v4, "GB"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x3
new-instance v2, Ljava/util/Locale;
const-string v3, "es"
const-string v4, "ES"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x4
new-instance v2, Ljava/util/Locale;
const-string v3, "es"
const-string v4, "US"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x5
new-instance v2, Ljava/util/Locale;
const-string v3, "es"
const-string v4, "419"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x6
new-instance v2, Ljava/util/Locale;
const-string v3, "fr"
const-string v4, "FR"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/4 v1, 0x7
new-instance v2, Ljava/util/Locale;
const-string v3, "fr"
const-string v4, "CA"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x8
new-instance v2, Ljava/util/Locale;
const-string v3, "it"
const-string v4, "IT"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0x9
new-instance v2, Ljava/util/Locale;
const-string v3, "ja"
const-string v4, "JP"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xa
new-instance v2, Ljava/util/Locale;
const-string v3, "ko"
const-string v4, "KR"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xb
new-instance v2, Ljava/util/Locale;
const-string v3, "pt"
const-string v4, "BR"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xc
new-instance v2, Ljava/util/Locale;
const-string v3, "ru"
const-string v4, "RU"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
sput-object v0, Lcom/google/android/clockwork/setup/SupportedLocales;->LOCALES:[Ljava/util/Locale;
.line 25
sget-object v0, Lcom/google/android/clockwork/setup/SupportedLocales;->LOCALES:[Ljava/util/Locale;
array-length v0, v0
sput v0, Lcom/google/android/clockwork/setup/SupportedLocales;->COUNT:I
return-void
.end method
復(fù)制代碼
正式修改:
1,
.line 9下的 const/16 v0, 0xd 定義了數(shù)組的長度,也就是所添加語言的數(shù)目。
這個是用10進(jìn)制表示的,d就是16進(jìn)制的13。也就是說,默認(rèn)有13種語言。接下來如果要添加簡體中文和繁體中文,就將d改成f(13+2=15,就是16進(jìn)制的f)。
2,搜索:
sput-object v0, Lcom/google/android/clockwork/setup/SupportedLocales;->LOCALES:[Ljava/util/Locale;
復(fù)制代碼
在上面添加:
const/16 v1, 0xd
new-instance v2, Ljava/util/Locale;
const-string v3, "zh"
const-string v4, "CN"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
const/16 v1, 0xe
new-instance v2, Ljava/util/Locale;
const-string v3, "zh"
const-string v4, "TW"
invoke-direct {v2, v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
aput-object v2, v0, v1
復(fù)制代碼
注意換行和空格。保存后回編譯。將反編譯好的classes.dex替換原版ClockworkSetup.apk中的同名文件,壓縮為默認(rèn)即可。
然后用藍(lán)牙ADB調(diào)試導(dǎo)入系統(tǒng),替換原文件,刪掉.odex文件。重置手表后你就可以欣喜的在語言列表中找到中文(中國)和中文(繁體)了。
以上,就是小編要為友友們帶來和分享的相關(guān)內(nèi)容,來自用戶的心得經(jīng)驗哦!