yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] itsjustbilly:
I have a query regarding the rom i was using found here:

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

I recently and successfully patched the v14 of this rom and pdroid worked a charm, but since the rom was updated and the script was updated i went through the same procedure to patch it and was greeted with the following text:

$ ./auto_patcher asylum-ics-16.zip pdroid,v6supercharger
### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
### probe rom type ###
inflated: system/build.prop
### 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/cm9/latest ###
### apply framework.patch ###
Reversed (or previously applied) patch detected! Skipping patch.
15 out of 15 hunks ignored -- saving rejects to file 'smali/com/android/internal/telephony/RIL$RILSender.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file 'smali/com/android/internal/telephony/sip/SipPhone$SipConnection.smali.rej'
... apply preloaded.patch ...
### apply core.patch ###
### apply services.patch ###
### patch v6supercharger/cm9/latest ###
### apply services.patch ###
### rebuild framework.jar ###
### rebuild core.jar ###
### rebuild services.jar ###
### create updater.zip ###
### finished ###
flash update.zip to install the modified
flash restore.zip to restore the original

Did my patch work or are those skipped hunks actually errors? It looks like all the hunks in framework have been skipped

I don't really want to update my rom if pdroid is not supported in this newer version? TIA
[Android Software/Hacking General [Developers Only]] mateorod:
The script has been written as to only output errors in the patching process. It actually patches a bunch of files in the framework.jar.

In almost every case, ignored hunks are not a problem. That just means those files are in the shape they need to be in for Pdroid to work. I haven't seen those particular files be ignored before, but that doesn't mean much.

I would go ahead and flash it. The worst thing that could happen is that it doesn't work and you can simply reflash the rom over it.

But my bet is that PDroid will work for you.

Edit: You could also try using an older patch set for PDroid and see if those ignored hunks go away.

Get the available patch sets by entering

./auto_patcher <ROM.zip> -h

and then try the patch sets by entering

./auto_patcher <ROM.zip> v6supercharger,pdroid cm9 <DATE>

----------

For those of you trying to patch a variation of SlimRom, I don't think we'll be able to do that. After some investigation, I remembered that several users have contacted the dev for help and he was simply not interested.

I will say that it seems like a simple AOSP build with a few cherry picks. I don't think that this dev has actually written any of his own code. So it is conceivable that an enterprising person could build a semblance of this rom and we could develop a patch from that. But I wouldn't consider it likely.

The auto-patcher was developed with the aim of making the porting process, be it themes or mods, easier. If a developer keeps their source closed it is usually because they actively want to discourage exactly this process. The SlimRom site states this explicitly, and so I doubt we're going to get much farther towards adding support for that project, even if our aims are only to bring software to it as opposed to distributing anything SlimRom related itself.
[Android Software/Hacking General [Developers Only]] karamelos:
See post of @grayfoxmg1 & @kobik77 (link in op & trouble repertory)

i try it on ubuntu

patch & log : http://d-h.st/4YF

&

good end of the year all (accessory: the new year :p )
[Android Software/Hacking General [Developers Only]] rxmd:
I'm trying to patch a 4.2.1 AOSP ROM for the Nexus 7 with PDroid and get an error message about "unknown ROM version 4.2.1".

Does that mean that Autopatcher doesn't support 4.2.1 in general, or only that 4.2.1 is unsupported by PDroid? What is the "highest" ROM version supported by PDroid?
[Android Software/Hacking General [Developers Only]] User_99:
4.1.2 is working. Latest 4.2.x not
[Android Software/Hacking General [Developers Only]] rxmd:
OK, thanks. I patched the "vanilla" AOSP 4.1.2 ROM from http://xdaforums.com/showthread.php?t=1930367 now and it seems to be working. Will report later if there are some problems.
[Android Software/Hacking General [Developers Only]] karamelos:
Hi

Aokp, cm + PA & other I think not working.

Auto patcher & patch make with pure build (some exception)
[Android Software/Hacking General [Developers Only]] baastien:
Hello my friend !

Thanks for the feedback. Al right so PA is the more hybrid we can expect to deal with. Understood any other more complex ROM are too complex to get autopatch work for them.

