yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] mateorod:
I hadb't seen that you guys had already posted the builds...I was coming here to upload a Linux made zip. We had some issues with the patcher recently and sometimes ApG's updater has a little trouble. Next time you investigate, delete your Autopatche directory and reinstall. I have also heard that administrator permissions, although that probably indicates that there is a larger issue but we just haven't caught it yet.

Anyone who is having weird new troubles, that is my advice. We are trying to work around upstream changes.
[Android Software/Hacking General [Developers Only]] Urinophoria:
Kinda hard to tell if it's an issue or just windows, so far it looks like it's restricted to win 7,maybe Vista, although I don't have an 8 machine to test on. My xp VM runs it just fine right out of the box. I just dropped the exe into My Documents and double clicked it.

I'm trying to remember the specifics, but the company I used to work for had the same issues with our proprietary software. We eventually wound up turning UAC off, and changing the properties of the .exe to run as administrator. Basically all it did was suppress the errors, and keep the client from having to manually run as administrator every time.

Catch is, those were servers on physically isolated networks that were built and configured to do one thing. I don't know enough about Windows to know what kind of holes that opens up on a pc in the wild.
[Android Software/Hacking General [Developers Only]] Christoph21x:
I fully agree. Actually I doubt it is a 32/64 bit issue, as the actual command runs in a command prompt which still is 16 bit.

I tried to run as Admin - it failed due to not finding cygwin paths. I'll reinstall AP completely under Admin privileges and will try again.

Next I want to compare all the packages withing the zip and replace them one by one to see, which one causes the failure...

I'm a bit short of time, unfortunately, but I'll keep track of it...

Thanks to you both!

Chris
[Android Software/Hacking General [Developers Only]] dirtyreturn:
@mateorod. The CM10.1 latest nightly, well 8/1/13, downloading 8/2 now.. I use apG and when applying the different patches there is a permissions denied except when rebuilding the different .jar files and mms.apk it appears to be successful. I do get you're rom has been successfully patched prompt. Up until the last patched rom for me 7/28 this has never happened. I ran it through the patcher yesterday and today same result. I wasn't aware of this until I had updated an app..permissions changed prompt from the app. The core is not installed message. I am attaching the log from yesterday and today of CM 8/1. This is using version (2.9.935). Thanks.

Edit - 2.9.94 is the version , sorry.

Edit - CM10.1 8/2 is giving the permission's denied. So, I guess, the log will be the same?

Edit - OK, CM10.1 7/28 which had patched fine before gives the permission's denied also. Could something have happened between updates?

Edit - So it's my error, not actually running as admin. Please, disregard this post.
[Android Software/Hacking General [Developers Only]] Urinophoria:
Have you tried running as administrator yet? And what os are you running? Win7?
[Android Software/Hacking General [Developers Only]] dirtyreturn:
Have just given that a try.. Actually right clicking - run as admin. and now it seems to be running as it did by double clicking. I am on windows 7 and I would normally get a run as admin pop -up anyway. OK, so always run as admin. now. Thanks!
[Android Software/Hacking General [Developers Only]] Christoph21x:
It depends on how you installed it... just trying this out.

Looks like... if you installed as admin, you have to run it as admin. If you have installed using the current user (having full access to that dir), it WAS (at least) enough to run it also as the current user.

Choosing another one will lead to a cygwin directory fault...

---------- Post added at 11:11 PM ---------- Previous post was at 10:45 PM ----------

Hey Dirty...

I first installed as "User" and

- ran as "User" - ok

- ran as Admin - failed in getting cygwin directories

Then I installed as Admin and

- ran as Admin - failed in getting cygwin directories

- ran as "User" - failed: permission denied.

If you're fine with admin... be thankful and don't ask why... :D

Greetz & Thanks, dirty!

Chris
[Android Software/Hacking General [Developers Only]] Urinophoria:
Np, mind sharing your install path? I like the "it's working" part, but I'm not terribly happy with the "as administrator" part. And you're not the only one, you're actually #4 off the top of my head.

Unfortunately I'm not good enough at windows to tell if it's normal behavior or something broken.

In Linux however, if you go for a system folder, it belongs to admin and the permissions go sideways on you unless the program was designed to run as administrator. Which as far as I know, autopatcher was not.

