yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] jelle2503:
Succesful patching with latest patches of CM10 for Galaxy S i9000 nightly 10/14 (with your commit merged)

http://codepad.org/eh2hP3fE

But getting Pdroid force closes. Second time it opens up but shows only 1 app in user, and 1 in system. Upon refresh it FC again.

logcat here:

http://pastebin.com/4fLukFmn
[Android Software/Hacking General [Developers Only]] wafro:
First of all, thanks for your hard work mateo!

Tried the new patches with ParanoidAndroid v2.2 for Samsung Galaxy S3.

Error log attached ;)

It also fails at ServerThread.smali like before but now there are more errors.
[Android Software/Hacking General [Developers Only]] D-m-x:
Yeah, same on PA 2.20 for the Nexus 7. Think it's Rom related as mentioned before since the AOKP 4.1.2 Builds work flawless.
[Android Software/Hacking General [Developers Only]] lordgodgeneral:
Just moved to CM10 Experimental M2 for the Galaxy Nexus (toro), and the auto patcher ran just fine, no errors, but when flashing the update zip for some reason it wipes out all my on screen buttons (back, home, recent apps, search). The buttons still work when hitting where they should be, so it seems like something messed with the image files for the buttons. Flashed the restore and all is well, first time doing a jb rom and didn't expect that to happen.

Update 10/17 - Repatched using the 10/15 patch. Worked great, Pdroid is working fine, no problems with onscreen buttons.
[Android Software/Hacking General [Developers Only]] spc_hicks09:
Trying now lol thanks man!

--------------------------------------------------------------------------------------------------------------------------------------------

No-go lol, trying sudo apt-get install openjdk-7-jre

--------------------------------------------------------------------------------------------------------------------------------------------

Still the same error lmao. I'm about to just give up.

This is all I get in the log file:

### verify tools ###
/usr/bin/patch
/bin/tar
[Android Software/Hacking General [Developers Only]] mithrial:
Works seamlessly and fast and reliable. Awesome work.

Thanks you for it.
[Android Software/Hacking General [Developers Only]] kobik77:
Any chance for Jelly Bean compatibility ?

And adding Cygwin support by default?
[Android Software/Hacking General [Developers Only]] mateorod:
We have struggled with attempting to support SlimIcs before. I will look into whether there is any source code available for Slim. If so, maybe we can add support since it is so popular.

I will look at the cygwin stuff today. I actually added the script addition you recommended, but it pops out a syntax error (running straight Linux, anyway.)

I haven't added cygwin support to a script before. Do you think I could contact you by pm and use some of your experience?

what is the output of

java -version

and

patch -version
[Android Software/Hacking General [Developers Only]] kobik77:
What kind of error?

You can feel free contacting me on PM.
[Android Software/Hacking General [Developers Only]] pastime1971:
see the post #2, prerequisite #2

you need java and jar (from either openjdk or sun)

on fedora, jar is installed by "yum install java-1.7.0-openjdk-devel"

i do not know about ubuntu though.

edit: i

think

that jre is probably java runtime engine (java). jdk is development kit (jar)
[Android Software/Hacking General [Developers Only]] spc_hicks09:
I already have both of those installed and still get the same error about jar missing. If I check my JDK version in terminal I get this:

ghicks09@ubuntu:~$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
OpenJDK Client VM (build 20.0-b12, mixed mode, sharing)

For the life of me I can't understand why the script isn't working lol.
[Android Software/Hacking General [Developers Only]] pierx:
maybe you can try oracle java 7 from webupd8 ppa
[Android Software/Hacking General [Developers Only]] pastime1971:
what about jar ?

can you do

which jar

or

jar -h

before you install anything else ?
[Android Software/Hacking General [Developers Only]] mateorod:
Does the version information still come up if you move out of the home directory?

Something is wrong with your path, most likely. From your home directory

sudo gedit .bashrc

add to the bottom of the file

export JAVA_HOME=path/to/jdk1.6.0_31
export PATH=$JAVA_HOME/bin:$PATH

or maybe even better try reinstalling the jdk using these pretty straightforward directions

How to install JDK 7

