View Single Post
Old 01-08-2012, 02:26 PM   #24
log
...
log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.log ought to be getting tired of karma fortunes by now.
 
Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
Quote:
Originally Posted by Morkl View Post
It is in res/values[-locale]/strings.xml:
Code:
<string name="STR_HOME_RECENTLY_ADDED_BOOK">Recently Added</string>
There are a bunch of extra steps that need to be done to the APK in order to modify it and get it to work on the reader afterwards:

Tools needed: apktool, smali and dexopt-wrapper.

Procedure:
1: Disassemble EbookHome.odex using baksmali (baksmali -d frameworkdir -a 8 -x EbookHome.odex)
2: Reassemble into classes.dex using smali (smali -a 8 out -o classes.dex)
3: Put classes.dex into EbookHome.apk
4: Unpack EbookHome.apk with apktool (apktool d EbookHome.apk)
5: Make any changes in the newly created EbookHome directory
6: Repack with apktool, new apk ends up in EbookHome/dist directory (apktool d EbookHome)
7: Put the new apk on the sd card of the device
8: Run dexopt-wrapper on the device to get a new EbookHome.odex (in a shell on the device: dexopt-wrapper EbookHome.apk EbookHome.odex)
9: Remove classes.dex from the apk
10: Sign the apk with a suitable certificate
11: Run zipalign on the apk
12: Install on the reader

Or, if you just want the string "Recently Added" replaced with "Recently Read", you can use my modified files: http://morkl.se/reader/recentlyread.zip
Great post, thanks for posting the steps, will very helpful for developers new to Android wanting to modify any of the built-in Sony APKs!!
log is offline   Reply With Quote