yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] scutworker:
Hi,

Just tried v 2.1.5 with my Evervolv based rom and it's still no go!

I use this rom:

http://xdaforums.com/showthread.php?t=1766550

and I selected the aosp-mod option (I have also tried it with aosp-jb and no option at all, but the log attached is for aosp-mod).

The log is attached.

Thanks for all your help on this. I feel it's getting closer...

Cheers.
[Android Software/Hacking General [Developers Only]] kobik77:
I haven't updated my rom lately, so I'll grab a logcat of this on my next one.

About the changelog, all you need to do is preserve the Changelog title of its start of it and an empty line on the end.
[Android Software/Hacking General [Developers Only]] psychowood:
FYI, 2.1.5 seems to fail with ParanoidAndroid 1.6a (imilka's build for N7000, CM9 based):

source: pa_n7000-1.6a-06OCT2012-225639.zip

The Auto-Patcher v2.1.5

### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
inflated: system/build.prop
... result of ROM check: RIL= Smdk4210RIL
### probe rom type ###
... result of ROM check: version= 4.0.4 rom= cm9 ...
... Using cm9 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 system files ###
... decompile framework.jar ...
... extract preloaded-classes ...
... decompile core.jar ...
... decompile services.jar ...
### jar patch pdroid/cm9/latest ###
... apply framework.patch ...
... apply core.patch ...
[B][COLOR="Red"]./auto_patcher: line 640: patches/pdroid/cm9/latest/core.patch: Too many levels of symbolic links[/COLOR][/B]
cat: core.jar.log: No such file or directory
grep: core.jar.log: No such file or directory
grep: core.jar.log: No such file or directory
... apply services.patch ...
### rebuild jar ###
... rebuild framework.jar ...
... rebuild core.jar ...
... rebuild services.jar ...
### create update.zip ###
### finished ###
flash update.zip to install the modified
flash restore.zip to restore the original

Version beta v1.0.0, patches 2012.07.11 worked succesfully.
[Android Software/Hacking General [Developers Only]] mateorod:
Could you attach the log please, so I can see what parameters cause this to fail? It looks like the chain of sym links was too long, which would mean that problem has been there for a long while. We haven't had to update those patches since JB came out.

I am guessing that you are on a Mac, and there are some restrictions to their Unix environment I am not aware of, but I can get all the info I need from that log.
[Android Software/Hacking General [Developers Only]] psychowood:
You can find the log attached, hope it can help.

By the way, i just noticed that v2.1.5 uses 'pdroid 1.32 patches 2012.09.13', while the version that worked has 2012.07.09 (a bit old, I know, I just happened to have it lying in the same folder since the ROM has not been updated since July), not sure if they are different.

If you need the jars, the restore.zip is linked in my signature (follow the v1.6a link).

It's a Debian VM (TurnKey Linux), dedicated to AutoPatcher. :) [ Linux core 2.6.32-5-686 #1 SMP Mon Jan 16 16:04:25 UTC 2012 i686 GNU/Linux ]
[Android Software/Hacking General [Developers Only]] KicknGuitar:
Mateorod, looks like it worked. I take it "We can try to add a premade copy of those files. This sometimes works." is simply replacing those files that keep failing in CM7. The patch creation worked but won't get to try it all out until I have the time to flash cm7 back.

Thank you, to you and the crew. You have my permission to take a drink break ;)

I wanted to find a way to avoid such nonsense but for flashing SBFs I had to use Parallels. When I tried some of the other mods such as pdroid patcher got some weird error and was not going to look further into it.

It blows my mind how Mac is still a hole in the wall for me, despite all the fashion rage. At least Android is Mac friendly... sort of. Or is it Mac isn't Android friendly?
[Android Software/Hacking General [Developers Only]] mateorod:
Agrabren, are you still following the thread, by any chance? I have looked over several of your threads and saw what you have been doing, which is cool stuff. I also saw you have your fingers in the Aroma installer, although to what degree I haven't seen. I would like to see what you did to combine the Auto-Patcher functions.

Did you just add PDroid function to your rom install or is does the auto-patcher itself still run?

