yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] test123456789012:
Hi there!

I've just now came across your script via an article on XDA :) v6supercharger is something I use regularly but PDroid is new to me. Currently I use LBE privacy guard which is good but consumes precious RAM. I'd like to use PDroid in the future, so would it be possible to add SlimICS to your scripter? It's a pretty darn good ROM and I am sure, lots of people will appreciate that.
[Android Software/Hacking General [Developers Only]] spc_hicks09:
I get an error no matter what I do every time I try to run this script.

Here is the command I type:

./auto_patcher KOA_ROM.zip v6supercharger cm9 latest

This is what I get back:

ghicks09@ubuntu:~/ap$ ./auto_patcher KOA_ROM.zip v6supercharger cm9 latest
### verify tools ###
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: Missing "patch diff tools"
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! please refer to log20120702003442 for any debugging

! patching failed.
! it may be possible to patch /home/ghicks09/ap/KOA_ROM.zip using other patch version

smali auto patcher v0.6.6
pdroid 1.32 patches 2012.06.26.
v6supercharger 0.00 patches 2012.06.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

ghicks09@ubuntu:~/ap$

Any help would be greatly appreciated.
[Android Software/Hacking General [Developers Only]] scutworker:
It means you need to install the linux command "patch". It seems that a lot of distros don't have it included.

Take a look at this post to see how to do it:

http://xdaforums.com/showpost.php?p=26388234&postcount=422

Good luck!
[Android Software/Hacking General [Developers Only]] spc_hicks09:
Thanks for the quick response, gonna check this out and report back.

---------- Post added at 11:50 PM ---------- Previous post was at 11:36 PM ----------

Well that was half the problem, now I get that I'm missing JAR even though I have JDK7 installed.

This is what I have installed on Ubuntu 12.04

OpenJDK Java 7 Runtime

But I get the JAR error no matter what patch date I use.
[Android Software/Hacking General [Developers Only]] scutworker:
I think I just used:

sudo apt-get install openjdk-6-jre

It was something like that and it did the trick.
[Android Software/Hacking General [Developers Only]] kobik77:
It should sync from master unless I missed something out.

Personally, I'm patching cm nightlies without a problem for both galaxy nexus and galaxy s2, but I'll look into it when I'll have the time.

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] mateorod:
I don't know. This is a CM9 kang, and we just can't keep up with all of those, sorry. There are hundreds of roms out there with minor differences, some of which are just enough to break our patches.

That might not even be all of your fails, the patches might fail again later on...the best I can do is suggest you try other cm9 builds, I do know those patches are working for the Cyanogen repos.

No, turns out that he had gone to our Github and pulled those patches off of there, and then plugged the result into ApG. I guess I wouldn't be suprised that someone would do that, but I didn't expect them to then come ask for support.

It is kind of like pulling cherry-picks from Cyanogen, and then sending him pms, lol. I'm not mad, just wasn't expecting it. The combination of the savvy to go to grab experimental patches from our working branch combined with throwing it into a GUI had me grasping for other causes.
[Android Software/Hacking General [Developers Only]] poncik:
i just wanted to let you know about evervolv based roms patched ok with aosp-mod thing, sorry to disturb!

so long and thanks for all the fish.
[Android Software/Hacking General [Developers Only]] magisterludi:
Alright. I'll attempt to compile the patch for the rom im on.

Likely this has been addressed, my pardons if so. I did have one auto_patch complete successfully (appeared to). However, after applying the update.zip and installing PDroid. I receive the "unsupported operating system" error within the app. Is this err evidence of a failed patch or is this a separate issue?

Perhaps a diff patch date may fix it. The successfully created patch used pdroid common, via ApG. If there is any documentation on what minor kang edits or diffs would cause a patch to fail, can you point me to it?
[Android Software/Hacking General [Developers Only]] mateorod:
Pdroid common isn't a patch set. It just houses patches common to all the patch sets. There are unique patches in each specified romtype directory. If you want to patch cm with the auto-patcher, you should use cm9 in the command line.

As far as the what causes the fail, we are working on providing more individualized debugging upon request of that info. But no matter what, to put it to use you not only have to be willing to edit those files by hand, you will have to be better at merging files than the patch command. Which is great at it.

