yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] mateorod:
Well, it isn't .net.

It could be a glitch with how the patcher works on cygwin, neither I nor pastime works with cygwin much. But kobik77 enabled the cygwin support, and I feel pretty good about his additions.

I at first thought maybe you had a bad download, but I did get that same weird fail, even if it was just the once.

At this point I am leaning towards an issue with the newest smali binaries. JesusFreke is a super dev, though. For those who don't know, he was basically Cyanogen before Cyanogen. When he retired his super popular ROMs, he encouraged his users to give CM a try. So this is a guy who knows his Android. But they did get released just before JB, so maybe there are still some bugs with API 16.

We are working pretty hard on a massive update to the script. You saw pastime attach one of of changes for a user not too long ago.

I plan to just keep my eyes open for other instances. We have had a bunch of success with these methods, so it is just a matter of narrowing down the causes.

You have run the patcher a bunch of times, with different results. So it is a puzzler, for me. Maybe pastime will pick out something.
[Android Software/Hacking General [Developers Only]] docflower:
Bad download? Seems to be the cause. Makes no sense to me. But you know what....

It worked! Figured I'd start with re-downloading the patch first. That was all I needed. Really though... it gives me more of an excuse to back to Mint. I love linux. It really is so much easier than windows.

Thanks again for your help.

$ ./auto_patcher cmr.zip pdroid cm10

### verify tools ###

### verify ROM ###

### unzip patch tools ###

### unzip patch patches ###

### 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/cm10/latest ###

### apply framework.patch ###

... apply preloaded.patch ...

### apply core.patch ###

### apply services.patch ###

### rebuild framework.jar ###

### rebuild core.jar ###

### rebuild services.jar ###

### create updater.zip ###

### finished ###

flash update.zip to install the modified
[Android Software/Hacking General [Developers Only]] Feareilo:
Hello again, my friends!

I just wanted to share with you that I've been able to get PDroid running on my ****ty X10 Mini Pro!

To anyone interested:

1. Deodexed the last version of MiniCM7 using kitchen

2. Patched that deodexed ROM with patcher v1.31 from the original PDroid thread.

3. Installed the deodexed ROM on my phone and applied the patch (without using mount system).

Mateorod and pastime1971's auto-patch script definitely seems like a very useful solution - it has worked for many people already. Unfortunately, I kept getting a weird error that I wasn't able to figure out. Anyway, props to you guys, I learned a lot on this thread. You're awesome!

Finally, I used the v1.31 patcher because v1.32 would not boot for some strange reason.

So, TL;DR: PDroid works on deodexed MiniCM7 for X10 Mini Pro.
[Android Software/Hacking General [Developers Only]] Theraze:
Well, switched to AOKP and used the modified autopatcher script again. Still has the same 3 failed messages on the framework, but... it works now. Thanks!

I open PDroid, it sees it as working and I can disable permissions. :victory:
[Android Software/Hacking General [Developers Only]] cdkg:
Official CM10 Nighly Toro

CM released their first official CM10 nightly build for the toro (aka: Galaxy Nexus LTE).

This is the link to the rom I am trying to patch: http://get.cm/get/3xA

After trying several times I keep coming up with this error:

### apply framework.patch ###

The next patch would create the file 'smali/android/app/ContextImpl$39.smali',

which already exists! Skipping patch.

1 out of 1 hunk ignored

5 out of 5 hunks FAILED -- saving rejects to file smali/android/content/ContentResolver.smali.rej

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

!!! error: failed framework.patch

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

