Yes I have it. But does this function? It has something with ads in it and another option.
Do I need to do something more with it?
Thanks!
Stijn
Posted via CB10
Yes I have it. But does this function? It has something with ads in it and another option.
Do I need to do something more with it?
Thanks!
Stijn
Posted via CB10
Meanwhile, as a first step to get there, here is version v2.7. No changes on the patch process itself, mostly on the usability.
Changelog:
- Added add_apk_here folder for automatic apk folder scan (changed from main folder for usability)
- Automatic Java detection via registry (no more setting or editing JAVA_HOME required)
- Added logging to file capability for easy debug (patch.log in main folder)
- Using 32 bit version of all utilities for safety
- Replaced winrar with 7zip command line version (no more winrar and WINRAR_HOME required)
- Force using 32 bit openssl from tools folder (no more openssl config required)
- Simplified folder structure of the app:
ROOT
add_apk_here - folder where you drop your apk(s) for patching
patched_apk - folder where you will find patched apk(s)
tools - folder with all the tools needed grouped in a single folder- Replaced apktool.bat, signapk.bat with direct java commands for usability
- Grouped all tools and resources needed under tools folder for usability
Testers needed as always :)
Enjoy.
Thanks for doing such a great job, all of you.
What I am looking for is a way to actually sign in to Google Play services so Maps has all my recent destinations and Music gives me access to my songs I paid for (yeah, I know, I paid for music...)
Is there a solution for this on my Z30?
Christian, nice job. The problems with java have been a pain. Hope that we now can convince more ppl to use the patcher!
Regards from Switzerland!
I have problems with v2.7. Here is a transcript of my CMD window:
C:\gmaps-apk-patcher-v2.7>patch
Error: The system was unable to find the specified registry key or value
Using \bin\java
The system cannot find the path specified.
Error: A Java installation was not found, you cannot continue without it
USAGE:
patch.bat
or
patch.bat apk-file.apk
Press any key to continue . . .
Windows XP / SP3
C:\Program Files\Java\jdk1.7.0_13
C:\Program Files\Java\jre7
version 2.7 :
Error: You do not have administrator privileges
USAGE:
patch.bat
or
patch.bat apk-file.apk
Hi,
Weird.. I do not have access to a WinXP machine. Can you please try the following two commands in a command prompt and see what they return:
You should get something like:Code:REG QUERY "HKLM\Software\JavaSoft\Java Runtime Environment" /v CurrentVersion
REG QUERY "HKLM\Software\JavaSoft\Java Development Kit" /v CurrentVersion
Also, to check JavaHome you can try:Code:HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment
CurrentVersion REG_SZ 1.7
or
HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Development Kit
CurrentVersion REG_SZ 1.7
Code:REG QUERY "HKLM\Software\JavaSoft\Java Runtime Environment\1.7" /v JavaHome
or
REG QUERY "HKLM\Software\JavaSoft\Java Development Kit\1.7" /v JavaHome
Ah, yes, sorry about that. Some testing code that is unnecessary was not removed.
Here is version 2.7.1 that fixes that.
Regards.
Nice to see you back, Christian, and thanks for the update. maybe it's just me, but i keep getting this error in CMD:-
C:\gmaps-apk-patcher-v2.7.1>patch.bat
ERROR: Invalid key name.
Type "REG QUERY /?" for usage.
'chgcolor.exe' is not recognized as an internal or external command,
operable program or batch file.
'wtee' is not recognized as an internal or external command,
operable program or batch file.
BTW, i'm running this on a windows 8 64bit PC.
C:\gmaps-apk-patcher-v2.7>REG QUERY "HKLM\Software\JavaSoft\Java Runtime Environment" /v CurrentVersion
! REG.EXE VERSION 3.0
HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment
CurrentVersion REG_SZ 1.7
C:\gmaps-apk-patcher-v2.7>REG QUERY "HKLM\Software\JavaSoft\Java Development Kit" /v CurrentVersion
! REG.EXE VERSION 3.0
HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Development Kit
CurrentVersion REG_SZ 1.7
C:\gmaps-apk-patcher-v2.7>REG QUERY "HKLM\Software\JavaSoft\Java Runtime Environment\1.7" /v JavaHome
! REG.EXE VERSION 3.0
HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment\1.7
JavaHome REG_SZ C:\Program Files\Java\jre7
C:\gmaps-apk-patcher-v2.7>REG QUERY "HKLM\Software\JavaSoft\Java Development Kit\1.7" /v JavaHome
! REG.EXE VERSION 3.0
HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Development Kit\1.7
JavaHome REG_SZ C:\Program Files\Java\jdk1.7.0_13
C:\gmaps-apk-patcher-v2.7.1>patch
Error: Invalid key name
'chgcolor.exe' is not recognized as an internal or external command,
operable program or batch file.
'wtee' is not recognized as an internal or external command,
operable program or batch file.
I resolved those errors on my Windows XP / SP3:
1. I replaced 'chgcolor.exe' with 'color' AND I used lower-case hex digits (e.g., 'color 0f') in patch.bat
2. I temporarily added 'C:\gmaps-apk-patcher-v2.7.1\tools' into the global PATH variable
After I applied the aforementioned fixes, the errors are
C:\gmaps-apk-patcher-v2.7.1>patch
Error: The system was unable to find the specified registry key or value
Using: \bin\java
The system cannot find the path specified.
Error: A Java installation was not found, you cannot continue without it
USAGE:
patch.bat
or
patch.bat apk-file.apk
Press any key to continue . . .
Thank very much for the feedback. Here is version v2.7.2 with improved auto detect for java x86 or x64. Give it a try. Finger crossed :)
Thank you very much for testing Please try v2.7.2. Hope is ok now.
Maybe it's just me, but i think there is still Java detection issue on v2.7.2. i keep getting this error in CMD when trying to patch apps:-
\Java\jre7 was unexpected at this time.
C:\gmaps-apk-patcher-v2.7.2>
Missing bloody quotes...
Ok, v.2.7.3, last try until monday. In weekend I'm testing from a mac connected remotely on a Win 7 PC. So be gentle.. :)
I found two errors in patch.bat:
1. Apparently reversed x86/x64 logic for setting JAVA_HOME (WOW6432Node is not in my x86 registry)
2. A trailing space in REG QUERY (right after the version number; apparently introduced by the trailing space in "SET JAVA_VERSION=%%B")
Is: REG QUERY "HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment\1.7 " /v JavaHome
Should be: REG QUERY "HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment\1.7" /v JavaHome
After I fixed those errors in my patch.bat, patching of one .apk went as I expected on my x86. (I have no x64 environment to test my changes.)
Our beloved quotes in CMD.... :-)
v2.7.3 is working without any problem. Thanks for the hard work you put into this.
Posted via CB10 using my Gorgeous Z10
I found the same issues that I found in v2.7.2. I applied my same fixes.
Thanks. See here (is just the patch.bat file, as zip, with your suggestion).
:yes: finally...
I'm trying to get the Pokerstars apk to work on my blackberry, it shows "setting up for the first time" and it crashes..
Attachment 252029
So i decided to check if it has some google service attached, i used the this patch (version 2.7) and it built 2 apks, i installed both on my device but the app still crashes and closes itself..
I don't know what causes that, can i have some assistance here? there's any way i can discover what is causing the shutdown?
thanks in advance
It works ok on my WinXP PC. Thanks for your support.
Edit 03-04-2014: Got warnings when I patched OpenTable v3.4.1.203 with v.2.7.3b-bat:
[REBUILDING APK]
I: Using Apktool 2.0.0-Beta9 on com.opentable-1013341
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'oauth_key' has no default translation in C:\gmaps-apk-patcher-v2.7.3\com.opentable-1013341\res; found: de
aapt: warning: string 'oauth_secret' has no default translation in C:\gmaps-apk-patcher-v2.7.3\com.opentable-1013341\res; found: de
aapt: warning: string 'opentable_continue_as_guest' has no default translation in C:\gmaps-apk-patcher-v2.7.3\com.opentable-1013341\res; found: de
aapt: warning: string 'partner_id' has no default translation in C:\gmaps-apk-patcher-v2.7.3\com.opentable-1013341\res; found: de
I: Building apk file...
I: Copying unknown files/dir...
(Done)
Had the same with some apks. Not related to the patcher. Should compile and install ok.
Hi everybody, got this error messaging trying to patch Car2Go apk (with patcher v2.7.3):
PROCESSING FILE: com.car2go-118.apk
PROCESSING MODE: AUTODETECT
DECOMPILE RESOURCES: [YES]
TRY TO REMOVE ADS: [NO]
DEBUG MODE: [NO]
[DECOMPILING APK]
I: Using Apktool 2.0.0-Beta9 on com.car2go-118.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\gzerbinati\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling...
Cleaning up unclosed ZipFile for archive C:\Users\gzerbinati\apktool\framework\1
.apk
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
(Done)
[CHECKING FOR GOOGLE DEPENDENCIES]
Google Maps API v1 detected
|
[PATCHING API v1]
[EXTRACTING ORIGINAL RSA/DSA CERTIFICATE]
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Processing archive: C:\Personali\BB_APPS_BAR\gmaps-apk-patcher-v2.7.3\com.car2go
-118.apk
Extracting META-INF\CERT.RSA
Everything is Ok
Size: 668
Compressed: 3552766
(Done)
[GENERATING MD5 FINGERPRINT]
c5b0623fb6a25d88bdaf3b592387d995
(Done)
[PATCHING ANDROID MANIFEST]
(Done)
[DECOMPILING GOOGLE MAPS]
I: Using Apktool 2.0.0-Beta9 on com.google.android.maps.jar
I: Baksmaling...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
(Done)
[COPYING GOOGLE MAPS RESOURCES]
214 File(s) copied
(Done)
[PATCHING MD5 SIGNATURE]
(Done)
[REBUILDING APK]
I: Using Apktool 2.0.0-Beta9 on com.car2go-118
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" org.jf.util.ExceptionWithContext: Unsigned short valu
e out of range: 66302
at org.jf.dexlib2.writer.DexDataWriter.writeUshort(De xDataWriter.java:11
6)
at org.jf.dexlib2.writer.InstructionWriter.write(Inst ructionWriter.java:
312)
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexW riter.java:980)
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeI tems(DexWriter.java
:759)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter. java:214)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter. java:192)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:58)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib. java:338)
at brut.androlib.Androlib.buildSources(Androlib.java: 299)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
(Done)
[SIGNING APK]
The system cannot find the file specified.
java.io.FileNotFoundException: com.car2go-118.apk (The system cannot find the fi
le specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:320)
The system cannot find the file specified.
(Done)
[CLEANING UP]
(Done)
Any suggestions?
Thanks a lot
G.