Edit: Look at all this help lol! The fact that your java -version says IcedTea makes me think that is just the java alternative that cam packed with your distro. It won't help you without some configuration, at the least, and I have only had success installing the sun version myself.
[Android Software/Hacking General [Developers Only]] pastime1971:
i did test the auto patcher on a system with OpenJDK only before (fedora 14) and it worked.

I just installed fedora 16 last week. i will test it again in a minute.

edit: i confirm it works on a linux machine with OpenJDK only (you do need both java and jar)

$ ./ap/auto_patcher ../cm-9-20120702-NIGHTLY-p930.zip
### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
### probe rom type ###
inflated: system/build.prop
### unzip rom ###
inflated: system/framework/core.jar
inflated: system/framework/framework.jar
inflated: system/framework/services.jar
### create updater script ###
inflated: META-INF/com/google/android/update-binary
inflated: META-INF/com/google/android/updater-script
### using Clockworkmod installer ###
### create restore.zip ###
### decompile framework.jar ###
... extract preloaded-classes ...
### decompile core.jar ###
### decompile services.jar ###
### patch pdroid/cm9/latest ###
### apply framework.patch ###
Reversed (or previously applied) patch detected! Skipping patch.
38 out of 38 hunks ignored -- saving rejects to file smali/android/net/wifi/WifiConfigStore.smali.rej
... apply preloaded.patch ...
### apply core.patch ###
### apply services.patch ###
### patch v6supercharger/cm9/latest ###
### apply services.patch ###
### rebuild framework.jar ###
### rebuild core.jar ###
### rebuild services.jar ###
### create updater.zip ###
### finished ###
flash update.zip to install the modified
flash restore.zip to restore the original

edit: the log file should look like in the beginning

### verify tools ###
/usr/bin/patch
/usr/bin/tar
/usr/bin/jar
/usr/bin/java

### verify ROM ###
# running ./ap/auto_patcher ../cm-9-20120702-NIGHTLY-p930.zip

the fact that it stopped after /bin/tar in your case makes me think that you don't have jar.

edit: anybody know how to install jar/openjdk on ubuntu ? it looks like JRE only installs java.
[Android Software/Hacking General [Developers Only]] pierx:
Right, openjdk in ubuntu software center is just runtime.

to install openjdk jdk package

sudo apt-get install openjdk-7-jdk

How to download and install prebuilt OpenJDK packages
[Android Software/Hacking General [Developers Only]] pastime1971:
thansk, pier10.

edit: just in case anybody is using

fedora

(i do), it is "yum install openjdk-1.7.0-

devel

" in fedora. as you see, the package name can vary depending on which distro.
[Android Software/Hacking General [Developers Only]] spc_hicks09:
Thank you so much! I was installing openjdk from the software center and couldn't get it to work, or some reason using that command in terminal worked perfectly!!! At first it said it couldn't find my ROM (KOA_AOKP.zip) but I just had to change the "_" to a "-" and it worked flawlessly.

Edit: Spoke too soon lol, it makes it almost all the way through, then I get an error patching framework haha. Could this be because AOKP isn't officially supported on my device so I had to port it? The ROM itself runs perfectly on my phone. However, there have been a lot of issues with the ICS framework-res.apk being decompiled.

### apply framework.patch ###
Reversed (or previously applied) patch detected! Skipping patch.
14 out of 14 hunks ignored -- saving rejects to file smali/android/app/Fragment.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file 'smali/android/app/LoaderManagerImpl$LoaderInfo.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/content/CursorLoader.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/content/Loader.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file smali/android/database/sqlite/SQLiteClosable.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
36 out of 36 hunks ignored -- saving rejects to file smali/android/net/wifi/WifiConfigStore.smali.rej
4 out of 5 hunks FAILED -- saving rejects to file smali/android/view/SurfaceView.smali.rej
[Android Software/Hacking General [Developers Only]] stiltzkin:
Looks like I was able to successfully apply the patches for both PDroid and V6 to my latest CM9 nightly (Inc), but when I try to install PDroid from Google Play it just tells me that ICS isn't supported yet. Am I missing something here?

Here's the patch log just in case.
[Android Software/Hacking General [Developers Only]] kobik77:
Silly question, but...