I double checked that I was still able to successfully create an update.zip for an "unofficial" CM10 build (Link to Rom: http://goo.gl/EAsru) and it worked.

Any suggestions/help would be greatly appreciated
[Android Software/Hacking General [Developers Only]] mstfkaratas:
Hi,

I wanted to patch my rom with your patcher but it gives error while patching SyncStorageEngine.smali.

### apply framework.patch ###
9 out of 35 hunks FAILED -- saving rejects to file smali/android/content/SyncStorageEngine.smali.rej

Tried other dates with no chances.

Other smali files patching fine. Attached original SyncStorageEngine.smali and rejected patch file SyncStorageEngine.smali.rej.
[Android Software/Hacking General [Developers Only]] CaptHilts:
hello and thanks for your awesome work! I got the patcher ver. 1.6 to successfully patch RootBox ICS 1.7 (AOKP), RootBox JB-AOKP and ResurrectionRemix for the galaxy s2. I was wondering whether it was possible to get the patcher also to work on galaxy s2 stock based roms, in particluar i would be interested in PortalRom 2.x. Should you guys need any output I can run it again and post it here.

Thx and cheers!

Captn
[Android Software/Hacking General [Developers Only]] robjective:
+1

It worked for me on the 20120814 Unofficial toro, but not the new nightly.
[Android Software/Hacking General [Developers Only]] mateorod:
We have had recurrent problems supplying patches for "official" or release candidates builds. This is certainly a problem with our understanding of how CM puts those snapshots out as opposed to a problem with the Auto-Patcher. We can never seem to sync our build commits to the exact state the official builds are at.

The funny thing is, that the patches tend to work on all of the builds surrounding these snapshot builds. There is some state to the official release builds that we are missing from our source tree. If anyone knows the difference between a nightly and an official build released the same day, please let us know.

As mentioned above, we generate these patches by building the ROMs we build as many flavors as we can to cover the widest possible selection of ROMs. But sometimes users want to use ROMs that aren't covered by our patch sets. The only thing to do is to try and build those ROMs yourself. If code is available then you can apply pastime's build patches and we can make a patch from those builds. Usually those patches will get you through several weeks of updates, at least.

As far as the stock Samsung builds, our support for ICS is likely closed. We will continue to maintain the patch flavors (cm, aokp, and some aosp) hat we already support. But our concentration is on JB. If you have access to source, set up a build environment and we can help you get period on the ROM as well as make a patch, if possible.
[Android Software/Hacking General [Developers Only]] kobik77:
Don't know of it's possible but have you thought of a script patching directly the source code and building only the relevant framework files?

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] tonyp:
I decided not to quote your post :D

Impressive work, this is more and more an all-in-one patch tool :good:
[Android Software/Hacking General [Developers Only]] nsmart:
I am using cygwin (and successfully patched cm9 with older auto_patcher versions).

Now I tried Auto-Patcher20120817v1.9.5_test version and wanted to patch cm10 (10-20120820-EXPERIMENTAL-i9100-CODEWORKX).

I get the following error:

### verify tools ###

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

!!! error: Missing "cpio (JRE)"

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[Android Software/Hacking General [Developers Only]] kobik77:
@mateorod, I'm waiting anxiously to test source patching.

BTW, I asked for that assuming it would have higher success rate, is this the actual case? :o

As for the latest patch, it's running fine (haven't looked too into the code changes as I'm currently very busy) but it still fails for me on euroskank CM10 builds AKA Jellybro for maguro.

Kobi@Kobi-PC /cygdrive/e/ap
$ ./auto_patcher cm-10-20120819.1034-SKANK-maguro.zip pdroid cm10

The Auto-Patcher v1.9.5

### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
### 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 ###
### copy patch pdroid/cm10/latest ###
### jar patch pdroid/cm10/latest ###
### apply framework.patch ###
The next patch would create the file 'smali/android/app/ContextImplsmali',
which already exists! Skipping patch.
1 out of 1 hunk ignored
5 out of 5 hunks FAILED -- saving rejects to file smali/android/content/ContentR esolver.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/location/Locatio n.smali.rej
... apply preloaded.patch ...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed framework.patch
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! please refer to /cygdrive/e/ap/log20120820211435 for any debugging

! patching failed.
! it may be possible to patch /cygdrive/e/ap/cm-10-20120819.1034-SKANK-maguro.zi p using other patch version

smali auto patcher v1.9.5
pdroid 1.32 patches 2012.08.17.
v6supercharger patches 2012.08.17.

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

MODS can be pdroid,v6supercharger or pdroid or v6supercharger
optional [ROMTYPE] can be cm9, aokp, etc.
optional [PATCHDATE] can be specified to use older patch versions.
try "./auto_patcher ROM.ZIP -h" to see what is available
[Android Software/Hacking General [Developers Only]] pastime1971:
@ mateo,

looks like we also need to add checking for cpio as well.

---------- Post added at 12:07 PM ---------- Previous post was at 11:46 AM ----------

it looks like cm10 needs patch update.

i just ran it for cm10 maguro and got the same (?) thing.

will build a updated patch, unless mateo already has one.

