yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] macs18max:
I just heard about openpdroid yesterday and started reading and working on it.

I compile slimrom from source, and some users have asked me to integrate openpdroid. I tried the apg patcher and I didn't work.

So I patched it to my sources from github. The rom compiled fine.

I haven't tested it yet, and since I don't know what to test, (haven't still used Pdroid manager), so I will give Pdroid installation as optional in my aroma installer so that other users who knows openpdroid test it and give feedback.

Now I would like to know which files are effected when we patch with openpdroid.

I have seen in the apg patch managet and these are the files it show

core.jar

framework.jar

services.jar

telephony-common.jar

Mms.apk

Are these the only files that changes after patching openpdroid from github or do I have to include additional files?

Thank you. help me I'm new to this.
[Android Software/Hacking General [Developers Only]] Janzomaster:
Thanks for the quick reply. I've actually just started using openpdroid/autopatcher a few weeks ago, and even with the most recent version available here, GPS just does not work. I don't get a fix for more than a few seconds, and that fix is highly inaccurate. I think I'll just check the threads every now and then and see when a fix is done.
[Android Software/Hacking General [Developers Only]] karamelos:
You just need github files & app. All command are listed on git .
[Android Software/Hacking General [Developers Only]] chenshaoju:
Same here,APG logs: http://pastebin.com/JyEtG2L4 ，logcat ： http://pastebin.com/n3dD0Z8D

Nexus 4，cm-10.1-20130616-NIGHTLY-mako。
[Android Software/Hacking General [Developers Only]] mateorod:
The attention for on pulsed_g2's article has been very gratifying...I get back in town tonight and will be releasing another GPS fix patch within 24 hours. I will try and respond to the rest of the thread as well when I am back in range of WiFi.

Thanks.
[Android Software/Hacking General [Developers Only]] MadMic:
Awesome - anything you can do is welcomed and appreciated greatly!

Also, anything you need testing wise (alpha or beta) gimmie a shout!

badly spelt with my fingers...
[Android Software/Hacking General [Developers Only]] macs18max:
Thanks you Karamelos.

I have applied openPdroid patch in github to my sources and it works wonderful. now I have one last question.

I read somewhere that If using APG autopatcher than I cannot patched supercharger V6 ulitmate jar patching tool using. I have to do it using autopatcher.

But in my case I have patched openPdroid from source before compiling the ROM. So is it safe now to apply supercharger patch on services.jar using supercharger V6 ulitmate jar patching tool ??
[Android Software/Hacking General [Developers Only]] mateorod:
I have pushed some changes to the autopatcher...new PACman patches and an updated PA telephony patch. I also integrated a new auto-updating feature that hopefully will not break everything. Those of you using the Autopatcher, please let me know. And if you want to be doubly awesome, if you are an ApG user, you could test this feature on Windows for me. Just comment line 1005 or so, it says

AUTO_UPDATE=false # CYGWIN AUTO_UPDATE TESTERS COMMENT THIS LINE HERE!

Just add a # to the beginning of the line and run as usual. Nothing will happen until I start adding more commits upstream, but this way I will know if it is safe to add for you guys as well. Should make getting the latest patches much easier, no more chasing the download page and so forth.

I thank those of you that took the time to answer questions while I was out of town...if anyone is still uncertain about anything, please go ahead and ask again now that I am back.

As for the various leaks and bugs...I am looking at all of those logs, and they will be useful now and in the future. But I am trying to put my OpenPdroid time into completing the update that we have on hand...implementing this update has required me to go through the project line by line and learn how it works and where things have changed...where OpenPDroi diverges from Pdroid2.0. Where it improved upon Pdroid2.0 I keep it, where Pdroid2.0 adds features I implement it. Just getting familiar with the program has taken a bunch of time...before I just ported forward the features to ICS, 4.12, and then 4.2.1. So I intend to try and wrap this update up and then go back and plug anything we find. because there is a good chance that some of the problems you report may already be resolved, either by wsot,CollegeDev or me. I just don't want to take anymore time away from that then necessary, it is also why i have tried to step back somewhat from the thread...moderating and support takes a huge chunk of time as well.

Anyway, I am off. I have not forgotten about the GPS additions. I have something in the hands of two testers now, hopefully they report some improvement. I do not have a GPS-enabled device (or Mms either) making errors involving those things hard to debug.

here is the merge repo for anyone who wants to work on it or send commits.

I am not sure about the ultimate patching tool. My guess is that it may be okay, but I would use the autiopatcher instead. It has built in error checks to make sure nothing is overwritten or broken and contains all the edits as of the last time I check (some 50+ of them).

The autopatcher is made to layer mods like this without overwriting, it is why we made it in the first place...flashable zips are only one at a time unless very specially made.
[Android Software/Hacking General [Developers Only]] bonanza123:
Hey,

I tried your most recent Autopatcher version and applied openpdroid for my I9100 for the newest cm10.1 nightly. So far it works fine, but I see a similar problem as I saw it with Pdroid2.0, but i'm not sure whether this has already reported so far.

As long as I do not touch any settings, for example for Google maps, the location stuff works fine. But when I apply any changes, for example for the Device ID settings, then it doesnt work anymore because the log puts out that "Wifi Network Information" has been denied. I do not find this setting in Pdroid manager but it gets denied directly. When I purge all settings for Google maps again by pressing the "bin button" in pdroid manager, then the access to this information is provided.
[Android Software/Hacking General [Developers Only]] mateorod:
Thanks for that report...could you put up a logcat if you have time?

I am working on the GPS stuff right now...I thought I had found the bug but my testers reported continued problems.
[Android Software/Hacking General [Developers Only]] scutworker:
I'm not sure if its related to location services or not, but I still have the cell tower location problem: it just doesn't work. Has this been worked on yet? Strongly I don't have any GPS problems after flashing the improved aGPS server fix earlier in this thread
[Android Software/Hacking General [Developers Only]] txoof:
If you need another tester to test GPS modifications, I'd be happy to be a guinea pig. Thanks again for all the hard work!
[Android Software/Hacking General [Developers Only]] txoof:
I just downloaded version 2.9.875 from the git repo, Commit e05649dabea12eb157fb090c1534bac0ec480e94 and encountered the errors below.

I think there might be a typo in the auto_patcher script. Under OS X, on line 1172 I get the bash error:

$ ./auto_patcher cm-10.1.0-RC5-maguro.zip openpdroid cm

The Auto-Patcher v2.9.875

./auto_patcher: line 1172: syntax error near unexpected token `>'
./auto_patcher: line 1172: ` git fetch origin &>> "$LOG" || no_network_access'

I edited line 1172 to the following:

old < git fetch origin &>> "$LOG" || no_network_access
new > git fetch origin & >> "$LOG" || no_network_access

The script will run without error after the change, but sometimes it attempts to download the auto_patcher script again and overwrites the changes that I made. I cannot regularly reproduce the downloading of the git version of the auto_patcher script problem. After the changes have been made the first time, the script sets its self up for auto updates and then downloads a faulty version of the script again. Making the change above once more allows everything to run. Presumably this will fix everything until a new version of the auto_patcher script is pushed out over git.

After several attempts of running the auto_patcher and making the change several times, it appears to have worked. Please find attached all the log files from the various attempts.

This error was kind of fortuitous, actually. Until it popped up, I didn't realize that I needed git in my path. It might be a good idea to add that to the README, or to do a check in the script.

if [ -e /usr/local/git/bin/git ]; then echo "Woohoo!"; else echo "You fail"; exit; fi

Thanks again for all the awesome work you've done on this project.
[Android Software/Hacking General [Developers Only]] bonanza123:
Hey mateorod,

please find attached a logcat. I hope I catched some of these events. You only need those log entries with "PdroidAlternative" right?

btw: I know the settings "network info" but the settings which is always denied is "wifi network info" is this in pdroid manger the "wifi info" setting or is thing something else?

Thank you!
[Android Software/Hacking General [Developers Only]] mateorod:
Hey, thanks for the info. I kind of expect this feature to be a little rocky...I don't have OSX testing personally, it can be a little difficult navigating the differences betweeen the Linux and BSD bash. I guess that OSX has a slightly different way of handling redirection, for one. I handle that in lots of different ways, I can find something that plays a little more nicely.

I am more sorry that the updating clobbers your local changes...in my testing, uncommited changes to the local copy have prevented updating, as 'git merge' is supposed to protect us from that. I was trying to avoid using pull, thinking that I could be cute. Maybe I will have to rethink that.

I may try and contact you after I have had some time to think about this, an OSX tester is a valued commodity. :)