If you want to, you can open up the patches and look at the portion of the patch that contains your failed file. Then go ahead and edit from there. Or remove that section completely. But as I warned you before, that failed patch might not be your only problem, just your first.

The above is really just a guess at answering your question, I don't really know what you are asking. My advice from the first response mostly stands. But if you are bound and determined to patch this ROM and this ROM only, well those are the ways out can do it by hand. No idea if it will work when you're done, though.
[Android Software/Hacking General [Developers Only]] magisterludi:
Im not bent on this particular rom per se. I have been unable to successfully patch any rom for this device. Likely due to lack of an official CM port. Appreciate the clarification on the "common" patch. Its clear now why pdroid fails to start. Perhaps I will have to stick with an app like Appguard, or for more comprehensive perm blocking something like luckypatcher.

Thanks for taking the time to get back with me.
[Android Software/Hacking General [Developers Only]] pcp135:
Something seems off for me when I try the ApG tool. Even after doing the update, when I load a CM7 rom, I do not get any of the options on 'Select mod type' or 'Select rom type' the way the original post shows.

Anyone have any thoughts on what I might be doing wrong. My rom is in a different folder from the ApG tool and packages.
[Android Software/Hacking General [Developers Only]] lunarlandr:
I had tried everything in Zeppelinrox' V6-Supercharger thread and the corresponding thread in my device forum to patch my services.jar file and was still only able to get 50% supercharged. Then I found this thread and bam - one terminal command, a quick flash, reboot = 100% supercharged!! This tool rocks!! Thanks to all the devs who participated in is creation.

"Dark is the night, I'm just a lonesome ol' shootin' star."
[Android Software/Hacking General [Developers Only]] koz:
Autopatcher and HD2

Has anyone been able to make a successful patch for any rom for the HD2 with Autopatcher? I can't seem to get a clear answer whether this will even work with the HD2 or not. Thanks.
[Android Software/Hacking General [Developers Only]] xMemphisx:
This worked! Thanks again!
[Android Software/Hacking General [Developers Only]] Cirkator:
I tried to patch the newest quarx cm10 Rom for Motorola Defy+

It didn´t work, so as requested, i provide another log.

Sorry again, for the long post....
[Android Software/Hacking General [Developers Only]] kobik77:
Try deleting ap folder and re-run ApG.

I'll a check for that later.

Edit: Version 1.0.1.0 is up to fix this issue.
[Android Software/Hacking General [Developers Only]] sert00:
can you fix the link please?:p
[Android Software/Hacking General [Developers Only]] mateorod:
I will add that file to our provisional repo. Which essentially means that when it fails the script will ask you if you want to copy it over. You can say yes, but I don't know if it will work. But with only one failed hunk, I think you have a chance.

Which link? What isn't working for you?
[Android Software/Hacking General [Developers Only]] martinez1:
Blackout ICS + PDroid?

Hey to Everybody

Will this tool allow me to patch Blackout ICS Incredible 3.1.0 with PDroid?

BR

Martinez
[Android Software/Hacking General [Developers Only]] kobik77:
You can always try this yourself.

It can't be easier than it is now.
[Android Software/Hacking General [Developers Only]] pro.aggro:
http://d-h.st/nkN
[Android Software/Hacking General [Developers Only]] sert00:
This..!the link in firt post didn't works for me.thank you,now i can try this tool!;)
[Android Software/Hacking General [Developers Only]] RuffBuster:
Will this patch pdroid for cm10 nightly 0923 on my galaxy s. I've tried asop jb, skip jb, both failed. Tried cm10 and common both produced zips but after flashing them and running the pdroid app it seems they didn't work the app just complains that my phone isn't compatible.

I read somewhere about framework2.jar causing problems and have found this on my from.

I have had this working on a August build of cm10 but had to move roms because of Wi-Fi problems, but I didn't use the util for this I used the windows cygin autopatcher thing.
[Android Software/Hacking General [Developers Only]] mateorod:
If you want to patch a cm10 ROM, use the cm10 patches. They already accommodate the fact that you have a framework2.jar.

The windows cygwin thing you used before, I can only assume is our tool as well. If you are using the GUI, that is just a fron-end for our tool. No difference should be there between the GUI and command-line utility.

