05-02-2010, 07:58 PM | #1 |
Edge User
|
App Fullscreen Converter Program (UPDATED MAY 17 2010)
A while back euser1 posted a nice guide on how to use an tool to decode/change/and rebuild apk files to work full screen on the eDGe. Needless to say I jumped right on this and started trying to convert everything I had to fullscreen. This led to a wide gamut of outcomes. From triumph (working) to utter defeat (losing my 'My Documents' folder). I came to the realization that a GUI would be nice to prevent those very pesky typos that cause problems in command line programs.
AndroidAppDecoder is a simple HTA (HTML Application) that presents a user interface and menus to control APKTool. I have only been able to test this on Window XP and only on 3 different computers. Because of these limitations I consider this 'late beta' quality. Instructions:
Update 1.2 May 17, 2010
*You will be asked to install a jdk if this file cannot find one installed. *Java JDK Download Link *Jarsigner is java's tool to digitally sign files. Android requires all Apk files to be signed. I know many of you are just as paranoid about internet downloads as I am therefore this is 'open source' because It uses Visual Basic and HTML code it is able to be viewed at plain text. Simply right-click AndroidAppDecoder.hta and open with Notepad to review the code. Please post any questions or feedback and I will do my best to address it. Last edited by ChrisF; 05-17-2010 at 09:22 PM. Reason: Updated for version 1.2 |
05-02-2010, 11:06 PM | #2 |
Edge User
|
Most clever. Has anyone noticed ChrisF rocks!?
|
Advert | |
|
05-03-2010, 08:59 AM | #3 |
Edge User
|
|
05-04-2010, 12:43 PM | #4 |
Edge User
|
This looks like it could be very useful. I'm running into a problem, however: it can't find the JDK on my Windows 7 system. My PATH variable has ";C:\Java\jdk1.6.0_19\bin" added to the end. I can't figure out why it can't find it since I see in the code that it's looking at PATH for it. Am I missing something? (Very possible since it's been over a decade since I've played around with Java.)
|
05-04-2010, 01:20 PM | #5 | |
Edge User
|
Quote:
Until I can get time to see what is different with Win7, you could try to comment the javadetecter call in Window_onLoad and then add Java_Path = "C:\Java\jdk1.6.0_19\bin" Comment is just a single apostrophe in vbs. Please let me know how that works out, and I'm sorry it did not work for you. PS: I really need the get myself an external keyboard. |
|
Advert | |
|
05-04-2010, 02:00 PM | #6 |
Edge User
|
ChrisF, thanks! That did the trick. For those who may run into the same problem the fix is easy. Open AndroidAppDecoder.hta in Wordpad (Notepad can often mess up program files) after making a copy for insurance. Find the following line about 1/4 of the way through the file:
JavaDetecter 'Find Java Install Directory Change to: Java_Path = "C:\Java\jdk1.6.0_19\bin" 'Set Java Install Directory (Your Java Path will likely be different since I specified directory when I installed Java. e.g.- It might be C:\Program Files\jdk1.6.0_19\bin) Save. It should work now, assuming the JDK was already in the PATH environmental variable. (Part of the bypassed subroutine sets that variable if unset.) ChrisF, This will work on the majority of Android apps. However, occasionally the manifest.xml needs to be further changed for screen size. Here's the problem line from an app I recently altered (Droid Comic Viewer): Code:
<supports-screens android:smallScreens="true" android:largeScreens="false" anyDensity="false" /> |
05-04-2010, 03:21 PM | #7 | |
Edge User
|
Quote:
I made the HTA a three click process so that the source files could be changed manually if need be. After you click decode, all source and resources will be in a folder created at \Apps\<AppName>. You can then open and edit the AndroidManifest.xml file there. (Side note: The APKtool author suggested I add the -s (skip sources) switch to the decode to increase performance, I omitted this so that the source files do appear and can be edited.) I will look into searching for largeScreen and anyDensity to automatically change them, luckily this should be a simple XML node attribute query. Does anyone know of any other manifest items I should look for? The problem with converting apps that I have run into is that there are no 9patch images or layouts are defined in actual pixels and not dips. Correcting these issues is currently beyond the scope of this file. |
|
05-04-2010, 04:29 PM | #8 |
Edge User
|
Thank you, ChrisF. I should have noticed that you can edit between processes.
As far as I can see the HTA isn't calling zipalign after the signing. I'm wondering if that's not something ever really necessary in practice for Android apps or if I should continue to run zipalign manually afterward? |
05-05-2010, 01:22 PM | #9 |
Edge User
|
I'm having a little trouble getting this to work. I'm running Windows 7, as an administrator. I installed the JDK, then extracted the Android App Decoder. When I try to run AndroidAppDecoder.hta, I get the following error: "An error has occurred in the script on this page. Line: 166, Char: 3, Error: Permission denied, Code: 0. Do you want to keep running scripts on this page? If you click "Yes", the program opens to a blank screen (just the blue background). I'm not a programmer, so this is more or less gibberish to me. Can anybody help?
|
05-05-2010, 05:47 PM | #10 | |
Edge User
|
Quote:
|
|
05-06-2010, 04:18 PM | #11 |
Edge User
|
Thanks, Chris
In the meantime, has anybody tried to rebuild Evernote as full screen? |
05-10-2010, 05:13 AM | #12 | |
Edge User
|
Quote:
Thanks a bunch. |
|
05-10-2010, 04:17 PM | #13 |
Edge User
|
I was trying to rebuild the "Skyfire-Android" but after I clicked on the Build Android App Button, it gives me an error:
ERROR: Cannot verify file signature, please delete the files and try again. (This may be due to very large apk files.) Help! Last edited by grafix; 05-10-2010 at 04:23 PM. |
05-11-2010, 05:59 PM | #14 |
Edge User
|
Don't find automatically apps in Apps directory.
I launch the small programm from ChrisF but I can't choose any apk even if I put them in the good directory.
Chris have you an idea? Thanks and you know what you rock because now I don't need to learnhow to code apk aplication. |
05-11-2010, 06:16 PM | #15 |
Edge User
|
That happened to me several times as well (with different apk files). I closed the program and retried, in all cases it completed correctly on the 2nd or 3rd attempt.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iPhone 4 Case Program App available | HarryT | Apple Devices | 7 | 07-26-2010 01:08 AM |
DR800 Pageflow/fullscreen with UI | yacoob | iRex Developer's Corner | 3 | 07-10-2010 03:51 AM |
Txt/PDF to Speech Converter program | reamo | Apple Devices | 4 | 05-28-2010 01:33 PM |
Output Iliad Fullscreen | Arnau | Calibre | 4 | 04-17-2010 06:27 AM |