yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Android-Andi:
You are the best! Thanks!

Openpdroid seems to work on P3110 ParanoidAndroid 3.68 (22.07.2013).

Log:

http://codepad.org/RbpvbSuM
[Android Software/Hacking General [Developers Only]] IUnga:
New build from [MENTION=2332422]temasek[/MENTION] with same error :(

http://codepad.org/t7GIn1uv

I already can't imagine my phone without patched cm...
[Android Software/Hacking General [Developers Only]] Android-Andi:
Think it´s not a official CM build. There are some extra goodies baked into this rom.

Must be the same answer [MENTION=4342828]mateorod[/MENTION] told some post before.

Mybe he can help, but not sure.

Has it worked before?
[Android Software/Hacking General [Developers Only]] DualJoe:
[MENTION=4342828]mateorod[/MENTION]:

Baksmali -s (sequential labels) request:

The Samsung Galaxy S3 I9300 [MENTION=2332422]temasek[/MENTION] CM10.1 Rom V116 (Kang) has a small patch added to 'ServerThread.smali' (services.jar). Auto-Patcher throws 158 rejects for 'services.jar'. The added patch looks like this (note the label differences :cond_5c6):

You can see that this code injection results in shifted label names (:cond_5c6 <> :cond_5d6) rendering most diff patches unusable. We can workaround this issue and slightly increase Auto-Patcher's overall compatibility by using Baksmali's (-s switch) sequential order naming (instead of byte code address naming) without any noticeable drawbacks. This would allow to pass small code differences like this as long as there are no new labels involved (that would alter/shift the sequential order).

You would need to re-create all patches. The corresponding baksmali -s switch should only result in cosmetic changes in decompiled smali code. The compiled binaries shouldn't differ at all (compared to current method) and nothing bad can happen if i don't miss anything here. Apktool also uses sequential ordering by default.

What do you think?

-s,--sequential-labels create label names using a
sequential numbering scheme per
label type, rather than using the
bytecode address
[Android Software/Hacking General [Developers Only]] mateorod:
I have actually been messing with this already as I try and squeeze some work towards autopatcher3.0. [MENTION=4261245]a3955269[/MENTION] and I talked about this back when 4.1.2 hit...a3955269 actually hand wrote a python script I have been fiddling with as well. There are big changes coming for 3.0.0...I just have to find time to get there. If I can code it to work the way I suspect, I believe that we will finally be able to support all deodexed roms.

But that is in the future and you have something for right now. I certainly want to support [MENTION=2332422]temasek[/MENTION]'s builds, he has always been a supporteer of ours and a good friend to [MENTION=4005966]pastime1971[/MENTION].

Remaking all the old patches will not always be possible, I can only hold so far back of the jars before I toss them. But it is very rare that someone needs the old builds, much more likely a new build of an old OS, like gingerbread. I had already downloaded the temasek build and saw that it failed, but my quick glance had blamed it on Halo. Let me play with the flag some tomorrow, now that I have a candidate right in front of me, this will actually help me out to work on it.

Thanks for your usual thoughtful posting, DualJoe. I think we can do something for you guys.
[Android Software/Hacking General [Developers Only]] Urinophoria:
Wouldn't be that hard for me to add those to the mothership if you just want me to build them [MENTION=4342828]mateorod[/MENTION]. Once ccache gets a couple runs at it it only takes me about 45 minutes to build the whole thing. Just point me at the git, tried looking for it myself but I kept getting kernels instead of unofficial CM10's.
[Android Software/Hacking General [Developers Only]] ContactFront:
i downloaded from techerrata.

My device is saga not vision but thank u anyway! ^_^ Let me know when the new version is up on techerrata and ill test it!

Cheers

Thank you!
[Android Software/Hacking General [Developers Only]] mateorod:
I think we have diagnosed the problem, I am waiting to here back from gcydtmkq, who has been sending me tons of great cygwin-related work. But I believe that this was actually pointed out by DualJoe maybe a month ago...cygwin updated the version of patch that is built by default and it is incompatible, either with the patches made by the earlier version of patch, or with my use of the patch utility. Some testing will need to be done,

There is a way to roll back to the earlier version of patch, but I don't know it yet. gcydtmkq has had success translating it with dos2unix, but that utility is slow as dirt. [MENTION=4293606]DualJoe[/MENTION] suggested some in-autopatcher processing...I don;t know if that is an efficient option or not. Probably the best thing to do is to try and make patches that are compatible with both...we are getting into lower level syster stuff here, but either way, it isn't something you are doing wrong, and we are working on fixing it.
[Android Software/Hacking General [Developers Only]] bustedwings:
android 4.3 has an ap permission control.

http://www.androidpolice.com/2013/0...ager-control-permissions-for-individual-apps/

not really functional and not near the control that the openpdroid project provides but none the less nice to see google realizing this is a problem
[Android Software/Hacking General [Developers Only]] Urinophoria:
Kinda makes me wonder if they're not doing it as a nod toward app security in hopes that people will be content with being able to secure content from the Play Store.

It's not really in Google's best interest to give us controls as inclusive as OpenPDroid and pdroid, since we can limit their access to our data with those as well.

I don't really care if the app is system, user or otherwise, I lock them down till I lose functionally that's relevant to me then back it off a notch.

For instance, out of all the data g+ wants, all I give it is the camera, and it works fine for the way I use it.
[Android Software/Hacking General [Developers Only]] mateorod:
I look at all of these recent privacy implementations as a win for us here at old Autopatcher central. I started working on porting the original PDroid when I was still using gingerbread, and it became likely that svyat would never complete the port to ICS. It has been a really long road maintaining not only PDroid, which has involved some major work as I have ported it forward to each new version of Android, but also writing and maintaining the Autopatcher, so we could get it to as many users as possible. This thread is an out-growth of our original PDroidPatcher and Pdroid-port thread, so we have been doing this for a long time at this point.

A bunch of people are finally realizing the power of the implementation. So far, none of them are quite as powerful as OpenPDroid, but they can be considerably less trivial to install., which is no little thing. Steve Kondik made a point to praise OpenPDroid specifically in several interviews, before making the case that ease of use was the main use case he wanted to solve. I have wanted to address that part of the process forever (you can see I ported the process to a device almost exactly a year ago...still have not managed to get that out there though). It is pretty constantly on my mind, but there always seems to be something OpD or Autopatcher related I am forced to work on first.

It has been a long road, and a bunch of hard work. I find it gratifying to see parts of our implementation be slowly adopted everywhere from AOKP and CyanogenMod to now Google themselves. Our refusal to go away has been a part of that, and I think it is pretty neat. For a long time, nobody was leveraging the permission system and the returned data as a security measure, it was more of a one-time warning. Now, everyone is doing it. Good for the users, gratifying for us.

Rquest for test

I am pushing an update, if you use Cygwin, could you report if the autopatcher is working as expected? I am replacing the patch utility with a bundled version and would like to make sure it works for folks. It is included in the just-pushed Autopatcherv2.9.9355.
[Android Software/Hacking General [Developers Only]] freddysam:
I'm getting this:

But it patches successfully.
[Android Software/Hacking General [Developers Only]] mateorod:
Whoops, I added , but did not push, the actual binary.

Would you update and try once more? Thanks, the new version is 2.99356.
[Android Software/Hacking General [Developers Only]] freddysam:
All better. Working flawlessly for me.
[Android Software/Hacking General [Developers Only]] mateorod:
[MENTION=4956815]ContactFront[/MENTION], that should be you sorted, then. GIve it a shot when you have time. Thanks to [MENTION=4293606]DualJoe[/MENTION] and [MENTION=5357068]gcydtmkq[/MENTION] for their efforts towards this fix.

Edit: and to [MENTION=2159167]freddysam[/MENTION], for testing!
[Android Software/Hacking General [Developers Only]] ContactFront:
Thank you！I'll give it a try later today or tomorrow
[Android Software/Hacking General [Developers Only]] ContactFront:
IT WORKED!!! THANK YOU SO MUCH!

I tried with both CM10.1 roms and both were successful. I did spot a few lines of " **** Only garbage was found in the patch input." during the process, which I'm assuming can be safely ignored?

Many many thanks for your help and your great work!

btw, if you ever need a chinese translator for your future works or projects, let me know:D
[Android Software/Hacking General [Developers Only]] mateorod:
Hmm...better post the log, to be sure. Thanks for the offer, I will certainly keep it in mind!
[Android Software/Hacking General [Developers Only]] ContactFront:
Logs attached and finger crossed.

autopatcher was downloaded from github this time. ran the batch.sh first then started patching roms.
[Android Software/Hacking General [Developers Only]] mateorod:
No, something else is wrong. What happened is Cygwin updated several of the binaries we depend on, and that has caused us some problems. But I have at least one person's confirmation that this should fix the problem for you. What is in your log now, I have not seen...would you run a git pull and ./batch.sh once more? It almost looks like the batch got interrupted before it finished?

I will keep looking at it, I appreciate your patience and testing!
[Android Software/Hacking General [Developers Only]] ContactFront:
oakey doakey. I'll get back to this tomorrow. gotta hit the sack now.

Thank you!
[Android Software/Hacking General [Developers Only]] catawalks:
Having trouble patching cm-10.1.2 for the nook color with tabletUI. Log here: http://codepad.org/5GyahNKe

Any help would be appreciated. Thanks.
[Android Software/Hacking General [Developers Only]] HyperCriSiS:
Hi,

I get the error message

" For some reason, autopatcher is still missing. Try restarting ApG and if it still fails please report in the XDA thread."

I also had to restart ApG several times to get the Java and Cygwin download working.

There were some issues before with firewall software so I deactivated everything, but it did not help.

What could be wrong here?

Running Windows 8 x64.

/EDIT

Had to restart and now it works. =)
[Android Software/Hacking General [Developers Only]] Uzephi:
You answered your question for us ;)