Run it for cm10 again, flash the update.zip that produces, and pos a link to the log our tool generates if it doesn't work. The tool works for cm10, your problem is somewhere in the execution.

For everyone: I am pretty much the support team here, and I am going out of town for a week. I may have some chances to check in, but don't count on it.

If you have been using the program for awhile, do me a favor and keep your eyes on the thread, maybe offer some help to newer users.

It isn't difficult, but some people get antsy near the command line. And the sheer number of king's floating around makes it hard for users to know if they are running the utility correctly or their ROM isn't supported.

Thanks!
[Android Software/Hacking General [Developers Only]] Vampyres:
Help needed

Hi!

I own a Toshiba Thrive and I would like to have Pdroid. I am on DaleNet IMM76D.01.000072314 Deodexed Stock Rooted ROM (US ICS 4.0.4).

I tried patching the ROM with the GUI, selected pdroid and aosp, but it failed. The log is attached.

Any ideas?

TIA
[Android Software/Hacking General [Developers Only]] grayfoxmg1:
Your problem is located here (to point out the obvious), it is attached to a Sync script within your ROM. As to what this could be attached to, since you said this is running a variation on the stock ROM is there a Toshiba Specific App (read manufacturer bloat-ware) installed on your device? Sorry I'm not much help, I'm not to familiar with the Thrive. Anyone else got any ideas?

Reversed (or previously applied) patch detected! Skipping patch.
14 out of 14 hunks ignored -- saving rejects to file smali/android/app/Fragment.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file 'smali/android/app/LoaderManagerImpl$LoaderInfo.smali.rej'
8 out of 8 hunks FAILED -- saving rejects to file 'smali/android/content/AbstractThreadedSyncAdapter$SyncThread.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/content/CursorLoader.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/content/Loader.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file smali/android/database/sqlite/SQLiteClosable.smali.rej
1 out of 4 hunks FAILED -- saving rejects to file smali/android/database/sqlite/SQLiteCursor.smali.rej
2 out of 26 hunks FAILED -- saving rejects to file smali/android/server/BluetoothService.smali.rej
2 out of 2 hunks FAILED -- saving rejects to file 'smali/android/view/ViewRootImpl$W.smali.rej'
4 out of 33 hunks FAILED -- saving rejects to file smali/android/widget/GridView.smali.rej
7 out of 30 hunks FAILED -- saving rejects to file smali/android/widget/ListView.smali.rej
... apply preloaded.patch ...
!!! PATCHING FAILED FOR android/content/AbstractThreadedSyncAdapter$SyncThread.smali' android/database/sqlite/SQLiteCursor.smali android/server/BluetoothService.smali android/view/ViewRootImpl$W.smali' android/widget/GridView.smali android/widget/ListView.smali !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed android/content/AbstractThreadedSyncAdapter$SyncThread.smali' in framework.jar cannot be remedied
[Android Software/Hacking General [Developers Only]] magisterludi:
It appears that every single jb rom for the moto razr is based on dhacker / hashcode CM10 or AOKP.

cm10 : http://www.droidrzr.com/index.php/topic/4519-rom-razr-cdma-cm10-alpha-stock-924-925-kexec-924/

aokp : http://www.droidrzr.com/index.php/topic/4201-rom-razr-cdma-aokp-jellybean-alpha-stock-925-kexec-925/

Is the pdroid patch possible on of these bases?
[Android Software/Hacking General [Developers Only]] martinez1:
Blackout ICS + PDroid?

OK. I've prepared zip file using the software provided by pro.aggro (post. #797) and flashed it in recovery. I understand now I have to compile the PDroid source code patch v1.32 for ICS AOSP 4.0.4 (http://www.mediafire.com/?sjh8dmwcfbkeix8) and then install it - is it right?

Since I'm a complete newbie I have a "silly" question - is it technically possible that somebody else compiles it for me? Does he have to have access to any files from my rom?

Martinez
[Android Software/Hacking General [Developers Only]] kobik77:
Damn, something in the 26th update broke CM10 patching

http://codepad.org/3KH5t7Fj
[Android Software/Hacking General [Developers Only]] whoosename:
Guess its similar. Couldn´t patch cm-10-20120926-NIGHTLY-i9100.zip. (Win7/ApG.1.0.1.0) Can anybody help/explain?