Did you install the patch?
[Android Software/Hacking General [Developers Only]] mateorod:
it looks like you mistyped the run command and only applied the v6 patch.

instead of this

./auto_patcher /home/stiltzkin/Desktop/dinc-CM9-invisiblek-KANG-07-01-2012-1704.zip -pdroid,v6supercharger

try it without the dash like this...

./auto_patcher /home/stiltzkin/Desktop/dinc-CM9-invisiblek-KANG-07-01-2012-1704.zip pdroid,v6supercharger
[Android Software/Hacking General [Developers Only]] kobik77:
How to patch under Windows

Why?

No need for Linux machine or VM

Setup in just a few minutes

Quick and clean way

You're a Linux hater/phobic! :p

How?

Install Cygwin

When selecting packages to install make sure you select the following packages under utils:

patch: utility for modifying/upgrading files

cpio: A backup and archiving utility

Install JDK

Add JDK binaries path to your Windows PATH variable. For example for version 1.7.0_05 it would contain the following path

C:\Program Files\Java\jdk1.7.0_05\bin

Read below how to edit PATH variable

Download and extract autopatcher 2012070270 or later

Run Cygwin Terminal

cd /cygdrive/path_to_autopatcher. i.e. for e:\downloads\ap

cd /cygdrive/e/downloads/ap/

Run

./auto_patcher ROM.ZIP MODS [ROMTYPE] [PATCHDATE]

Copy both generated files update.zip and restore.zip to your phone's sdcard

Install update.zip from recovery

How to edit PATH variable

Windows 7

Select Computer from the Start menu

Choose System Properties from the context menu

Click Advanced system settings > Advanced tab

Click on Environment Variables, under System Variables, find PATH, and click on it.

In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.

Reopen Cygwin Terminal window, and run your java code.

Windows XP

Start -> Control Panel -> System -> Advanced

Click on Environment Variables, under System Variables, find PATH, and click on it.

In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.

Close the window.

Reopen Cygwin Terminal window, and run your java code.

Windows Vista

Right click My Computer icon

Choose Properties from the context menu

Click Advanced tab (Advanced system settings link in Vista)

In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.

Reopen Cygwin Terminal window, and run your java code.
[Android Software/Hacking General [Developers Only]] pastime1971:
looks great...

thanks, kobik77
[Android Software/Hacking General [Developers Only]] stiltzkin:
Tried it again without the dash - still getting the same message from PDroid. Is it possible I need to wipe data/cache for this to work? I'll try again with a fresh wipe, ROM .zip and double-check the commands I guess.
[Android Software/Hacking General [Developers Only]] Didgesteve:
Thanks for all your hard work. I've used autopatcher in the past and it worked like a charm.

Now the latest JZO54K build is here and it fails.

I am trying to pdroid patch Slim Beam 2.7, which I believe is CM10 based.