I'm curious as to whether the problem persists if you install it (as user) in a folder in say "My Documents" or desktop. Not run directly from one of those locations, but run from within a new folder in one of those locations.

AFAIK those are strictly userspace file systems, so admin rights shouldn't factor unless you install it as admin.

Anyone that uses apg on win 7 want to test that theory?

Edit: if so it myself, but that introduces a different set of end user variables (different end user) and the only win system I have is an xp VM. Which works perfectly. Probably because all that's installed on it is apg and dependencies
[Android Software/Hacking General [Developers Only]] dirtyreturn:
C:/Users/Owner/Desktop/ApG... (wrong place to install, though I've not had any problems with that install directory) I am the sole user and I thought I was the admin/had admin rights... Normally all I would need to to was double click ApG and I would get a popup, Run the program and would not get any permissions denied. It looks like 2.9.94 It is to RUN as admin. Everything works as if I had left- double click.
[Android Software/Hacking General [Developers Only]] Urinophoria:
Well that shoots down half my theory. If you have time, would you mind trying it from your "my Documents/apg"?
[Android Software/Hacking General [Developers Only]] Christoph21x:
From what I see is that bash.exe is not terminated correctly. It seems to hang even after terminating AP.

It created just a kind of confusion when I tried to erase it after another "Permission denied" issue after having it reinstalled as normal user...

(which ran before seamlessly before trying to install it as Admin)
[Android Software/Hacking General [Developers Only]] dirtyreturn:
Sure thing.. ApG is downloading java/Cygwin for the C:\Libraries\Documents folder ... That's the folder you want it in, correct? Sounds like it at least. So, hopefully.
[Android Software/Hacking General [Developers Only]] Urinophoria:
I THINK so. I'm not as familiar with win7 directory structure as I should be. Basically the folder that opens when you hit "my Documents" in the start menu.

I just opened it from the start menu, dragged it in there and ran it, but that was on xp.

That is where I put it on my xp machine and it works good, but win7 does different stuff with permissions.

I'm not sure it'll have any effect at all, I don't know if admin permissions on 7 are folder specific or not.
[Android Software/Hacking General [Developers Only]] dirtyreturn:
Ok. For Win7 there is a little button for start and then there is a "Documents" ... C:\Libraries\Documents .. I am assuming [hopefully the assumption is right] for you in this case. It sounds like the interface/layout or whatever is a little different. Cygwin is almost done extracting. Do you want Apg run as admin or normal double click? Ok, done extracting..
[Android Software/Hacking General [Developers Only]] Urinophoria:
Try just normal double click for everything. I just want to see if there's some way to get it to run without admin privileges
[Android Software/Hacking General [Developers Only]] Christoph21x:
GUYS!

Did you see what I posted?

What is the actual problem you're discussing about?

Dirty.. close ApG and look if bash.exe is still running. If so - kill it (probably two instances).

Then delete all except the original exe.

Re-run it to reinstall all (without admin)

Before that, to be sure - reboot.

Let us know if your problem persists...
[Android Software/Hacking General [Developers Only]] dirtyreturn:
@Christoph21x @Urinophoria . Will give that a shot . And running from the documents folder without admin is still getting a permissions denied. Though from the documents folder I had began with a double click on the latest Apg.exe without running as admin.[right click -run as admin.] and it downloaded/extracted java/Cygwin into the requested folder.

Edit - there are two bash processes running even after closing Apg
[Android Software/Hacking General [Developers Only]] Urinophoria:
From what I could tell, his symptoms are a bit different from yours. I never saw you patch successfully after running as admin. We've had several show up that wouldn't patch as user, but worked just fine as admin.

Was I wrong about that in your case?

---------- Post added at 11:11 PM ---------- Previous post was at 11:08 PM ----------

Well darn... Was worth a shot... I can't think of any folder more userspace than my Documents. Guess windows doesn't work that way :(
[Android Software/Hacking General [Developers Only]] Christoph21x:
Exactly.

From what I see -

1. you have full access to "My Documents".

2. You installed or ran as normal user and/or admin

3. This creates a mismatch of rights in your installation

4. ApG is completely able to run under normal "user rights" if you have full access to the dir and subdir (automatically, if newly created.)

--> Delete all installation

--> Download ApG fresh from the web to a NEW Subdir

--> Make sure, the path will not be too long (>128 chars)

--> maybe simply create a new dir und C:\ with the user as owner and full rights and copy it there (that's what I did: C:\ApG)

--> run and let it install from there as normal user.

==> let us know.. :)
[Android Software/Hacking General [Developers Only]] dirtyreturn:
Yes, sir.. hmm ok. A fresh download from the web gives a permissions denied - to save as in C:\

Edit - just moved it to C:\ApG\(couldn't directly save it… it's getting the packages.… did not run as admin. And deleting the other installs. Will report back later tonight. If that works. Hopefully it will.
[Android Software/Hacking General [Developers Only]] Christoph21x:
What user rights do you have? Can you create a Subdir to C.\ like C:\ApG?
[Android Software/Hacking General [Developers Only]] Urinophoria:
If it does work without having to assign special rights, we should think about adding that specific process to the op (@mateorod) just so we don't have end users running around auto patching as admin :D
[Android Software/Hacking General [Developers Only]] Christoph21x:
Sure - Mateorod is aware of it as he only advises to try with admin rights in case of troubles...

I never used admin rights until I ran into these troubles... and then I recognized that this creates protentially a kind of installation mismatch if you're trying to install with different rights while bash.ese was still "unterminated"... that's why I interfered your discussion...
[Android Software/Hacking General [Developers Only]] dirtyreturn:
Uninstalling ApG from all other locations and downloading fresh/moving to C:\ApG\ all without admin(except moving to C:\).. I get permissions denied. bash.exe was terminated twice before the uninstalls/forgot to reboot, though(necessary?). Will run as admin, I guess.
[Android Software/Hacking General [Developers Only]] IRKONIK:
Good Evening!

..I guess it was already asked, but: Will Android 4.3 be patchable? Or do you think that due to the already implemented features (reachable via https://play.google.com/store/apps/details?id=com.schurich.android.tools.appopsstarter) you will "ignore" everything over 4.2.2?

Thanks :)

Also, what are your thoughts about the new "features" which are pretty ..limited, politely said. (Compared to OpenPDroid :D)

Cheers! Have a great weekend :)

PS: Also, if you need a rom for some trial and error: http://xdaforums.com/showthread.php?t=2390952 ;) (Oh, what a coincidence :p Totally! I swear :silly: )
[Android Software/Hacking General [Developers Only]] Urinophoria:
It's in active development right now. Patches exist and have gone through some testing (AOSP on my machine and AOSP and cm with mateorod).

After mateorod talked to me about it a bit I decided I liked the new features for the intent and progress. I don't want to speak for him, but let's say his opinions changed mine for the favorable. Basically it gives the uninitiated the opportunity to define acceptable permissions for play store apps, and a (Google sanctioned) vehicle to tell developers what are acceptable.

Since openpdroid is more all encompassing, I like it better (still the only one that controls permissions for system apps) and am still learning everything I can as fast as I can to help support openpdroid and the auto patcher :)

So the new privacy features are definitely one hell of a step in the right direction but not (yet) enough for some of us.
[Android Software/Hacking General [Developers Only]] IRKONIK:
..do those new features make the patches "easier"? To be honest, I have so little knowledge about coding (I really need more spare time.. :( ) that I have no idea how it works, which is kind of embarassing. I would love to help you, because this project here is taming my "paranoia" pretty good (Huge thanks btw!), but I can't help you with any coding related stuff.

Well, you two take your time, no need to do rush :)

And actually, I do not not like the feature, but I think it's kind of biased, because you can't block most of the google-related apps. (Who would have thought :p)

Well, atleast they talk about it. (..but the opposite is kind of the impact. Most of the "normal users" I talked with in the last few days said that they don't care, and now think that it auto-protects them. Aaarrghh)

Hopefully Replicant get's big enough, so I finally am away from Google. I really started hating Google when they announced "google play services". Without that cr4p you can't even watch a video on Youtube! You can't download apps. It's not open source, so there is a chance of it trying to hide something.

I really shouldn't have read Huxley and Orwell, I guess. These books are total brain f*cks.

Cheers :)

Uuuh, speaking of paranoia: http://www.afr.com/p/technology/intel_chips_could_be_nsa_key_to_ymrhS1HS1633gCWKt5tFtI

I hate the news. :( Also, XKeyscore is the third "super NSA high confidential "please don't tell anyone!"" spying program. First prism, then tempora. Now this. Where is the world going..
[Android Software/Hacking General [Developers Only]] Urinophoria:
That one is one for mateorod, I'm not really sure if it made it easier or not, but from what I understand of our conversations (I'm a noob, so he says lots of things I don't understand-he's kind enough to explain in small words, but I have a long way to go) the patches happened much quicker for 4.3 than 4.1.

I kinda wasn't a big fan of the fact that google apps are more or less exempt from the blocks, but I do like the fact that it will force errors in play store apps if the user happens to understand its usage and why its failing. It will induce a lot of transparency in development outside of google, which is where the majority of the problems come in. I'm not crazy about Google's data mining, but they just monetize it, the motives of others may be less noble.
[Android Software/Hacking General [Developers Only]] Android-Andi:
TabletUI on SlimBean 8 (Device=P31XX) not working... building patch ok, but after flashing "App Killed" e.g. YouTube & Camera.

Logs:

http://xdaforums.com/attachment.php?attachmentid=2170160&d=1375826764

http://xdaforums.com/attachment.php?attachmentid=2170161&d=1375826764

http://xdaforums.com/attachment.php?attachmentid=2170162&d=1375826764

--------

No Problems on openpdroid.
[Android Software/Hacking General [Developers Only]] mateorod:
Okay, thanks for the report...Caldair is on vacation for awhile so it might be a little bit before that gets fixed, sorry. He is such an awesome maintainer that I haven't been keeping up with the mod, so we may just end up waiting until he gets back.

Well, I have posted a few snippets from Google's "AppOps" code next to OpenPdroid. There are some portions where they are almost identical. Which is neat to know they have looked at the project, in a way.

I look at all the permission blocking/managing as a win for us and the consumers. It validates the approach, which was a controversial one not so long ago. Look at the threads discussing permission management in the CM review queues sometime. We weren't just the only ones leveraging this system for security, we were alone in thinking it was a sustainable idea. Now we se it being used all the way up to Google.

I also look at the Google implementation as a signal to app devs that the days of consequence-free information gathering is ending. Whenever I commented on Android security publicly, I tried to keep it to the facts. The facts, in my eyes, is that one of Android's biggest problems is that user data is available for the asking to anyone who can key up an app. All your sensitive data is there for the asking, all the dev does is say in the manifest "I would like all the user's contacts" and then they receive them. And since that information can be monetized, everyone was asking. Too, too easy.

With this new AppOps implementation, users will be able to really see which permissions are being exploited (just by user apps, but it is a start). If Angry Birds starts getting bug reports because the app FCs after not getting back the contact list it asked for, maybe they deserve the bad review in the store. Angry Birds doesn't need your contacts, and I believe the average user is savvy enough to understand that. This all puts devs on notice that the consequences of the data harvesting are no longer to be borne solely by the end user. That is what we call "privacy by design", and it is the only way things will actually get better. Everything else is marketing. Even if it is a barely functional when compared to OpenPDroid, it means something when it comes from Google.

Around here we fought long and hard to get these sorts of privileges on as many devices as possible, so it all feels like progress to me.
[Android Software/Hacking General [Developers Only]] fierogt42:
I'm trying to patch the AOKP for HTC Sensation (Pyramid) by Frankinstine and I'm getting an error.

... apply Mms.apk.patch ...

2 out of 4 hunks FAILED -- saving rejects to file smali/com/android/mms/transaction/HttpUtils.smali.rej

!!! PATCHING FAILED FOR com/android/mms/transaction/HttpUtils.smali !!!

Here is my log: http://codepad.org/0wOi3Yux

I'm also seeing in the terminal: "./auto_patcher: line 1171: : No such file or directory". It almost looks like there's something missing between the 2 colons which would explain why that file or directory can't be found. If I remove all blank lines from the script, 1171 is "which tar >> "$LOG" || misstools_error "Missing \"tar\" utility""

I'd be very grateful for any help. Thanks!
[Android Software/Hacking General [Developers Only]] IRKONIK:
Wow, they "stole" from you? :cyclops: If they did, they should at least give you credit for it.

I am pretty stoked for the upcoming patch. Until then my Nexus 10 won't get an update. App Ops is by far one of the worst apps to manage this, in my opinion, because, like in XPrivacy, you first have to choose a permission and then the app, instead of pushing these options into the app-info screen, so you have an app list from which you can choose the app to apply the rules on.

But hey, I guess personal preference, so I do not really matter, when everybody else is happy with the way it is :laugh: And quite frankly I could not care less, because I have OpenPDroid :victory:

So yeah, thank you for all the information :) I have a few weeks free time now, so I hope I can learn a little java, so I can understand what happens in my phone :p

