[Galaxy S III Q&A, Help & Troubleshooting] webwolf_3000:
Hey guys,

I'm new to modding apk's on android, I've managed to tweak the Mms.apk file and install it, all fine. (it's an older GB app that's been ported to ICS) - I'm using Samsung Stock ROM with latest ICS build. Also using APKtool to decompile (which is working), but re-compiling is failing.

The problem is, I've changed the DPI on my phone, which looks amazing, but the SecEmail app is displaying the email list about 1" short of the right side of the screen. I've edited the xml files, but when I try to rebuild the same way I did with the Mms app, it bugs out and displays a lot of errors.

The SecEmail has an odex file, I'm thinking maybe this is the problem ??

Any help you guys can offer would be appreciated :)

Error is below:

c:\APKTool>apktool b SecEmail

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

invalid resource directory name: c:\APKTool\SecEmail\res/drawable-ar-rIL-sw359dp-xhdpi

invalid resource directory name: c:\APKTool\SecEmail\res/drawable-iw-sw359dp-xhdpi

invalid resource directory name: c:\APKTool\SecEmail\res/drawable-ja-sw359dp-xhdpi

invalid resource directory name: c:\APKTool\SecEmail\res/drawable-sw359dp-xhdpi

invalid resource directory name: c:\APKTool\SecEmail\res/mipmap-sw359dp-xhdpi

invalid resource directory name: c:\APKTool\SecEmail\res/mipmap-sw360dp-xhdpi

invalid resource directory name: c:\APKTool\SecEmail\res/values-sw359dp-hdpi

invalid resource directory name: c:\APKTool\SecEmail\res/values-sw359dp-xhdpi

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exe

c command: [aapt, p, -F, C:\Users\webwolf\AppData\Local\Temp\APKTOOL5226603785211608401.tmp, -I, C:\

Users\webwolf\apktool\framework\1.apk, -S, c:\APKTool\SecEmail\res, -M, c:\APKTool\SecEmail\AndroidM

anifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)

at brut.androlib.Androlib.buildResources(Androlib.java:248)

at brut.androlib.Androlib.build(Androlib.java:171)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:182)

at brut.apktool.Main.main(Main.java:67)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\webwolf\AppData

\Local\Temp\APKTOOL5226603785211608401.tmp, -I, C:\Users\webwolf\apktool\framework\1.apk, -S, c:\APK

Tool\SecEmail\res, -M, c:\APKTool\SecEmail\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:83)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)

... 6 more

--

Solution found:

The res framework needed some modifications to the resource xml files, and the app I was editing also needed a few modifications... guess the clue was in the error :)

--

Mods for GS3 stock rom:

Change DPI to 200 (done)

Set SMS fonts larger for easier reading under DPI 200 (done)

Set e-mail list / email reader to fill screen (Portrait done, landscape in work)

Set Dialer buttons to center, set background behind dialer buttons, make top buttons wider (in work)

Change SMS message list to display facebook status of contact in place of last message sent/received (in work)

Remove clock (in work)

Remove power bar / brightness slider (in work)