yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] mateorod:
Thanks for the support everyone...everyone here is fine, power is back on, which was our primary concern. It gets hot down here!

An update (20120903v1.9.8) is on techerrata, or will be any minute. I have uploaded already.

There are a BUNCH of changes, but a lot of them are building blocks en route to 2.0. For our everyday users, the main thing you need to concern yourself with is that the pdroid patches are updated.

CM10 should be current.

aokp-jb has been updated, but there is a change.

The default patch set ("latest") is still set for the official build 1. That is our patches for 20120823. I have added patches from some builds I made on 9-01, but the haven't been tested on many nightlies yet.

If you are using a later AOKP-jb nightly, try the 20120902 patches if the default doesn't work.

For those who have been contributing, most of you are aware of that the project is now fully open-source and available on github.

The 1.9.8 version is missing the interactive copy-file menu for pdroid failures. I just don't think it is ready for prime time yet. But this should be the last release where the code isn't mirrored on the github master branch.

If you are interested in contributing, please fork and send a pull request. Many thanks are due to wbedard and especially kobik77 for their work with cygwin support. If either of you have a chance, try the 'voice' mod, maybe on a grouper nightly. If the update.zip is produced, we'll know the apktool process is working for cygwin.

For those curious, there are some new things buried in the code/download. They all mostly work, but still need some attention.
[Android Software/Hacking General [Developers Only]] nsmart:
Thanks for the updated patches. I could succesfully patch the first official cm10 nightly for Galaxy S2 (cm-10-20120904-NIGHTLY-i9100.zip).
[Android Software/Hacking General [Developers Only]] Stylez Ray.:
I'm trying to patch latest AOKP for Galaxy Nexus from official site http://androtransfer.com/?developer=AOKP&folder=maguro

Patching fails so I tried as you suggested with patch date 20120902 but this one doesn't seem to be in... when I list with -h there no such patch date?!
[Android Software/Hacking General [Developers Only]] baka2x:
I'm still waiting on the donation details of the devs. Don't be shy ;)
[Android Software/Hacking General [Developers Only]] karen_sey:
Verifying Auto-Patcher and PDroid

Thanks to the great work here I have managed to patch and install a CM9 nightly ROM for my HP Touchpad. I've also installed the PDroid app and configured it. All looks good with PDroid displaying popups as it allows or prevents permissions access for various apps.

The thing is, apart from these popups how can I be sure that PDroid is actually working? Despite removing all permissions for a number of apps I've yet to find one that actually objects to having restricted access. This is different to using the CM7 built-in permissions feature where apps would often refuse to run until the permissions were restored.

Can anyone tell how I can demonstrate that PDroid actually works. Either via app behaviour or a system log entry or...anything!

Thanks, K
[Android Software/Hacking General [Developers Only]] mateorod:
Shoot. I didn't include it, somehow.

It has been uploaded to techerrata. Should be available for download in 15 mins or so.

Thanks.

Update:Up autopatcher20120903v1.9.8.5 available now.

That includes the 20120902 aokp-jb patches. I hope they work for you. The "latest" default patch set for aokp-jb remains 20120823, which patches the official Build 1.
[Android Software/Hacking General [Developers Only]] wbedard:
Hi Karen,

You're not the only one to have this question so let me give you some tips to think about. First of all, you should get an app that allows you to analyze your installed apps by their permissions. I've used aSpotcat for a long time and it's worked well. What I then do is to find an app(s) that requests a permission that I'm sensitive about (i.e. Read Contacts, Network/GPS Location, etc). You should look around that app to understand how it uses that permission (i.e. does it allow me to search/display my contacts or my location on a map). Then, go into PDroid and modify those permissions that you understand (i.e. block Contacts, randomize your location). Then, you should be able to go verify the changes in the app's behavior based on it being denied that information. As I understand it, PDroid doesn't block the app's permission per se, it just modifies/eliminates the information that gets returned to the app. That approach is what prevents a lot of app force-closes seen by other approaches to Android permission management. Mind you, there is no guarantee that an app won't crash because you denied it a permission. App developers need to use good coding practices to manage the fact that a user may not have any contacts in their phone and/or they may be in Airplane Mode and/or have disabled the GPS function of their phone. Not all developers think through these scenarios when they write an app and, in some cases, some apps may crash because of a denied permission.