IMHO, do a crash course on Linux commands and make a live CD of a recent version of Linux to make the patches. Less headaches.
[Android Software/Hacking General [Developers Only]] mateorod:
The nook has a non-standard build.prop that gives some problems. It has been left that way because the very popular (and old) sdcard install script needs it that way.

./auto_patcher cm-10.1.2-encore.zip tabletUI cm 20130516

will patch it for you.
[Android Software/Hacking General [Developers Only]] catawalks:
Awesome, thanks. I'll give it a shot on Monday when I get my Color back.
[Android Software/Hacking General [Developers Only]] IRKONIK:
Yup, or even more easy: use a virtual machine. It works on every system, no matter how old it is. Helped me a lot. I recommend Xubuntu, because the gui is way better than unity by ubuntu.

Cheers

Via Tapatalk 4 BETA, that, surprisingly, is free.
[Android Software/Hacking General [Developers Only]] ContactFront:
i re-downloaded, batch.sh'd again and noticed this time at the very beginning

$ ./batch.sh
cygpath: can't convert empty path
cygpath: can't convert empty path

and at the very end,

..........
patches/voice/all/generic/20120826/framework-res.apk.patch
patches/voice/all/generic/latest
patches/voice/files.txt
./batch.sh: line 48: zip: command not found

Is this what you mean "interrupted"?
[Android Software/Hacking General [Developers Only]] mateorod:
Yes, those errors would account for it. It looks like you are not able to zip up the tools and patches we need....maybe?