I did add some options in case it did not play nice with some people...the script has created a new file, a .config file. You can set AUTO_UPDATE to "false" and then the script will run as usual. I did just add a git check to the script, that was a good idea. I had it checking for a .git folder and then if not finding it, immediately downloading the repo. That works fine for ApG or people who used git clone, but you are right, those who download the script and do not use git were left out in the cold. That is still true, but now we output a pretty message with advice ;)

I will upload a new package sometime tonight, I would like to take some time and maybe add a couple things.

I have not had a chance to check the logs, but I am going to work on the issue tonight, thanks for the effort
[Android Software/Hacking General [Developers Only]] Magissia:
I have a little question : How will openpdroid behave in a multi user setup ? If the admin refuse contacts acces to twitter, will other users be protected too when using twitter ?

Regards
[Android Software/Hacking General [Developers Only]] SMillerNL:
It simply won't work at all.
[Android Software/Hacking General [Developers Only]] Magissia:
open p droid won't work at all for all users ? The app won't work at all for other users ? open p droid won't work at all for other users ?

Sorry, the answer isn't much clear.

Regards
[Android Software/Hacking General [Developers Only]] swiggs98:
It works fine for the primary user but as soon as another user logs in it all falls apart. The system ui starts crashing repeatedly. I believe I had to even hold the power button to force a reboot.
[Android Software/Hacking General [Developers Only]] Magissia:
That's sad... thanks for the answer.