In the more general case though, some permissions will require more work or may be impossible to verify that the associated info is being blocked. A good case, ironically, is if the app uses SSL connections to connect to a backend server or cloud service provider. In these cases, testing permissions like reading your phone's SIM/Network info in order uniquely identify you (not necessarily by name, just your device...) cannot be tested by "sniffing" the WiFi network your phone may be on. In such extreme cases, you may need to run a very low level debugger on your phone to actually see what is going on. In some cases, reading your phone's logcat may be sufficient but probably not always. I have had some apps not be able to access an associated account because the app wasn't able to communicate this unique identifying information to a server that would match it against my username. Again, it all depends on what permission you're talking about and how that associated information is actually used by the app.

I hope this gives you a broad-brush picture of how you can approach this and get a reasonably "warm feeling" that PDroid is doing what you are telling it to. If you have any add'l questions or scenarios that you would like some help testing, there are a lot of smart people here in this forum who will certainly help you out! Good luck...:>)
[Android Software/Hacking General [Developers Only]] kobik77:
ApG update

I have a silly and sneaky bug in downloading from DevHost to fix and I think I'll have a new version for you guys to test pretty soon.

This version will come with the killer feature of auto update pre-made packages for every component it relies on (AP, Java, Cygwin and ApG itself).
[Android Software/Hacking General [Developers Only]] pastime1971:
in addition to what wbedard said, there was a discussion on whether pdroid is working properly or not on ICS (applies to JB as well)

http://xdaforums.com/showthread.php?t=1554960&page=3

be aware that google map is a really tricky one. it knows your location via many different way (through gps, wifi, mobile network, etc.)

it is determined to locate you in any possible situation.

i usually use google+ or news and weather widget to test the location permission.
[Android Software/Hacking General [Developers Only]] brashmadcap:
Doesn't work :(

./auto_patcher aokp_maguro_jb-build-1.zip pdroid aokp-jb 20120902

The Auto-Patcher v1.9.8.5

### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
cat: patches/pdroid/copies.txt: No such file or directory
### unzip rom ###
inflated: system/framework/core.jar
inflated: system/framework/framework.jar
inflated: system/framework/services.jar
### create updater script ###
inflated: META-INF/com/google/android/update-binary
inflated: META-INF/com/google/android/updater-script
... using Clockworkmod installer ...
### create restore.zip ###
### decompile framework.jar ###
... extract preloaded-classes ...
### decompile core.jar ###
### decompile services.jar ###
### copy patch pdroid/aokp-jb/20120902 ###
... copying tmp/system/framework/services.jar.out/smali/com/android/server/am/ActivityManagerService.smali ...
### jar patch pdroid/aokp-jb/20120902 ###
### apply framework.patch ###
... apply preloaded.patch ...
### apply core.patch ###
### apply services.patch ###
96 out of 101 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed services.patch
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! please refer to /home/haet/Desktop/ap/ap/log20120904173624 for any debugging

! patching failed.
! it may be possible to patch /home/haet/Desktop/ap/ap/aokp_maguro_jb-build-1.zip using other patch version

smali auto patcher v1.9.8.5
pdroid 1.32 patches 2012.09.02.
v6supercharger patches 2012.08.17.

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

MODS can be pdroid,v6supercharger or pdroid or v6supercharger
optional [ROMTYPE] can be cm9, aokp, etc.
optional [PATCHDATE] can be specified to use older patch versions.
try "./auto_patcher ROM.ZIP -h" to see what is available

For some reason it really is named aokp_maguro_jb-build-1.zip even though it's from Sep 02 :-/

For some reason after downloading it a couple of times the Md5 won't match; I guess they didn't update it when they updated the build so it's a little hard to tell what's going on here
[Android Software/Hacking General [Developers Only]] mateorod:
I have found all of this pretty hard to understand. When building at home there is sometimes a difference between repo sync'd builds and official releases. And I am not sure that I know what teh difference between an aokp nightly and then a nightly build of Build 1.

The patches I made were from a straight repo sync of aokp source on 0902. Did you try the 0823 patches?

I will build again tonight and check the result against your rom. we'll see.
[Android Software/Hacking General [Developers Only]] brashmadcap:
I got the latest from: http://androtransfer.com/?developer=AOKP&folder=maguro

aokp_maguro_jb-build-1.zip

