你的位置:首頁(yè)智能穿戴方法教程 → moto360怎么設(shè)置中文

moto360怎么設(shè)置中文

來源:本站整理時(shí)間:2015/3/14 11:04:45作者:GML點(diǎn)擊: 0 評(píng)論:0

文章標(biāo)簽: moto360

moto360怎么在語(yǔ)言中選擇中文呢?相信不少用戶都會(huì)有這個(gè)想法,之前小編為大家?guī)砹岁P(guān)于刷去中文包的方法,下面則是幫助親們?cè)谡Z(yǔ)言選擇列表中添加上中文噢,下面,是詳細(xì)內(nèi)容介紹!

原理很簡(jiǎn)單。添加對(duì)語(yǔ)言的支持即可。

首先要想辦法把你的moto360 解鎖并ROOT了。才能修改系統(tǒng)文件。

限制語(yǔ)言的軟件為\system\priv-app\ClockworkSetup.apk。此軟件定義了包括手機(jī)設(shè)置、開機(jī)初始配置等等。

首先deodex ClockworkSetup.apk,將odex合并進(jìn)軟件,這樣才能反編譯dex。

而開機(jī)語(yǔ)言位于如下:


\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ù)組的長(zhǎng)度,也就是所添加語(yǔ)言的數(shù)目。

這個(gè)是用10進(jìn)制表示的,d就是16進(jìn)制的13。也就是說,默認(rèn)有13種語(yǔ)言。接下來如果要添加簡(jiǎn)體中文和繁體中文,就將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文件。重置手表后你就可以欣喜的在語(yǔ)言列表中找到中文(中國(guó))和中文(繁體)了。

以上,就是小編要為友友們帶來和分享的相關(guān)內(nèi)容,來自用戶的心得經(jīng)驗(yàn)哦!

游客評(píng)論

熱門評(píng)論

最新評(píng)論

發(fā)表評(píng)論 查看所有評(píng)論(0)

(您的評(píng)論需要經(jīng)過審核才能顯示) 字?jǐn)?shù): 0/500

本周熱門

找游戲 下應(yīng)用

排行榜

游戲軟件破解

推薦手機(jī)游戲?qū)^(qū)

關(guān)于安卓網(wǎng) | 聯(lián)系方式 | 發(fā)展歷程 | 下載幫助(?) | 廣告聯(lián)系 | 網(wǎng)站地圖 | 友情鏈接

Copyright 2011-2014 5577.com安卓網(wǎng) 鄂ICP備15005058號(hào)-1