yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] mateorod:
Thanks as always wbedard. Go ahead and maybe copy your current auto-patcher folder to a test location, because i have pushed a hotfix. But I still would like to get to the bottom of the problem, it is in the test function between 802 and 809.

Probably just a mangling of the test builtin, I have been working this script to the bone this last week and I am going cross-eyed.

But yeah, the immediate problem has been worked around, so time isn't a serious issue.

Edit: Ok, just saw this:

I added that missing file to our provisionals folder. May not work, but this is the last chance to support that rom. It is a kang that strays a little further from upstream than we can usually support. But this may work, so sync and try it.

Fixing a couple last details and then pushing the 2.2.1 update to our download page. Thanks to

all

the testers, you guys were great with this.
[Android Software/Hacking General [Developers Only]] thibz:
Where we can found 2.2.03 and 04 ?

i cant find it in techerrata
[Android Software/Hacking General [Developers Only]] generosity21:
I got 1.5 to work using a manual command specifying AOKP. Just did the extension patch; flashed, installed the apk, and works beautifully. I just tried patching using the auto method with 2.0, and it completed successfully with no errors.

Thanks to all involved for such a great tool!!
[Android Software/Hacking General [Developers Only]] blackhawk_LA:
Thanks for the answer. Right now I'm reinstalling the ROM because of other bugs; when I had it installed I'll make a nandroid and try the patch again.

But, do you mean the log of ApG during the patch or a system log (like logcat) after installing the patch?

@mateorod Edited: Here's the ApG log http://codepad.org/ba2KVGAg If you want a logcat or something let me know ;)
[Android Software/Hacking General [Developers Only]] testomat:
I would like to support, because i need also slim bean 2.8 patched for pdroid.
[Android Software/Hacking General [Developers Only]] harlequin69:
PA 2.5 on Nexus 7 patched successfully top work! Thank you :)
[Android Software/Hacking General [Developers Only]] kobik77:
@Mateo, check PM on a problem with extension mod.

Thanks man
[Android Software/Hacking General [Developers Only]] TheMatrix2000:
Here i am again

Hi,

i tried "./fix_aapt.sh", but i think it isn't a permission thing, it's a command (Os X) thing. Look at attached pdf.
[Android Software/Hacking General [Developers Only]] mateorod:
Thanks SO much for your time. I have uploaded fixes thanks to your info. Try a pull and see if they work for you now.

I am going to add you to our thanks list, a willing OSX tester is HARD to find.
[Android Software/Hacking General [Developers Only]] TheMatrix2000:
Yes, of course i do that tomorrow. Going to sleep now. It's 23:54. Thanks for your help too. :)
[Android Software/Hacking General [Developers Only]] Px80:
sorry mateorod but i didnt do it.

i've got one log for autopatch and one for manual patch when i was asked to overwrite this .apk manual.
[Android Software/Hacking General [Developers Only]] mateorod:
Yep. That isn't going to be patchable. The files are all their, but you would have to do a bunch by hand. I did what i could for you. That rom doesn't have a framework2.jar, so it can't fit the methods in.

That is what the aosp-jb patches are for, but they fail for your ROM. So we don't support PACman or whatever (you retitled the zip, I think).

Sorry. You could conceivably try moving the cm patches and overwriting the ones in the aosp-mod folder. But I can't ship the auto-patcher that way, it would only work for you, lol.
[Android Software/Hacking General [Developers Only]] mateorod:
Auto-Patcher 2.2.1 has been uploaded to http://techerrata.com/browse/mateorod/pastime1971 and should be available any minute.

This should hopefully be the stable release of 2.2.0. Improvements from the last release include:

All mods now work

OSX date query should be fixed (Thanks Matrix!)

The '-h' menu is again functional

'extension' works for all major roms. It has been retitled 'pd2.0' as per CollegeDev's renaming, although using 'extension' will still work for now.

aapt permission problems fixed

And others! The same changes apply. There are ONLY four ROMTYPES now {pa, cm, aokp and aosp}

Build dates will be automatically resolved! So all you should ever need is:

./auto_patcher ROMNAME.zip MODS

and if it failes, add your ROMTYPE, i.e. pa or cm or aosp or aokp.

Big Thanks to Kobik77 who updated the ApG windows GUI. That was an integral part of the testing process. If you guys want to show a little love to the project, neither pastime nor I accept donations...but kobik does and is a big part of our success.

Thanks also to wbedard and FFU5y, who sent in the pd2.0 aosp and aokp patches.