the log is attached
[Android Software/Hacking General [Developers Only]] chrootz:
Question.... is the AOSP ICS 4.0.4 uses cm9? I tried different parameters and no success patch on SynergyROM ICS 4.0.4 (http://xdaforums.com/showthread.php?t=1792499)

The ROM for Verizon Galaxy S III, itself completely OTA stock with debloat and some tweak and any suggest?
[Android Software/Hacking General [Developers Only]] mateorod:
Okay, I have reverted those last patches. Better to have patches that work for some people and fail for others than patches that successfully complete yet produce flawed zips.

I have gotten to be pretty good with git and repo, but at this point I am somewhat stymied as to what the problem actually is. As I have tried to gather various nightlies to test upon, I have seen a bunch of devices have actually not completely resumed nightlies since the upgrade to 4.1.2.

I am going to start from a fresh source, which is going to take awhile. My heart and head says that my source is fixable, but the results keep saying otherwise. And without a Android device to test upon (two broken screens on the groupers I bought, regretting that entire choice) this has been a tough nut to crack.

So, sorry for the less than complete coverage at the moment. It appears as though CM releases from the 10/14 on have been sucessfully patched, but that we are having trouble with some of the derivatives. I will continue to work on it, but I can't keep pounding my head against this same issue. We are going to start fresh and see where that gets us. Thanks for the tests, everyone.

Edit: And for the person trying for AOSP ICS, that has always been a very spotty area for the patcher. Any deviation from straight AOSP causes the patches to fail. Our ICS support had been closed, as you can see it is all I can do to keep up with Jellybean. But I will recommend trying CM10, I have seen it work for an AOSP kang before...
[Android Software/Hacking General [Developers Only]] RuffBuster:
Just tried patching X-Bean v3 (4.1.2) for Galaxy S using AOSP-JB PDroid + V6 SuperCharger. Failed.. but has worked only a day or 2 back.

My CodePage Log here
[Android Software/Hacking General [Developers Only]] mateorod:
I am pretty sure I mentioned that all of the patches that have shipped (outside of a couple brief tests patches) ship with every installment of the auto-patcher. If the newest aosp-jb patches don't work on a ROM you had working patches for, then use the older patches.

Now if it is a newer build date then I don't know what to say about that, we're still struggling through making some current patches. But if you have the exact rom you were able to patch before, then those patches are still in your patch folder.

use the -h flag to see what is available, but offhand I would suggest appending 'aosp-jb 20120817'.
[Android Software/Hacking General [Developers Only]] kobik77:
New ApG is up :cowboy:

http://xdaforums.com/showpost.php?p=31648393&postcount=690
[Android Software/Hacking General [Developers Only]] mateorod:
Auto-Patcherv2.1.7

has been uploaded to our download page. Should be available for all platforms in a manner of minutes. As always, ApG users can get at it right away. (Any C or C++ devs interested on contributing, we are looking for a new team-member who could put together a basic Linux GUI...)

This has been a messy update folks, I appreciate the patience as we try and muddle through the problems these manifold framework changes have caused us. It feels good to know we've earned the goodwill that is your patience by being stable for so long.

I would have a hard time sticking out all this testing, so i appreciate your time.

I am updating the Auto-Patcher so we can keep our versions and patches straight. I succumbed to the temptation of instant testing, and I don't think that was helpful. Well, the testing itself was VERY helpful, more that I think my distribution practices were confusing.

This 2.1.7 update sure seems to work correctly. We'll find out. I have patched a couple of grouper, i9300 and n7000 builds as well as several AOKP nightlies.

You may see some ignored hunks, again that is simply because it is trying to move classes into the framework2.jar that are already there. Don't sweat those. Failures to ContextImpl$20 or $18 (GAH!), well then we may have to go back to the drawing board.

Please try nightlies from the 14th or so or later if you can to keep us from going crazy
[Android Software/Hacking General [Developers Only]] Klaus N.:
@mateorod

At first I want to thank you for the 2.1.7-version - great job as always!

Furthermore I have to apologize for my post yesterday. I think there was a problem with my device, so that I couldn't build a new application list in PDroid (fc's). A full wipe resolved the problem. Sry, it was my mistake!

Thank you for your understanding.