We are really starting to go into territory that I an unfamiliar with...I am very proud that we have Cygwin and Windows support but I had very little to actually do with that. the 'zip' package should be in the default install. While doing a brief search, I see that using a new mirror can help (?)

I am going to have to look more, and maybe recommend another fresh install. I hate giving that advice and crossing my fingers over and over, but it just seems to work pretty often. I do have some confirmation that the problem with ALL of the patches failing has been solved...idk. I will look at this more and see what I can see.

As an aside, I am working on moving the OpenPDroid patches to 4.3...it is rather interesting how much of the AppOps code I am finding mirrors ours very closely. They are blocking only, not spoofing. But the similarities are very much there. Check this out from telephony, where the OPenPDroid code (which has been there since 4.1) is prefaced with the "+" and the AppOps is prefaced with the "@", with each surrounding common lines:

public List<SmsRawData> getAllMessagesFromIccEf() {
if (DBG) log("getAllMessagesFromEF");
+ // BEGIN privacy
+ if(!isAllowed(getPackageName(),ACCESS_TYPE_ICC)){
+	return new ArrayList<SmsRawData>();
+ }
+ // END privacy
+
mContext.enforceCallingPermission(
Manifest.permission.RECEIVE_SMS,
"Reading messages from Icc");
@ if (mAppOps.noteOp(AppOpsManager.OP_READ_ICC_SMS, Binder.getCallingUid(),
@ callingPackage) != AppOpsManager.MODE_ALLOWED) {
@ return new ArrayList<SmsRawData>();

OpenPDroid parses the distinction between SMS and ICC while AppOps does not. You can also see the getPackageName method we use has just been packaged into a method but is basically exactly the same as their call:

protected String[] getPackageName(){
+	PackageManager pm = mContext.getPackageManager();
+	String[] packageNames = pm.getPackagesForUid(Binder.getCallingUid());
+	return packageNames;

I am still looking and trying to take it all in, but there is a pattern (at least in the telephony, where both services, OpD and AppOps are merely intercepting actions) of the OpenPdroid stuff laying right on top of corresponding AppOps additions.

The best thing to do might be to just hook into the AppOps stuff, and work with their databases and methods. But it would make porting a much easier task, and more secure.
[Android Software/Hacking General [Developers Only]] Christoph21x:
Hi All

I have an issue with the latest Nightly of CM (2013-07-27):

Patching went perfectly (cm plus openpdroid), but after install, PDroid Manager reports that there's no support for the privacy functions in this ROM.

Anyone any idea? (No, flashing can't be an issue)

Anyone else facing this issue?

Thanks in advance - Chris

** EDIT **

1. The privacy protection still is active, the icon is displayed on status bar when update or installation takes place.

Entering PDroid Manager to adjust the properties, leads PDroid Manager to crash.

2. Entering PDroid Manager by starting the app will result in a warning as described above.

3. Tried now with ROMs for 3 different devices - all result in same outcome (Samsung Galaxy, HTC Desire S, HTC Desire)

4. In all cases patching was performed without error

--> definitively sth wrong with the resulting build concerning interface / API
[Android Software/Hacking General [Developers Only]] Urinophoria:
can you throw a logcat up of the crash, and maybe an auto-patcher log from when you patched the ROM? D/L link for where you got the ROM probably wouldn't hurt either.

I just sparked off a build of CM on my machine, so I'll try to replicate it from my end too.
[Android Software/Hacking General [Developers Only]] Christoph21x:
Dear Urinophoria

Thanks for caring!

Attached one of the ("successful") logs and 4 Pics in second zip showing

1. After install of new app - you see PDroid warning top left; so it's running

2. Showing Details (drop down status bar)

3. Opening PDroid for setting properties through that drop-down (uploaded this report afterwards, unfortunaltely I can't see it myself...)

4. Starting PDroid Manager manually

Latest applied AP-Patches:

2013.07.20. (2.9.935) New PA, AOKP patches. gitattribute. FIx PING for cygwin. (h/t: gcydtmkq)
2013.07.20. (2.9.93) New OPD CM patches, many bugfixes
2013.07.17. (2.9.927) Fix missing Mms (finally), support for CM Final, many bugfixes (conflicts, mod ordering, etc.)
2013.07.07. (2.9.92) New opd patches for Slim/PA; some fixes to tabletUi by Caldair
2013.07.02. (2.9.91) Switch to SlimRom team's aapt and apktool for OSX+Windows (Need OSX builder!)

Thanks in advance & kind regards - Chris
[Android Software/Hacking General [Developers Only]] ContactFront:
Indeed, the "zip" package wasn't present in my default install. Updated from a new mirror. Now ./batch.sh ends with

...............
patches/voice/all/generic/latest
patches/voice/files.txt
adding: auto_patcher (deflated 72%)
adding: patch_tools.tgz (deflated 0%)
adding: patch_patches.tgz (deflated 1%)
adding: ap_scripts/config_template (deflated 6%)

which looks to be alright.

However I still get loads of these during patch process.

..
patch unexpectedly ends in middle of line
GARBAGE=
GARBAGE=

Could help but think, is something else still missing in my Cygwin setup.

Might try nuke everything and start from scratch again later on.
[Android Software/Hacking General [Developers Only]] perikolisan:
I use openpdroid in RAZR MAXX (GSM: umts_spyder) with CM 10.1.2

I note that: " Attention! CM10 and 4.1.2 PA openpdroid only works on roms from 0208 and earlier! We are working on it!

" but in my rom openpdroid seems works fine. What's the problem with versions older than 0208?
[Android Software/Hacking General [Developers Only]] IUnga:
Same problem with buid 116.1 from [MENTION=2332422]temasek[/MENTION]. I installed previous version :( I will learn how to catch log...
[Android Software/Hacking General [Developers Only]] mateorod:
The log should be automatically generated. I changed how the script finds and uses the 'patch' binary, and obviously made an error. I can't test Windows or cygwin usage, so you guys have to sometimes beta test.

Please look for the log and upload, it should be in the same directory as the update.zip. it is the best way to find the issue.

Please, log file. I can't help w/o it.

Edit...I see. explaination coming

The older build did not patch because we did not port OpenPDroid to 4.1.2 until 0201-ish. We use the binaries build to provide smali patches, so we don't have patches that are tested to work before then. But it has never been an issue, no one really runs old old builds. Sometimes old Android versions, I see CM7 get patched fairly regularly. But not old builds without all the security and bugfixes.
[Android Software/Hacking General [Developers Only]] IRKONIK:
I have weird issues with the play store. I can't download apps, always says "waiting for network". I tried everything, even allowed it to use all the permissions (also I allowed all the other gapps to do so) but still, no downloading.

It works sometimes shortly after the boot up.

Here, have a log: http://pastebin.com/Rzi3N1xN

Ty :) patches: only openpdroid, also openpdroid app. AFWall+ as a firewall, but it's deactivated.

Help :D

Via Tapatalk 4 BETA, that, surprisingly, is free.
[Android Software/Hacking General [Developers Only]] IUnga:
I attached log of auto-patcher.

I hope log from phone I will create tomorrow

Thanks a lot

PS. Sorry for bad English
[Android Software/Hacking General [Developers Only]] Android-Andi:
building openpdroid for SlimBean 7.8 worked, but not working on rom.pdroid manager can't find it.

maybe because they cleand the rom for android 4.3.
[Android Software/Hacking General [Developers Only]] Febby:
I'm having issues making a patch for task650 AOKP for the AT&T Samsung Galaxy S4 (I337)

It keeps failing at secure settings smali

I forgot to capture the log link but let me know if it is needed.

If anyone has patches for it, please share. :)

ROM thread link: http://xdaforums.com/showthread.php?t=2293162
[Android Software/Hacking General [Developers Only]] mateorod:
I have pushed Auto-patcherv2.9.935, which should

Fix ping issues with OSX (thanks txoof!)

Hopefully restore Cygwin patching.

Let me know...I also got a report of a possible broken CM10.1 patch...I will investigate tomorrow, okay?
[Android Software/Hacking General [Developers Only]] Febby:
thanks mate. =)

Currently the latest AOKP by task650 on the I337 (S4) is broken

Here is the patchlog fail in case you need it: http://codepad.org/ZR5ly3hW

Currently the CM10.1 on the i337 is also broken, here is CM10 patch log :)

http://codepad.org/59TYLsor

No rush Mateorid. Take your time. :)
[Android Software/Hacking General [Developers Only]] Urinophoria:
Still trying to work out how to make these work on Apg, but they test fine with the 20130728 Release of Task650 for the s4 in Linux terminal. If you know how to make them work on your setup you're welcome to them: http://ubuntuone.com/7WNXJTy3YC5jfhnc3OMvyL

Here's the output if you don't: http://ubuntuone.com/4uckPSAXzXNhClokqb3532

Now I must sleep, lol! Had too much excitement today, almost 4am and I'm just now winding down :silly:
[Android Software/Hacking General [Developers Only]] Christoph21x:
Thanks for all of your work, Urinophoria!

Your variables:

ad 1) on one of the devices I did a full wipe (was my last try) and thus also had a clean install of PDroid Manager from Playstore