edit: built an updated patch for cm10, but cm-10-20120820-NIGHTLY-maguro.zip still fails. dang it...
[Android Software/Hacking General [Developers Only]] CaptHilts:
thx a lot for the heads up! unfortunately at present my skills are not at the required level to do that, however I will work on it! i'll continue to test roms that you will support and can report back should anybody be interested in knowing whether they work or not.

Also, I noticed that quite a lot of people are still in the dark regarding PDroid but most importantly they ignore the existence of this thread. Maybe I can help spread the word if it is in your interest as well!

Regards

Captn
[Android Software/Hacking General [Developers Only]] wkwkwk:
Hi,

I tried using the 1.6.0 version to patch CM10-Preview-4 for N7000 and while the patching was successful (no warnings or errors), after flashing update.zip it throws the device into a bootloop.

Thanks.

Edit: Same thing happening with the 1.9.5-beta of the auto-patcher.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Wait, what?

Auto-Patcher doesn't run on the device.

I'm actually all about having delivery work on every possible device - however that delivery may be - web app, automated windows batch files or linux scripts... scripts converted to a windows exe... makes no difference to me :p
[Android Software/Hacking General [Developers Only]] bone101:
I don´t kne how
[Android Software/Hacking General [Developers Only]] Christoph21x:
Shall we do this for you, let us know pls.
[Android Software/Hacking General [Developers Only]] poo706:
Go to github.com and create and an account and log in. Then go here: https://github.com/mateor/auto-patcher . Click "issues" in the side bar on the right, then the "new issue" button. Paste a link to your ROM and to the auto-patcher log file. Here's one of mine as an example: https://github.com/mateor/auto-patcher/issues/215 .

[poo]
[Android Software/Hacking General [Developers Only]] stewa2jm:
Downloads

Maybe I'm missing something, but when I go to the Download page from the first post I can't see anything past version 2.9.9315 that was modified 2013.07.22. I have version 3.0, I want the update to 3.5.

What I'm I missing?
[Android Software/Hacking General [Developers Only]] Christoph21x:
You shouldn't mismatch the version of the autopatcher utility from the version of the patcher itself.

The patcher will be auto-updated when you start the autopatcher - version / update info will be shown in the window to the right.

Simply go with the latest version of automatcher and you'll see after the Github resync (which is done automatically or can be evoked by hand - loo at the buttons below the autopatcher window)

Greetz - Chris
[Android Software/Hacking General [Developers Only]] stewa2jm:
I'm not using the GUI version. I'm patching through Terminal on Ubuntu/Linux. I am using two different PC's. One has v3.1 on it, the other nothing. I looking to put the newest version on both. Both run Ubuntu.

UPDATE: I see the update script when running autopatcher to install 'git.' ... working on that.
[Android Software/Hacking General [Developers Only]] tuxing:
Trying to patch aospa 4.4 for lgg2 with this great tool

downloaded the latest from link but it wont update to 3.5

"macmini:autopatcherv2.9.9315 unni$ ./auto_patcher g2.zip openpdroid aosp

The Auto-Patcher v2.9.9315

Check for update failed, probably because of no internet access.

The autopatcher will continue with current local version: v2.9.9315"

i am able to ping google.com

can anyone please upload a direct link to 3.5

thanks
[Android Software/Hacking General [Developers Only]] stewa2jm:
I 2nd this request. Certainly would make my journey here a much quicker.
[Android Software/Hacking General [Developers Only]] poo706:
Has anyone tried the "Download ZIP" button here: https://github.com/mateor/auto-patcher ?

[poo]
[Android Software/Hacking General [Developers Only]] stewa2jm:
Tried it. Received following error when attempting to run:

Error: patch_tool.tgz is missing

Looks like it isn't packaged properly when downloaded this way.

UPDATE:

There are folders labeled appropriately for "patch_tools" and "pactches"

Attempted to zip the folders myself and then run again. Received this error:

error: failed extracting patches

UPDATE:

Read the "Read Me" file... All fixed now. You have to run the batch program.
[Android Software/Hacking General [Developers Only]] poo706:
Here's v3.1.5 for Linux. Having the git package installed, I've been able to automatically update from 3.1.5 to subsequent versions without trouble.

https://www.dropbox.com/s/nikvi117cdqalkk/autopatcherv3.1.5.zip

[poo]
[Android Software/Hacking General [Developers Only]] tuxing:
Thanks poo , got the latest version using download as zip from github

