<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-36988082</id><updated>2024-09-13T20:26:25.184+08:00</updated><category term="Android"/><category term="apktool"/><category term="Developer"/><category term="Apps"/><category term="Market"/><category term="apk"/><title type='text'>vantienhuang</title><subtitle type='html'>Android,Developer,Market,開發,中文化</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-36988082.post-6494539750057733907</id><published>2011-06-02T18:08:00.000+08:00</published><updated>2011-06-02T18:08:19.835+08:00</updated><title type='text'>Android SDK 開發指令工具介紹 mksdcard.exe</title><content type='html'>要讓 Android 模擬器使用 SD 記憶卡，可以透過 mksdcard.exe 工具來建立一個虛擬 SD 記憶卡的影像檔 ( Image File ) ，檔案格式為 FAT32 ，指令格式為：&lt;br /&gt;
&lt;br /&gt;
mksdcard.exe [ -l LABLE_NAME ] &amp;lt;size&amp;gt; [ K | M ] &amp;lt;IMAGENAME&amp;gt;&lt;br /&gt;
&lt;br /&gt;
例如建立一個 512M 的 SD 卡檔案，供模擬器使用&lt;br /&gt;
&lt;br /&gt;
mksdcard.exe 512M my512m&lt;br /&gt;
emulator.exe -avd Android231 -sdcard my512m&lt;br /&gt;
&lt;br /&gt;
可以透過先前提到的 adb.exe 來對 sdcard 檔進行檔案的管理，上傳及下載。</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/6494539750057733907/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/6494539750057733907' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/6494539750057733907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/6494539750057733907'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/android-sdk-mksdcardexe.html' title='Android SDK 開發指令工具介紹 mksdcard.exe'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-4338198179578104821</id><published>2011-06-02T17:55:00.000+08:00</published><updated>2011-06-02T17:55:56.758+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Developer"/><title type='text'>Android SDK 開發指令工具介紹 ddms</title><content type='html'>Android Dalvik Debug Monitor Server ( DDMS ) 除錯監控伺服器，提供下列除錯監控功能：&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;將應用程式在 Dalvik Runtime 執行時發生的錯誤，以 logcat 方式回報給開發人員。&lt;/li&gt;
&lt;li&gt;支援畫面擷取功能，可以將錯誤的畫面或訊息擷取下來，以方便後續除錯。&lt;/li&gt;
&lt;li&gt;提供一個 port-forwarding 服務，可以將這個除錯工具安裝到實體設備上，也就是說當一般用戶使用這些應用程式時，若是發生錯誤，可以將這些訊息攔截下來，回報給開發人員。&lt;/li&gt;
&lt;li&gt;提供設備上執行緒 ( Thread ) 和堆疊 ( Heap ) 的資訊和狀況。&lt;/li&gt;
&lt;li&gt;還有無線狀態資訊、撥進來的電話、簡訊訊息、模仿經緯度位置的資料等。&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
除錯工具 ADB 和除錯監控伺服器 DDMS 是互為表裡的，DDMS 或透過 ADB 銜接到實體或虛擬設備上來進行錯誤監控。&lt;br /&gt;
&lt;br /&gt;
因為 Android 作業系統支援多工執行緒，因此每一個在 Android 作業系統上執行的應用程式都會有獨立的行程，建立自己獨立的 Dalvik VM，對每一個設備上的 VM 都會經由一個獨立的通訊埠 ( port ) 連接到 ddms 除錯監控伺服器，它會監聽除錯訊息。&lt;br /&gt;
&lt;br /&gt;
譬如第一個 VM 進來，DDMS 會使用 port 8600 來監聽這個 VM 的訊息，下一個 VM 就會使用 8601 ，依此類推。因此同時時執多個應用程式時，每一個應用程式所發生的錯誤訊息都會由個別的 DDMS 負責監聽和記錄，不會有混淆。&lt;br /&gt;
&lt;br /&gt;
可以直接使用 Eclipse 開發環境所提供的 DDMS 工具或是執行安裝在 Android SDK 系統目錄下 tools &amp;nbsp;內的 ddms.bat 檔。&lt;br /&gt;
&lt;br /&gt;
如果你的 Eclipse 右上角沒有看到&amp;nbsp;DDMS 圖示，可以由選單 Windows -&amp;gt; Open Perspective -&amp;gt; DDMS 找到它並安裝。&lt;br /&gt;
&lt;br /&gt;
除錯監控系統下方的 LogCat 視窗會即時顯示每一個程式透過 Dalvik VM 所傳出的即時訊息，程式是以 pid 行程號碼來表示。LogCat 視窗的右上角有五個按鈕用來選擇分類的訊息功能。&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;V: Verbose 顯示全部訊息&lt;/li&gt;
&lt;li&gt;D : Debug 顯示除錯訊息&lt;/li&gt;
&lt;li&gt;I : Info 顯示一般資訊&lt;/li&gt;
&lt;li&gt;W : Warning 顯示警告訊息&lt;/li&gt;
&lt;li&gt;E : Error 顯示錯誤訊息&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
也可以透過下方的 Filter 欄位過濾指定的除錯標籤 tag ，只有符合的除錯標籤的訊息才會顯示出來。&lt;br /&gt;
&lt;br /&gt;
左上方的 Devices 視窗顯示目前 Android 模擬器中正在執行的所有行程名稱、號碼與通訊埠。&lt;br /&gt;
&lt;br /&gt;
在 Devices 視窗下方是 Emulator Contorl 視窗，這個模擬控制視窗提供可以模擬電話狀態 ( Telephone Status ) 、電話行為 ( Telephone Actions ) 和 GPS 位置控制 ( Location control )，GPS 位置控制畫面讓你可以自由輸入位置的經緯度，選項有手動 ( Manual ) &amp;nbsp;、下載 GPX 檔案和下載 Google Earth 產生的 KML 地圖檔案。&lt;br /&gt;
&lt;br /&gt;
File Explorer 視窗會啟動檔案瀏覽器，讓你方便的瀏覽 SD 記憶卡目錄 /sdcard 和 Android 系統內的檔案目錄。File Explorer 視窗的右上方有三個圖示，分別為 adb pull, adb push, adb delete 。&lt;br /&gt;
&lt;br /&gt;
另外 Devices 視窗的最右邊圖示 Device Screen Capture，可以直接擷取畫面用。&lt;br /&gt;
&lt;br /&gt;
而 Android SDK 系統工具內的 DDMS 則是透過 ddms.bat 呼叫執行 ddms 除錯監控系統，在執行 ddms 之前，要記得先啟動模擬器。</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/4338198179578104821/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/4338198179578104821' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/4338198179578104821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/4338198179578104821'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/android-sdk-ddms.html' title='Android SDK 開發指令工具介紹 ddms'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-3410745314372113277</id><published>2011-06-02T17:04:00.000+08:00</published><updated>2011-06-02T17:04:32.228+08:00</updated><title type='text'>Android SDK 開發工具指令介紹 adb.exe</title><content type='html'>系統除錯工具 adb.exe ( Android Debug Bridge ) 是個多功能的工具，讓你可以管理實體設備或虛擬設備上的執行狀況。adb.exe 是一個 Client/Server 型態的系統，包含下列三個部份：&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;端末程式 ( Client ) : 這個程式是在你的開發環境上運行，可以經由命令列模式 shell 介面下達 adb 指令來操作端末程式。其它 Android 工具如 ADT 或 DDMS &amp;nbsp;都可以建立一個 adb 端末程式。&lt;/li&gt;
&lt;li&gt;伺服程式 ( Server ) : 這個程式是在你的開發環境中的背景執行，伺服程式負責管理介於端末程式和進程程式間的通訊溝通。&lt;/li&gt;
&lt;li&gt;進程程式 ( Daemon ) : 這個程式是在你的實體設備或虛擬設備的背景中執行。&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
adb.exe 指令除了提供應用程式除錯功能外，最重要的功能就是能將編譯好的 Android Package 程式 apk 安裝到實體或虛擬設備上。&lt;br /&gt;
&lt;br /&gt;
另外 adb.exe 除錯工具也支援命令列模式 shell 指令，可以讓你輸入一些指令來管理 Android 系統。&lt;br /&gt;
&lt;br /&gt;
ADB 指令的標準格式 : adb.exe [ -d | -e | -s &amp;lt;serialnumer&amp;gt; ] &amp;lt;command&amp;gt;&lt;br /&gt;
-d 表示使用實體連接設備&lt;br /&gt;
-e 表示使用模擬設備&lt;br /&gt;
-s 有多個設備時，指定設備的序列號碼&lt;br /&gt;
例如安裝 HelloWorld.apk 到 Android 模擬器，序號是 5556 的虛擬設備上&lt;br /&gt;
adb.exe -s emulator-5556 install helloworld.apk&lt;br /&gt;
&lt;br /&gt;
偵測 ADB 伺服器的資訊&lt;br /&gt;
adb.exe devices&lt;br /&gt;
可以先看看哪個設備已經和 adb 伺服器連上了，這對於接下來要執行的 adb 指令會有幫助。後面的狀態 device 表示正在執行中，offline 狀態表示在離線狀況，no device 表示沒有裝置在執行。&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;取得 adb 伺服器的運作狀態&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;adb.exe get-state&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;device 運作中, offline 離線, bootloader 開機中&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;取得 Android 模擬器的執行序列號，如 emulator-5554&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;adb.exe get-serialno&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;安裝應用程式 apk 套件&lt;/div&gt;&lt;br /&gt;
adb.exe [ -s &amp;lt;serialNumber&amp;gt; ] install &amp;lt;APK_PATH&amp;gt;&lt;br /&gt;
adb.exe -s emulator-5554 install helloworld.apk&lt;br /&gt;
adb.exe install helloworld.apk&lt;br /&gt;
&lt;br /&gt;
移除應用程式 apk 套件&lt;br /&gt;
adb.exe [ -s &amp;lt;serialNumber&amp;gt; ] uninstall &amp;lt;PackageName&amp;gt;&lt;br /&gt;
adb.exe -s emulator-5554 uninstall com.example.android.helloworld&lt;br /&gt;
adb.exe uninstall com.example.android.helloworld&lt;br /&gt;
詳細的 package 名稱可以由 Android 作業系統的 /data/data 目錄或 /data/app 目錄來查得。&lt;br /&gt;
&lt;br /&gt;
Android 作業系統命令列模式&lt;br /&gt;
adb.exe shell&lt;br /&gt;
可以進入 Android 作業系統命令列模式，用來管理和查詢 Android 作業系統的目錄和執行相關的指令。如 ls, cd, mkdir, rmdir, rm, md, mv, exit 等。&lt;br /&gt;
&lt;br /&gt;
上傳檔案到 /sdcard&lt;br /&gt;
adb.exe push &amp;nbsp;&amp;lt;local&amp;gt; &amp;lt;remote&amp;gt;&lt;br /&gt;
adb.exe push TestAndroid.png /sdcard&lt;br /&gt;
&lt;br /&gt;
從 /sdcard 下載檔案到本地端&lt;br /&gt;
adb.exe pull &amp;lt;remote&amp;gt; &amp;lt;local&amp;gt;&lt;br /&gt;
adb.exe pull /sdcard/TestAndroid.png TestAndroid.png&lt;br /&gt;
&lt;br /&gt;
變更 TCP 通訊埠&lt;br /&gt;
adb.exe forward tcp:6100 tcp:7100&lt;br /&gt;
Android 模擬器預設的 TCP 通訊埠是 6100，若要修改可以使用 adb.exe forward 指令來修改。&lt;br /&gt;
adb.exe forward tcp:6100 local:logd&lt;br /&gt;
&lt;br /&gt;
啟動 adb 伺服器&lt;br /&gt;
adb.exe start-server&lt;br /&gt;
&lt;br /&gt;
關閉 adb 伺服器&lt;br /&gt;
adb.exe kill-server&lt;br /&gt;
&lt;br /&gt;
即時監控 Android 模擬器運作時所產生的除錯記錄&lt;br /&gt;
adb.exe logcat&lt;br /&gt;
&lt;br /&gt;
顯示出系統所產生的全部錯誤訊息&lt;br /&gt;
adb.exe bugreport&lt;br /&gt;
會將 Android 模擬器的 dumpsys, dumpstate 及 logcat 的資料全部顯示出來。</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/3410745314372113277/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/3410745314372113277' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/3410745314372113277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/3410745314372113277'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/android-sdk-adbexe.html' title='Android SDK 開發工具指令介紹 adb.exe'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-3974426744109742935</id><published>2011-06-02T16:19:00.000+08:00</published><updated>2011-06-02T16:19:53.652+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Developer"/><title type='text'>Android SDK 開發工具指令介紹 emulator.exe</title><content type='html'>Android Emulator ，模擬器 emulator 是一個以 QEMU 為基礎的開發模擬工具，方便你在 Android 開發環境上設計、除錯和測試應用程式。&lt;br /&gt;
&lt;br /&gt;
啟動模擬器可以透過 Android SDK Manager 來啟動，或是透過 Eclipse 的 Run -&amp;gt; Run 也會自動呼吸啟動模擬器，也可以透過命令列的方式來執行。&lt;br /&gt;
&lt;br /&gt;
emulator.exe -avd &amp;lt;AVD_TARGET_NAME&amp;gt;&lt;br /&gt;
emulator.exe -avd Android231&lt;br /&gt;
&lt;br /&gt;
當然在使用模擬器前要先建立好&amp;nbsp;AVD 虛擬裝置。&lt;br /&gt;
&lt;br /&gt;
Android 模擬器的控制，可以透過模擬器的啟動選項 ( Startup Options ) 和終端指令 ( Console Commands ) 來控制模擬器環境的行為。&lt;br /&gt;
&lt;br /&gt;
emulator.exe -avd &amp;lt;AVD_TARGET_NAME&amp;gt; -skin &amp;lt;SKIN_ID&amp;gt; -sdcard &amp;lt;SDImageFlesPath&amp;gt;&lt;br /&gt;
emulator.exe -avd Android231 -skin HVGA -sdcard my2g&lt;br /&gt;
emulator.exe -avd Android231 -skin 480x320&lt;br /&gt;
&lt;br /&gt;
SKINS: QVGA 240x320, WQVGA400 240x400, WQVGA432 240x320, HVGA 320x480, WVGA800 480x800, WVGA854 480x854</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/3974426744109742935/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/3974426744109742935' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/3974426744109742935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/3974426744109742935'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/android-sdk-emulatorexe.html' title='Android SDK 開發工具指令介紹 emulator.exe'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-8298672038434318618</id><published>2011-06-02T15:26:00.000+08:00</published><updated>2011-06-02T15:26:31.627+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Developer"/><title type='text'>Android 專案欄位及檔案說明</title><content type='html'>&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;以 HelloWorld 通用範例來說明&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Project name: Eclipse 工作專案名稱，如 HelloWorld。&lt;/li&gt;
&lt;li&gt;Application name: 應用程式的名稱，這個名稱會登錄在 Android 作業系統內。&lt;/li&gt;
&lt;li&gt;Package name: Java 的封包名稱，儲存應用程式名稱的檔案路徑，如 com.example.android.helloworld&lt;/li&gt;
&lt;li&gt;Crate Activity: 建立執行檔名稱。&lt;/li&gt;
&lt;li&gt;HelloWorld -&amp;gt; src -&amp;gt; package_name -&amp;gt; HelloWorld.java 為 Java 主程式檔。&lt;/li&gt;
&lt;li&gt;HelloWorld -&amp;gt; res -&amp;gt; layout -&amp;gt; main.xml 檔案描述人機介面畫面的規劃。&lt;/li&gt;
&lt;li&gt;HelloWorld -&amp;gt; res -&amp;gt; values -&amp;gt; strings.xml 檔案說明已設定變數的內容。&lt;/li&gt;
&lt;li&gt;HelloWorld -&amp;gt; AndroidMainfest.xml 資訊設定檔案描繪 Android Application and Activity 的屬性。&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;執行 Android 應用程式由 Eclipse 選單的 Run -&amp;gt; Run Ctrl+F11 出現 Run As 書面，選擇 Android Application 按下 OK 按鈕，就會開始編譯，完成後會呼叫 AVD 來執行，並顯示結果。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/8298672038434318618/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/8298672038434318618' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/8298672038434318618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/8298672038434318618'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/android_1202.html' title='Android 專案欄位及檔案說明'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-2542690963637765646</id><published>2011-06-02T14:53:00.001+08:00</published><updated>2011-06-02T15:09:32.367+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Developer"/><title type='text'>建立 Android 開發環境</title><content type='html'>建立 Android 開發環境步驟&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;安裝 JDK ( Java Development Kit ) 開發套件&lt;/li&gt;
&lt;li&gt;安裝 Eclipse IDE for Java Developers 圖形介面開發環境&lt;/li&gt;
&lt;li&gt;安裝 Android SDK ( Software Development Kit ) 軟體開發套件&lt;/li&gt;
&lt;li&gt;安裝 Android 開發工具 ADT ( Android Development Tools )&lt;/li&gt;
&lt;li&gt;設定 Android 開發工具 ADT ( Android Development Tools )&lt;/li&gt;
&lt;li&gt;建立 Android 虛擬設備 AVD ( Android Virtual Device )&lt;/li&gt;
&lt;li&gt;驗證 Android SDK 軟體開發環境&lt;/li&gt;
&lt;/ol&gt;套件下載：&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://java.sun.com/javase/downloads/&quot;&gt;JDK&lt;/a&gt; , &lt;a href=&quot;http://www.eclipse.org/downloads/&quot;&gt;Eclipse&lt;/a&gt; , &lt;a href=&quot;http://developer.android.com/sdk/&quot;&gt;Android SDK&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;環境變數設定：&lt;/li&gt;
&lt;/ul&gt;將 anddroid-sdk-windows/tools 路徑加到系統環境變數 PATH 中。&lt;br /&gt;
執行 android.exe -h 測試。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;首次執行 Eclipse 需要設定工作空間 WorkSpace 的目錄空間。&lt;/li&gt;
&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;安裝 ADT 到 Eclipse 外掛套件中&lt;/li&gt;
&lt;/ul&gt;在 Eclipse 選單中點選 Help -&amp;gt; Install New Software 開啟 Available Software 書面。&lt;br /&gt;
在 Available Software 畫面按下 Add 按鈕，在 Add Site 設定畫面中，輸入&lt;br /&gt;
Name: Android Development Tools&lt;br /&gt;
Location: http://dl-ssl.google.com/android/eclipse/&lt;br /&gt;
按下 OK 按鈕回到 Available Software 畫面，會看見出現 Developer Tools ，勾選要安裝的開發工具，包括 Android DDMS ， Android Developer Tools 及 Android Hierarchy Viewer ，按下 NEXT 下一步開始下載，下載完成後會出現 Install Details 畫面，列出要安裝的工具，選擇 Select All 再按下 NEXT 按鈕，出現 Review Licenses 書面，選擇 I accept terms of the license agreement 再按下 Finish 按鈕，開始安裝 ADT；安裝完成後，重新啟動 Eclipse 。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;設定 Android ADT 開發工具&lt;/li&gt;
&lt;/ul&gt;在 Eclipse 選單中點選 Window -&amp;gt; Preferences 開啟 Preferences 設定畫面，點選左側的 Android 節點，右側會出現 SDK Location ，按下 Browse 選擇 Android SDK 的路徑，再按下 OK 按鈕。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;建立 Android Virtual Device 虛擬設備&lt;/li&gt;
&lt;/ul&gt;可直接由 Android SDK Manager 中新增一個 AVD 。&lt;br /&gt;
或是由 Eclipse 中的 Window -&amp;gt; Android SDK and &amp;nbsp;AVD Manager 來管理。&lt;br /&gt;
也可直接在命令提示字元下使用 android.exe create avd -n &amp;lt;NAME&amp;gt; -t &amp;lt;TARGETID&amp;gt; 建立，使用 android.exe list targets 可以列出所有 AVD 裝置。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;驗證 Android SDK 軟體開發環境&lt;/li&gt;
&lt;/ul&gt;啟動 Eclipse 後，由選單 File -&amp;gt; New -&amp;gt; Project 出現 New Project 書面，選取 Android 節點的 Android Project ，會出現 New Android Project 的書面，依序輸入&amp;nbsp;Project name 勾選 Build Target ，然後在 Properties 中輸入 Application name, Package name, Create Activity 接著按下 Finish 即可建立新的 Android 專案。&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;安裝 Windows USB 驅動程式&lt;/li&gt;
&lt;/ul&gt;啟動 Android SDK Manager ，選擇 Available Packages ，勾選 Third party Add-ones -&amp;gt; Google Inc. add-ons (dl-ssl.google.com) -&amp;gt; Google Usb Driver package, revision 4 ，按下 Install Selected 出現 Choose packages to Install 畫面，勾選 Accept 再按下 Install 開始下載安裝。&lt;br /&gt;
完成後會儲存在 &amp;lt;sdk&amp;gt;/usb_driver 目錄中，接入 android 裝置到 usb 上時，再依安裝驅動程式的畫面來安裝 windows usb driver。</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/2542690963637765646/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/2542690963637765646' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/2542690963637765646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/2542690963637765646'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/android_02.html' title='建立 Android 開發環境'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-417495344866189636</id><published>2011-06-01T22:37:00.000+08:00</published><updated>2011-06-01T23:10:40.653+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="apktool"/><title type='text'>深入淺出為您講解安卓系統下軟件的漢化</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; line-height: 22px;&quot;&gt;&lt;strong style=&quot;font-style: normal; font-weight: bold; line-height: normal; text-align: left; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: blue; line-height: normal; word-wrap: break-word;&quot;&gt;首先，你要先做好下面三個步驟&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;（需要下載的所有東西都在帖子後面）&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;1、由於漢化需要你的系統有java環境，所以我們要先安裝：jdk&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;2、編寫需要漢化的文本的軟件：npp.5.8.5.Installer &amp;nbsp;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;3、下叫做《編譯》的附件後解壓得到aapt 、apktool、apktool.jar 這3個東西，全部剪切後粘貼進C盤的WINDOWS文件夾方便以後調用&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;strong style=&quot;font-style: normal; font-weight: bold; line-height: normal; text-align: left; word-wrap: break-word;&quot;&gt;OK，接下隨便下個英文軟件&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; line-height: 22px;&quot;&gt;&lt;span style=&quot;line-height: normal; word-wrap: break-word;&quot;&gt;&lt;strong style=&quot;font-style: normal; font-weight: bold; line-height: normal; text-align: left; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: red; line-height: normal; word-wrap: break-word;&quot;&gt;1、比如軟件叫a.apk，這個軟件放在E盤&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;2、開始——運行——輸入：cmd——輸入：apktool d e:\a.apk e:\b&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;這一步等於把軟件a.apk反編譯到E盤的文件夾b裡，&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;這裡要注意，b文件夾不用你創建，你只要輸入前面的語句，自動生成，&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;之後反編譯後的東西都在b文件夾裡，我一開始就在這問題上傻傻的卡了半小時&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;3、打開notepod++軟件（就是一開始需要做的3步驟第2步安裝的軟件）&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;4、在反編譯後生成的文件夾b\res\values\strings（一般需要漢化的都在這裡，因為是初級教程，我們不考慮其他的，複雜的下個教程會講到），&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;將strings這東西拉進notepd++裡，將需要漢化的漢化掉，這裡建議把原英文軟件安裝進手機裡邊使用邊找哪裡有英文，&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;英文差又喜歡漢化的，去google查，改好後保存退出&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;5、用apktool編譯：開始——運行——輸入cmd——輸入：apktool b e:\b，這樣就可以在該文件夾找到build\apk\resources.arsc&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;6、用winrar解壓a.apk到文件夾c，把之前編譯得到的resources.arsc文件覆蓋進去&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;7、然後把文件夾c打包：下叫做《打包》的附件後解壓得到_Data和sign_pack，把這兩個東西都拉到E盤，然後把文件夾c直接拖到sign_pack就成&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;8、打包後的文件夾叫做C_signed，裡面有個叫做C_H的文件就是漢化後的文件啦！！！&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;strong style=&quot;font-style: normal; font-weight: bold; line-height: normal; text-align: left; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-size: large; line-height: normal; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: blue; line-height: normal; word-wrap: break-word;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;via: &lt;a href=&quot;http://android.d.cn/bbs/viewthread.php?tid=6321&amp;amp;from=recommend_f&quot;&gt;當樂漢化&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/417495344866189636/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/417495344866189636' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/417495344866189636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/417495344866189636'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/blog-post.html' title='深入淺出為您講解安卓系統下軟件的漢化'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-8436961333620480086</id><published>2011-06-01T22:29:00.000+08:00</published><updated>2011-06-01T23:09:53.054+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>一步步深入smali，完美去廣告</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;一：之前的準備工作：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;１：檢測是否有安裝java環境，沒有的話去&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E4%B8%8B%E8%BD%BD&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;下載&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;安裝jdk1.6以上版本&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E4%B8%8B%E8%BD%BD%E5%9C%B0%E5%9D%80&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;下載地址&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/java/javase/downloads/index.html&quot; style=&quot;color: #669900; line-height: normal; text-decoration: none; word-wrap: break-word;&quot; target=&quot;_blank&quot;&gt;http://www.oracle.com/technetwork/java/javase/downloads/index.html&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;２：android SDK環境&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;下載地址：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;a href=&quot;http://dl.google.com/android/android-sdk_r08-windows.zip&quot; style=&quot;color: #669900; line-height: normal; text-decoration: none; word-wrap: break-word;&quot; target=&quot;_blank&quot;&gt;http://dl.&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=google&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;google&lt;/span&gt;.com/android/android-sdk_r08-windows.zip&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;３：常用的APK反編譯工具，見附件&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;４：學習常用Dalvik指令集，地址：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;a href=&quot;http://pallergabor.uw.hu/androidblog/dalvik_opcodes.html&quot; style=&quot;color: #669900; line-height: normal; text-decoration: none; word-wrap: break-word;&quot; target=&quot;_blank&quot;&gt;http://pallergabor.uw.hu/androidblog/dalvik_opcodes.html&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;以下是我的文檔結構（記住這個結構，以下的過程都會基於此結構）：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;d:\android&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;d:\android\sdk---sdk所在目錄&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;d:\android\crack---破解反編譯工具所在目錄&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;d:\android\crack\apktool---apktool目錄&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;d:\android\crack\auto-sign---簽名工具&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;sdk包下載後，解壓得到如下結構：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;D:\android\sdk\add-ons&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;D:\android\sdk\platforms&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;D:\android\sdk\platform-tools&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;D:\android\sdk\tools&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;D:\android\sdk\SDK Manager.exe&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;運行SDK Manager.exe，在彈出的窗口中找到：Avaliable packages,右側展開:&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=Android&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;Android&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;Respository&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;在裡面找到：SDK Platform Android 2.2,API 8,revision 2(安裝2.2版的虛擬機)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;接下來會下載安裝，&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E6%97%B6%E9%97%B4&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;時間&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;可能會長點，耐心等&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;接下來需要設幾個&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E7%B3%BB%E7%BB%9F&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;系統&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;環境變量&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;XP:我的&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E7%94%B5%E8%84%91&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;電腦&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;－〉右鍵－〉屬性－〉高級－〉環境變量&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;Win7:計算機－〉右鍵－〉屬性－〉高級系統設置－〉環境變量&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;在彈出的窗口中點擊：新建&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;按以下值填寫&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;變量名：ANDROID_SDK_HOME&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;變量值：D:\android\sdk　(看你自己的目錄而定)&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;接著在系統變量的框裡下滾找到：Path&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;雙擊打開&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;在最後面加入值　;D:\android\sdk\tools\（注意前面的分號，目錄按你自己目錄而定）&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;點擊確定，關閉窗口，重啟電腦&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;打開 /sdk/tools/目錄，雙擊android.bat，在彈出的窗口中，選擇：Virtual devices&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;點擊右側的：New 新建虛擬機&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;輸入虛擬機的名稱，Target中選擇要使用的系統版本，SD Card的Size那裡填SD卡的大小，通常填128就成&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;然後點擊下面的 Create AVD 創建&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;回到剛才的界面，列表中列出了剛新建的虛擬機，雙擊打開虛擬機&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;等很長時間虛擬機啟動&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;反編譯工具：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E6%B8%B8%E6%88%8F&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;遊戲&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;原文件：&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;二：去除遊戲Zoo Trip中的廣告，完美去廣告是指刪掉程序中一切跟廣告調用相關的類，方法，視圖&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;將apk文件拷貝到 d:\android\crack\apktool 目錄下,為方便操作，重命名為a.apk&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;打開cmd窗口&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;輸入：　&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;cd d:\android\crack\apktool&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;d:&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;輸入：adb devices&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;檢測虛擬設備是否連上，正常的會返回：emulator-5554&amp;nbsp; &amp;nbsp;device　類似信息&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;輸入：adb install a.apk&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;在虛擬設備上安裝原apk文件，並運行查看效果，先玩一通，看下廣告都在哪&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;廣告總共出現在四處：&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;第一處：程序啟動界面&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;第二處：遊戲結束界面（此處有兩個廣告，中間的那個大的對話框樣的為非google廣告）&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;第三處：分數提交界面&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;第四處：更多遊戲界面&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;接下來我們來看apk文件的內部&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;輸入：apktool d a.apk&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;反編譯apk文件，得到目錄a&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;輸入：apktool b a&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;看文件能否順利編譯回去。&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;一切正常後，打開 a\build\apk 把裡面的classes.dex拷貝到：d:\android\crack\dex 目錄下，將文件拖動到dex2jar.bat上面，將自動轉成jar文件，然後運行jd-gui.exe，打開剛剛生成的classes.dex.dex2jar.jar，然後會看到對應的java代碼，這種方式查看到的代碼並不是完整的源碼，有很多的出入，僅供參考。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
via: &lt;a href=&quot;http://android.d.cn/bbs/viewthread.php?tid=6358&amp;amp;extra=page%3D1%26amp%3Bfilter%3Ddigest&quot;&gt;一步步深入 smali&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/8436961333620480086/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/8436961333620480086' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/8436961333620480086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/8436961333620480086'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/smali_01.html' title='一步步深入smali，完美去廣告'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-2103157149015796075</id><published>2011-06-01T22:23:00.001+08:00</published><updated>2011-06-01T23:09:53.054+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>當樂漢化教程：七、smali文件中文本的處理</title><content type='html'>&lt;div id=&quot;threadtitle&quot; style=&quot;border-bottom-color: rgb(239, 239, 239); border-bottom-style: dashed; border-bottom-width: 1px; border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 8px; word-wrap: break-word;&quot;&gt;&lt;h1 style=&quot;font-size: 1.17em; line-height: normal; margin-bottom: 8px; margin-left: 0px; margin-right: 0px; margin-top: 8px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;br /&gt;
&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;t_msgfontfix&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: normal; min-height: 100px; word-wrap: break-word;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; empty-cells: show; line-height: normal; margin-left: 1px; table-layout: fixed; width: 600px; word-wrap: break-word;&quot;&gt;&lt;tbody style=&quot;line-height: normal; word-wrap: break-word;&quot;&gt;
&lt;tr style=&quot;line-height: normal; word-wrap: break-word;&quot;&gt;&lt;td class=&quot;t_msgfont&quot; id=&quot;postmessage_8622&quot; style=&quot;color: #444444; font-size: 14px; font: normal normal normal 12px/1.6em Verdana, Helvetica, Arial, sans-serif; line-height: 1.6em; word-wrap: break-word;&quot;&gt;七、smali文件&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E4%B8%AD%E6%96%87&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;中文&lt;/span&gt;本的處理&lt;br /&gt;
相信跟著前幾章操作過的讀者可以發現，有相當一部分&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E6%B8%B8%E6%88%8F&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;遊戲&lt;/span&gt;的漢化方法和&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E8%BD%AF%E4%BB%B6&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;軟件&lt;/span&gt;是類似的，只要會使用apktool反編譯apk文件，然後修改xml文件裡面的文字就能完成漢化工作。這類遊戲很適合&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E6%96%B0%E6%89%8B&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;新手&lt;/span&gt;來嘗試，類似於怒鳥那樣的遊戲漢化起來就相對複雜，最好積累了足夠經驗後再進行。&lt;br /&gt;
這章我們會用一個簡單的遊戲來說明下遊戲漢化的過程，大部分的操作和第二章裡的軟件漢化是類似的，主要是想用通過其說明下classes.dex文件中（反編譯後為若干smali文件）文本的處理方法和注意事項。&lt;br /&gt;
&lt;br /&gt;
首先可以在&lt;a href=&quot;http://android.d.cn/game/84.html&quot; style=&quot;color: #669900; line-height: normal; text-decoration: none; word-wrap: break-word;&quot; target=&quot;_blank&quot;&gt;http://android.d.cn/game/84.html&lt;/a&gt;&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E4%B8%8B%E8%BD%BD&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;下載&lt;/span&gt;到我們要漢化的遊戲：迪斯尼找茬。然後和第二章中一樣，用apktool對apk文件進行反編譯。&lt;br /&gt;
查看後發現，strings.xml文件中只有一個&quot;Find It Disney&quot;，這是遊戲在&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E6%89%8B%E6%9C%BA&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;手機&lt;/span&gt;裡顯示的名字。其他的文本，例如菜單項的內容都不在這裡。&lt;br /&gt;
&lt;div class=&quot;quote&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: url(http://211.147.5.167/bbs/images/default/icon_quote_s.gif); background-origin: initial; background-position: 20px 6px; background-repeat: no-repeat no-repeat; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 5px; padding-left: 65px; padding-right: 10px; padding-top: 10px; word-wrap: break-word;&quot;&gt;&lt;blockquote style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://211.147.5.167/bbs/images/default/icon_quote_e.gif); background-origin: initial; background-position: 100% 100%; background-repeat: no-repeat no-repeat; line-height: 1.6em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 65px; padding-top: 0px; word-wrap: break-word;&quot;&gt;對於這樣的文本我們有兩種處理辦法：&lt;br /&gt;
第一種是逐個打開反編譯出的xml文件，看裡面是不是有需要翻譯的文本。一般推薦按照這個進行，雖然每個都打開看比較麻煩，但是可以最大限度地避免出現遺漏。&lt;br /&gt;
第二種是利用軟件的搜索&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E5%8A%9F%E8%83%BD&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;功能&lt;/span&gt;，一般這個方法更多地用在查找遺漏的文本，因為未必所有文字都能找到合適的關鍵字。&lt;/blockquote&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
我們先用第一種方法，大部分的文本在layout&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E6%96%87%E4%BB%B6%E5%A4%B9&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;文件夾&lt;/span&gt;下的xml文件裡，例如mainmenu.xml中是菜單裡的文字。（僅截取部分）&lt;br /&gt;
&lt;div class=&quot;blockcode&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f7f7f7; background-image: url(http://211.147.5.167/bbs/images/default/codebg.gif); background-origin: initial; background-position: 0px 0px; background-repeat: no-repeat repeat; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 5px; padding-left: 10px; padding-right: 0px; padding-top: 10px; width: 586px; word-wrap: break-word;&quot;&gt;&lt;div id=&quot;code0&quot; style=&quot;line-height: normal; word-wrap: break-word;&quot;&gt;&lt;ol style=&quot;line-height: normal; margin-bottom: 0px; margin-left: 10px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;li style=&quot;font-family: Monaco, Consolas, &#39;&amp;quot;Lucida Console&amp;quot;&#39;, &#39;&amp;quot;Courier New&amp;quot;&#39;, serif; font-size: 12px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;……&lt;/li&gt;
&lt;li style=&quot;font-family: Monaco, Consolas, &#39;&amp;quot;Lucida Console&amp;quot;&#39;, &#39;&amp;quot;Courier New&amp;quot;&#39;, serif; font-size: 12px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&amp;lt;Button android:textColor=&quot;#ffffffff&quot; android:layout_gravity=&quot;center_horizontal&quot; android:id=&quot;@id/mainmenustart&quot; android:background=&quot;@drawable/defaultbuttonxml&quot; android:layout_width=&quot;150.0sp&quot; android:layout_height=&quot;wrap_content&quot; android:layout_marginBottom=&quot;10.0sp&quot; android:text=&quot;Start Game&quot; /&amp;gt;&lt;/li&gt;
&lt;li style=&quot;font-family: Monaco, Consolas, &#39;&amp;quot;Lucida Console&amp;quot;&#39;, &#39;&amp;quot;Courier New&amp;quot;&#39;, serif; font-size: 12px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;……&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;em style=&quot;color: #666666; cursor: pointer; font-size: 12px; font-style: normal; line-height: normal; margin-left: 43px; text-align: left; word-wrap: break-word;&quot;&gt;复制代码&lt;/em&gt;&lt;/div&gt;翻譯後：&lt;br /&gt;
&lt;div class=&quot;blockcode&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f7f7f7; background-image: url(http://211.147.5.167/bbs/images/default/codebg.gif); background-origin: initial; background-position: 0px 0px; background-repeat: no-repeat repeat; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 5px; padding-left: 10px; padding-right: 0px; padding-top: 10px; width: 586px; word-wrap: break-word;&quot;&gt;&lt;div id=&quot;code1&quot; style=&quot;line-height: normal; word-wrap: break-word;&quot;&gt;&lt;ol style=&quot;line-height: normal; margin-bottom: 0px; margin-left: 10px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;li style=&quot;font-family: Monaco, Consolas, &#39;&amp;quot;Lucida Console&amp;quot;&#39;, &#39;&amp;quot;Courier New&amp;quot;&#39;, serif; font-size: 12px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;……&lt;/li&gt;
&lt;li style=&quot;font-family: Monaco, Consolas, &#39;&amp;quot;Lucida Console&amp;quot;&#39;, &#39;&amp;quot;Courier New&amp;quot;&#39;, serif; font-size: 12px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&amp;lt;Button android:textColor=&quot;#ffffffff&quot; android:layout_gravity=&quot;center_horizontal&quot; android:id=&quot;@id/mainmenustart&quot; android:background=&quot;@drawable/defaultbuttonxml&quot; android:layout_width=&quot;150.0sp&quot; android:layout_height=&quot;wrap_content&quot; android:layout_marginBottom=&quot;10.0sp&quot; android:text=&quot;开始游戏&quot; /&amp;gt;&lt;/li&gt;
&lt;li style=&quot;font-family: Monaco, Consolas, &#39;&amp;quot;Lucida Console&amp;quot;&#39;, &#39;&amp;quot;Courier New&amp;quot;&#39;, serif; font-size: 12px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;……&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;em style=&quot;color: #666666; cursor: pointer; font-size: 12px; font-style: normal; line-height: normal; margin-left: 43px; text-align: left; word-wrap: break-word;&quot;&gt;复制代码&lt;/em&gt;&lt;/div&gt;都翻譯修改完之後，我們可以注意到，文本儲存的形式都是android:text=&quot;???&quot;這個樣子，因而可以在emeditor中使用&quot;android:text=&quot;作為關鍵字來搜索檢查一下。&lt;br /&gt;
&lt;br /&gt;
其中E:\apktool\t是用apktool反編譯時設定的目錄。&lt;br /&gt;
檢查後沒有遺漏後，和軟件一樣再用apktool編譯，並簽名打包，安裝到手機進行測試。&lt;br /&gt;
&lt;br /&gt;
測試的時候我們發現，菜單界面仍然有&lt;span class=&quot;t_tag&quot; href=&quot;tag.php?name=%E8%8B%B1%E6%96%87&quot; style=&quot;border-bottom-color: rgb(255, 0, 0); border-bottom-style: solid; border-bottom-width: 1px; cursor: pointer; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;英文&lt;/span&gt;：&lt;br /&gt;
&lt;br /&gt;
說明這部分文本被我們遺漏了，但是xml文件裡並沒有這句話（&quot;Sound:Off&quot;在mainmenu.xml裡面有，但修改後並沒有顯示）。&lt;br /&gt;
另外一些提示框裡的文字（比如退出確認）也還是英文，一般這樣的文本是被存儲在了classes.dex文件中。&lt;br /&gt;
classes.dex文件存儲著apk應用裡主要的代碼，有時會有少部分文本被以代碼的形式存儲在裡面（也有時很多），利用apktool的反編譯功能使得我們也能對其進行修改。&lt;br /&gt;
前面說過，classes.dex被反編譯成smali文件，這實際是文本文件，可以用文字編輯工具打開。一般來說反編譯出來的smali文件很多，一個一個查看並不現實，因此我們只能用搜索的辦法，或者直接搜索需要的句子：&lt;br /&gt;
&lt;br /&gt;
或者搜索關鍵字：&lt;br /&gt;
&lt;br /&gt;
這是因為在smali文件中，文本（字符串）大多以const-string類型保存，因此搜索&quot;const-string&quot;就能找到它們。&lt;br /&gt;
我們將MainMenu.smali文件裡的&quot;Sound: On&quot;和&quot;Sound: Off&quot;修改掉，再次編譯看下效果。（注意編碼要設定為UTF-8無簽名）&lt;br /&gt;
&lt;div class=&quot;blockcode&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f7f7f7; background-image: url(http://211.147.5.167/bbs/images/default/codebg.gif); background-origin: initial; background-position: 0px 0px; background-repeat: no-repeat repeat; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 5px; padding-left: 10px; padding-right: 0px; padding-top: 10px; width: 586px; word-wrap: break-word;&quot;&gt;&lt;div id=&quot;code2&quot; style=&quot;line-height: normal; word-wrap: break-word;&quot;&gt;&lt;ol style=&quot;line-height: normal; margin-bottom: 0px; margin-left: 10px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;blockcode&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f7f7f7; background-image: url(http://211.147.5.167/bbs/images/default/codebg.gif); background-origin: initial; background-position: 0px 0px; background-repeat: no-repeat repeat; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 5px; padding-left: 10px; padding-right: 0px; padding-top: 10px; width: 586px; word-wrap: break-word;&quot;&gt;&lt;div id=&quot;code2&quot; style=&quot;line-height: normal; word-wrap: break-word;&quot;&gt;&lt;ol style=&quot;line-height: normal; margin-bottom: 0px; margin-left: 10px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;li style=&quot;font-family: Monaco, Consolas, &#39;&amp;quot;Lucida Console&amp;quot;&#39;, &#39;&amp;quot;Courier New&amp;quot;&#39;, serif; font-size: 12px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;……&lt;/li&gt;
&lt;li style=&quot;font-family: Monaco, Consolas, &#39;&amp;quot;Lucida Console&amp;quot;&#39;, &#39;&amp;quot;Courier New&amp;quot;&#39;, serif; font-size: 12px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;iget-object v1, p0, Lmonkeypunch/android/finditdisney/MainMenu;-&amp;gt;sound:Landroid/widget/Button;&lt;/li&gt;
&lt;li style=&quot;font-family: Monaco, Consolas, &#39;&amp;quot;Lucida Console&amp;quot;&#39;, &#39;&amp;quot;Courier New&amp;quot;&#39;, serif; font-size: 12px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;const-string v2, &quot;声音：开&quot;&lt;/li&gt;
&lt;li style=&quot;font-family: Monaco, Consolas, &#39;&amp;quot;Lucida Console&amp;quot;&#39;, &#39;&amp;quot;Courier New&amp;quot;&#39;, serif; font-size: 12px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;invoke-virtual {v1, v2}, Landroid/widget/Button;-&amp;gt;setText(Ljava/lang/CharSequence;)V&lt;/li&gt;
&lt;li style=&quot;font-family: Monaco, Consolas, &#39;&amp;quot;Lucida Console&amp;quot;&#39;, &#39;&amp;quot;Courier New&amp;quot;&#39;, serif; font-size: 12px; line-height: 1.8em; list-style-type: decimal-leading-zero; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;……&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;em style=&quot;color: #666666; cursor: pointer; font-size: 12px; font-style: normal; line-height: normal; margin-left: 43px; text-align: left; word-wrap: break-word;&quot;&gt;复制代码&lt;/em&gt;&lt;/div&gt;&lt;br /&gt;
同樣的方法，我們修改其他的遺漏文本，這需要我們盡可能的玩通遊戲來查看是否有遺漏。&lt;br /&gt;
這裡要特別提醒，當使用搜索&quot;const-string&quot;的方法在smali文件裡尋找文本時，最好能把要修改的句子事先在遊戲裡確認一下，我們可以看到，搜索出來的結果非常多，有些看似應該翻譯的句子實際是遊戲代碼的一部分，一旦修改很可能會導致運行出錯，因此一定要特別小心，盡可能少改動，並多做測試。&lt;br /&gt;
想做的更仔細一點的話，可以再修改下遊戲裡面的圖片（png格式），這樣一個遊戲的漢化就完成了。&lt;br /&gt;
&lt;br /&gt;
via: &lt;a href=&quot;http://android.d.cn/bbs/viewthread.php?tid=3815&quot;&gt;當樂漢化教程&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class=&quot;t_msgfontfix&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: normal; min-height: 100px; word-wrap: break-word;&quot;&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/2103157149015796075/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/2103157149015796075' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/2103157149015796075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/2103157149015796075'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/smali.html' title='當樂漢化教程：七、smali文件中文本的處理'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-8955619359414688295</id><published>2011-06-01T21:56:00.000+08:00</published><updated>2011-06-01T23:09:53.054+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="apktool"/><title type='text'>使用 apktool 去除廣告教學</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;-&amp;nbsp;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;先瞭解下軟件的廣告原理&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;一個軟件若要顯示廣告，需要先導入&lt;/span&gt;SDK&lt;span style=&quot;font-family: 細明體;&quot;&gt;，並在&lt;/span&gt;AndroidManifest.xml&lt;span style=&quot;font-family: 細明體;&quot;&gt;中註冊。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;res\layout目錄&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;內的&lt;/span&gt;xml&lt;span style=&quot;font-family: 細明體;&quot;&gt;文件就包含有廣告界面的配置代碼，修改這些代碼就可以去除廣告界面。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;另外還要屏蔽廣告下載源，不然只是單單不顯示廣告界面而已，軟件還會下載廣告所需的數據，耗費流量。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;目前&lt;/span&gt;Android&lt;span style=&quot;font-family: 細明體;&quot;&gt;的廣告供應商有兩個，一個是&lt;/span&gt;Admob&lt;span style=&quot;font-family: 細明體;&quot;&gt;，一個是&lt;/span&gt;Google Ads&lt;span style=&quot;font-family: 細明體;&quot;&gt;，前者已被後者收購，但兩者&lt;/span&gt;SDK&lt;span style=&quot;font-family: 細明體;&quot;&gt;依然獨立。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;-&amp;nbsp;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;廣告代碼&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;&lt;strong&gt;Admob&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;的廣告代碼為：&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&amp;lt;com.admob.android.ads.AdView&lt;br /&gt;
android:id=”@+id/ad”&lt;br /&gt;
android:layout_width=”fill_parent”&lt;br /&gt;
android:layout_height=”wrap_content” /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;strong&gt;Google Ads&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;的廣告代碼為：&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/b&gt;&amp;lt;com.google.ads.GoogleAdView&lt;br /&gt;
android:id=”@+id/adview”&lt;br /&gt;
android:layout_width=”wrap_content”&lt;br /&gt;
android:layout_height=”wrap_content” /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;-&amp;nbsp;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;廣告下載源&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&lt;strong&gt;Admob&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;的廣告下載源：&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;a href=&quot;http://r.admob.com/ad_source.php&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;http://r.admob.com/ad_source.php&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://mm.admob.com/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;http://mm.admob.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://api.admob.com/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;http://api.admob.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;strong&gt;Google Ads&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;的廣告下載源：&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/b&gt;&lt;a href=&quot;http://pagead2.googlesyndication.com/pagead/afma_load_ads.js&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;http://pagead2.googlesyndication.com/pagead/afma_load_ads.js&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;*&amp;nbsp;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;去廣告步驟：&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: red;&quot;&gt;1&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;、去除廣告下載源&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Tahoma;&quot;&gt;&lt;span style=&quot;font-family: 細明體;&quot;&gt;- 解包&lt;/span&gt;classes.dex&lt;span style=&quot;font-family: 細明體;&quot;&gt;（方法上面已講過），用&lt;/span&gt;Notepad++ Portable&lt;span style=&quot;font-family: 細明體;&quot;&gt;搜索廣告下載源地址（若不知道軟件用的是哪個供應商的廣告的話，最好兩家的下載源都搜索下），如圖：&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: 細明體;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;319&quot; src=&quot;http://attimg.dospy.com/img/day_110119/20110119_33ef44e958d50861bd9b2pFq9Fi2Fh02.jpg&quot; width=&quot;482&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
-&amp;nbsp;&lt;span style=&quot;font-family: 細明體;&quot;&gt;&lt;span style=&quot;font-family: Tahoma;&quot;&gt;搜索結果如下：&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;164&quot; src=&quot;http://attimg.dospy.com/img/day_110119/20110119_92de96236ca9de41061fk4dX0gW4BzGd.jpg&quot; style=&quot;cursor: pointer;&quot; width=&quot;600&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: 宋体;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: 細明體;&quot;&gt;- 將廣告下載源地址修改成無效的地址（例如0.0.0.0、192.168.1.1等），如圖：&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: 細明體;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://attimg.dospy.com/img/day_110119/20110119_1397e92e5c5de0292012rHaP0hPh6h6M.jpg&quot; style=&quot;cursor: pointer;&quot; width=&quot;600&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
- 完成後保存，重新打包classes.dex，拖回apk安裝包替換原文件。&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: red;&quot;&gt;2、去除廣告界面&lt;/span&gt;１ 將剛剛已經替換了classes.dex文件的apk安裝包用&lt;b style=&quot;background-color: white;&quot;&gt;APKTool&lt;/b&gt;反編譯。&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;２ 用Notepad++ Portable搜索廣告代碼（上面已列出）&lt;/strong&gt;&lt;br /&gt;
- 如圖，將搜索路徑定位到res文件夾（就是反編譯後的res文件夾），代碼只搜索開頭就行了，如：com.admob.android.ads.AdView 和 com.google.ads.GoogleAdView。&lt;br /&gt;
如圖：&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;317&quot; src=&quot;http://attimg.dospy.com/img/day_110119/20110119_1ec3ec7d6a0d08befb924BQiBcyL9qBz.jpg&quot; width=&quot;481&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- 搜索結果：&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;298&quot; src=&quot;http://attimg.dospy.com/img/day_110119/20110119_08b07525648b2b67934cBxt44I892qvv.jpg&quot; style=&quot;cursor: pointer;&quot; width=&quot;600&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;③&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;雙擊黃顏色區域，修改下圖上方的代碼&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;android:layout_width=&quot;fill_parent&quot;&lt;/span&gt;&amp;nbsp;修改為&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;android:layout_width=&quot;0.0dip&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;android:layout_height=&quot;wrap_content&quot;&lt;/span&gt;&amp;nbsp;修改為&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;android:layout_height=&quot;0.0dip&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;243&quot; src=&quot;http://attimg.dospy.com/img/day_110119/20110119_f7786d8e18db8f682b25inNuSShwN94a.jpg&quot; style=&quot;cursor: pointer;&quot; width=&quot;600&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;修改后：&lt;/span&gt;&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;219&quot; src=&quot;http://attimg.dospy.com/img/day_110119/20110119_ea81b9dd9e39c3fc708b1nsuSDU1PdGz.jpg&quot; style=&quot;cursor: pointer;&quot; width=&quot;600&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;strong&gt;- 將所有搜索到的代碼按照上面修改，完成後保存，用&lt;b style=&quot;background-color: white;&quot;&gt;APKTool&lt;/b&gt;重新編譯打包，可簽，安裝即可。&lt;/strong&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;strong&gt;* 再作下解釋：&lt;/strong&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;android:layout_width=&quot;fill_parent&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;修改為&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;android:layout_width=&quot;0.0dip&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;android:layout_height=&quot;wrap_content&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;修改為&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;android:layout_height=&quot;0.0dip&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;之所以這麼修改，是因為要讓廣告窗口不顯示，android:layout_width定義的是廣告窗口的寬度，android:layout_height定義的是廣告窗口的高度，0.0dip代表0像素，將兩者後面的值修改為0.0dip，那麼高和寬都是顯示0像素，等於不顯示，達到了去廣告窗口界面的目的。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
via: &lt;a href=&quot;http://www.microdu.com/forum.php?mod=post&amp;amp;action=reply&amp;amp;fid=71&amp;amp;tid=5619&amp;amp;repquote=43248&amp;amp;extra=%26page%3D1&amp;amp;page=1&quot;&gt;microdu&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/8955619359414688295/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/8955619359414688295' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/8955619359414688295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/8955619359414688295'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/apktool.html' title='使用 apktool 去除廣告教學'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-5503562007597342553</id><published>2011-06-01T21:33:00.001+08:00</published><updated>2011-06-01T23:10:40.653+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="apktool"/><title type='text'>APK反編譯利器 apktool GUI版 1.3.4 遠離命令行!!!</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;忘了命令行吧 有了它只需點幾下鼠標就搞定了&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;使用前安裝JDK！！！&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;a href=&quot;http://www.qkshare.com/attachment.php?attachmentid=79667&amp;amp;d=1305873902&quot; rel=&quot;nofollow&quot; style=&quot;color: #b15b00;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;按圖片以查看大圖

名稱: 11052010061e9a6b6bc1647ecc.jpg
查看次數: 25
文件大小: 76.8 KB
ID: 79667&quot; border=&quot;0&quot; class=&quot;thumbnail&quot; src=&quot;http://www.qkshare.com/attachment.php?attachmentid=79667&amp;amp;thumb=1&amp;amp;d=1305873902&quot; style=&quot;margin-bottom: 2px; margin-left: 2px; margin-right: 2px; margin-top: 2px;&quot; title=&quot;按圖片以查看大圖

名稱: 11052010061e9a6b6bc1647ecc.jpg
查看次數: 25
文件大小: 76.8 KB
ID: 79667&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;1.3.4版：&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;1. 更新 apktool.jar版本 為1.4.1 版本，解決部分apk不能使用的問題。&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;1.3.2版&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;：&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;1.增加：log導出功能。&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;==================================================================&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;功能:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;1. 反編譯APK文件，生產到同名目錄中。&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;2. 將反編譯的APK重新編譯，在當前目錄&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;生成2個文件，1個簽名的和一個未簽名的。&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;. 反編譯dex(odex)轉smali文件&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;4. 將反編譯的dex、odex 重新編譯成dex文件&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;5. 將dex轉成jar&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;使用方法:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: navy;&quot;&gt;將要處理的文件、文件夾拖拽到編輯框，點擊按鈕即可。&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;注意：&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;1。部分功能不支持中文路徑，文件、文件名稱儘量改簡單，提高成功率。&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 16px;&quot;&gt;via:&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.qkshare.com/thread457661.html&quot;&gt;http://www.qkshare.com/thread457661.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/5503562007597342553/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/5503562007597342553' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/5503562007597342553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/5503562007597342553'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/apk-apktool-gui-134.html' title='APK反編譯利器 apktool GUI版 1.3.4 遠離命令行!!!'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-26514371010741288</id><published>2011-06-01T21:29:00.001+08:00</published><updated>2011-06-01T23:10:40.654+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="apk"/><category scheme="http://www.blogger.com/atom/ns#" term="apktool"/><title type='text'>APK反編譯利器Apktool實現android程序漢化</title><content type='html'>&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;說起APK的漢化，目前大部分教程都是讓用Hex Workshop或者Android ResEdit來做。但是實際操作後，就會發現：&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;1、Hex Workshop操作繁瑣，經常出現搜不到想要修改的字符的情況;&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;2、Android ResEdit簡單用用可以，修改稍微複雜一點就會出現整條整條丟字符串的情況;並且新內容不能比原內容長——誰能保證我的本地化語言就一定比原來的短 呢?&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;現在好了，老外寫的《android-apktool》軟件，可以幫助我們把APK反編譯，生成程序的源代碼和圖片、XML配置、語言資源等文件。我們對 圖片和語言資源等文件修改後，可以再把它們編譯打包成APK，簽名後就是手機可以安裝的本地化/修正版APK了。&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;《android-apktool》軟件軟件可以訪問它的主頁http://code.google.com/p/android-apktool/下 載獲得，apktool-1.0.0.tar.bz2和apktool-install-windows-2.1_r01-1.zip兩個包都要下。下載 後解開，為了方便使用，按作者的推薦把得到的4個文件複製到C:Windows文件夾裡。&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;這個工具是Java寫的，需要你的電腦安裝了JRE或者JDK，並在系統環境變量Path裡加入java.exe所在路徑。&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;以上準備工作做好後，就可以用它來反編譯APK了。這裡我用動態壁紙的APK來做示範。&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;如果用過動態壁紙，你也許會發現在設置壁紙時，界面的顯示有點問題：「動態壁紙」，在手機上中文顯示為「當前壁紙」。這是「動態壁紙選擇 器」LiveWallpapersPicker.apk的翻譯錯誤造成的。&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;(假設LiveWallpapersPicker.apk放在C盤根目錄)&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;開始 &amp;gt; 運行，輸入cmd，回車。 apktool d &quot;C:LiveWallpapersPicker.apk&quot; &quot;C:LiveWallpapersPicker&quot;&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;(命令行解釋：apktool d 要反編譯的文件 輸出文件夾)&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;這樣，LiveWallpapersPicker.apk就被反編譯了，輸出內容在C:LiveWallpapersPicker文件夾裡。&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;打開C:LiveWallpapersPicker文件夾，我們發現裡面有一些XML文件和一些文件夾。絕大部分情況下，語言和圖片資源都在res文件 夾裡，我們這個例子當然不例外。&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;打開res文件夾，可以其中又是很多文件夾。(又是)絕大部分情況下，語言資源都放在values*文件夾裡。比如說values放默認語言(英語居多)，values-de放德語，values-fr放法語等等。一般我們關心的是values-zh-rCN(簡體中文)和values-zh- rTW(繁體中文)。&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;打開values-zh-rCN文件夾，其中有個strings.xml。打開看看：&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, 細明體; font-size: 14px; line-height: 23px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; ?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; resources&amp;gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; string name=&quot;application_name&quot;&amp;gt;動態壁紙選擇器&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; string name=&quot;live_wallpaper_picker_title&quot;&amp;gt;當前壁紙&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; string name=&quot;live_wallpaper_preview_title&quot;&amp;gt;當前壁紙預覽&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; string name=&quot;configure_wallpaper&quot;&amp;gt;設置...&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; string name=&quot;wallpaper_instructions&quot;&amp;gt;設置壁紙&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; string name=&quot;live_wallpaper_empty&quot;&amp;gt;無當前壁紙。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; string name=&quot;set_live_wallpaper&quot;&amp;gt;設置壁紙&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; string name=&quot;wallpaper_title_and_author&quot;&amp;gt;%1$s提供者：%2$s&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; string name=&quot;live_wallpaper_loading&quot;&amp;gt;正在載入當前壁紙…&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&amp;lt; /resources&amp;gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;很好，就是它了。把「當前壁紙」都改為「動態壁紙」，再檢查和修正標點——中文內容用中文標點(強烈呼籲大家注意標點問題，目前馬大哈太多了)後， 保存。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;本例改這麼多就夠了。其它複雜的APK建議把res文件夾裡的內容都檢查下，至少你關心的語言文件夾裡的內容都檢查下。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;改完後，就可以重打包了。還是在cmd命令行裡，輸入： apktool b &quot;C:LiveWallpapersPicker&quot;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;(命令行解釋：apktool b 要打包內容所在文件夾)&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;就可以了。生成的APK在C:LiveWallpapersPickerdist文件夾裡，叫out.apk。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;這個out.apk是沒有簽名的，所以不能直接裝到手機裡。簽名工具和方法見http://www.hiapk.com/bbs/thread-21261-1-1.html， 這裡不說了。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;簽名後得到的APK，就是可以裝到手機裡的了。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;操練：去掉免費版軟件的廣告條&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;打開google code發現Apktool更新了，居然支持win了。。。。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;那本文就是一篇介紹在windows環境下使用Apktool的筆記。&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;安裝&lt;/div&gt;&lt;div style=&quot;line-height: 30px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-indent: 2em; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;border-collapse: collapse; color: #444444; font-size: 14px; line-height: 21px; word-break: break-all; word-wrap: break-word;&quot;&gt;1.先裝JAVA環境，JDK/JRE都行，&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 23px;&quot;&gt;裝過的就跳過吧.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 30px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-indent: 2em; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;2.下載apktool.jar及相關文件，&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;這裡&lt;/span&gt;下&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;apktool-1.0.0.tar.bz2&amp;nbsp;&lt;wbr style=&quot;word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;/wbr&gt;&lt;/span&gt;和&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;apktool-install-windows-2.1_r01-1.zip&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;3.解壓apktool.jar到 C:Windows 解壓apktool-install-windows.zip到任意文件夾(例如E盤根目錄)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;4.Win+R 運行CMD，用cd命令轉到apktool-install-windows所在文件夾，輸入apktool看看。會列出一些幫助的話就成功了。 Apktool 命令&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;apktool d XXX.apk ABC 反編譯 XXX.apk到文件夾ABC&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;apktool b ABC 從文件夾ABC重建APK，輸出到ABCdistout.apk&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;然後我們反編譯一枚軟件玩玩…&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;AutoMemoryManager的免費版底部有一條廣告，去掉它吧。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;把com.lim.android.automemman.apk放到同文件夾(我的就是E盤根目錄)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;Win+R 運行CMD&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;E:&amp;lt; 回車&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;E:&amp;gt;apktool d com.lim.android.automemman.apk AMM &amp;lt; 回車&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;I: Baksmaling…&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;I: Decoding resource table…&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;I: Decoding resources…&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;I: Copying assets and libs…&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;現在文件被decode到E:AMM了，打開E:AMMeslayoutmain.xml看，所有都可見了吧~&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;編輯第59行&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, 宋体;&quot;&gt;&amp;lt; com.admob.android.ads.AdView android:id=”@id/ad”&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;line-height: normal; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, 宋体;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, 細明體;&quot;&gt;android:layout_width=」fill_parent」 android:layout_height=」wrap_content」 admobsdk:backgroundColor=」#ff000000〞 admobsdk:textColor=」#ffffffff」 admobsdk:keywords=」Android application」 /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;改為&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;&amp;lt; com.admob.android.ads.AdView android:id=」@id/ad」 android:layout_width=」0.0dip」 android:layout_height=」0.0dip」 admobsdk:backgroundColor=」#ff000000〞 admobsdk:textColor=」#ffffffff」 admobsdk:keywords=」Android application」 /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;然後CMD輸入&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;E:&amp;gt;apktool b AMM&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;I: Checking whether sources has changed…&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;I: Smaling…&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;I: Checking whether resources has changed…&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;I: Building resources…&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;I: Building apk file…&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;用Auto-sign簽名E:AMMdistout.apk 安裝&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;這樣廣告就不見了&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;再看,嘿嘿~很帥吧…&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;這其實就是改了AndroidManifest.xml裡的ADmob廣告ID罷了&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 27px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 23px;&quot;&gt;via:&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 30px;&quot;&gt;&lt;a href=&quot;http://tech.cncms.com/shouji/android/41851.html&quot;&gt;http://tech.cncms.com/shouji/android/41851.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/26514371010741288/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/26514371010741288' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/26514371010741288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/26514371010741288'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/apkapktoolandroid.html' title='APK反編譯利器Apktool實現android程序漢化'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-5103449825815100683</id><published>2011-06-01T21:21:00.000+08:00</published><updated>2011-06-01T23:10:40.654+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="apktool"/><title type='text'>Android 反組譯工具 apktool 簡介</title><content type='html'>Android反編譯工具：Apktool，可以Linux 、Windows環境下工作&lt;br /&gt;
&lt;br /&gt;
安裝步聚如下：&lt;br /&gt;
1.首先安裝JAVA環境，先下載JDK/JRE，點擊下載，已经有JAVA環境則可跳過此步&lt;br /&gt;
&lt;br /&gt;
2.到code.google上下載apktool.jar以及相關文件：&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://code.google.com/p/android-apktool/downloads/list&quot; target=&quot;_blank&quot;&gt;http://code.google.com/p/android-apktool/downloads/list&lt;/a&gt;&lt;br /&gt;
點擊下載apktool-1.0.0.tar.bz2 和apktool-install-windows-2.1_r01-1.zip&lt;br /&gt;
&lt;br /&gt;
3.解解縮apktool.jar 到 C:\Windows文件夾下&lt;br /&gt;
解壓縮apktool-install-windows.zip到任意文件夾&lt;br /&gt;
&lt;br /&gt;
4.點擊開始選單，執行，輸入CMD命令，用cd命令切換到剛剛解縮apktool-install-windows所在的文件夾，輸入apktool，出現一些命令說明即成功安裝。&lt;br /&gt;
&lt;br /&gt;
Apktool 命令　　　　　　　　　　說明&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;apktool d geek.apk test&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;反組译 geek.apk到文件夾test&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;apktool b&amp;nbsp;&amp;nbsp;geek&amp;nbsp;&lt;/span&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 　&amp;nbsp;從文件夾geek重建APK，輸出到ABC\dist\out.apk</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/5103449825815100683/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/5103449825815100683' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/5103449825815100683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/5103449825815100683'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/android-apktool.html' title='Android 反組譯工具 apktool 簡介'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-5596900961666362977</id><published>2011-06-01T20:36:00.000+08:00</published><updated>2011-06-01T23:09:53.055+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Android 軟體中文化自己來！AndroidResEdit</title><content type='html'>&lt;div class=&quot;article-body&quot; style=&quot;color: #2a2a2a; font-family: verdana; font-size: 13px; line-height: 23px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 1%; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 15px;&quot;&gt;&lt;div class=&quot;article-content&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-size: 12pt;&quot;&gt;對岸的 Android 機友們感覺比英文語系的國家更具有熱情，什麼 Android 軟體都有團隊進行軟體漢化，不過當然都是漢化成簡體中文，如果自己有時間的話，不如自行 DIY 做個屬於自己的繁體中文化版本吧！對岸有網友寫了個 Android 中文化工具，叫做 AndroidResEdit，只要導入 apk 檔中的 resources.arsc 到程式中即可看到所有程式中會出現的字串，如果已經是被簡體中文化的軟體則可以直接改成繁體中文，並改成自己習慣的用詞，這樣使用起軟體就舒服多了！不過自行中文化的程式建議還是自己留著用就好，即使要分享也要低調點，畢竟沒有經過原程式作者的同意，擅自進行中文化可能會被程式作者抗議！&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br style=&quot;letter-spacing: 0px;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;↓ &amp;nbsp;Android 的程式安裝檔其實就是個 zip 壓縮檔，所以只要在副檔名最後加上 .zip 使它變成一個 zip 壓縮檔即可開啟。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;img alt=&quot;AndroidResEdit01.png&quot; border=&quot;0&quot; src=&quot;http://pic.pimg.tw/im953091/8522ca8e8c177bdb1e45833445d9259b.png&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;AndroidResEdit01.png&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;↓ 將壓縮檔中的 resources.arsc 擷取出來進行編輯。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;img alt=&quot;AndroidResEdit02.png&quot; border=&quot;0&quot; src=&quot;http://pic.pimg.tw/im953091/130201fc99cc451e97e2c1f3e253b9a9.png&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;AndroidResEdit02.png&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;↓ 擷取出來的&amp;nbsp;resources.arsc 用 AndroidResEdit 開啟即可看到其中的字串，將字串改成繁體中文就可以囉，&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;不過字串有「字符長度」的限制，也就是說該字串值若是 15，就表示只能輸入 15 個字，超過就會出現錯誤訊息，&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;中文化完成以後再將 resources.arsc 放回壓縮檔中（用拖曳的方式將修改後的檔案拖進上圖視窗中）取代原始檔案即可。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;img alt=&quot;AndroidResEdit03.png&quot; border=&quot;0&quot; src=&quot;http://pic.pimg.tw/im953091/f7c5cc1aa41b1001c326b094e42ca4c4.png&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;AndroidResEdit03.png&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;↓ 修改完成以後還必須要進行「簽名」才能正常安裝 apk 軟體。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;img alt=&quot;AndroidResEdit04.png&quot; border=&quot;0&quot; src=&quot;http://pic.pimg.tw/im953091/47cb590f6e75ec443de65d00ced9ba6f.png&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;AndroidResEdit04.png&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;↓ &amp;nbsp;選擇修改好的 apk 檔案後，按「立即簽名」。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;img alt=&quot;AndroidResEdit05.png&quot; border=&quot;0&quot; src=&quot;http://pic.pimg.tw/im953091/f96451ca8d44563e4ae214952b1e0fbd.png&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;AndroidResEdit05.png&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;↓ &amp;nbsp;簽名完成以後即可放進 Android 系統中進行安裝。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;img alt=&quot;AndroidResEdit06.png&quot; border=&quot;0&quot; src=&quot;http://pic.pimg.tw/im953091/f8d2f9c84230c790f852913bb3958f77.png&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px;&quot; title=&quot;AndroidResEdit06.png&quot; /&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp; &amp;nbsp; 不過如果軟體有被官方進行保護的話，可能就無法任意修改，即使修改了，也進行「簽名」了，安裝時仍然會提示錯誤，所以如果要進行中文化軟體的話，建議先簡單地中文化幾個字串，然後安裝看看是否成功，若成功了再繼續做中文化的動作，免得白費工夫，因為我就有做過這樣的蠢事 XD.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;via:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://im953091.pixnet.net/blog/post/32382018&quot;&gt;http://im953091.pixnet.net/blog/post/32382018&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/5596900961666362977/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/5596900961666362977' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/5596900961666362977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/5596900961666362977'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/android-androidresedit.html' title='Android 軟體中文化自己來！AndroidResEdit'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-4636713030355964201</id><published>2011-06-01T20:28:00.000+08:00</published><updated>2011-06-01T23:09:53.055+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>AndroidResEdit 1.5 Google 漢化工具 (讓漢化更簡單)</title><content type='html'>&lt;div id=&quot;threadtitle&quot; style=&quot;border-bottom-color: rgb(230, 231, 225); border-bottom-style: dashed; border-bottom-width: 1px; border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: normal; margin-bottom: 8px; word-wrap: break-word;&quot;&gt;&lt;h1 style=&quot;font-size: 1.17em; line-height: normal; margin-bottom: 8px; margin-left: 0px; margin-right: 0px; margin-top: 8px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; word-wrap: break-word;&quot;&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;t_msgfontfix&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: normal; min-height: 100px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 19px;&quot;&gt;&lt;strong style=&quot;font-size: 14px; font-style: normal; font-weight: bold; line-height: normal; text-align: left; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-size: large; line-height: normal; word-wrap: break-word;&quot;&gt;操作方法：&lt;/span&gt;&lt;/strong&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;1：列表顯示原始資源&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;2：選中資源右鍵Google 在線翻譯&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;3：導出字典[把資源導出為文本，可以使用文本編輯器來進行翻譯工作]&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;4：導入字典[把修改後的字典導入到AndroidResEdit中，直接漢化]&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;5：保存漢化[保存漢化後的文件]&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;6：簽名apk文件[簽名漢化好後的安裝包，詳細教程請看&amp;nbsp;&lt;a href=&quot;http://www.apkok.com/bbs/thread-588-1-1.html&quot;&gt;APK文件簡易漢化教程&lt;/a&gt;&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;7：導出大寫字母開頭的詞條[因，正常Arsc文件中以大寫字母開始的詞條才需要漢化，正常情況下]&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;8：支持直接拖拽文件到窗體讀取Arsc文件&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;t_msgfontfix&quot; style=&quot;border-collapse: collapse; color: #444444; font-family: Verdana, Helvetica, Arial, sans-serif; min-height: 100px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;下面功能在我的漢化狂人這個漢化工具中都已經完成，如果您使用 AndroidResEdit 漢化還不能滿足您的需要，&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;您可以使用漢化狂人來漢化，AndroidResEdit 這個工具只是提取漢化狂人中的Arsc的漢化功能，然後再進一步的對&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;AndroidResEdit 的搜索算法進行了更新。&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; empty-cells: show; font-size: 12px; line-height: normal; margin-left: 1px; table-layout: fixed; width: 936px; word-wrap: break-word;&quot;&gt;&lt;tbody style=&quot;line-height: normal; word-wrap: break-word;&quot;&gt;
&lt;tr style=&quot;line-height: normal; word-wrap: break-word;&quot;&gt;&lt;td class=&quot;t_msgfont&quot; id=&quot;postmessage_644&quot; style=&quot;color: #444444; font: normal normal normal 12px/1.6em Verdana, Helvetica, Arial, sans-serif; word-wrap: break-word;&quot;&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;&lt;img alt=&quot;1.jpg&quot; class=&quot;zoom&quot; file=&quot;attachments/forumid_2/1006301956cd2fc6c97d5c96b1.jpg&quot; id=&quot;aimg_2796&quot; src=&quot;http://www.apkok.com/bbs/attachments/forumid_2/1006301956cd2fc6c97d5c96b1.jpg&quot; style=&quot;line-height: normal; word-wrap: break-word;&quot; width=&quot;600&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;&lt;img alt=&quot;2.jpg&quot; class=&quot;zoom&quot; file=&quot;attachments/forumid_2/10063019563e63d742369eb9d1.jpg&quot; id=&quot;aimg_2797&quot; src=&quot;http://www.apkok.com/bbs/attachments/forumid_2/10063019563e63d742369eb9d1.jpg&quot; style=&quot;line-height: normal; word-wrap: break-word;&quot; width=&quot;600&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;&lt;img alt=&quot;3.jpg&quot; class=&quot;zoom&quot; file=&quot;attachments/forumid_2/100630195678de3e28ebc20d68.jpg&quot; id=&quot;aimg_2798&quot; src=&quot;http://www.apkok.com/bbs/attachments/forumid_2/100630195678de3e28ebc20d68.jpg&quot; style=&quot;line-height: normal; word-wrap: break-word;&quot; width=&quot;600&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;&lt;br /&gt;
&lt;a href=&quot;http://baike.baidu.com/view/2826843.html&quot;&gt;漢化狂人介紹&lt;/a&gt;&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;&lt;a href=&quot;http://www.lzexe.com/viewthread.php?tid=29&quot;&gt;漢化狂人下載&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px; line-height: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;&lt;br /&gt;
軟件可以運行在&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;WinXP、Vista等平台下，&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;XP下需要安裝Microsoft .NET Framework V2.0運行庫支持，否則無法運行。&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;NET Framework V2.0運行庫&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;下載地址：&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://www.163pan.com/download/d0500030h.html&quot; style=&quot;color: #5aa000; font-size: 14px; line-height: normal; text-decoration: none; word-wrap: break-word;&quot; target=&quot;_blank&quot;&gt;http://www.163pan.com/download/d0500030h.html&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: normal; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: red; font-size: small; line-height: normal; word-wrap: break-word;&quot;&gt;(不用注冊，等待5秒即可下載）&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;簽名必須要有&amp;nbsp;java&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;AndroidResEdit 1.5 Google 漢化工具:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;absmiddle&quot; src=&quot;http://www.apkok.com/bbs/images/attachicons/rar.gif&quot; style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span id=&quot;attach_2799&quot; style=&quot;font-size: 14px; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://www.apkok.com/bbs/attachment.php?aid=Mjc5OXwzNDIwZGY3YXwxMzA2OTMxMTIxfDAyMTJRYkx1cmlmZ0lPZS9OenAzT3l6S2ZiTjRuallpTlhoYmNKdUZJdzV0YVRF&quot; style=&quot;color: #5aa000; line-height: normal; text-decoration: none; word-wrap: break-word;&quot; target=&quot;_blank&quot;&gt;&lt;strong style=&quot;font-style: normal; font-weight: bold; line-height: normal; text-align: left; word-wrap: break-word;&quot;&gt;AndroidResEdit_By_hanhualangzi_v_1.5.rar&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;&amp;nbsp;(211.83 KB)&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;br style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;java:&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;absmiddle&quot; src=&quot;http://www.apkok.com/bbs/images/attachicons/rar.gif&quot; style=&quot;line-height: normal; word-wrap: break-word;&quot; /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span id=&quot;attach_2800&quot; style=&quot;font-size: 14px; line-height: normal; white-space: nowrap; word-wrap: break-word;&quot;&gt;&lt;a href=&quot;http://www.apkok.com/bbs/attachment.php?aid=MjgwMHw3YmI3ODBkZnwxMzA2OTMxMTIxfDAyMTJRYkx1cmlmZ0lPZS9OenAzT3l6S2ZiTjRuallpTlhoYmNKdUZJdzV0YVRF&quot; style=&quot;color: #5aa000; line-height: normal; text-decoration: none; word-wrap: break-word;&quot; target=&quot;_blank&quot;&gt;&lt;strong style=&quot;font-style: normal; font-weight: bold; line-height: normal; text-align: left; word-wrap: break-word;&quot;&gt;java.rar&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 1.6em;&quot;&gt;&amp;nbsp;(873.17 KB)&lt;br /&gt;
&lt;br /&gt;
via: &lt;a href=&quot;http://www.apkok.com/bbs/thread-589-1-1.html&quot;&gt;樂致論壇 霸王妹&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/4636713030355964201/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/4636713030355964201' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/4636713030355964201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/4636713030355964201'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/androidresedit-15-google.html' title='AndroidResEdit 1.5 Google 漢化工具 (讓漢化更簡單)'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-4715195153230045972</id><published>2011-06-01T20:04:00.002+08:00</published><updated>2011-06-01T23:09:53.056+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Android 程式中文化教學</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; letter-spacing: 1px; line-height: 22px;&quot;&gt;第一步要先將 APK 檔解壓縮，基本上所有的APK檔解壓縮出來都會得到這些檔案及資料夾。&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&quot;resources.arsc&quot; 是一個資源程序, 理論上如果作者按google的指引, 所有的文字也會存到這裡。&lt;/li&gt;
&lt;li&gt;&quot;classes.dex&quot; 算是核心的其中一個文件, &quot;理論上&quot;我們不需處理&lt;/li&gt;
&lt;li&gt;&quot;xxxxxxxx.xml&quot; 所有的xml算是一個指令模組吧, &quot;理論上&quot;我們不需處理&lt;/li&gt;
&lt;li&gt;&quot;META-INF&quot;資料夾內的是認證檔案, 我們最後要把它更換&lt;/li&gt;
&lt;li&gt;&quot;res&quot;資料資料夾, 理論上我們也沒必要修改, 其中內裡的&quot;drawable&quot;資料夾就是程式的圖庫&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: medium; letter-spacing: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;&lt;b style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;&lt;span style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;教學一&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;&lt;b style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 15px; letter-spacing: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;需要用到的軟件:&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;AndroidResEdit 1.5 (注意: WINDOW 7 不可用)&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;window內置的記事簿&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;winRAR&lt;/b&gt;&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;上文說明了理論上文字都放在&quot;resources.arsc&quot;檔案內, 那我們就要找方法打開它然後把文字抽出來, 以往要從&quot;resources.arsc&quot;抽取文字是一件艱辛的事, 而且往往都不完整, 之前說過有個程式可以協助製作中文化, 那就是AndroidResEdit, 它就可以簡單的把&quot;resources.arsc&quot;給打開再轉化, 因為是大陸人開發的, 所以介面是簡體。&lt;/span&gt;&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;打開AndroidResEdit_By_hanhualangzi_v_1.5.exe後, 直接把&quot;resources.arsc&quot;拖進去, 你就見到所有文字, 如果程式是包含多國語言你也可以見到。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;現在的AndroidResEdit功能已經很強大, 你可以直接在這程式進行中文化 (在替換資源輸入中文翻譯), 甚至可以把文字連到google進行翻譯 (當然是針對簡體), 因為我並不是直接用它進行翻譯工作, 所以我不了解所有操作及功能, 有興趣了解更多使用方法可以參考&lt;a href=&quot;http://www.lzexe.com/&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #265827; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; text-shadow: none !important;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #ff6633; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;官網&lt;/span&gt;&lt;/a&gt;。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;b style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;&lt;span style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;翻譯步驟&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;每個人的方法都可同, 我的做法是先把顯示的文字儲存成txt文件檔, 然後用記事簿工具進行翻譯, 這樣比起在AndroidResEdit內進行翻譯, 無論是檢視, 修改, 將來更新等都更加方便, 尤其是一些超多文字的程式時更甚, 而且你可以隨時在任何電腦也可翻譯。&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;從&quot;resources.arsc&quot;抽取文字並儲存成txt文件檔&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;把&quot;resources.arsc&quot;拖進AndroidResEdit後, 點選文件-&amp;gt;導出未典-&amp;gt;全部英文字條, 然後存儲存成txt檔 (名稱隨意, 最好改名時自行輸入副檔名.txt)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;b style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;&lt;span style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;正式翻譯工作&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;用記事簿打開剛剛得到的txt文件, 假設程式的語言只有英文, 你只需在翻譯那句英文最尾的 | 符號後面輸入中文就可以 (前後不用加空格)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;span style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: red; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;&lt;b style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;有幾點要注意:&lt;/b&gt;&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;- 切勿直接修改任何英文字, 即 | 前面的文字都不要動&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;- 切勿加入空行&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;- 99%可供翻譯的英文都是用大寫開頭的, 如非必要字首是小寫就不要亂改動&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;- 如兩個英文字之間沒有空間(如SecondaryProgress - 兩個字間沒有空間), 絕對不可以翻譯&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;- 不用翻譯的不理會就可以&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;- 如程式含多種語言, 在TXT文件也會顯示, 同樣地, 針對英文翻譯就可以, 其他語言直接跳過&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;- 部份文字會包含一些特殊字元, 如\ %等, 那些是程式語言式變數, 在中文化是也必需保留, 如\n 為新行的指令。&lt;/span&gt;&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;都翻譯好後, 記得保儲文件, 回到AndroidResEdit, 此時的狀態應該是已載入好未修改過的&quot;resources.arsc&quot;文件, 選擇文件-&amp;gt;導入字典--&amp;gt;選擇剛才已翻譯好的txt檔&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;你會發現, 在&quot;替換資源欄&quot;已經載入好要翻譯好的文字&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;完成以上工作大致已經完成翻譯, 之後就是把修改好的&quot;resources.arsc&quot;保存, 在AndroidResEdit選擇-&amp;gt;文件--&amp;gt;保存文件, 然後保存成&quot;resources.arsc&quot;就可以&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;b style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;&lt;span style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;導入新的&quot;resources.arsc&quot;到APK&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;現在我們得到一個全新翻譯好的&quot;resources.arsc&quot;檔, 之後的工作就是把它替換到原來的&quot;resources.arsc&quot;。用winrar打開原來的APK檔, 然後直接把新的&quot;resources.arsc&quot;拖進去取代原來的就可以 (不用拖移方法, 可以用winrar打開apk檔後, 選擇-&amp;gt;指令加入檔案到壓縮檔), 替換好後在winrar保存apk檔&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;b style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 15px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;&lt;span style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: none !important;&quot;&gt;重新認證&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;每一個上傳到MARKET的程式, 都會有一個特有的認證文件, 因版權問題, 所有自行修改過的apk檔也不能再被認證, 未能認證的apk檔, 是不可能在android安裝, 所以我們要重新自行認證apk檔。&lt;br style=&quot;letter-spacing: 0em; text-shadow: none !important;&quot; /&gt;首先我們要把原有的認證文件刪除, 用winrar打開apk檔, 進入&quot;META-INF&quot;資料夾, 把&quot;MANIFEST.MF&quot;以外的檔案都刪除 (一般為刪除兩個檔案, 下圖為刪除兩個CERT檔), 刪除認證檔案後, 再在winrar保存apk檔。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;我們再打開AndroidResEdit, 選擇-&amp;gt;簽名-&amp;gt;簽名apk文件-&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;新視窗按選擇-&amp;gt;點選剛才保存的apk檔-&amp;gt;立即簽名-&amp;gt;儲存文件即完成&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;來到這已經算是完成了中文化, 最後得到的新apk檔你直接試安裝就可以, 說來簡單, 實際上花的時間是非常長的, 而且翻譯時也很考驗耐性, 也不會一次便完成。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;&lt;a href=&quot;http://gphonefans.net/thread-9160-1-1.html&quot;&gt;Android 中文化討論區&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;a href=&quot;http://apk.tw/forum-forumdisplay-fid-290-page-1.html&quot;&gt;Android 繁化交流&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;letter-spacing: 1px;&quot;&gt;via: &lt;a href=&quot;http://www.mobile01.com/topicdetail.php?f=423&amp;amp;t=1788128&amp;amp;p=1&quot;&gt;mobile01 phpcc&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Helvetica, Verdana, &#39;LiHei Pro&#39;, 新細明體, sans-serif; font-size: 15px; line-height: 22px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/4715195153230045972/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/4715195153230045972' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/4715195153230045972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/4715195153230045972'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/android_01.html' title='Android 程式中文化教學'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-8574787731296029410</id><published>2011-06-01T18:08:00.007+08:00</published><updated>2011-06-02T07:59:26.075+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Apps"/><category scheme="http://www.blogger.com/atom/ns#" term="Market"/><title type='text'>Android 市集</title><content type='html'>&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;Android Market 除了原生的市集外，還有許多的電信商也都有建立了自己的市集，&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;以供自身的客戶來使用。&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;Android Market 需要有 google checkout 帳戶才能下載付費軟體，&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;而其它電信商市集下載付費軟體都是直接出現在電信帳單上。&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://market.android.com/&quot; style=&quot;color: #4272a2; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Android Market&quot;&gt;Android 原生市集&lt;/a&gt;&amp;nbsp;( &lt;a href=&quot;http://developer.android.com/&quot;&gt;Developer&lt;/a&gt; )&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://hami.emome.net/&quot; style=&quot;color: #4272a2; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Hinet Hami Market&quot;&gt;Hinet HAMI 市集&lt;/a&gt;&amp;nbsp;( &lt;a href=&quot;http://halink.emome.net/&quot;&gt;開發者專區&lt;/a&gt;&amp;nbsp;, &lt;a href=&quot;http://hdc.emome.net/&quot;&gt;書城開發&lt;/a&gt;&amp;nbsp;)&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://app.fetnet.net/aps/App/apsDispatcher.action&quot;&gt;遠傳 S市集&lt;/a&gt;&amp;nbsp;( &lt;a href=&quot;https://developer.smartapp.tw/WebApp/servlet/HttpDispatcher/SPLogon/prompt&quot;&gt;開發者專區&lt;/a&gt; )&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://market.taiwanmobile.com/app-web/home/home00/android.jsp&quot;&gt;台哥大 match 市集&lt;/a&gt;&amp;nbsp;( &lt;a href=&quot;https://partner.taiwanmobile.com/partnerPortal/matchMarket.jsp&quot;&gt;開發者專區&lt;/a&gt; )&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;VIBO 市集&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://www.insydemarket.com/&quot;&gt;Insyde 系微市集&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;另外還有一些不知名人士成立的地下市集，提供了各式各樣版本的應用程市及遊戲供下載。&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://www.eoemarket.com/&quot;&gt;億優市場&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://www.gfan.com/app/amarket/&quot;&gt;機鋒市場&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://www.nduoa.com/&quot;&gt;N多市場&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://www.1mobile.com/&quot;&gt;第一手機市集&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://www.applanet.net/&quot;&gt;Applanet市集&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;Blackmart Alpha (&amp;nbsp;&lt;a href=&quot;http://www.megaupload.com/?d=8IK0XH5S&quot; style=&quot;color: #4272a2; text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;Blackmart Alpha v04.9 build 92&quot;&gt;v0.49 build 92&lt;/a&gt;&amp;nbsp;)&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://www.appchina.com/&quot;&gt;應用匯&lt;/a&gt;&lt;/li&gt;
&lt;li style=&quot;list-style-position: inside;&quot;&gt;&lt;a href=&quot;http://www.diguayouxi.com/&quot;&gt;地瓜遊戲中心&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;但很多的地下市集，程式可能會被加料，請小心使用。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;ul style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot;&gt;&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;a href=&quot;http://big5.ce.cn/cysc/mobile/xw/201101/06/t20110106_20683932.shtml&quot;&gt;Android平臺陷入&quot;吸費門&quot; 40%程式被植入惡意代碼&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;a href=&quot;http://big5.ce.cn/cysc/communications/yjdt/201101/05/t20110105_20681510.shtml&quot;&gt;Android身陷惡意&quot;扣費門&quot; 部分開發者參與其中&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;a href=&quot;http://big5.ce.cn/cysc/communications/csdt/201101/05/t20110105_20681513.shtml&quot;&gt;SP利用Android應用吸費四部曲 揭秘背後利益鏈&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img src=&quot;http://www.ce.cn/cysc/communications/csdt/201101/05/W020110105293391074230.jpg&quot; /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/8574787731296029410/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/8574787731296029410' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/8574787731296029410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/8574787731296029410'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2011/06/android.html' title='Android 市集'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-36988082.post-116244817592886416</id><published>2006-11-02T14:15:00.000+08:00</published><updated>2006-11-02T14:16:15.936+08:00</updated><title type='text'>開張大吉</title><content type='html'>開張大吉&lt;br /&gt;大吉大利</content><link rel='replies' type='application/atom+xml' href='http://vantienhuang.blogspot.com/feeds/116244817592886416/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/36988082/116244817592886416' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/116244817592886416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/36988082/posts/default/116244817592886416'/><link rel='alternate' type='text/html' href='http://vantienhuang.blogspot.com/2006/11/blog-post.html' title='開張大吉'/><author><name>Vantien House</name><uri>http://www.blogger.com/profile/18264526422379683587</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>