And especially thanks to everyone who took the time to upload or attach a ROM these past several days. I literally couldn't have fixed this without you.

Let's hope it sticks, huh?

An update to the OP will come tonight, I am going to take the rest of the afternoon off. Help each other out if you see someone struggle.
[Android Software/Hacking General [Developers Only]] mateorod:
I saw this and realized I needed to upload a Cygwin-enabled version stat.

If you use the Auto-Patcher on Windows, thank kobik77 above, as he sent me the code that has it working with Cygwin.

I've tried it, it couldn't be easier...thanks kobik!

oh yeah, I bumped the version number up to 20120702v070. It seemed appropriate!
[Android Software/Hacking General [Developers Only]] spc_hicks09:
Anyone got any ideas? I swear I'm not a noob but I barely ever use Ubuntu, should I just use the version that's patched for Windows?
[Android Software/Hacking General [Developers Only]] mateorod:
I didn't see your edit from before. pastime1971 just sent me some new AOKP patches that I am about to upload, so maybe that will help if your rom is from last night. But you said you ported it yourself, right? What was the build date?

I will upload a newer version with some new patches in a few moments. But we can really only count on 100% supporting CM9 and AOKP at the moment, because that is what we have reliable source code for.

Some AOSP is supported as well, but some of the smaller roms are hard to keep up with. Especially things that are ported, as that doesn't involve source code, but just swapping folders. The patches don't know where to find their application points.

Give me maybe 20 mins and look for 20120702v071 on the OP. It will have last nights newer AOKP patches. Although if your rom's base is from an older build that won't help you.

Did you specify the AOKP patches?

./auto_patcher ROM_KOA.zip pdroid aokp

Edit: I am waiting on a pm, I will post in thread when newest version is up
[Android Software/Hacking General [Developers Only]] pierx:
I think your rom (aokp build 40 isn't it?) has change the framework_base.

check aokp changelog
[Android Software/Hacking General [Developers Only]] spc_hicks09:
The command I ran was

./auto_patcher KOA-ROM.zip pdroid aokp latest

But yes my build date is a little old, Thu Jun 28 08:35:36

As far as I have seen from the changelog, nothing has changed in the framework_base since the build date of mine the 28th.
[Android Software/Hacking General [Developers Only]] mateorod:
I just got some reports that people were getting 404 not found when downloading the autopatcher20120702v070 .

We redid the AOSP/AOKP patches, and added the latest AOKP patches for 20120702.

There is a direct link to my Dropbox for those having trouble on the OP with those changes as well as the Cygwin support. This is all the 20120702v070 version.
[Android Software/Hacking General [Developers Only]] anomalya:
Thanks for the direct link on the latest ap.

I've finally gotten this far but stumbled with my first hurdle: missing jar.

I used Kobik77's Cygwin method and have JDK installed.

I've reinstalled it again like you advised the previous guy before me - still get the same error.

When I check my JDK version in Terminal, I get:

$ java -version

java version "1.7.0_05"

Java(TM) SE Runtime Environment (build 1.7.0_05-b05)

Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode)

For jar - h: it says "command not found"

Any other steps I can do?
[Android Software/Hacking General [Developers Only]] pastime1971:
kobik77 can answer you better

, but meanwhile, which JDK is installed ? and what do you get from

which java

it could be that the path to jar also needs to be defined in PATH ?

edit: i guess JDK is oracle ?
[Android Software/Hacking General [Developers Only]] anomalya:
I installed from his link, Java SE Development Kit 7u5 (x86), from Oracle.

I get:

$ which java

/cygdrive/c/Windows/SYSTEM32/java

How do I define in PATH, the path to jar?
[Android Software/Hacking General [Developers Only]] pastime1971:
before we get to PATH, can you FILE SEARCH jar file ?

since it is not found, my guess is that it is

not

in C:\Windows\SYSTEM32\
[Android Software/Hacking General [Developers Only]] anomalya:
Hmm. No dice. Even looked directly at that location.

I was under the assumption that the JDK would install everything I need as far as Java and Jar.

Since this is the case, what's my next step?

Edit: I remember from his post he said to add a JDK binaries path to my Windows PATH variable, but he gave this location as an example:

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

So I looked in that folder and I see a jar.exe file.

Update: I went ahead and copied jar.exe to C:\Windows\SYSTEM32. I get a result now when I type, "which jar," in Terminal. I guess that's good enough?