problem were due to not having git installed, sorry for the extreme noobism.

Tried the latest autopatcher 3.6.2 on aosp 4.4 for lgg2 by houstonn but failed with following error.

http://codepad.org/4Gi29kv5

thanks
[Android Software/Hacking General [Developers Only]] poo706:
Create a new issue on github with that codepad link and a link to the ROM.

[poo]
[Android Software/Hacking General [Developers Only]] pawo99:
Hi mateorod,

will you support ART on Kitkat? :confused:
[Android Software/Hacking General [Developers Only]] poo706:
Not likely.

[poo]
[Android Software/Hacking General [Developers Only]] fierogt42:
Auto-Patcher is supposed to support PACMan roms, correct? I can't get it to patch my PACMan for the Optimus G E970 using AP version 3.6.24. I've tried every option for rom type.

Patch log: http://codepad.org/qxotIK9Q

Source: http://www.pac-rom.com/
[Android Software/Hacking General [Developers Only]] poo706:
Create an issue on github, mateorod follows it closer than xda. https://github.com/mateor/auto-patcher

[poo]
[Android Software/Hacking General [Developers Only]] bone101:
Done ....

Sent from my ...no need Tod know
[Android Software/Hacking General [Developers Only]] Goldspark:
My version is stuck at 2.9.93. Can you tell me how can I uprade it? :confused:
[Android Software/Hacking General [Developers Only]] karamelos:
Delete it & download fresh autopatcher

just send
[Android Software/Hacking General [Developers Only]] jenszo:
pDroid App not recognising patch

First off - great effort! Thanks. This should greatly help to spread android modifications ;)

However, I'm having issues with the patches created by the auto_patcher.

I'm using CM7.1 and CM7.2 for the HTC Desire Z / G2 ("vision") and only meant to patch pDroid into it.

Patching the zips works flawlessly without any notable error - both, though auto_patcher on Linux as well as later on through CWM.

When launching the pDroid App, however, the patch is not found in the system.

Any advice or hint where to continue looking for a resolution?
[Android Software/Hacking General [Developers Only]] r0zj0k3r:
Linux

Not sure if you are using linux to run these scripts, but I am assuming you are already set up if not (ie cygwin).

For linux the set up is easy you can install git from synaptic or Software Center.

-For command line all you have to do is type "git clone https://github.com/mateor/auto-patcher test/"

Obviously change the folder name to wherever you want to save it. This will download the latest files for autopatcher.

-cd into the directory you named above

-Next run ./batch.sh

-You're now set up to run autopatcher as you are already used to

If you are using cygwin you'll have to read around on how to set up git with windows, but it shouldn't be difficult.

Hope that helps some poeple
[Android Software/Hacking General [Developers Only]] razzor1984:
Got a patching error : error: ServerThread.patch in services.jar cannot be remedied

ROM: cm-11-20131202.0943-crespo

http://fitsnugly.euroskank.com/?rom=cm11&device=crespo

Full Log - http://codepad.org/u1MvkdEc

Thanks Razzor
[Android Software/Hacking General [Developers Only]] razzor1984:
OK its done, thanks
[Android Software/Hacking General [Developers Only]] exec228:
uh-oh!..

google changed mind and turned feature off in 4.4.2.

looks like propagating PDroid for various platforms is actual again.
[Android Software/Hacking General [Developers Only]] pawo99:
When I run linux version of auto_patcher I get message "updater: disabled". How can I enable it? :confused:

EDIT:

done with command: sudo apt-get install git-core
[Android Software/Hacking General [Developers Only]] mateorod:
Yeah, the message says it all. You do have git installed with the command you posted?

This is how the auto-patcher checks for git

# Check for git
if [ $(which git) ]; then
GIT=true
else
miss_git_error "Missing \"git\" utility"
GIT=false
fi

So typing 'which git' in your terminal should bring a response, generally "/usr/bin/git". Try it in a new terminal and then run the auto-patcher from that new terminal as well. If you had just installed git, then maybe it wasn't in your path yet and the shell could not find it.
[Android Software/Hacking General [Developers Only]] pawo99:
Now, I have git installed and updating is working :)

Yes, with this command in Ubuntu.
[Android Software/Hacking General [Developers Only]] jb789:
I'm having the same error on a different CM7 phone. My guess is it has something to do with this from the log, but I haven't had time to experiment:

Worst case, syat's original PDroid Patcher still works (at least v1.31 does), but I was really hoping to use AutoPatcher to incorporate the security fixes mentioned here:

Alternately, it should be possible to use Xposed & XPrivacy for CM7/Gingerbread. However, I don't think that's as robust and I was not able to get the latest Xposed Master Key patch to work, so I went a different route.
[Android Software/Hacking General [Developers Only]] Bad-Pixel:
sorry for request, but.... Someone could patch this rom (n4 purity rom: http://xdaforums.com/showthread.php?t=2281607)with openpdroid? I tried to ask to rom devel. but they didn't listen to me. Already said that, but i really can't understand how people can use android roms without a proper permission management app.... it's just absurd
[Android Software/Hacking General [Developers Only]] poo706:
You're asking the wrong dev. Create an issue on github with a link to the ROM and a link to the autopatcher log. https://github.com/mateor/auto-patcher . Here's an example: https://github.com/mateor/auto-patcher/issues/232 .

[poo]
[Android Software/Hacking General [Developers Only]] Christoph21x:
Hey Bad-Pixel

Let us know if you need help to open an issue - we can do this for you. Tried to patch the ROM, too - it failed.

PM here or post in the service / helper thread under http://xdaforums.com/showthread.php?t=2449665

Greetz - Chris
[Android Software/Hacking General [Developers Only]] jb789:
FYI- Mateorod fixed Auto-Patcher to work with Android 2.3 / CM7 again. Details are here:

https://github.com/mateor/auto-patcher/issues/250

For anyone else having similar issues through ApG/cygwin, note mateorod's tips to delete the Auto-Patcher directory to start fresh and/or run everything from a FAT32 formatted partition as opposed to NTFS. Great tool, great devs! :good:
[Android Software/Hacking General [Developers Only]] titanreign:
failed patch

I'm not sure if this is the thread for posting the failed patch log but here's one.

I was attempting to patch slim bean 4.3 build 2.2 and had chosen openpdroid and aosp (and tried cm once too) for the settings.
[Android Software/Hacking General [Developers Only]] Christoph21x:
Hi titanreign

In fact it WAS earlier. Today: please open an Issue under https://github.com/mateor/auto-patcher

Please note, that Mateor needs the Download link of the ROM's SOURCE and download link of the ROM plus your log.

Kind regards - Chris
[Android Software/Hacking General [Developers Only]] xm2406:
Hi I tried to patch the 4.4 Supernexus rom and it failed (opendroid). Autopatcher is upto to date and here are the corresponding links :

AP LOG : http://codepad.org/ojY5d4T9

SUPERNEXUS SOURCE : https://github.com/SuperNexus

KERNEL SOURCE : https://github.com/CyanogenMod/android_kernel_samsung_smdk4412

Hope to receive some help :)
[Android Software/Hacking General [Developers Only]] blackcoffeez:
Works on CM10 Lg Optimus L7..:good:
[Android Software/Hacking General [Developers Only]] poo706:
Post this information as an issue on github: https://github.com/mateor/auto-patcher , it'll get fixed faster.

[poo]
[Android Software/Hacking General [Developers Only]] chlorophyll86:
works fine with openpdroid patch on cm11 beta 3 for i9001 http://xdaforums.com/showthread.php?t=2579431
[Android Software/Hacking General [Developers Only]] elliwigy:
out of curiosity.. has anyone got it to work with cm11 nightly for verizon sgs4? ive tried every 4.4 rom in the book even tried cm10.2 etc with openpdroid pdroid and pdroid 2.0 with no luck

edit:

Nevermind.. has been forever since i used APG.. didnt realise it was still picky to directory and rom location.. it kept showin access denied in my doc n settings folder.. moving it to c: prog files worked like a charm!
[Android Software/Hacking General [Developers Only]] baka2x:
Has anybody had issues receiving SMS with 4.4.x roms? I've tried CM11, AOKP, and PA4 on an N5, but all fail to receive SMS after about 30 minutes until a reboot.
[Android Software/Hacking General [Developers Only]] poo706:
I confirmed working sms just last week on 4.4.2 Vanir. Do you think this is a openpdroid issue? Or did you not mean to post in the auto-patcher thread?

[poo]
[Android Software/Hacking General [Developers Only]] baka2x:
Sorry, wrong thread.