Interestingly the MD5 doesn't match whats listed. However I did just try the 8-23 patch with the same results. Thanks for your help.
[Android Software/Hacking General [Developers Only]] ratelutz:
hey matereod,

something new about evervolv support?
[Android Software/Hacking General [Developers Only]] mateorod:
You can see it in the github repo, but I haven't pushed it to the release yet. But that function WILL be in the next release, it just needs some work.

Let me caution that it isn't specifically evervolv support, though. But it is what I did to patch their Roms. Hopefully, it will continue to work.
[Android Software/Hacking General [Developers Only]] ion-fan:
Support for Omega v19.1 Rom SGS III

Hello,

is it possible to include support for the Omega v19.1 Rom for the SGS III in the AutoPatcher? Can you tell me how to help you include it in AP?

I attached a logfile of a failed run.

Is it possible to support Custom ROMs that base on Stock Roms? Or is the aim of AP to only support AOSP and AOKP Roms?

greetings

Ion-Fan
[Android Software/Hacking General [Developers Only]] testman86:
Hello,

I could successfully made a patch for CM10 (this here http://xdaforums.com/showthread.php?t=1826747)

Thanks again for the great work of everyone! Keep it up!

I also added the log file, maybe it helps somehow :)
[Android Software/Hacking General [Developers Only]] brashmadcap:
mateorod,

Did you have an opportunity to investigate this further? If so, what were your findings? Thanks
[Android Software/Hacking General [Developers Only]] karamelos:
hi,

I tested with this rom

[JB:CM10:HYBRID][Kang] PARANOIDANDROID 2.00 [Nightlies][Utacka] [06 SEP]

patch failed logs:

ROOT= /home/ju/android-rom-gapps/pdroid/ap (2)

TOOL= /home/ju/android-rom-gapps/pdroid/ap (2)/patch_tools.tgz

ROM= /home/ju/android-rom-gapps/pdroid/ap (2)/pa_n7000-2.00-06SEP2012-015710-Utacka.zip

ROMX= /home/ju/android-rom-gapps/pdroid/ap (2)/pa_n7000-2.00-06SEP2012-015710-Utacka.zip

### verify tools ###

/usr/bin/patch

/bin/tar

/usr/bin/jar

/usr/bin/java

/bin/cpio

### verify ROM ###

# running ./auto_patcher pa_n7000-2.00-06SEP2012-015710-Utacka.zip pdroid

### unzip patch tools ###

aapt

aapt.exe

apktool.jar

baksmali.jar

boot/

boot/mkbootimg.exe

boot/unpackbootimg

boot/mkbootfs.exe

boot/unpackbootimg.exe

boot/ramdisk/

boot/mkbootimg

boot/mkbootfs

signapk.jar

smali.jar

updatecert.pem

updatekey.pk8

update-template.zip

### unzip patch patches ###

### probe rom type ###

# VID= 4.1.1

# MID= pa_n7000-userdebug

# RID= aosp-jb

# DID= GT-N7000

# BID= latest

# PID= pdroid

### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar

### APK FILES=

### COPY FILES=

### BOOTIMG= boot.img

### unzip rom ###

### create updater script ###

... using Clockworkmod installer ...

# generated updater-script

mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");

package_extract_dir("system", "/system");

unmount("/system");