I am curious what you did, yet couldn't figure it out for myself off of the comment I quoted above. I like what you are working with though, it looks like what we are trying to provide people is somewhat the same. We made the auto-patcher because people who didn't edit their own code were swapping premade update.zips and so they could only have the one mod/edit at a time.

Aroma looks like it targets the same idea, and your rom as well. Just wondering what it is that you came up with. We added Aroma support (AFAIK) awhile ago, but that was just a line edit.
[Android Software/Hacking General [Developers Only]] alharaka:
Auto-Patcher (ApG 1.2.0.0) on PA-Utacka Build Possible?

Sorry, this is my first post in this thread after using auto-patcher (actually ApG.1.2.0.0.exe) and I am fairly certain I am doing it right and some searching here reveals I have similar symptoms, but maybe not the same causes. If I am wrong or did not get it right (I read through the OP and many pages of similar commentary on similar ROMs), please excuse the dumbassery.

Phone: Samsung Galaxy Note GT-N7000

ROM: Paranoid Android Utacka Nightly Build, CM10 Source Based (ROM here)

Build Date: 9 October 2012

Build environment: Windows 7 32-bit

Auto-patcher info: ApG 1.2.0.0 (Windows-based, Github resync performed every time for updated build environment)

Mod types: pdroid

ROM type: cm10

Debug log is below. Have I totally misunderstood the instructions or am I using a build that is just too new to work with these patches anymore? Someone last successfully built against this ROM in late September, and I was just informed by another guy in that thread last time he got it work was the 7 October build. So I am thinking I am just a moron that hopes this tool can see into the future. Thanks in advance for the help.
[Android Software/Hacking General [Developers Only]] mateorod:
Okay, for those of you with the ServerThread problems, a fix is on the way.

When they were first reported, I built some new patches, but maybe the maintainer of the device repo I used hadn't checked in the troublesome commit. Either way, those patches didn't have that change, even though a couple of you had already reported the issue.

A build I made last night finally has the changes in it, so I will make new patches today. There will be an update sometime today.
[Android Software/Hacking General [Developers Only]] nk7:
Hey thanks mate! I think that did the trick. Said Rom wwas successfully patched for Pdroid. Now I just have to see if pdroid works...
[Android Software/Hacking General [Developers Only]] mateorod:
Thanks for the report on 7.2. I have one more trick I will try, but if that doesn't work I don't really know what else I can do.

We are using syvat's original patches for 7.2, and they pretty much work for unofficial builds. But since they went to 7.2 final it has given us a bunch of trouble. You might just have to stick with the nightlies, that is what we recommended for a long time.

I will make a GB build maybe tonight, and pump out some new patches. But if they don't work for final, then I am going to leave that alone. We can support the nightlies, and those are basically the same thing, but a little more up to date.

Try a CM7 nightly and let me know. I will look into the 7.2 one more time tonight.
[Android Software/Hacking General [Developers Only]] oddball420:
I will do man tonight when i get off. Thanks
[Android Software/Hacking General [Developers Only]] agrabren:
I run the tool on the baselines, then extract the update.zip contents. Download a build and peek at the folder layout and updater-script. :)

Oh, and add pdroid-extension. ;)
[Android Software/Hacking General [Developers Only]] switchgott:
Any news about android 4.1.2??

Update for it?

Errors with new cm10 from today:

### jar patch pdroid/cm10/latest ###

... apply framework.patch ...

Reversed (or previously applied) patch detected! Skipping patch.

13 out of 13 hunks ignored -- saving rejects to file smali/android/app/BackStackRecord.smali.rej

1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/app/ContextImpl$20.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

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

Reversed (or previously applied) patch detected! Skipping patch.

3 out of 3 hunks ignored -- saving rejects to file smali/android/content/pm/ContainerEncryptionParams.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file smali/android/location/Location.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

3 out of 3 hunks ignored -- saving rejects to file smali/android/widget/AppSecurityPermissions.smali.rej

... apply preloaded.patch ...

!!! PATCHING FAILED FOR android/app/ContextImpl$20.smali' !!!

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

!!! error: failed android/app/ContextImpl$20.smali' in framework.jar cannot be remedied

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[Android Software/Hacking General [Developers Only]] fm40:
Patch not working for Defy+ with Quarx CM10 nightly