Now to see if I can get even more luckier in finding a patch for my ROM! :D
[Android Software/Hacking General [Developers Only]] pastime1971:
i believe you are right. SYSTEM32 is a cache location, not the actual location, though.

we are gonna need kobik77's help, since i don't have Windows JDK installed near where i am.

edit: could you also check C:\Program Files\Java\*\bin ?

---------- Post added at 06:18 PM ---------- Previous post was at 06:08 PM ----------

ok. it is definitely a PATH issue.

i am not familiar with cygwin, so bear with me.

i'm gonna assume that cygwin uses bash or sh by default

try

PATH="$PATH:/cygdrive/c/Program Files/Java/jdk1.7.0_02/bin"
export PATH
echo $PATH
which jar

due to "space" in "Program Files", i think quotation marks are necessary.

edit: changed " position
[Android Software/Hacking General [Developers Only]] anomalya:
Am recanting my previous update and go with this method instead. :D

I'll report back what happens next.

Update: I tried the code you provided on Cygwin Terminal, though I'm not getting any results (different commands, maybe?)

I wish I knew more about these commands/languages.

So I stuck with the flimsy, "copying the jar.exe to windows\system32" and then progress!

Then, I get this:

$ ./auto_patcher /cygdrive/c/cygwin/SKYICS.zip pdroid, v6supercharger cm9 latest

### verify tools ###

### verify ROM ###

### unzip patch tools ###

### unzip patch patches ###

### unzip rom ###

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! error: failed extracting system/framework/framework.jar system/framework/core.jar system/framework/services.jar from C:\cygwin\SKYICS.zip !!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I'm starting to feel like this is getting beyond me now...
[Android Software/Hacking General [Developers Only]] pastime1971:
That would have been my second suggestion, to copy jar.exe to the cache folder.

Surprised that it still suffers a path issue (for the rom.zip).

We definitely needs kobik's help on this.

Maybe it can be.only run from a certain folder or something.
[Android Software/Hacking General [Developers Only]] mateorod:
Well, I can only pop in on this, but I did run this on my Windows machine by having everything all in one folder.

Also, just as a tip, I don't want you to get too confident that this patcher will work for your rom. I notice that you are using Paranoid Android and they haven't released any source code yet. Now, it may still work, we won't know until you try.

They use CM9 as a base, so start with those patches.
[Android Software/Hacking General [Developers Only]] stiltzkin:
Unfortunately I still can't get this to work for CM9 on my Inc - it looks like V6 works, but PDroid just gives me a message about ICS not being supported yet.

I took mateorod's earlier suggestion and executed the command exactly as indicated. I also made sure that I downloaded a fresh ROM .zip and wiped data, cache, and dalvik beforehand. Still no luck. Here's my logfile.
[Android Software/Hacking General [Developers Only]] pastime1971:
try

auto_patcher dinc-CM9-invisiblek-KANG-07-01-2012-1704.zip pdroid,v6supercharger cm9 20120615

looking at his github, https://github.com/invisiblek/android_frameworks_base/commits/ics, latest was on 2012.06.18.

20120615 patch seems to ignore less.

also, what happens when you flash pdroid.zip on CWM ?

in my opinion, it should either work or bootloop. the message of "pdroid not supported" is very weird.
[Android Software/Hacking General [Developers Only]] stiltzkin:
Finally got it working with the v070 build of the patcher! Thanks very much for the suggestions, though.
[Android Software/Hacking General [Developers Only]] pastime1971:
cool........
[Android Software/Hacking General [Developers Only]] jahrule:
Great work thanks a million.
[Android Software/Hacking General [Developers Only]] TheMatrix2000:
Date set OS X still fails

hi, mateorod.

i am sorry, but the problem with the correct date still remains under OS X. But it isn't the same error. Perhaps just a typo in the auto_patcher script. Could you take look at it in the pdf. I can't figure it out myself, not skilled enough. :highfive:
[Android Software/Hacking General [Developers Only]] mj084:
Hi,

first thx for this great project, I think one day i could patch the cm10 by hash;)

But now patcher throw errors while patching CM10 (4.1.2) manual patching too, first is autopatch log second the manual..
[Android Software/Hacking General [Developers Only]] kobik77:
Finally got everything's working like a charm with AP 2.2.1, ApG 2.0.0.0 and PD2 1.49 on CM10-20121024 :D

Kudos for all the devs working on this great project.
[Android Software/Hacking General [Developers Only]] Px80:
Okay, but many thanks til now!