ad 2) all PM's came from Playstore

Cleaned the data and deinstalled PM; re-installed from playstore - same thing.

The fact that this happens on three devices and not on yours, leads me to one conclusion: it's the BUILDING machine that creates a wrong build.

Next step:

I'll deinstall AP and completely re-install it from a fresh download - and try it again.

(I'll be back with a result probably in 4 hours only...)

If that fails, my next proposal would be: I send you the link of one ROM that failed, maybe you could build it for me (Win/Linux?) and I'll try to flash this to see if that's different.

If that all doesn't solve, we should compare the files of our installations... (size/date)

Thank you again for caring & greetz - Chris
[Android Software/Hacking General [Developers Only]] mateorod:
Those have both been updated. I don;t know why this is happening, but perodically users are find that ApG is not updating their package. What has been working (sorry for this) is to delete the autopatcher directory and reinstall. Let us know, the CM10.1 at minimum, should be working. I believe that AOKP build patches as well, although I am slightly less confident about that.

Don;t be too quick to blame yourself...I did change how Cygwin and Linux handle things recently,. so the fact that it is working on our linux boxes doesn;t mean that I wasn't the one to break it on Cygwin. Let me know how the new install goes, I hope that the fix I added late last night will make a difference. Edit And please attach the AUtopatcher log, okay?