yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] kobik77:
^ Working great :highfive:

The Auto-Patcher v2.1.5

### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
inflated: system/build.prop
### probe rom type ###
... result of ROM check: version= 4.1.2 rom= cm10 ...
... Using results of ROM check ...
### 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 ...
... overwriting ContextImplsmali ...
### 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
The next patch would create the file 'smali/android/app/ContextImplsmali',
which already exists! Skipping patch.
1 out of 1 hunk ignored
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 ...
... apply framework.jar.sh ...
... remove unnecessary 29 files to avoid methods cap ...
... apply core.patch ...
... 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
[Android Software/Hacking General [Developers Only]] Dany85:
hmm...

my S3 will not boot whit the patch... hanging on cyanogen bootanimation...

ApG.1.2.0.0 + cm-10-20121012-NIGHTLY-i9300
[Android Software/Hacking General [Developers Only]] kobik77:
Try patching again with both pdroid and v6supercharger selected in ApG (use Ctrl+Left Click) and let us know if makes a difference.
[Android Software/Hacking General [Developers Only]] InfinityFTW:
Tried tabletUI, with ApG on Gtab 2 7.0 JB TW, here is the log: http://codepad.org/Ei3YRAXy
[Android Software/Hacking General [Developers Only]] mateorod:
We had recently switch to Chainfire's (f)aapt. But it looks like there is some issue with that (quite possibly my fault, I haven't looked into it yet, i have a bunch on my plate with this damn thing right now, lol).

I reverted back to our regular aapt which was for sure working on all platforms. Would you try again? It looked like your patching worked fine.
[Android Software/Hacking General [Developers Only]] InfinityFTW:
Yep, i will try again :) Thx for your hard work
[Android Software/Hacking General [Developers Only]] Dany85:
the same...

codepad.org/YlidtYga
[Android Software/Hacking General [Developers Only]] InfinityFTW:
It says succes, but are the changes made to the zip file or is it made another zip file?
[Android Software/Hacking General [Developers Only]] mateorod:
There is a flashable zip called update.zip. It contains just the modded apps for whichever mods you selected when you ran the program.

I am making complete new builds to check the packages so keep letting me know how PDroid is working/not-working.

I also have a proof-of-concept PDroid extension package, but boy is it ugly right now. I am going to have to tailor CollegeDev's patches by hand some before it is ready for testing if this is how it is gonna be. Hopefully these new builds will yield some better results.

Thanks for the patience/ flashing.
[Android Software/Hacking General [Developers Only]] SecUpwN:
Thank YOU for working on porting the PDroid-Extension to AutoPatcher and for your neverending patience. I know we can count on you, Prince Charming! :)
[Android Software/Hacking General [Developers Only]] nsmart:
It does not work for me, too. Patching of cm-10-20121012-NIGHTLY-i9100.zip (Galaxy S2) was successful with APG this morning, but my device stays on cyanogen bootanimation forever. I tried both variants (pdroid only and pdroid + v6 supercharger). Does not make any difference. Without pdroid-patches the rom boots normally.
[Android Software/Hacking General [Developers Only]] wafro:
Hi there,

first of all. Thanks for your hard work. It's a lot of work to keep it up to date.

Just wanted to let you know that I got some errors too. I'm using ParanoidAndroid on Samsung Galaxy S3. Just got the classic 'ServerThread.smali' error. See log in attachement.

I tried this with ParanoidAndroid v2.18.1 and v2.20 and with different settings (pdroid only / pdroid and supercharger).

In advance, thanks for your help and have a nice weekend ;)
[Android Software/Hacking General [Developers Only]] karamelos:
2.20 = jb 4.1.2 = pdroid is not work for the moment .

For 2.18 (I 've this rom gnote) pdroid work fine for me with last autopatcher

Mount system & data before flash
[Android Software/Hacking General [Developers Only]] wafro:
Okay sorry for that. I was reading the whole last 4-5 pages and thought that the github update (cm10) was for JellyBean 4.1.2.

Not 2.18 > 2.18.1. But same here, JellyBean 4.1.2. I will be patient and wait ;)