I will post in the PACman thread, if BlindnDumb or someone else can do anything about that :D
[Android Software/Hacking General [Developers Only]] D-m-x:
Quick Question, will Paranoid Android be supported in the future for the new PDroid 2.0. Tried to Patch it (Nexus 7, PA 2.50) but it failed. If needed, i can provide a short Log.

Edit: This ist the exact Error. Looks like its stuck on the Telephone parts (which doesnt exist since this is a Nexus 7 Rom)
[Android Software/Hacking General [Developers Only]] TheMatrix2000:
I have the same error on my SGSII. See above post #1182. He is working on it. Let's hope he will find a solution.
[Android Software/Hacking General [Developers Only]] RuffBuster:
Patched SlimBean 2.8 for Galaxy S i9000 with ease using APG Util 2.0.0.0 and last nights GitHub using PDroid patch for CM10.

Cheers! :good::good::good::good::good::good::good:
[Android Software/Hacking General [Developers Only]] pmcee:
I only get errors when patching a 4.1.2 Rom (which was patched successfully when being 4.1.1)

Is auto patcher already working with 4.1.2?

Gesendet von meinem Galaxy Nexus mit Tapatalk 2
[Android Software/Hacking General [Developers Only]] mateorod:
I think you need to update ApG. You should not specify Android flavor(jellybean, ics, etc). You should only specify romtype [cm, aosp, aokp or pa]

Try:

./auto_patcher ROM.zip pdroid cm

What happens if you allow it,to copy? It looks like you answered no. I dont know everything, because I need your whole log. But the failure to patch that file is a known error, and is rectified by copying a premade copy of the file. And Nexus 7 roms are confirmed working.

I will get with the build query errors today. But it looks like you also answered no to what we call provisional copying. I know that there are still a couple of kinks with OSX, but do you get the opportunity to answer yes or no? Because this failure happens with most pdr2.0 patchings, and is resolvable on cygwin and linux by answering yes twice.

Log please, we for sure have everything working for 4.1.2, the last problem is a little hoop jumping on OSX
[Android Software/Hacking General [Developers Only]] TheMatrix2000:
i am such an idiot

Twice YES did it. Now it builds completely. Sorry, seems i forget to test this option. But the auto date retrieve definitely doesn't works yet.

If i can test something for you just post it. For now i will test my Android phone if the new patches are working. Let you know. :highfive:
[Android Software/Hacking General [Developers Only]] mateorod:
Thanks a million. Every test is valuable, I wouldnt know OSX problems w/o your help.

I saw the -h problems and will post a new test for that today. But I didn't see a log or output for regular' ./autopatcher ROM.zip pdroid', unless you are saying it actually prints the help menu in that case?

I have more information than you, because i got to see the problems evolve, you didnt get that opportunity. But getbuildprop does work on OSX, the problems I know about is the 'ls --ignore' is not supported in OSX apparently, I am going to try a combo of 'find -ls -prune' and will post a test script for that today.

The build query problem was related to the 'date -d' meaning something different in OSX. I hoped I had it fixed, but if not could you post your screen/log for that?

I wish I could thank you 5 times, I have needed a reliable OSX testers for awhile.
[Android Software/Hacking General [Developers Only]] TheMatrix2000:
Here you go

Here the building output and the log to this command:

-bash-3.2$ ./auto_patcher pa250.zip pdroid pa

I don't know if you need it, but i attached you the manpages of ls and find.

ps.

The PD2 app works on my SGSII -- COOL -- :good::good::good::good:
[Android Software/Hacking General [Developers Only]] jhxdadev:
pd2.0/aokp

I tried the pdroid2 autopatch for aokp (4.1) and got the following patch failure: codepad.org/yjCM8W4F

Thanks for the excellent autopatch and ApG :)
[Android Software/Hacking General [Developers Only]] kobik77:
try this to answer automatically, it works on cygwin/linux

yes yes | ./auto_patcher mod romtype
[Android Software/Hacking General [Developers Only]] mateorod:
Okay, well it looks like OSX isn't passing my case conditional to use the new OSX 'date' command, as well as needing a specialized 'ls' for the '-h' menu. I will have a test for OSX users sometime later today, thanks guys.

And for anyone who is following this and is an OSX user, the autopatcher will still work for you, but you will need to specify the specific dates. So look type out an entire command like this

./auto_patcher ROM.zip MOD cm latest

replacing cm with your rom type and typing 'latest' exactly.