Klaus.
[Android Software/Hacking General [Developers Only]] Gargantuantua:
I'm trying to install Pdroid but I'm not sure how. I have my sgs3 pluged in and ApG up I selected Pdroid and Aokp-jb, hit start. It said it completed. Went to recovery reflashed my ROM and don't see period. What'd I do wrong?
[Android Software/Hacking General [Developers Only]] KicknGuitar:
I gave the latest auto-Patcher a try with the most recent CM10 available (it's still from September). No dice. I get the ContexImpl$20 Failure. Would you like the log? -Edit: Attached log anyway.

CM10-120904-NIGHTLY-Defy.zip
[Android Software/Hacking General [Developers Only]] mateorod:
Okay, we obviously need a refresher here. I am working on making this even easier, with a more precise rom query but these recent changes interrupted me.

Whenever a new auto-patcher is released, when you run a rom through it, the program will attempt to use the latest patches. In this case, the latest patches are from today.

If you are patching an older rom, you need older patches!

Every release of the auto-patcher comes with every patch we have ever released. So you can patch older roms with new releases. But you must tell the program you are running an older rom!

Look at your build.prop in /system if you do not know your build date. Then run the autopatcher like so:

./ auto_patcher <ROMNAME>.zip -h

It wont be pretty, but it will list every patch date for every mod. Pick the date directly before your build date.

Then run the autopatcher with that patch date specified:

./auto_patcher <ROMNAME>.zip pdroid cm10 20120826

.

That might be the command if your rom is from September. I don't have the dates in front of me. I am pretty sure you quoted me when I said the new patches were for roms from 10/14 and up. If it is a cm10 rom, there is a 99% chance we can patch it, this last week excepted as we test new patches. But the current patches seem to work.

If it fails, try some of the bordering patch dates. If the rom type is a device-specific custom build, try other rom types (cm10, aokp-jb, aosp-mod, etc.). There isn't that much actual unique rom development happening around here, usually one of the standard ROMTYPES does the trick
[Android Software/Hacking General [Developers Only]] defim:
@mateorod: What about to first try if a patch matches ("patch --dry-run") and if not try all older ones?
[Android Software/Hacking General [Developers Only]] mateorod:
We have kicked that around. We need more people on the job, is what it comes down to. Just keeping the patches updated has been an incredible task lately, I am not gonna kid you guys. If you think about the array and error checking to make that work, it is a pretty big enhancement. Especially when you consider the premade files we have loaded into the patches. For instance, if it fails on one of maybe 10 specific files, the script will ask if you want it copied over. A couple other commonly failed patches are automatically copied before we even run a patch. Working out that logic is of course doable, it just takes time I haven't had.

There are other factors with that specific suggestion, but you get the idea. The maintenance of the PDroid patches have just about swallowed up the time I can give to the project.

I have the framework in place for the script to automatically query the ROM for the best-match patch date through the UTC line in the build.prop. After these PDroid patches get settled, that is my next step. Hopefully, that will take one of the most common errors off the board, for the most part. After that we'll see.

In the meantime, The Auto-Patcher is open-source and more than receptive to community involvement- as we say on our README, "Pull requests are Treasured!"

TMI? lol. I could have swore you asked for all that whining.
[Android Software/Hacking General [Developers Only]] horqai:
Still no luck with PA 2.20 for Nexus 7 http://codepad.org/exzKDKuX

Anyway - mateorod; you are giving the most relaxed and indefatigable support I've seen in XDA! Thank you for your time!! :good:
[Android Software/Hacking General [Developers Only]] jelle2503:
Succesfull patching again, but I suppose the last time I tried it was the same patches, since I get force closes on my phone app again.

http://codepad.org/IOGsBJNS

Logcat of phone FC:

http://pastebin.com/1D9QrDnT

Also I had no feedback on my previous post, which I suppose contains the same info as this post =(
[Android Software/Hacking General [Developers Only]] beginnerteur:
Hey guys,

the Auto-Patcher worked fine with the CM10 i9300 Nigthly from 20121014, but what is to be done, so that the Auto-Patcher works and creates the PDroid Mod for the SpazeDog ICS for my HTC Desire? Is it possible? Maybe I have do to it manually with terminal, but how?

Thank you loads and sorry for my English!

EDIT:
[Android Software/Hacking General [Developers Only]] mateorod:
Sorry for missing your earlier post. If has been a bit of a s**tshow around here since the update. Getting better though as we get closer to getting working patches.

Thank you for the complete log and logcat. With those documents I was able to solve the problem! It was a mistake on my part, no excuses, although I don't know when I would have found it without a logcat.

Auto-Patcher 2.1.7.5 is available on github and kobik's ApG and has been uploaded to techerrata and should be there soon. There are new cm10 patches for 20121016. If you were able to successfully patch before but had FCs on phone apps and possibly other FCs, this should fix it.

If you were unable to patch before, this won't change that. But I have now had many more successful reports through posts and pms than before. I am hoping that the next round of nightlies that came out today should mostly see the same coverage we usually have.

I will look into that specific CM9 rom just mentioned, but if it reports an unknown ROM type, that would seem to me to indicate that ROM is a system.img, which we don't support. System.img mounting has been too device-specific to be integrated into the auto-patcher at this time.
[Android Software/Hacking General [Developers Only]] jelle2503:
thanks, i enjoy to contribute to the tool, simply because i see your enthousiasm.

will test tomorrow :thumbup:

awaiting eagerly pdroid extension mod :D