BTW enjoy your holidays & merry Xmas !
[Android Software/Hacking General [Developers Only]] karamelos:
Yes with some ROM it's possible pass out (with play or force option )
[Android Software/Hacking General [Developers Only]] Sir Unimaginative:
I tried running ApG 2.0.0.0 under Windows 8, in Administrator mode, in various compatibility modes, with the folder it's in and everything in it set to give Full Control to my user account and no attached or inherited deny flags.

"Failed Downloading Java"

"Failed Downloading cygwin"

"48, Failed finding log file"

Workaround (tentatively successful):

Manual download and extraction of java.exe and cygwin.exe from site in ApG.ini; run these in ./ApGPackages (relative to where ApG itself is).

Add version numbers from java.exe and cygwin1.dll to ApG.ini. Other users can probably just use my ApG.ini.

Run ApG, check for updates.

Patches successfully. Tested with CM10 Encore 2012-12-29, tabletUI and v6supercharger patches. Still testing whether generated patches run properly on the Nook Color itself.

This workaround works regardless of compatibility or administrator mode and with default filesystem permissions.

ApG.log included, if it helps any.
[Android Software/Hacking General [Developers Only]] Mrktmind:
I've run APG 2.0 in Windows XP sucessfully several times.

Today I get a "failed to download Java" and failed to download cygwin.

System could not find file. (Line #310)

What gives??
[Android Software/Hacking General [Developers Only]] mateorod:
I do not have any experience with ApG, sorry. I known that some people have had some problems due to conflicts with their antivirus. There is a link on the OP fpto a post by Grayfoxmg1 which provides some Windows-ApG tips. I do know that ApG is completely safe to run.

@wkwkwk- That doesn't look like a problem with the kitchen part...just looks like a flat out failure to patch. We are working (I promise) on stock patching. The factory images on Nexus devices are not exactly AOSP, there are differences. I would look for an AOSP or CM build for your device, OK know they exist and are patchable.

Thanks to everyone for their patience with 4.2, it will pay off. And thanks to karamelos and grayfoxmg1, as always, for their willingness to help newer users while I am busy working on other aspects of the project.
[Android Software/Hacking General [Developers Only]] Mrktmind:
@mateorod - Thanks for the reply. I got it working by manually downloading java and cygwin.

Getting the autopatcher to work on stock ROM's would be a HUGE plus. I didn't know you were considering it. I'm stuck using a beta version of CM10 and would love to be able to use Pdroid with a Stock ROM!

Thanks for your efforts!!
[Android Software/Hacking General [Developers Only]] wkwkwk:
Ah, that explains it, thank you. I thought that the factory images are more or less AOSP.

About PD2.0, has the Llama (location profiles) bug been fixed? I'm still using PDroid as Llama is incompatible with PD2.0.

Thanks.
[Android Software/Hacking General [Developers Only]] takota6:
Cygwin and java zip go where? The agp folder.OK but parts of what goes where?

Maybe sum one could give up a clearer step by step for a first timer over 35 please...galaxy s3 cm10 nightly 12/16
[Android Software/Hacking General [Developers Only]] Gargantuantua:
I flashed pdroid onto latest aokp and installed the apk. I set all profiles to random but when I open Maps it shows my real location. Is that normal?
[Android Software/Hacking General [Developers Only]] karamelos:
Clear all cache
[Android Software/Hacking General [Developers Only]] semininja:
I still get stuck in the boot cycle when I try to patch TabletUI into a CM10 nightly (in this case, the Dec. 30th one). I've attached a log which includes this:

### jar patch tabletUI/jellybean/cm/20120826 ###
... apply android.policy.patch ...
... apply services.patch ...
### apk patch tabletUI/cm/20120826 ###
... apply framework-res.apk.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file res/values/bools.xml.rej

Any advice?

Thanks in advance!
[Android Software/Hacking General [Developers Only]] wbedard:
Maps is a particularly difficult app to deny location to, since it has several mechanisms for getting that info, some of which are integrated into the OS. If you're just testing to see if PDroid works, use another app. If you -really- don't want Google to know where you are, you could always use Airplane Mode. Seriously though, if it's really critical for you, I have done it with some effort. Let me know what device you are using and I'll try to help you out.

R/

wbedard
[Android Software/Hacking General [Developers Only]] beginnerteur:
Hello,

I don't want to go on and on, but I don't want to read the whole 160 pages :D

Will PDroid (2.0) work in future with Android 4.2 or is the development stopped? If it is someone working on it, excuse me very much, I don't want to force nobody!
[Android Software/Hacking General [Developers Only]] My Gnexi:
Or you can disable "Google's location service" in settings...
[Android Software/Hacking General [Developers Only]] wbedard:
Another excellent option...:>)
[Android Software/Hacking General [Developers Only]] Completely_Clueless:
Can't Use Auto-Patcher GUI