//edit

But I don't understand. Everybody is trying nightlies here. Wasn't Android 4.1.2 merged with CM? So there should be the same problem?
[Android Software/Hacking General [Developers Only]] proudfoot:
just reporting, cm-10-20121012-NIGHTLY-p5100 + pdroid (autopatch from git) patch successfully but boot loop.
[Android Software/Hacking General [Developers Only]] noonecanhide:
On Grouper (Nexus 7) and Maguro (Nexus GSM) with the latest nightlies bootloop, too. Patching was successfully, but it breaks something important. Got a short look on logcat, a lot of androids internal system services (wimax, vibrator, powermanager,...) are crashing and then retried to start => bootloop
[Android Software/Hacking General [Developers Only]] dirtyreturn:
http://get.cm/get/4hH ran the patcher twice-second one was patched.
[Android Software/Hacking General [Developers Only]] mateorod:
Thanks to everyone for their tests.

I have updated the github with new CM10 and AOKP-JB patches. These look much better, there has been some new commits from upstream that have solved one of the major problems I was having.

But these patches still need to be tested out...I have verified they patch, but I won't know how pdroid runs until you tell me. ApG users willing to be guinea pigs, go ahead and sync from github and please report back.

Thanks guys.
[Android Software/Hacking General [Developers Only]] nsmart:
I tried it and can confirm it works (patching works, rom boots normally and pdroid is fully functional).

I successfully patched cm-10-20121013-NIGHTLY-i9100.zip (Galaxy S2) with APG a few minutes ago.

EDIT:

Pdroid also fully functional on cm-10-20121012-NIGHTLY-grouper (Nexus 7).

Thank you mateorod for all the work you put into this. I did'nt expect working patches so quickly.
[Android Software/Hacking General [Developers Only]] arko7123:
successfully patched CM10 HTC ville pdroid with ApG :)

it works fine for me

thank you :good:
[Android Software/Hacking General [Developers Only]] mateorod:
Thanks for the reports:

For everyone, the new downloadable 2.1.6 is available on our download page.

I have added thanks to the OP for greenblue and romracer for their work suggesting fixes. This is a community project that distributes the work of others, and we very much appreciate their contributions. CollegeDev sent me the fix that I ended up using, but they all came to same conclusions and spent their time helping to fix the project.

romracer makes roms and custom recovery for the S2, if you have that device it comes recommended here!
[Android Software/Hacking General [Developers Only]] SecUpwN:
mateo, how far is the progress on AutoPatcher to patch ROMs for PDroid-Extension? I'd like to replace PDroid.
[Android Software/Hacking General [Developers Only]] dirtyreturn:
http://get.cm/get/4hH patched and seems to be working without problems.
[Android Software/Hacking General [Developers Only]] karamelos:
Hi,

I tested auto_patcher 2.1.6 on paranoidandroid 2.20 & 2.21 & thread in this forum

So I’ve same result: patch failed (with pdroid option only, cm10 or date)

The log is similar for 2.20 & 2.21 see attachment
[Android Software/Hacking General [Developers Only]] thibz:
Auto-Patcher 2.1.6

Samsung galaxy SII I9100

./auto_patcher cm-10-20121013-NIGHTLY-i9100.zip pdroid

Working, good job !
[Android Software/Hacking General [Developers Only]] alharaka:
Used Autopatcher 2.1.6 via ApG on Windows 7 32-bit updated via Github to patch 13 October 2012 build of the Paranoid Android Utacka build. I am not sure I have understood your updates re 4.1.2 JB patches, but it fails for me. Again, am I too far ahead and need to move back? Sorry for this.
[Android Software/Hacking General [Developers Only]] mateorod:
Looks like you both are having trouble with pa from Utacka for the n7000, is that right? I couldn't get the link from karamelos to go through. Either way, I have had a problem with that build before, I think.