Regards
[Android Software/Hacking General [Developers Only]] swiggs98:
Well, it's first things first anyway. I am sure they will get to it after the merge.
[Android Software/Hacking General [Developers Only]] t1gartist:
could it be possible to run on a sense based rom maybe ill compile this and try it and see what comes about interesting project none the less cudos homies keep up the awesome ideas for great products this will worth paying for thats for sure ajust simply awesome
[Android Software/Hacking General [Developers Only]] scutworker:
I'm getting a new phone soon so will transfer all my apps using Titanium Backup.

Will this also transfer all my Pdroid Manager settings so that they are applied when I restore my apps, or do I need do something else?

I don't want to restore them to a new phone then they all leak data while I set up Pdroid settings again from scratch.

Can anybody help?

Cheers.
[Android Software/Hacking General [Developers Only]] Didgesteve:
You will need to build a new set of patches for your new phone with Autopatcher, then flash this update in CWM.

It might be possible to restore your settings across different phone platforms, but I am sceptical. You wont know unless you try.

leak data?

Just put the phone in airplane mode.

Don't forget to make a Nandroid backup before you start.
[Android Software/Hacking General [Developers Only]] txoof:
Thanks for looking into the clobbering issue and the redirect. I think adding the space should work in BSD and most *NIX environments. I'd be happy to help you test. Let me know what I can do.
[Android Software/Hacking General [Developers Only]] Discostrings:
I actually just did this.

A simple backup/restore with Titanium Backup doesn't seem to preserve the settings. I'm guessing it's because the program IDs on the old device and new device don't match, or something to that effect.

However, the backup and restore options in PDroid Manager work great--just do a backup on the old device within PDroid Manager and a restore on the new device. It worked even better than I expected.
[Android Software/Hacking General [Developers Only]] 93fuelslut:
I read the OP and still not sure what pdroid is or does. Can some one please help me
[Android Software/Hacking General [Developers Only]] SMillerNL:
It stops apps from reading information you don't want them to read.
[Android Software/Hacking General [Developers Only]] jahrule:
Are we going to see a batch set option like in pd2.0?
[Android Software/Hacking General [Developers Only]] Magissia:
I think it was planned but the dev seems busy right now