Hi. I downloaded the Auto-Patcher GUI for Windows that Kobik77 created and put it on my desktop. But when I run it, it tells me that it failed to download Java, failed to download Cygwin, and then I get an error. I can't use the program after this. I installed Java JDK and Cygwin manually, but the program still gives me the error when I run it. I'm not running an antivirus program and I've disabled Windows Firewall.

Can anyone help?
[Android Software/Hacking General [Developers Only]] mateorod:
There is something going on with ApG, maybe. I have seen some instances of this. See the OP for a link to a post by Grayfoxmg1 about how to allow ApG to do it's job.

Those ignored books just mean your device has lock screen rotation already. I haven't checked the TabletUI in awhile since no one was using it. But I can take a look over the next day or so.

It will be available relatively soon.

See my advice at the top of this post. Or just use the command line utility. If you have already installed java and cygwin, simply rerun the cygwin.exe and install the patch and cpio utilities in the cygwin setup. Then it is just one command away, directions in OP. Or follow grayfox's ApGadvice linked to in OP.
[Android Software/Hacking General [Developers Only]] Completely_Clueless:
Thanks for the reply. I just tried the regular auto-patcher (command line tool) via Cygwin terminal. It failed to patch. The ROM I am trying to patch is AoCP CP 4.6, and I'm only interested in patching for PDroid 2.0. I've attached the log file.

EDIT: Nevermind, I think I know why the patch failed. I re-read the OP and forgot you mentioned you don't support skinned AOSP mods, which I'm assuming AoCP is one. At least, I think it's a skinned AOSP mod, the patcher said it was an "AOSP-mod."
[Android Software/Hacking General [Developers Only]] mateorod:
If you are attempting to patch a ROM that is outside them scope of the supported roms list on the OP, there is no guarantee that it can be patched. We can make patches for it, but the reason it is not supported is because there isn't sufficient interest in the ROM yet.

However, the auto-patcher runs a rom-probe, which works on our supported ROMs and sometimes outside of them. But it did not find the best match in your ROMs case. Sincemit looks to based on CM and AOKP, try passing the same command but with first cm and then if it doesn't.t work, aokp immediately afterwards.
[Android Software/Hacking General [Developers Only]] Completely_Clueless:
Thank you for the explanation. I did as you said with 2 ROMS: the AoCP I linked to in my post before this, and also AOKP, Jellybean 4.1.2. The commands I used were along the lines of

./auto_patcher [name of ROM] pd2.0 cm

and

./auto_patcher [name of ROM] pd2.0 aokp

In both cases, for both ROMS, the patching failed.

But even though I wish I could get them to work, I've no complaints and I'm still grateful that you made the auto-patcher and took the time to reply to my posts. I did use auto-patcher some time ago when CyanogenMod 9.0 (ICS) came out and it worked just fine there, so a big thank you for that. I understand that sometimes not everything will be supported, so I'll just be patient and hopefully in the future I'll be able to use PDroid 2.0!
[Android Software/Hacking General [Developers Only]] mateorod:
I am spending much of my free time on updates to this project. I know the thread looks quiet, but it has stayed at the top of my action list. Bringing these projects to wider scope is still important to me. After 4.2 gets done, however that is accomplished, then comes the big overhauls to the auto-patcher itself. It WILL widen our scope (which is already really wide, actually,better than the original Pdroid ever had, and the task has gottenmexponentially larger since then) the question is how much. Here's hoping...
[Android Software/Hacking General [Developers Only]] SilentEYE:
And I promise you that I will make you a donation for your effort. Because in my opinion, PDroid is the most important app for Android devices.