You are having ServerThread issues, which are very hard to resolve if there isn't a native fix. have you tried the earlier patch set? With projects like these, there are sometimes portions of the builds that the PA maintainers have forked. I maintain the PA rom for the Nook Color, and I have our device and both vendor/cm and vendor/pa forked in order to have the ROM build like I want. But that means that I have to check in the upstream changes personally.

Since the change that created the changes in ServerThread are basically brand new, i would try the earlier patch set and just see if the current patches work for your next build. If not, let us know. But since these patches are confirmed working for current CM10 and PA is directly based on CM10, I can only assume that your build will catch up to our patches soon.

There may have to be a new update for 10/15. Cyanogen merged my upstream commit, which is going to be very helpful long-term for both us and for Pdroid_ext. But it may necessitate a bit of a reorganization. It got merged late tonight, so we will see.

I also have AOSP builds going and am continuing to put the pdroid_ext package together. The problem is the resources, I have had my machine building literally 24 hours a day since 4.1.2 dropped. So that takes time.
[Android Software/Hacking General [Developers Only]] karamelos:
Thanks for your interest & support.

just a precision my rom is build by imilka but not big difference

Well I'll try another rom
[Android Software/Hacking General [Developers Only]] alharaka:
Thanks a lot for your reply, especially since I have been persistently annoying. I will talk to Utacka and see what can be done, and will come back to beg for your help if necessary. Thanks for your help, and I so desperately want this cool patch on this ROM. I hope one day this work get's merged into any ROM, because I would say this privacy framework is some of the most important work I have seen on Android to date. Thank you.
[Android Software/Hacking General [Developers Only]] bundik:
I've seen few people complaining about:

Unfortunately, the process com.android.phone has stopped.

I've seen this problem on the customized CM10 (for SGS2) version I'm using, after I've used auto-patcher.

I've discovered that when pdroid/cm10/framework.jar.sh is executed, it removes all Smdk4210RIL related RIL files. The script got the right $RIL variable, but it contained extra '\r' character, hence the comparison failed and removed the necessary files:

... remove unnecessary 29 files to avoid methods cap ...

I've then checked the build.prop file and converted it to Linux line endings; started auto-patcher again:

... remove unnecessary 25 files to avoid methods cap ...

Everything worked properly after that.

May I suggest a small patch (tr - d '\r' added to getbuildprop):

getbuildprop () {
if [ -f system/build.prop ]; then
result=(`grep $1 system/build.prop | tr -d '\r' | tr '=' ' '`)
echo "${result[1]}"
else
echo ""
fi
}

Please note - I've tested this under Linux only. I'm not sure how this behaves with Cygwin. You might come with a better solution.

PS: Some sort of fail-safe could be added to that script too - like to check for count of valid RIL files and count of "GARBAGE" files and if they are equal throw an error or something.
[Android Software/Hacking General [Developers Only]] Klaus N.:
Build of an application list

Hello guys!

Androidpatcher V2.1.6 built successful an update.zip for my i9100 (CM10-Nightly from today). But in contrast to earlier patches PDroid always aborts every time I try to build an application list.

Thank you for your kind help!

Klaus.
[Android Software/Hacking General [Developers Only]] mateorod:
Hey thanks! I just got a commit merged upstream which will hopefully end the need for RIL deletion for now. But that doesn't mean that we won't need it again in the future. I am thinking Google might fix the issue for 4.2, but if they don't we will inevitably hit that method cap again.

I am going to test and then most likely merge your changes later. Do you use Github? If so, maybe you would like to fork and then send me a pull request?

Not at all necessary, I will edit it in either way, but that way we could preserve authorship and have you on the Github contributor list.

I will look into the application force close the next poster mentioned...there is a bunch of upheaval with the upgrade to 4.1.2 so I don't want to chase too many errors now since we are going to update soon (maybe tonight...that commit I linked to above is going to be helpful, but it will also require a bunch of changes in the Auto-Patcher structure. Making more work for myself...)