Regards
[Android Software/Hacking General [Developers Only]] jahrule:
Yea just saw have not been updated since January
[Android Software/Hacking General [Developers Only]] MadMic:
Is it me or did that last set of patches really slow GPS lock down?

I'm back to anywhere between 2 - 5 minutes :crying:

Tried the gps.conf file and downloading the latest AGPS data but no joy..

Any ideas??
[Android Software/Hacking General [Developers Only]] poo706:
I tested my GPS out just the other day. GPS Status couldn't pick up any satellites after several minutes. After a reboot, it only took several seconds. I'm using this patch: http://xdaforums.com/showthread.php?t=1447598 . Using OpenPdroid of course.

[poo]
[Android Software/Hacking General [Developers Only]] mateorod:
I am staging the merge in my personal tree...you can see the commits (probably a hundred new commits, but still not functional) at https://github.com/mateor/opd_frameworks_base All branches are active and will be rebased when merged. For the most part, I am trying to keep feature specific branches, although that hasn't proven super easy to do in practice.

I don't really know about pd2.0 batch.sh process...but I know that the pdroid2.0 patching process was derived from ours, so I would bet that the script would work for us too, you would probably just need to swap the actual patch names. I haven't looked though.
[Android Software/Hacking General [Developers Only]] R1ptide:
Is there any way to update an apps privacy settings using a script instead of the apps? My current workaround inserts the new settings into the privacy.db, but then I still have to run the openpdroid manager app to get the new values applied.

Much thanks
[Android Software/Hacking General [Developers Only]] jahrule:
That would be awesome
[Android Software/Hacking General [Developers Only]] MadMic:
On first boot it always seems to be ok... then try it again after a few hours and you'll be back to long fix times :( hoping mateo can work his magic when he can :)
[Android Software/Hacking General [Developers Only]] eldedo:
auto patch failed for paranoid android 3.65...any chance in fixing it?
[Android Software/Hacking General [Developers Only]] KingGunna:
[MENTION=4637534]eldedo[/MENTION]: Maybe the problem is the cm privacy guard, which was just merged by the pa devs..

Here is the log I got from Auto patcher:

http://codepad.org/CLPOSPiv
[Android Software/Hacking General [Developers Only]] eldedo:
any suggestions on how to get it going?
[Android Software/Hacking General [Developers Only]] poo706:
I'm not so sure about that. I just locked on to 7 satellites after about a minute. Last reboot was a day and 5 hours ago.

[poo]
[Android Software/Hacking General [Developers Only]] MadMic:
You using a gnex?

badly spelt with my fingers...
[Android Software/Hacking General [Developers Only]] poo706:
Nope, kicking it old school with an HTC Incredible 2.

[poo]
[Android Software/Hacking General [Developers Only]] Juan_Largearm:
Same problem for me with Slimbean Build 7 which has just implemented the new Privacy Guard too.
[Android Software/Hacking General [Developers Only]] mateorod:
Auto-patcher 2.992 has been released...it should auto-update for most of you, either through ApG or on the command line.

New patches for PA3.65 and SlimRom. New Mms.patches as well, in yet another attempt to gather info about MMS.apk disappearance. I just haven't found any rhyme or reason for it yet. Post a log if it happens to you so I can gather data.

I have asked for an outside perspective on the GPS/Location issue.hopefully that bears fruit. The situation is improved but not fixed and it bugs me as much as it does you guys...It has not been abandoned.

If you use OSX and compile ROMs from source, I am looking for an OSX build of SlimRom (I need the SlimRom aapt). Also, let me know if anyone is having success with auto-updating on OSX...I addressed the concerns from earlier in the thread, but I still foresee some hiccups.
[Android Software/Hacking General [Developers Only]] MadMic:
Yep its a PITA at times... but we know you're working on it :victory:
[Android Software/Hacking General [Developers Only]] R1ptide:
Thanks for your efforts, I seemed to have more GPS issues on the gnex when around a large number of wifi hotspots; however, that could've also been due to more buildings so who knows.