Hey there,

the patch is not working für the Defy+ with the latest CM10 nightly from Quarx.

When I choose YES, the next error appears.

... apply preloaded.patch ...

!!! PATCHING FAILED FOR android/content/pm/ContainerEncryptionParams.smali !!!
!!! patch error for android/content/pm/ContainerEncryptionParams.smali !!!
askconsent intial = no

Any Idea how I can get it to work?

Thanks
[Android Software/Hacking General [Developers Only]] mateorod:
The update to 4.1.2 scrapped my plans for an update last night. By the time I had made new patches (from this morning, mind you) they were out of date. Builds will be going on most of the day tomorrow and we'll take it from there.

Pdroid extension will be supported, but I have to make the package whole cloth. Won't be too long, barring any compatibility problems.

Update: The update to 4.1.2 has caused a break in our build patches. It shouldn't be catastrophic, but we have to deal with it before we can put out any updates.
[Android Software/Hacking General [Developers Only]] HyperCriSiS:
Resurrection Remix JB

Pdroid patching fails :(

http://codepad.org/voFu6Aq9

Tried

AOKP-JB

AOSP-JB

Commont patching succeded but Pdroid crashed then.
[Android Software/Hacking General [Developers Only]] :
Anyone have ApG install file? Because the link on this post:

http://xdaforums.com/showpost.php?p=31251429&postcount=570

IS DEAD!
[Android Software/Hacking General [Developers Only]] nk7:
@zylor this ApG the right version? What I used anyway...

http://xdaforums.com/showpost.php?p=31648393&postcount=690
[Android Software/Hacking General [Developers Only]] kobik77:
It is the latest and greatest ;)

This is the post to follow for updates and new versions and no other.
[Android Software/Hacking General [Developers Only]] noonecanhide:
Take a look at first post, the merge of AOSP 4.1.2 broke pdroid ;)
[Android Software/Hacking General [Developers Only]] HyperCriSiS:
Will it be supported anytime? :eek:
[Android Software/Hacking General [Developers Only]] kobik77:
10 chars
[Android Software/Hacking General [Developers Only]] greenblue:
A patchset named "DO NOT MERGE. Add package-name-prefix blacklist for location updates." was merged in 4.1.2 with the following change:

location/java/android/location/LocationManager.java