assert(package_extract_file("boot.img", "/tmp/boot.img"),

### create restore.zip ###

manifeste ajouté

ajout : system/framework/framework.jar(entrée = 4291894) (sortie = 4266377)(compression : 0 %)

ajout : system/framework/core.jar(entrée = 1290462) (sortie = 1283721)(compression : 0 %)

ajout : system/framework/services.jar(entrée = 971934) (sortie = 970273)(compression : 0 %)

ajout : boot.img(entrée = 4649452) (sortie = 4648123)(compression : 0 %)

entrée META-INF/ ignorée

ajout : META-INF/com/(entrée = 0) (sortie = 0)(stockage : 0 %)

ajout : META-INF/com/google/(entrée = 0) (sortie = 0)(stockage : 0 %)

ajout : META-INF/com/google/android/(entrée = 0) (sortie = 0)(stockage : 0 %)

ajout : META-INF/com/google/android/updater-script(entrée = 178) (sortie = 120)(compression : 32 %)

ajout : META-INF/com/google/android/update-binary(entrée = 221856) (sortie = 143890)(compression : 35 %)

### decompile framework.jar ###

... extract preloaded-classes ...

\décompressé : preloaded-classes

### decompile core.jar ###

### decompile services.jar ###

BOARD_KERNEL_CMDLINE 

BOARD_KERNEL_BASE e19f8000

BOARD_PAGE_SIZE 24061976

cpio: fin prématurée de l'archive

### apply framework.patch ###

... apply preloaded.patch ...

Auto-Patcher v1.9.8.5

(i wan't to change but not without pdroid :p )
[Android Software/Hacking General [Developers Only]] mateorod:
Sorry, still building. I wanted to try this from a clobbered build, and my build server is slow. But I am looking, for sure.

Well this run of the patcher is failing on patching the boot.img, which is troubling in its own way, but probably not necessary for you.

The patcher tries aosp-jb patches if it doesn't determine cm or aokp. PA has rebranded their build.props as PA, but at it's heart it is still cm10.

Try your same command, but with cm10 appended to the end.
[Android Software/Hacking General [Developers Only]] SecUpwN:
Current Auto-Patcher works perfectly on CyanogenMod 10, especially DisarmedToaster 0.1.6. Have a look at my signature and grab the Patch as long as it's online!
[Android Software/Hacking General [Developers Only]] kobik77:
Moved to http://xdaforums.com/showpost.php?p=31648393&postcount=690
[Android Software/Hacking General [Developers Only]] erups:
Hi guys.

Trying to patch ParanoidAndroid 2.1.

The autopatcher quits with error

error: Missing "jar (JDK)"

But my java is

java version "1.7.0_03"
OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu3)
OpenJDK Client VM (build 22.0-b10, mixed mode, sharing)

and besides I run netbeans fine, so Java is there.

So what's up with the patcher?

Is there a readymade patch for PA 2.1?

Just gave it a try: can't download no packages and just quits.
[Android Software/Hacking General [Developers Only]] karamelos:
NIiiiiiiiiiiiiiiiiiCE!!!

Hi @imilka realese rom, patcher work fine on this rom:

[JB:CM10:HYBRD] PARANOIDANDROID [2.1, True HybridMode, Size & UI on Per App Basis]

patch post

thank's for your work
[Android Software/Hacking General [Developers Only]] erups:
Your link points to a different rom, no patches.
[Android Software/Hacking General [Developers Only]] karamelos:
:eek:

oup's retified

thanks
[Android Software/Hacking General [Developers Only]] kobik77:
Seriously?

I tested it several times and it was working fine.

Can anyone else give me more feedback?

Anyway, I'll test it again when I'll get home.

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] erups:
I'm trying it now, thanks

---------- Post added at 09:46 PM ---------- Previous post was at 09:43 PM ----------

I'm having the same problem both on windows and linux.

On windows it can't download anything from the repos.

I suppose on linux it's the same.

Except that my internet is working, and I even tried disabling the firewall.

So either the repos are really down, or it's me having a serious as well as strange problem.
[Android Software/Hacking General [Developers Only]] Paulikid:
I built update.zip and restore.zip for Paranoid Android 2.1. Anyone who is interested can PM me, I'll share my dropbox folder containing the files when needed.

Sent from my paranoid PauliDroid
[Android Software/Hacking General [Developers Only]] erups:
Ok I'm feeling stupid, and it's mildly ot: where do I find a version of Pdroid compatible with JB?

I did a search but found only patches...

Found this but I'm unable to compile: I can't setup the full environment just for that, it'd take me days...
[Android Software/Hacking General [Developers Only]] mateorod:
Ummm...not OT, but maybe a little tl;dr. That is what this thread does. Pdroid isn't supported past GB. But if you use the program, you can patch many of the JB roms. If you are using Windows, there is a full GUI that kobik77 just released a few posts back. If linux or OSX, you will have to use the command line.

Downloads here. Usage on OP.

Unless I misunderstand, many of the PA roms are now being compiled completely from source, with device trees. That would mean that those update.zips have a pretty high likelyhood of not being workable for devices other than your own. Might be worth a shot, though, and we're all about sharing. If the update.zips didn't go out of date so quick, we would consider a update.zip repo, but with so many people flashing so regularly, it just doesn't seem workable.

----

New aokp-jb patches have been added to github, and they patch the roms people were having trouble with, including the 9/2 build 1's. This version will include the copy files function that enabled me to patch some of the PA and evervolv roms that were giving people trouble as well.

