Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Android Devices > enTourage eDGe > enTourage Archive

Notices

 
 
Thread Tools Search this Thread
Old 05-02-2010, 07:58 PM   #1
ChrisF
Edge User
 
Thumbs up 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
  • Changed internet hosting, but had to remove APK files from zipped package due to bandwidth limitation
  • Added option "Skip Source" (speeds up decoding time on your computer)
  • Added option "Run ZipAlign" (increases the apps performance in ram on the eDGe. Recommended for all android apps)
  • Fixed issue with spaces in path names
  • Modified Java Detecter algorithm
  • Added Manual JDK error recovery, user types in JDK location, must see javac.exe in folder.
  • Added Pref File
  • -- Saves JDK Install location
  • -- Saves last used APK, preselects it on window refresh
  • Added Reset button: Clears contents of Pref file.
  • EditXML now changes more than minSdkVersion
  • -- Changes Supported Screens for large
  • -- Changes screen density to any
Because this uses Jarsigner you must have a Java Development Kit (jdk) installed on your computer.
*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
 
Old 05-02-2010, 11:06 PM   #2
kenjennings
Edge User
 
Most clever. Has anyone noticed ChrisF rocks!?
 
Advert
Old 05-03-2010, 08:59 AM   #3
brauckmiller
Edge User
 
Quote:
Originally Posted by kenjennings View Post
Most clever. Has anyone noticed ChrisF rocks!?
Yes...yes he does.
 
Old 05-04-2010, 12:43 PM   #4
Dellaster
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.)
 
Old 05-04-2010, 01:20 PM   #5
ChrisF
Edge User
 
Quote:
Originally Posted by Dellaster View Post
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.)
It checks the path variable to make sure that the java command works (java -jar apktool.jar). It actually uses the registry to find the java directory. On the XP machines I tested on this was always HKEY_Local machine/ software/ javasoft/ java development kit. Then there is a key CurrentVersion that identifies the subfolder that contains another key JAVAHOME that points to the install location.

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
Old 05-04-2010, 02:00 PM   #6
Dellaster
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" />
The "false" entries needed to be changed to "true" before it would run full screen. Perhaps the program could either look for and change such lines, or it could optionally pause and allow manual manifest.xml editing between decoding and the rest of the process.
 
Old 05-04-2010, 03:21 PM   #7
ChrisF
Edge User
 
Quote:
Originally Posted by Dellaster View Post
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" />
The "false" entries needed to be changed to "true" before it would run full screen. Perhaps the program could either look for and change such lines, or it could optionally pause and allow manual manifest.xml editing between decoding and the rest of the process.
Thank you for the feedback.

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.
 
Old 05-04-2010, 04:29 PM   #8
Dellaster
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?
 
Old 05-05-2010, 01:22 PM   #9
ayersem
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?
 
Old 05-05-2010, 05:47 PM   #10
ChrisF
Edge User
 
Quote:
Originally Posted by ayersem View Post
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?
I plan to have another release soon (After Finals) that corrects the issues brought up so far, including running zipalign (thanks Dellaster). From that error message it seems that windows7 does not like the only way that I know how to update system environment variables. I will search around and see if there is another way to make that work in win7. Thanks for reporting that ayersem.
 
Old 05-06-2010, 04:18 PM   #11
ayersem
Edge User
 
Thanks, Chris

In the meantime, has anybody tried to rebuild Evernote as full screen?
 
Old 05-10-2010, 05:13 AM   #12
Yellowman1
Edge User
 
Quote:
Originally Posted by ChrisF View Post
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. Thus AndroidAppDecoder is born.

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:
Because this uses Jarsigner you must have a Java Development Kit (jdk) installed on your computer.
*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.
Does anyone know or have another download link for the AppsDeecoder file? MediaFire is not letting me download the file (it keeps processing my download but doesn't actually give me the option to download). If anyone can post the .zip file or an alternate download link, I'll really appreciate it. Or if you PM me I can send you my email address and you can email it to me.

Thanks a bunch.
 
Old 05-10-2010, 04:17 PM   #13
grafix
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.
 
Old 05-11-2010, 05:59 PM   #14
xavier
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.
 
Old 05-11-2010, 06:16 PM   #15
cheyennedonna
Edge User
 
Quote:
Originally Posted by grafix View Post
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!
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.
 
 


Forum Jump

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


All times are GMT -4. The time now is 05:10 PM.


MobileRead.com is a privately owned, operated and funded community.