I was wondering if there was any way to update an apps privacy settings using a script instead of the apps? My current workaround inserts the new settings into the privacy.db, but then I still have to run the openpdroid manager app to get the new values applied. If its not possible currently then no big deal, but I figured it wouldn't hurt to ask.
[Android Software/Hacking General [Developers Only]] batp:
Problem patching Cyanogenmod 10.1.1

cm-10.1.1-mako

http://pastebin.com/3JbreVcm
[Android Software/Hacking General [Developers Only]] mateorod:
That is a RC or Stable release which is not composed the same as regular nightlies. That is actually using somewhat older code. The build query in the autopatcher (what matches you romtype and build date to our patches) is based on the assumption that the build date will indicate exactly what upstream code is in the release. But with RCs and Stables and Finals, the code is actually a bit older.

You have two options, which you choose depends on how you usually use the autopatcher and how attached you are to using an RC. Let me just say that the RCs and Final releases are generally just used a a way to reflect the stability of the code base in general, and not as an indictment of the nightlies themselves, you are fine with those.

Anyway, if you want to use the 10.1.1 build, then you need to use the older CM patches

./auto_patcher ROMSNAME.zip openpdroid cm 20130516

I am not sure if there is an easy way to indicate older patches with ApG, if you are using that.

If that is beyond you, then you should just grab the latest CM10.1 nightly and patch that. It has all the features of the CM10.1 plus additional bugfixes. Good luck.
[Android Software/Hacking General [Developers Only]] batp:
Hey thanks for the reply, it took me a while but after some yelling at the computer it finally did what it should. However, the problem is that the date you provided is incorrect for my version, and no dates from https://github.com/mateor/auto-patcher/tree/master/patches/openpdroid/4.2/cm work.

http://pastebin.com/grJwHcme

The nightlies are patched successfully, but the nightlies are older than the stable, and nightly. Do you know, is there likelyhood of openpdroid working on the stable build?

Update3:

I changed:

ro.build.date=Mon Jun 24 16:40:47 PDT 2013

ro.build.date.utc=1372117247

in build.prop

and reran APG. It patched it perfectly.

I guess I set up cygwin differently or there is some error with autopatcher, what you told me should have worked.

But, easy fix for others, just change build date in build.prop...
[Android Software/Hacking General [Developers Only]] bululu:
me (=n00b) cant patch 10.1.2:

http://codepad.org/cHv3hxD5

using windows autopatcher. What am i doing wrong (apart from using windows)?
[Android Software/Hacking General [Developers Only]] swiggs98:
[MENTION=4342828]mateorod[/MENTION]

I was curious if there were any anticipated conflicts with the recent CM privacy guard features? Will they coexist nicely?

Similarly, I assume the recent selinux implementation on CM won't matter for openpdroid?
[Android Software/Hacking General [Developers Only]] cashmundy:
I recently used the AutoPatcher to apply openpdroid to three current vibrantmtd roms: CM, Slimbean and Hellybean (Hellybean remains the best IMO). CM and HB have some sort of built-in Privacy Guard, which I have not enabled. Openpdroid seems to be working well.

I would like to note that [MENTION=4342828]mateorod[/MENTION]'s use of git to enable the AutoPatcher to update itself is just remarkably elegant, true mastery in design and hackery. One can imagine the idea being applied in many other places, such as Linux kernel patches. The most recent AutoPatcher zip failed on current Hellybean until I followed its advice and installed git, then it worked. I'm seriously impressed.
[Android Software/Hacking General [Developers Only]] bululu:
So am i... i read what mateor advices on my specific error - i just tried older patches. And guess what - it worked.

I am really impressed of OpenPDroid and its developers. Thank you so much!
[Android Software/Hacking General [Developers Only]] Lanchon:
hi,

i came across this scary permission, "read google service configuration". it doesnt make pdroid manager show any extra permission controls, so i figured openpdroid doesn't handle it. anyone knows what this permission is? thx!