@@ -260,8 +263,9 @@ private void _handleMessage(Message msg) {

* right way to create an instance of this class is using the

* factory Context.getSystemService.

*/

- public LocationManager(ILocationManager service) {

+ public LocationManager(Context context, ILocationManager service) {

mService = service;

+ mContext = context;

}​

I have managed to get to PDroid to compile with a naively trivial constructor change from:

public PrivacyLocationManager(ILocationManager service, Context context) {

super(service);​

to:

public PrivacyLocationManager(ILocationManager service, Context context) {

super(context, service);​

It builds on the latest cm10 crespo4g nightly. Tested blocking, faking and random GPS permissions without issues. This message should go into pastime1971's dev thread but I do not have enough posts.
[Android Software/Hacking General [Developers Only]] mateorod:
Thank you for putting your efforts into this! CollegeDev actually sent me a fix not too long ago, but I appreciate that you made a fix and shared it! I think that the sticking point on the fix was the changes to PrivacyLocationsManager.java needed to be checked as well, but I left that for either CollegeDev or Pastime to look at. Not my area, let me say.

I have some new builds going and we should be up and running soon. Thanks to greenblue again for sharing his work!

I am also going to be working on the PDroid Extension pack tonight as well. It will almost certainly be in the next update, as in not this hotfix one but the following. He has picked up the development of PDroid since syvat took a walk, so be open-minded about trying the next generation of the app.

At the moment it is only available as build patches and for the S3, but that is of course where the Auto-Patcher comes in. It will be available soon, but I wanted to spotlight it here as CollegeDev sent in the changes for the new PDroid patches as well as for the PDroid Extension.
[Android Software/Hacking General [Developers Only]] dirtyreturn:
http://get.cm/get/4g1 failed patch logs cm-10-20121011
[Android Software/Hacking General [Developers Only]] asicman:
So I can use ApG to create a patch for bigxie 4.1.1 JB ROM (galaxy nexus), which I believe is AOSP-JB, and add the pdroid plugin from within ApG and install the resulting patch in CWM? Is it really that easy to get pdroid integrated into my ROM?
[Android Software/Hacking General [Developers Only]] nk7:
It is that easy thanks to these guys! Download ApG. Let it automatically update and download JAVA and cygwin stuff into same folder the exe file is in sync with github. Think these are big files - about 950 MB once the files are extracted so download size would be relatively big.

Anyway, once this is done, drag your rom onto the ApG GUI --> select mod type to be "pdroid' --> Press Start

I think the program can sometimes autodetect rom type and successfully create patch files (update.zip and restore.zip). If it doesn't work maybe try selecting aosp-jb as the ROM type in the second list box. Then install patch using CWM as you said. And obviously install Pdroid apk and stop the government tracking your location! :silly:
[Android Software/Hacking General [Developers Only]] cliff03:
Does the newest version of ApG includes new PDroid source code patch v1.32 for ICS AOSP 4.1.x, http://www.mediafire.com/?cxe43zko42io4d6 (needs to split framework.jar into two files)?

thanks
[Android Software/Hacking General [Developers Only]] kobik77:
ApG syncs on its start with autopatcher repo on Github. Meaning it will always keep you up to date.

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] mateorod:
Hey guys. Since my inbox is starting to swell with info requests, I am going to give you all a progress report. I know that everyone is excited to use 4.1.2 but nobody wants to do without PDroid, which I totally understand.

I am working on the update and it will be out today at some point. I am taking the opportunity to fix a couple small bugs and a couple other things. But there will something out later today.

Edit: D'oh. I meant to specifically thank romracer, greenblue and CollegeDev, all of whom contacted us with fixes within 24 hours of the breakage. Them's the benefits of community based projects, the kind of things that make XDA go 'round.
[Android Software/Hacking General [Developers Only]] Devo7v:
PDroid for HellyBean

I personally don't know enough about ROM development to know what is going on, but if somebody knows how to get PDroid working for HellyBean I'm sure DerTeufel and a ton of other people would appreciate it. See his comments below.
[Android Software/Hacking General [Developers Only]] mateorod:
New CM10 pdroid patches have been committed to our github. That means that if you are using ApG, you can sync from github and patch. If you are not, I will be putting out an update as soon as possible, I have one thing more I am working on.

If you cannot wait, I am attaching a zip. Unzip it in your autopatcher directory and:

replace the /patches/pdroid/cm10 with the unzipped cm10 folder I have attached

go back to the auto_patcher directory

tar xzvf patch_patches.tgz patches

Run the auto_patcher like usual.

I have a bunch of builds and patches left to make, but since these are ready, I want to give you options. I wish Google would pm me with some heads up before they break our stuff, sigh.

Edit: Please report how PDroid is working for you, I don't have a device to test for right now. I have been flipping back and forth between patches trying to get this up, so some reports would be great, thanks.

Edit2: Attachment removed due to error. Give me maybe an hour.

This is/was a very real problem, something that was one of our major hurdles for supporting AOSP, since we had to institute the framework splitting from a smali level.

The framework.jar was full, so Cyanogen split it. But now the CM framework.jar can no longer accommodate the methods needed for PDroid. In fact, the Cyanogen team keeps adding code to the frameworks.jar as they work, and it is about to become a problem for them as well.

Right now, we delete carrier-specific RIL files from the ROMs in the process of auto-patching, a work-around discovered by tonyp.

However, a user named ninno_mx found some other files we can actually split off into the framework2.jar. This is by far the best solution. I have submitted a patch to Cyanogen in the hopes that they will want to solve this problem for them and us before it becomes a BIG problem. But so far I haven't gotten any response on the code review. I am new to submitting upstream, and I know they are particularly careful about frameworks changes.

But if anyone here submits to CM or has a good relationship with a developer who does, please send them to review this code patch here.

In the meantime, I send DerTeurfel (sp? sorry) to look at this change and he should be able to patch. Although, on second thought, he will need to wait until I can pull these new patches together. Right now there is a bunch of stuff I am having to do by hand, a real hassle. Follow this thread, I will post new patches as soon as I can finish up with the update.
[Android Software/Hacking General [Developers Only]] Dany85:
Hello :)

I have patched the actually nighly (12.10.2012)

at patching getting this error:

http://xdaforums.com/attachment.php?attachmentid=1396514&stc=1&d=1350070928

when i flash the update.zip then get this on the phone...:

http://xdaforums.com/attachment.php?attachmentid=1396515&stc=1&d=1350070928

thats comming ever, wehen i click "ok" comming again...
[Android Software/Hacking General [Developers Only]] mateorod:
Yeah, I just found the problem. I have been working on pdroid_ext and some of it's changes made it's way into the control patches. Give me a little bit and I will update. Thanks for the test...
[Android Software/Hacking General [Developers Only]] Dany85:
no problem...

for you info, i tried now to patch an older cm10 version... (cm-10-20121009-NIGHTLY-i9300.zip - the last 4.1.1) and its not possible anymore...

... apply framework.patch ...
1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/app/ContextImpl$20.smali.rej'

!!! PATCHING FAILED FOR android/app/ContextImpl$20.smali' !!!
!!! patch error for android/app/ContextImpl$20.smali' !!!
[Android Software/Hacking General [Developers Only]] mateorod:
Well, not quite right. We do have a gap in coverage for maybe 3-4 days before the upgrade though. But try a nightly from 10/03 or 4 at worst. Just pass the auto_patcher a PATCHDATE argument.

./auto_patcher ROMSNAME.zip pdroid cm10 20121003

You can see which patch dates are available by:

./auto_patcher ROMNAME.zip -h

All of our old patches ship with the auto_patcher, but the delays in checking in some of the changes caused a brief break in coverage. I was in the middle of fixing that problem when the update to 4.1.2 happened and took my attention.

But anyone can use PDroid on a nightly anytime before the last week, at worst. So we're not doing too bad...
[Android Software/Hacking General [Developers Only]] dirtyreturn:
http://get.cm/get/4h1 cm1020121012 ; log http://codepad.org/mWvhJAvh
[Android Software/Hacking General [Developers Only]] mateorod:
Well, not quite right. We do have a gap in coverage for maybe 3-4 days before the upgrade though. But try a nightly from 10/03 or 4 at worst. Just pass the auto_patcher a PATCHDATE argument.

./auto_patcher ROMSNAME.zip pdroid cm10 20121003

All of our old patches ship with the auto_patcher, but the delays in checking in some of the changes caused a brief break in coverage. I was in the middle of fixing that problem when the update to 4.1.2 happened and took my attention.

But anyone can use PDroid on a nightly anytime before the last week, at worst. So we're not doing too bad...
[Android Software/Hacking General [Developers Only]] nsmart:
I guess this is also caused by what mateorod wrote 3 posts before yours. When there are corrupted patches on github then autopatcher will fail.
[Android Software/Hacking General [Developers Only]] jelle2503:
http://get.cm/get/4f5 cm-10-20121010; log http://codepad.org/3ZVH68UB

succesfully patched with latest ApG. will flash later when my phone is charged, and report back :good:

edit: flashed patch, got intermittent phone FC. Was able to logcat in between FC with Catlog widget :)

http://pastebin.com/ZdFcEh35

edit2: i don't know if this is of any interest but I saw in screen output of autopatcher some fail about line 640:

http://pastebin.com/BZ50Jmss
[Android Software/Hacking General [Developers Only]] dirtyreturn:
how exaclty do patches get corrupted?
[Android Software/Hacking General [Developers Only]] nsmart:
Mateorod wrote it in this post.

He was working on pdroid_ext and some of it's changes made it's way into the control patches. So he mixed together pdroid and pdroid_ext patches.
[Android Software/Hacking General [Developers Only]] kobik77:
Patched and installed latest CM10 nighly.

And it's seems to be working damn fine, tough, I've got line 640 error here too.
[Android Software/Hacking General [Developers Only]] mateorod:
Alright folks, fixes have hopefully been added. kobik, let me know, huh? I needed to add a provisional copy for "ContextImpl$20" and I want to make sure that doesn't throw path errors at cygwin users...

Thanks for the tests/patience, I can tell you that we're getting there...