Cheers!
[Android Software/Hacking General [Developers Only]] justDave:
Self-hosted autopatcher (sort of)

I've occasionally wanted to be able to upgrade a rom on the go but would never do that without a pdroid patch to match. While playing with running Debian on Android in a chroot environment, I wondered what it would take to run an autopatcher in there. It turned out to be fairly simple, if kind of slow. Here's what I did:

Install Lil Debi from the Play Store

Run the setup with a 2G partition

Start it up

Open a terminal emulator

$ su

# /debian/shell

# cd

# apt-get install openjdk-7-jre openjdk-7-jdk unzip git patch cpio iputils-ping wget

From there, I was able to run the autopatcher on CM10.2 exactly like on a desktop, just more slowly.
[Android Software/Hacking General [Developers Only]] SirGeraint:
CM10.2? Or did you mean CM10.1? Because I can't even patch CM10.2 on my Linux PC yet.
[Android Software/Hacking General [Developers Only]] IUnga:
Version 2.9.941

ROM: [MENTION=2332422]temasek[/MENTION], 116.1

Error log: http://codepad.org/JLGPsyZp
[Android Software/Hacking General [Developers Only]] justDave:
Sorry, yes, I meant 10.1.2.
[Android Software/Hacking General [Developers Only]] mateorod:
OpenPDroid support for Android4.3 has been pushed. You can find source patches here and the trees here. Those source patches have been tested against AOSP and CM. But there has not been nearly enough testing on actual running devices. So report your experiences and contribute bug fixes. This is a three armed-project (Autopatcher, OpenPDroid, PdroidManager) and I am simply not capable of serviceably maintaining all three projects in the long term.