Now here is a new one. it has been awhile since we had a plain old mystery error. That looks like the smali binaries just choked out on you. I have seen this once before but it went away when the person ran it again. Is this reproducible for you? I just ran the auto-patcher on your rom on my Linux box and it popped out an update.zip no problem.

Please try again, and if it chokes out once more, I will upload the update.zip I just made. But I would like to see if this is a consistent problem for you first, please...
[Android Software/Hacking General [Developers Only]] mj084:
@mateorod

thx for answering:)

I don't want to patch CM10 for pdroid, wanna patch for pd2.0 so i write extension for mod at manually patching...

tried manual patching again, once with extension (pd2.0) and once with pdroid - both throw errors:
[Android Software/Hacking General [Developers Only]] xtrezpasor:
Has anyone gotten this to work with on a touchwiz ICS / JB rom? trying to figure out how to patch http://xdaforums.com/showthread.php?t=1748818

Thanks ahead of time for any help
[Android Software/Hacking General [Developers Only]] harlequin69:
I have just updated via ApG 2.0 and retested pd2.0 and it patched PA2.5 for grouper nexus 7 with no issues.
[Android Software/Hacking General [Developers Only]] karamelos:
Hi,

I trying to patch last cm10 for gt-N7000

Pdroid first generation work with out error but pdroid V2 :

1 out of 5 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali.rej

I installed it & it work fine with user app.

Just this small error

join log

& Thank for your hard work
[Android Software/Hacking General [Developers Only]] mateorod:
Hey karamelos, I think you realize this, but to be clear, we know this happens and it is resolved while patching. So there is no error here, it is working just as expected.

I want to take a moment to thank the last two posters, karamelos and harlequin. Karamelos gave me hope through the update because he used the patcher correctly and kept reporting his successes. And harlequin diligently walked through a nasty little problem until we had it resolved.

Along with Matrix2000 and some others, I was able to get the data I needed. I saw you both post in a row and wanted to thank you guys.
[Android Software/Hacking General [Developers Only]] chrootz:
Strange error.

~/Downloads/ap $ ./auto_patcher Synergy_d2vzw_18Oct12_1047_r77_s.zip pdroid

The Auto-Patcher v2.2.1

### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
inflated: system/build.prop
### probe rom type ###
!!! is not supported yet, trying generic latest !!!
... result of ROM check: version= ics rom= aosp ...
... Using results of ROM check ...
... pdroid patch date has been set to: 20120813...
### unzip rom ###
inflated: system/framework/framework.jar
inflated: system/framework/core.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 system files ###
... decompile framework.jar ...
... extract preloaded-classes ...
... decompile core.jar ...
... decompile services.jar ...
### rebuild jar ###
... rebuild framework.jar ...
... rebuild core.jar ...
... rebuild services.jar ...
... Fixing aapt permissions ...
chmod: cannot access `../patch_tools/mac/aapt': No such file or directory
chmod: cannot access `../patch_tools/cygwin/aapt.exe': No such file or directory
chmod: cannot access `../patch_tools/linux/aapt': No such file or directory
### create update.zip ###
### finished ###
flash update.zip to install the modified
flash restore.zip to restore the original
[Android Software/Hacking General [Developers Only]] mateorod:
dumb error on my part, compounded by my multitudinous local versions. Fixed in the source for people who pull source and ApG users. Will be in the next update for everyone else, which will be when I finish the issues with OSX build query and help.

I am out of 'thanks', but thanks.
[Android Software/Hacking General [Developers Only]] D-m-x:
So we can ignore the error and say yes anyway? Will try that tomorrow.

Gesendet von meinem Nexus 7 mit Tapatalk 2
[Android Software/Hacking General [Developers Only]] mateorod:
There is an almost zero chance of this working for you, as your rom appears to be a stock Samsung skinned rom. We do not have anyone on the team who is building for Sense or Touchwiz or those right now.

However, it is an interesting case with some things happening that need to be looked into. I will be looking into tonight, but as your Rom is nearly a gig in size it will take me awhile. But thanks for the logs, it has exposed me to some potential error checks I should add. I will let you know what I find.

For those who might have missed it, here is a recap.

PDroid Extension, newly released by CollegeDev, has been retitled PDroid2.0. CollegeDev retitled it due to this same confusion.

Pdroid 2.0 is incompatible with the original Pdroid. So the autopatcher is working great for you, in fact.

Thanks for the reports/logs everybody.