For those of you on Linux, I was sent a wrapper script a long while ago that allows you to update from Github, I think I need to take another look at it. The way the ApG users were able to test my patches immediately was a great help, and I felt like I was leaving our *nix users in the cold.

I wanted to look more closely at that wrapper at the time but things pile up, you know? One of the other advantages of pull requests...although I need to attend to that RIL bug stat, either way.
[Android Software/Hacking General [Developers Only]] Klaus N.:
@mateorod

I want to thank you for your great work. Sry, in the future I'll post it in the right thread...

Greetings from Germany

Klaus.
[Android Software/Hacking General [Developers Only]] karamelos:
Finally i jumped to cm-10-20121014-NIGHTLY-n7000.zip 2012-10-14 fresh upload today12:39:49

& pdroid WORK FINE :D
[Android Software/Hacking General [Developers Only]] horqai:
Just to let you know, the patching of PARANOIDANDROID 2.2 for the nexus 7 fails too. http://paranoid-rom.com/forum/changelogs-news/324-pa-v2-18-v2-2

Here ist the interessting code:

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...
\vergrößert: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... overwriting ContentResolver.smali ...
â€žpatches/pdroid/common/provisionals/system/framework/framework.jar.out/smali/android/content/ContentResolver.smaliâ€œ -> â€žtmp/system/framework/framework.jar.out/smali/android/content/ContentResolver.smaliâ€œ

### 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' !!!
!!! patch error for android/app/ContextImpl$20.smali' !!!

Best regrads

Horqai
[Android Software/Hacking General [Developers Only]] RuffBuster:
A MASSIVE THANKS!! just patched x-bean 4.1.2 for galaxy s. It failed the other day but since the last github change everything is running great presumably..
[Android Software/Hacking General [Developers Only]] mateorod:
Thanks for the reports everyone. There seems to be the consensus that some of the PA roms are failing, only to work on later nightlies. Which would jibe with my theory that it is ust a matter of some of the upgrade commits needing to get merged. But we'll see.

I am going to work on the auto-patcher tonight, tomorrow's nightlies are the first that are going to include the modified framework2.jar, so I have to institute a framework where those classes can be found. Probably have to change the structure some, and I may have some of you ApG people test later. We'll see how it goes.

But while I am going to try and get on top of the changes, we may have a few transition issues. But still, we're moving pretty quickly here, considering the upgrade to 4.1.2 broke our patches at the same time as a major framework change was separately introduced. I will try and keep rolling out patches over the next 24 hours as needed.

Edit: For instance, with the failed PA builds, I made these patches from Nexus 7 source code. So there is NO reason that grouper PA builds should fail except that they simply haven't merged all the commits yet. Give it a day or two, and at the worst, check our next update which will be within 48 hours and hopefully a little sooner.
[Android Software/Hacking General [Developers Only]] SecUpwN:
Are you working on integrating the PDroid-Extension too? I'll send you mental strength by thinking of you! :)
[Android Software/Hacking General [Developers Only]] mateorod:
I know you are anxious my friend. But i got my first look at the PDroid extension when you did, and putting together packages like this takes time. And that is without the various major structural curveballs we've gotten this week, each of which necessitates a literal start from scratch.

I would like for it to be done as well, I have the one machine and can only do so much. I had a proof-of-concept put together, but that new commit invalidates that. So i must start again. If you look over the last week of this thread, there is probably 50 man hours put into it, and only this one man to do it.

Faith; patience; profit.

Update 1:00 am: Some structural changes have been uploaded to github in anticipation of new nightlies. The big changes are internal, and if things went well, you shouldn't notice them unless you are using aosp-jb. But it involved a bunch of symlinks and file movement, so there is the high likelihood of human (me) error. Report problems with symlinks or copying files please.

I have been running builds through the auto_patcher and the majority of them are patching fine. But there are some builds that are failing with ContextImpl$18 or $20. We are just going to keep our eyes on things from this end, and be ready to investigate new patches if the errors keep showing.