See here: http://codepad.org/ZucYEFry.

The same happend running autopatcherv2.1.1 with Linux.
[Android Software/Hacking General [Developers Only]] Vampyres:
Yes, there are some specific Toshiba Apps: Service Station (for updates if and when unrooted), File Manager (with no root access capability), App Place and 2 or 3 more but irrelevant at this point, I suppose.

Is there some hope for me?

Thanks
[Android Software/Hacking General [Developers Only]] grayfoxmg1:
I hesitate on what to tell you to remove/disable as I am unfamiliar with the device. My best guess is perhaps that 'Service Station' app is the one giving you problems. Although I would hold off on acting until another user either confirms my theory or tells me I'm full of s***.
[Android Software/Hacking General [Developers Only]] mateorod:
I appreciate the help other users offered, but the apps installed (bloatware or no) won't affect the auto-patcher, for any mod we offer.

Aosp for ICS is by far our weakest patch. We never got a good handle on that. Those patches work, but really only for things like Mauro and ,maybe the galaxy family.

You ran the program correctly, but we can't patch that ROM, sorry. Try and find a cyanogen-type, then we can probably help you.

Of course the patches break when I go out of town. I am not sure what the solution is going to be. We'll see if something can be worked out, even if just temporarily.
[Android Software/Hacking General [Developers Only]] htrakr:
I used ApG and patched aokp-jb rom and it works perfectly. Thanks!!!
[Android Software/Hacking General [Developers Only]] grayfoxmg1:
Hopefully you waited because as pointed out above, I have no idea what's going on :silly:. Thanks for the input Mate:good:
[Android Software/Hacking General [Developers Only]] les02jen17:
Okay... using APG to patch the v6 supercharger on my Paranoid Android ROM on my Nook Color... for the life of me I just can't understand how to make it work. :crying:
[Android Software/Hacking General [Developers Only]] Vampyres:
Ok, thank you for clearing things up.

I'll have to flash another ICS Rom or wait for JB (if ever JB will be ported to the Thrive...).

Thanks again.

---------- Post added at 01:15 PM ---------- Previous post was at 12:59 PM ----------

I didn't actually wait... In fact, I just read your answer to my post!

Anyway, thank you for your help.
[Android Software/Hacking General [Developers Only]] jpeg725:
I still haven't managed to get the autopatcher to work on a cm10 ROM built for the ZTE blade.

Here is the latest failure. I tried it on the 2012-09-15 build of KonstaT's cm10 for blade.

It seems to be totally ignoring the frameworks patchset. Strange.

Then it fails on services.

I got it working for me by compiling everything from source, so it should be possible. Here is my clockworkmod zip of the necessary files and the logfile from the autopatcher.
[Android Software/Hacking General [Developers Only]] chattyuk:
+1, exact same problem with the latest CM10 on my HTC One X

same version and patches etc
[Android Software/Hacking General [Developers Only]] mateorod:
A hotfix for the failed CM10 pdroid patches is probably available to those of you using ApG already. It has been uploaded to our techerrata page as well, so look there.

Autopatcherv2.1.2 has added ContainerEncryptionParams.smali to the provsional list, which means the program will ask if you are willing to let it copy that file over. Indicating 'yes' will allow the ROM to patch. You guys tell me how well it works after that.

When I get back home to my work computer, i will update the patches in the traditional manner.

Lates.

I see where the autoo-patcher is asking for permission to copy over ActivityManagerService.smali. Did you answer yes twince and allow it to copy over the failed smali file?
[Android Software/Hacking General [Developers Only]] KicknGuitar:
Missing Patch Tool

Not sure what I'm doing incorrectly, I'm assuming something foolish an novice-like.. Anyone care to fill in the blanks? Thank you.

revn-ev:~ eb$ /Users/eb/Desktop/Evans\ Crap/MotoDefy/Mods/mateor-auto-patcher-1ffa6d0/auto_patcher cm-7.2.0-jordan.zip pdroid cm7

The Auto-Patcher v2.1.1

### verify tools ###
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: patch tool is missing
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! please refer to /Users/eb/./log20120929022249 for any debugging

! patching failed.
! it may be possible to patch /Users/eb/cm-7.2.0-jordan.zip using other patch version