There have been big time improvements to the program lately, pastime is working through checking some of the latest commits now. We're pretty lucky to have him around, people, go find a post of his and thank him.

I will upload a new version to techerrata tonight sometime...I am going to finish running mods through roms and make sure everything is working like it should. But 2.0 inches ever closer.
[Android Software/Hacking General [Developers Only]] erups:
Yeah I know about patches, but patches are useless without a gui/frontend.

So how do I get a working frontend for JB?

Otherwise what is a patch for if there's no frontend?
[Android Software/Hacking General [Developers Only]] WoZeR:
I used your command above and the exact file and the patch completed without any issues. I then flashed the rom and did a clean wipe. Then after that I applied the update.zip file from the above patch and the phone will no longer boot.

Now if I use this on the ICS builds [dinc-CM9-invisiblek-KANG-06-15-2012-1707.zip] it works fine.
[Android Software/Hacking General [Developers Only]] mateorod:
Okay, I am going to upload a new version today with some new patches dated 6-18. They should work for current nightlies. I am also going to pull the 6-19 patches, as they were added for 7.2 Final, yet are still resulting in bootloops for some.

The changes that were added to CM7 right after we put the Auto-Patcher up have been giving us problems. We do have support for the nightlies done though, give me 20 mins and I will upload 20120626v064.

I will post when the new version is uploaded.

Note: Ignored patches are indeed fine, that just means those files are already in the shape they need to be for the program to function.

Note 2: Since we are only replacing system apps with the flashable zip, no need to wipe or start from a clean slate

at any time

. If you get bootloops, simply reflash the ROM, it overwrites /system and will restore you to your original state, data intact, with no wiping necessary.

I will add this to the OP today as well.
[Android Software/Hacking General [Developers Only]] mateorod:
Newest version is uploaded, with 20120618 CM7 patches added. These patches are or current Gingerbread nightlies.

The patches for CM7.2 (0619)have been removed until we can find a way to support the 7.2 stable branch.

Support for cygwin has yet to be added due to a syntax error.
[Android Software/Hacking General [Developers Only]] SecUpwN:
WANTED: Custom ICS-ROM for the HTC EVO 3D with full support of 3D experience as well as a working camera on which the use of PD-Droid and Auto-Patcher is possible! If there's anybody out there, please toss in your recommendations!

Please help me out on which ROM to choose - I'm so much looking forward to use PDroid on ICS...
[Android Software/Hacking General [Developers Only]] mateorod:
@mithrail, would you test this please?

It was made with some newer patches. I keep making patches that seem to work, but they are giving you bootloops. As opposed to continuously uploading new versions that aren't working or you, I'd like to try and solve your problem and then update.

So, just for my peace of mind...

This update.zip was made from a download of the bravo 6/24 CM7 nightly, direct from Cyanogen. If you are already running the ROM, just flash this zip over it. If you aren't running the ROM yet, please flash the cm-7-20120624-NIGHTLY-bravo.zip and then flash the update.zip directly over it with no wipes in between.

You are probably doing this already, I am just hoping to get to the bottom of this since the patches seem to be working elsewhere.

Please let me know if this works for you..thanks!
[Android Software/Hacking General [Developers Only]] SecUpwN:
Since KingCobra3D-ICS doesn't seem patchable without source, would SOMEONE please recommend me a new ICS-ROM with 3D support? I'm thankful for every response...
[Android Software/Hacking General [Developers Only]] mithrial:
Yes, you are right. I did that every time.

Unfortunately this patch gives me the same bootloop as "always". The logcat didn't change.
[Android Software/Hacking General [Developers Only]] mateorod:
OKay, attempt number #2. I have to warn you, this may indeed become #2 of a four-stage process.

But if THIS one doesn't work, then we will know quite a bit more.

If it does indeed work, then I am going to make new patches from these files, and hopefully you'll be willing to test those as well.

I do promise that the end-game here is getting a patcher that successfully accommodates any CM7 nightly you might wish to use in the future as well as the present. If that justifies the flashing any...

Edit: Well, pastime passed some words of caution about having our hopes pinned on this zip. But I would appreciate it if you try it anyway. We'll get there, porting it to ICS should have been the hard part, Gingerbread is supposed to be supported already...