I am so sad that even apple has managed to protect users privacy with IOS 6.
[Android Software/Hacking General [Developers Only]] m0d:
ApG does not work on desktop -> move it to another folder

, i.e. c:\ApG\

[ ApG does not sync with github if it is placed in desktop ]

If you did a search for Desktop you would have found this post - http://xdaforums.com/showpost.php?p=33741575&postcount=1332
[Android Software/Hacking General [Developers Only]] Completely_Clueless:
I did actually do a search through this thread and found some posts a few pages back with the same problem as me, but the reason I made a separate post because (1) those people were weren't using Windows 7, (2) I'm not using an antivirus or firewall, and (3) I manually installed Cygwin and JDK. And I did read kobik's initial OP where he said it didn't work in certain paths.

The first thing I did was move the file, first to C:\User\Downloads, then to C:\. Neither worked. I actually did this on two of my computers; a laptop with UAC on and my desktop computer with UAC off. I ran it as administrator on the laptop. Neither of these computers have antivirus software. On both computers I got the error, so on both computers I manually installed Cygwin and JDK. Still got the error, so I made the post.

Regardless, since I had Cygwin and JDK manually installed (and Java added to PATH, as instructed), I just went ahead and did it the command-line way on my desktop. No complaints with regard to ApG.
[Android Software/Hacking General [Developers Only]] semininja:
I seem to have exceptionally bad timing when it comes to posting these things; I think my post may have got lost again. Sorry to be a bother...
[Android Software/Hacking General [Developers Only]] grayfoxmg1:
my folder, let me repeat FOLDER of ApG is on the desktop. If you were to look at it through a directory it would be C:/Users/Grayfoxmg1/Desktop/autopatcher
[Android Software/Hacking General [Developers Only]] Magissia:
i patched my CM10 rom (gierdo's CM10 build for tf101) and it made appear the SMS program, while i have no problems with it, i'm not sure it's sposed to do that.

(used the pather to install pdroid2)

Regards
[Android Software/Hacking General [Developers Only]] karamelos:
SMS appeared in patch logs but it's fixed .
[Android Software/Hacking General [Developers Only]] tousle-p:
I modified the pd2.0 and openpdorid patch for Quarx's CyanogenMod roms. Maybe someone wants to try it and can feedback if it works. (I just test the patch with ApG and it seems to work)

Installation

For Windows/ApG: start ApG first and wait until ApG is initialized (java, cygwin, etc.)

Unzip the attached file in auto_patcher directory

(for ApG: <ApG-directory>\ApGPackages\ap)

Add modified patch to patch_patches.tgz using quarx.sh

(for ApG: start ApG and press Manual Patching to access Cygwin, then using quarx.sh)

./quarx.sh

Patch rom

./auto_patcher <romname>.zip pd2.0 cm-quarx

or

./auto_patcher <romname>.zip openpdroid cm-quarx

(or restart ApG and use appropriate menu item in ApG-GUI)
[Android Software/Hacking General [Developers Only]] takota6:
SUCCESS... Txs for the clues mateorod
[Android Software/Hacking General [Developers Only]] mateorod:
No bother...just was still getting my family stuff together after the holiday...the school breaks kill my routine. I will build and test tabletUI within the next 24 hours, I promise.

I will take a look at this, although I do not have the hardware to test...but once 4.2 patches are released maybe we can talk about integrating the same thing for that if Quarx is still a corner case.

Edit: And let me just say that I like the way you implemented that...we had a very similar method in mind for adding user submitted patches, as in patches for roms that people may want but are not popular to the point where I can rationalize including brand new rom types and complications to the program. My thought was to have an adjunct patch file that the patcher could test for and then use in a very similar manner to your script/call.

I have an issue related to it on the Github repo somewhere...anyway cool stuff. Hopefully someone can let us know how it works.

Oh yeah. PD2.0 and Pdroid Manager both provide modifications to the MMS app. I was patching it directly for awhile but due to problems with the patch I started manually copying it over. I will probably go back to simply patching it next update. But for now, if your rom does not usually have MMS.apk, it will magically appear. You can uninstall it with no side affects.
[Android Software/Hacking General [Developers Only]] ixrs:
I'm getting a "failed downloading cygwin" error from ApG.
[Android Software/Hacking General [Developers Only]] grayfoxmg1:
couple of things:

1st: could you please try to refrain from quoting OP's and huge posts, it clutters up the thread.

2nd: need more info, where is your ApG folder at? are you running as administrator? is your virus protection still on?
[Android Software/Hacking General [Developers Only]] nk7:
Are you using peerblocker or some IP address blocker? Firewall not blocking internet access?
[Android Software/Hacking General [Developers Only]] mateorod:
As always, thanks for being the ApG support line, grayfox. Could I ask another favor of you?

Below you will see a post asking for help by semininja. This person is having a bootloop with tabletUI for Nook Color. I know it was working for Nook users in early December, but there are some particularly weird things about the Nook installer, some related to bugs in verygreen's sdcard script and some simply due to the updater-script that comes with Nook roms. I had to code in some very particular instructions if the Autopatcher detects it is patching for the Nook.

Could you check tabletUI on a recent CM10 nightly for the Nook? If it doesn't work, could you attach the log, and maybe even a logcat?

Sorry I can't do it myself...in my spare time I was porting AOSP to the Nook hardware. I was lazy and hadn't set the flags correctly in source so I was having to check the tests with older prebuilt kernels and uboots and so on. Well, I flashed an AOSP build with a boot.img in it by accident (kids with guns...) and wiped out ALL of by system and backup partitions. I have been meaning to rebuild them by hand but the PDroid stuff has kept me hopping....anyway, can you check for me?

Just for next time, the log you attached was actually just the terminal log. In the output directory there is also a logfile generated by the program. But I know it can be confusing...as you can see I am looking at it for you. Thanks for the patience.
[Android Software/Hacking General [Developers Only]] Deviant Ollam:
Java and CygWin woes

Count me in as one more person who is unable to run the Auto-Patcher due to Java and CygWin errors.

No, i am not running this on the desktop. Yes, i read GreyFox's comments that everyone references. No, i am not running A/V software. Yes, i have manually downloaded and installed Java and CygWin. No, that did not help.

Any thoughts on what I should do next? From where exactly is ApG attempting to download these packages? Why would it be failing for some of us?
[Android Software/Hacking General [Developers Only]] mateorod:
Well, I cannot really tell you. I didn't write the GUI for Auto-Patcher that is ApG. A contributed, Kobik77 wrote it for us. He has a bunch of real life things going on and will update it if he can. My guess is that the mirrors he assigned to cygwin or the jdk are possibly no longer good. But maybe it is working just fine and the problem is elsewhere. I don't have Windows so I cannot check, nor do I have a copy of the ApG source code

I have considered pulling the link for ApG, but I am going to wait until I find out for sure what the issue is. It really is a great addition to the Auto-patcher and has inspired bunches of people to try it who may not otherwise.

The best thing to do is just to run the auto-patcher script. I understand why some people would rather use the UI, but it only takes one command in the terminal. If you already have Java and Cygwin, you are mostly there. Download the auto-patcher package from the link in the OP. Rerun the cygwin.exe making sure to search and install 1)JDK 2) patch and 3)cpio.

Then place your ROM in the cygwin home directory and run the auto-patcher command.

auto_patcher ROMSNAME.zip pd2.0

Replacing pd2.0 with whatever list of mods you are trying to patch for. If patching fails, try the same command but with a romtype attached cm or aokp or pa or aosp.

Good luck and ask for help if you need it. The auto-patcher team is moving forward on our plans to provide GUI's in multiple platforms but that is abig order involving many firsts. So patience will be necessary there.
[Android Software/Hacking General [Developers Only]] grayfoxmg1:
Sure downloading the Dec 30th rom that he had an issue with as well as downloading the newest nightly. As for your news of wiping your ENTIRE device I can only say

Now onto something completely different, I've been meaning to talk to both you and Kobrik(sorry if I spelled your U/N wrong) about coming up with a better icon for ApG and possibly an image for people's signatures and/or avatars. I've just been distracted by college, and family, and the end of the world, and thinking about maybe joining the peace corps, that I have forgotten. If one of you could create an IIRC or some form of chat or multi users messaging so that we could all three discuss it so that way I could make it and actually contribute to the project, that would be great. Even if you just wanted to skype I could do that.