EDIT: Resolved. Looks like I just needed to fill out each and every item in the command ie. patch date
[Android Software/Hacking General [Developers Only]] nsmart:
I tried to patch pdroid into cm-10-20120929-NIGHTLY-i9100.zip (galaxy s2) with v2.1.1 and got the ContainerEncryptionParams error. With auto patcher version 2.1.2 I confirmed with YES twice and patching was successfull. I used it for some hours now and it seems to work without issues.
[Android Software/Hacking General [Developers Only]] whoosename:
Oops, I forgot to post my experience, but it was the same as nsmart reported.
[Android Software/Hacking General [Developers Only]] ParanoidHack:
Patches for SAGA ICS RUU

First of all thanks for your great work. Sadly, the patches included do not apply to the official SAGA (HTC Desire S) ICS RUU.

I now manually patched the smali of the (deodexed) framework, which now gives me full pdroid support from what I tried. I think it would be great to include my changes (see attatchment) into your patcher, so others don't need to do this again. However, I'd understand if you choose to only include patches for opensource ROMS, as this patch is kinda reverse-engineered.

Also, I must admit that I did not have a look at the format you used for patches, I created this ones via

diff -rupN original-path patched-path

within my personal folder structure. Hope that works for you ;)

The framework-man.jar.diff is the original patch I did, the framework.jar.diff is what came out after smaling and backsmaling, not sure which version you prefer. I'd assume that the -man version will apply better...
[Android Software/Hacking General [Developers Only]] htrakr:
Used ApG. It didnt prompt for anything. Just saw patching successful (CM10 Galaxy S2). Tested for an hour with many apps. Works perfectly
[Android Software/Hacking General [Developers Only]] dirtyreturn:
20120929 cm9 failed to patch with apg. log - http://codepad.org/iHGET8lW
[Android Software/Hacking General [Developers Only]] kobik77:
That's because ApG responses for you ;)
[Android Software/Hacking General [Developers Only]] AuSSiELaMbChOpS:
Thank you tried this with Revolt JB ROM and it worked perfectly installed the update and then PDroid with no problems at all. Had to redo the whole process when new release of Revolt JB ROM worked perfectly again.
[Android Software/Hacking General [Developers Only]] mateorod:
Well, you are keeping this rom in a folder called cm9. You are also trying to apply cm9 patches as if you think you have an ICS rom. But the rom you are trying to patch looks like a cm10 rom to me.

What do you want, cm9 or cm10? Cm10 patches for cm10 roms, and cm9 patches for cm9.
[Android Software/Hacking General [Developers Only]] dirtyreturn:
Sorry, I dont know what was going through my head. Both CM9/CM10 were patched fine. Disregard the comment.
[Android Software/Hacking General [Developers Only]] switchgott:
Please help!

Its is with slimbean 2.6

### probe rom type ###

!!! JRO03L may not be supported yet, trying aosp-jb latest !!!

... result of ROM check: version= 4.1.1 rom= aosp-jb ...

... Using aosp-jb patches ...

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

!!! error: pdrod is not available

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[Android Software/Hacking General [Developers Only]] whoosename:
What about Auto-Patcher v2.1.2?

@ mateorod.

sorry about that question, but what about Auto-Patcher v2.1.2? It isn't mentioned in OP.
[Android Software/Hacking General [Developers Only]] pcp135:
This worked. I was able to successfully create patch for Motorola Atrix 4G. I am running epinter's ICS ROM, the 0922 build, if anyone is interested.

Thanks kobik; donated to your beer fund. Don't get too drunk, if there is such a thing :laugh:
[Android Software/Hacking General [Developers Only]] jpeg725:
Oops! I thought that YES in capitals meant that yes was the default answer and I would only need to press enter. I tried again and it finished ok. The ROM runs ok with the update.zip installed.

The framework patch seems to fail on the following three bits that the script doesn't replace with prebuilt bits. Still I tested and it seems to work - at least for IMEI and sim info blocking.

... apply framework.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file smali/android/content/[B]ContentResolver.smali[/B].rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/location/[B]Location.smali[/B].rej
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file smali/android/widget/[B]AppSecurityPermissions.smali[/B].rej

Does that mean that the framework patch file has unnecessary bits in it?