But as of right now I am considering them merge deficiencies.
[Android Software/Hacking General [Developers Only]] switchgott:
Hi,

please could someone tell me, which APK pdroid you have installed??

Everytime i get FC with pdroid extensions and pdroid.

Any idea?
[Android Software/Hacking General [Developers Only]] mateorod:
There is a link to the original PDroid thread in the OP, right under the available mod section. There is a downloadable apk in that thread's FAQ.

AFAIK, though, Pdroid_extension is incompatible with Pdroid. That is to say that if you try and run one on top of the other, you will get FCs in both. I could be wrong about that, but I though I saw that mentioned in the PDroid extension thread.

As far as the Auto-Patcher goes, we do not support the PDroid extension yet. We are working on it and when we do i will have more info about what db's are needed to be cleared and all that.

If you are having trouble with PDroid after using just the auto_patcher, you can post your log, although if you are trying to patch anything other than straight aokp-jb or cm10, we are somewhat waiting to see how the new patches are working on those.
[Android Software/Hacking General [Developers Only]] switchgott:
YOUR are my master!Thanks!!!

It works :)
[Android Software/Hacking General [Developers Only]] smartymcfly:
I am attempting to use pdroid with patch on epic 4g touch. I ran autopatcher on this Tersus-FI27 debloated deodexed ics 4.0.4 rom. I believe it patched successfully and saved a copy but when I flash the patched rom and then try to open pdroid the program says it will not run on ICS or JB.

http://xdaforums.com/showthread.php?t=1931073&highlight=fi27

Has anyone else attempted to patch this rom to use pdroid
[Android Software/Hacking General [Developers Only]] RuffBuster:
I'm using a ASOP-JB build of rom of the 4.1.2 family. Patched with sucess like I said above. But today I wanted to make the same patch again for the same ROM and now patching fails. I wanted to also add the V6 supercharger but the patching now fails with all combinations. Is there a chance of reverting my AGP Util back before the github changes and stop it updating. Thanks for all your hard work this is a great project. I still have the update.zip from before so still working with PDroid, just really wanted the v6 also. cheers!
[Android Software/Hacking General [Developers Only]] mateorod:
There is a logfile generated with a run of the auto-patcher. Please post it with support requests, it is basically impossible for me to know what is happening without it. Thanks.

edit Also, all patches all included with each instance of auto-patcher. I don't know how ApG works exactly, but I think you have to manually update it. But any patches that were in the last version are included in the next. So whatever patches worked for you before are still there.
[Android Software/Hacking General [Developers Only]] poncik:
apg patched evervolv jb 4.1.1 successfuly with aosp-mod 20120809.

now with latest evervolv jb 4.1.2, patching failed. (http://evervolv.drewis.com/Nightly/2012.10.15/Evervolv-turba-3.1.0-bravo-nightly-20121015.zip)

here are the logs, i hope it helps.

aosp-mod 20120809

http://codepad.org/eaC3z919

aosp-mod latest

http://codepad.org/KcD7HGbs
[Android Software/Hacking General [Developers Only]] chrootz:
Hi - I tried patch SynergyROM ICS 4.0.4 (http://xdaforums.com/showthread.php?t=1792499) and it was failed.

I ran ./autopatcher Synergy_d2vzw_25Sep12_0416_r73_s.zip pdroid and spew lot errors.

I also tried using generic or aosp both still failed.

Here the log.
[Android Software/Hacking General [Developers Only]] Sec0nd:
Patch failed

The patch has failed again :(

Quarx CM10

Log: codepad.org/mHclwkjR
[Android Software/Hacking General [Developers Only]] mateorod:
Okay, new patches have been uploaded to github, I know I always say this, but they look better. These here are for cm10, so ApG users let me know how they go.

You will notice some ignored or reversed hunks...that is due to the new classes being moved to framework2.jar which isn't registered in this patch set yet.

* If you get a failure about method cap when the script tries to recompile, that means that your ROM has not pulled the latest commits yet and you likely need patches from 20121003.

Let me know guys...