I have also updated the to

Autopatcherv3.0.0

. Not all of my milestones have been hit but this is where we are so far, with autopatcher support for Android4.3 limited to OpenPDroid for AOSP and CM. More roms and mods to come in the next few weeks.The big issue on my immediate plate is I will soon be updating the PDroidManager in the Play Store. I have already updated the app for 4.3, but it has not been published yet. That should hopefully get done relatively soon. For now, you will have to sideload PDroidManager while on Android-4.3. You can either restore through a Titanium Backup-type service, or sideload from the PDroidManager thread.

I have some more things I have been working on I wanted to bundle in for this release, but it started to seem pointless to keep users waiting for 4.3 while I had it in my pocket. So here you go.

Edit:

I saw the report on the broken Mms.apk.patch for AOKP- try replacing the Mms.apk in the zip with one from an earlier release that worked until I have time to update those patches. Also, as for the temasek build error, there is a known commit in those build that breaks our patches. [MENTION=4293606]DualJoe[/MENTION] suggested a workaround, but I have not been able to make that work as a large-scale deployment. I have a back-up plan for temasek's builds in particular (temasek is a longtime friend of the autopatcher) so I will see what I can do for that.
[Android Software/Hacking General [Developers Only]] IRKONIK:
Well, good news: Everything based on AOSP (so the PA-Roms) work, or at least do not fail at the patching!

I am going to test it tomorrow :) Like Christmas!

Thanks man! :good: Very much appreciated! :victory:

Edit1: Patching also works with the newest Version from today (3.94 Beta) but: The size of the files is kind of suspicious. 170kb? Instead of the 9 to 10 mb? :confused:

So, shall I flash these zips? I am kinda worried...
[Android Software/Hacking General [Developers Only]] SirGeraint:
Mateorod,

Thank you for all your hard work. I am sorry it is so overwhelming. I wish I could help.

I just tried it. I have one question. Should Pdroid Manager 0.2.9.9 work or will it require the new one that you made for 4.3?

With v0.2.9.9 I get the error that the "Pdroid core has not been detected on your device."