yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] MadMic:
Has anyone experienced slow GPS lock issues? I'm running a GNex with PA and it takes 3 - 5 minutes to get a lock (which is then stable) but without the patches it's 3 - 5 seconds...

Did read about having to change a line about the RIL, haven't done this, is it needed for Sunsung phones still?

Any help very welcome, cheers

Edit: forgot to say, it's been like this for quite a while now, with the PA rom and the patches...
[Android Software/Hacking General [Developers Only]] mateorod:
We have an issue for this...but reporting and information has been hard to come by. Could you (pretty) please post a logcat, either here or at the relevant issue on our github page?

You shouldn't see any need to edit the patches, that is merely a patching issue due to some old source code in PA.
[Android Software/Hacking General [Developers Only]] :
Tried autopatcher 2.8.4 in Carbon 1.5 beta for GT-N7000:

http://goo.im/devs/carbon/n7000/Carbon-JB-v1.5-beta-04MAR2013-082101-n7000.zip

I get this errors:

http://codepad.org/gHoWqBQH
[Android Software/Hacking General [Developers Only]] MadMic:
Interesting, looks like it's the same issue I have - I've re-applied the update for openpdriod and used GPS Status to get a GPS lock - left it for about 5 minutes with no lock - hopefully that'll be enough for you, if not let me know and I'll grab as much as you want...

One thing, to keep the test fair, before I put the openpdriod changes on I got a GPS lock with the phone in this position within about 20 - 30 seconds...

Anything else you want let me know and I'll get it done for ya :)

Cheers
[Android Software/Hacking General [Developers Only]] Px80:
Yes :)

i've got some trouble patching my PACman for Desire Saga.

I tried pd2.0 and openpdroid with pa, cm, aosp automatic and manual patching.

Nothing worked, ApG tells me everytime " error: unknown ROM version."

the build.prop can be found in this post

would be great if you can take a quick look into that.

thx and good day!
[Android Software/Hacking General [Developers Only]] trephined:
There is a bug with the way you detect the directory in 2.8.4 if you have a space in the directory path.

I have a directory path as "Nexus 4\autopatcher\" and receive this error

"dirname: extra operand `4/autopatcher/auto_patcher'"

Moving to a dir without the space the tool runs fine. Though unfortunately for my AOKP 4.2.2 build i still receive

"1 out of 4 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali.rej

!!! PATCHING FAILED FOR com/android/internal/telephony/gsm/GsmServiceStateTracker.smali !!!"
[Android Software/Hacking General [Developers Only]] Caldair:
Hi Mateorod. I just used 2.8.4 to patch for TabletUI and I noticed that the autopatcher is still decompiling and recompiling Settings.apk, and adding it to the patches for CM despite you removing the patch.

When I took a look I found that /system/app/Settings.apk was still listed in "files.txt" in Patches/TabletUI/4.2/CM/ and that Settings.apk.patch was still in Patches/TabletUI/4.2/CM/20130201/.

When I edited these entries out, the patcher worked as I expected - with no Settings.apk in the update/restore.zips. And the patch works perfectly on my 7" Tab 2 with latest CM M2 from today.

Thank you!
[Android Software/Hacking General [Developers Only]] swiggs98:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

PDroid/autopatcher noob question... I really want PDroid 2.0 or the combined version with OpenPDroid. I am just trying to decide if I should wait until they are combined or run one now?

I am on CM10.1 Sprint S3.

Edit: I tied the autopatcher with the d2spr CM10.1 M2 build today.

PD2.0 failed stating 4.2.2 wasn't supported yet.

OpenPDroid failed on the last patch, cdmaservicestatetracker. Guess I just need to wait a bit longer. Autopatcher is way cool though!

Any other ideas/recommendations?
[Android Software/Hacking General [Developers Only]] mateorod:
The problem you are having is that this rom is some sort of huge combo rom for a bunch of different devices. The "unknown rom version' error message is not very descriptive, I will update that. But what is happening is that the autopatcher cannot find the build.prop. Which is reasonable, the build.prop has been in the standard spot on every other rom I have ever seen a log for.

And because there are so many different build.props in that zip, I am not going to hard wire in a new location. What I recommend is for you to drop the build.prop you actually use into the zip with an archive manager (7zip works on Windows, I believe). Put it in the ROM.zip/system folder. And then run the rom through the autopatcher, it just worked for me and patched your rom.

Note: Resync and get auto-patcher 2.8.41, I completed the rom query for PACroms to accommodate your build.prop. If it fails to patch your rom, you didn't pull the latest sources of the autopatcher.

AussieLampChops, you can see what I did here, just in case you ever need to do it yourself.

That last message isn't a failure, if you look more closely at the output or the log, you will see it coied over a prepatched version of that file. Look for the update.zip and flash it, if there isn't an update.zip, post your autopatcher log please.

Thanks for the tip on the spaces in the directories, though. I merged a commit that changed some things there, but I couldn't test for Windows b/c I don't have a windows box. I will see if I cannot fix it, or I will revert that change.

Did anyone else notice this? I would like to know if it was just reintroduced or if it had been lurking. I am pretty sure it is new, but would like someone to validate. If you used to use ApG in a directory with a space in it's name and all of a sudden it doesn't work, let me know.

Thanks! Fixed it, with a hat tip to you.

That isn't an error with the CDMAServiceStateTracker, if you read more carefully the output or the log, you will see that the script offers to fix that issue for you. That is an issue that has it's roots in PD2.0, so you wouldn't get around it by using another PDroid.

There is no real fork, or difference, between OpenPDroid and PDroid2.0. The current patches in the Auto-Patcher for 4.2.2 are OpenPdroid1.0.1, which are bugfixes and expansions of the Pdroid2.0 1.52 patches (I think that is the version). CollegeDev has released PDroid2.0 build patches 1.5.4 and we are all working together on merging them into OpenPDroid and then moving forward with just the one set of build patches.

So it is a collaborative effort between the two groups, and we are working on making that more apparent. I speak to CollegeDev regularly, so go with what is available now, and we will are aiming at having OpenPdroid 1.1.0 (incorporating PDroid2.0 build patches) sometime by the end of March. I know that seems like a long time, but merging, testing, and most especially building patches, takes a long time and lots of testing.

We all want to give as stable a product as possible....
[Android Software/Hacking General [Developers Only]] swiggs98:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

Yeah I saw that in the log but it wasn't apparent to me it would work. It sounded like a try it and see comment. Good to know.

Waiting for something solid is definitely worth it, especially if just around the corner. Thanks so much for the awesome responsiveness and all your work! Can't wait to use it. This addresses my main issue with Android.
[Android Software/Hacking General [Developers Only]] sakkath:
Yes, i've tried CM10.1 nightlies, don't remember which build, though. There were no problems. Will try latest build now.

Thanks! But i've edited latest patch, obviously :)

Got to replace three files with premade ones: CdmaServiceStateTracker.smali, PhoneFactory.smali, SMSDispatcher.smali.

I'll flash today and look how it works.

Here is the log file, if it is of any interest to you: codepad . org/6RxIhq7t

UPD: Strange thing happened. Tried to patch cm-10.1-20130303-NIGHTLY-n7000.zip, ApG said that patching failed, but i've found nothing wrong in logfile. And the files were created, but didn't flashed them yet.

codepad . org/1AvfaKUh
[Android Software/Hacking General [Developers Only]] MadMic:
Slow GPS another logcat

@mateorod

This morning I grabbed a logcat from the time I turned my GPS nav program (Waze) on until it got a lock, I still have GPS status installed, which launches in the background. It took about 5 - 6 mins to lock - when it did I saved the log...

Hopefully that'll give more clues to what's not playing nicely :)
[Android Software/Hacking General [Developers Only]] sakkath:
I've installed this mms.apk, it launches, but i can't send or receive any sms messages. "Service unavailable. We'll try again later".
[Android Software/Hacking General [Developers Only]] Px80:
Ok, i did the sync but actually there is no 2.8.41 in AgG yet.

I put the build.prop into the system folder.

Auto_patcher recognized the ROM and tried to patch openpdroid.

But for one reason it failed with each romtype with a different error.

Which settings did you set that it worked for you?

type: cm - error: failed android/provider/Settings$Secure.smali

type: pa - error: failed android/os/SystemProperties.smali in framework.jar

type: aokp - error: failed com/android/server/ServerThread.smali in services.jar

do i maybe have to copy the whole stuff from the saga folder into system or only the build.prop? - shall i delete the others in order to get it to work?
[Android Software/Hacking General [Developers Only]] AuSSiELaMbChOpS:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

Don't specify a Rom type for PACman just specify OpenPdroid and nothing else, auto_patcher will identify its a PACman Rom by itself.

Sent from my PACman GT-i9100 using Xparent ICS Tapatalk 2
[Android Software/Hacking General [Developers Only]] scutworker:
I had exactly the same problem, but solved it by installing this GPS patch. I know it says it's for a Galaxy phone, but it works on all versions of Android. Even if you don't have the locking problem, it's well worth installing as it speeds up GPS anyway. But like I say, it sorted out the problem for me.
[Android Software/Hacking General [Developers Only]] AuSSiELaMbChOpS:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

Damn sorry about that, did you try clearing your dalvik cache or the individual Mms.apk cache file that should be in /cache/dalvik-cache and reboot?

Sent from my PACman GT-i9100 using Xparent ICS Tapatalk 2
[Android Software/Hacking General [Developers Only]] motisu:
Caldair, can you please UL the remove TabletUI zip? I wanted to remove it for testing purposes but ad to reinstall the whole ROM because I didn't have the removal zip.

Thanks.
[Android Software/Hacking General [Developers Only]] sakkath:
Cleared from recovery, that counts? Didn't change nothing.

UPD: Installed another sms application, same problem. It seems, that problem is somewhere else.
[Android Software/Hacking General [Developers Only]] AuSSiELaMbChOpS:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

Yep clearing from recovery is fine, what Rom are you on? I had a similar issue when I was on PA3.00. Anything show in your logcat when you try and send a sms, any errors or something that looks strange? Can you make phone calls?

Sent from my PACman GT-i9100 using Xparent ICS Tapatalk 2
[Android Software/Hacking General [Developers Only]] MadMic:
Thanks for that - had a read, without openpdriod I get a really fast lock (less than 10s), but with it the first lock is really slow. It's ok after then..

Before apply this patch, did you apply it after you flashed the openpdroid update zip? Did openpdroid still work afterwards?

I'm willing to give it a go, but also hoping mateorod can work his magic :)
[Android Software/Hacking General [Developers Only]] scutworker:
I flashed it after installing the OpenPdroid update zip and OpenPdroid still worked fine after. It works for me, but I'd take a nandroid first!

Good luck.
[Android Software/Hacking General [Developers Only]] Caldair:
I certainly can. I am just off to work at the moment, but when I get home later I will. Maybe I'll post it here: http://xdaforums.com/showthread.php?t=2170185, so as not to polute this forum too much with tabletUI patches.:good:
[Android Software/Hacking General [Developers Only]] MadMic:
Ok, pulled the file appart - its simply a gps.conf file which you replace over the existing one. Lots of the changes point to:

.derekgordon.com - one thought, is this safe? I'm prety sure this is cosha, but would the person running this domain be expecting all this extra traffic if we all started using it?

The idea behind openpdroid is security - I wonder if there are any more concerns using this new gps.conf?? Maybe me being a little tinfoil hat :cowboy: lol

@mateordo - this solved the slow fix issue - for now, any ideas on a proper fix??

Thanks
[Android Software/Hacking General [Developers Only]] dirtyreturn:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

That guy has a gps thread with the 'official support' for this device. Username is crypted I am pretty sure.

Link to first post. http://xdaforums.com/showthread.php?p=1
[Android Software/Hacking General [Developers Only]] scutworker:
If you look at the thread you'll see that Derek Gordon is the dude who provides the file and the servers to which it connects. This is how AGPS works: if downloads a file that helps your phone locate GPS. If you don't use this file then your phone will connect to someone else's server to do exactly the same thing.

He is expecting the traffic as he promotes this fix in the thread. He asks for donations to help run the server; I donated a few bucks as I use GPS a lot and this gets me a fix quickly and in places where previously I could not.

He does also do a version that doesn't use his server, but with reduced performance.

So, could he use it for nefarious purposes? I don't see how. All is does is connect to his server and pull down a file. My IP changes all the time so I doubt he can connect it to me and even if he can, he doesn't know WHO I am. It's no different to going to a website as far as I can see.

The choice is, however, all yours.
[Android Software/Hacking General [Developers Only]] sakkath:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

It's just silly me =)

Few posts ago I reported that three files were not patched, but replaced with premade ones, one of them was SMSDispatcher.smali.

I was on PA3.10, when that happened, so maybe it's a common problem. And maybe there are problems with other premade files on that ROM, haven't time to test (no spare phone ATM :))
[Android Software/Hacking General [Developers Only]] trephined:
Sorry I should have indicated some more information. I was using a linux box with autopatcher script. When i got the error I did a diff between 2.8.4 and 2.8.3 and saw there were a few changes with how the directory was determined. I know the second part wasn't really an error, but didn't know how important that file was. I flashed the update.zip and all is working so far, just thought I'd mention it.
[Android Software/Hacking General [Developers Only]] MadMic:
Was just wondering about how people felt. If he's prepared to support this then I'm more than happy to run with it :cool: It's opened an interesting train of thought, I'll look at the original PA rom gps.conf file and see where that was pointing too.. but thats for a later time as I'm at work...
[Android Software/Hacking General [Developers Only]] Px80:
very nice! that worked!! :good:
[Android Software/Hacking General [Developers Only]] tagueulee:
Bootloop

Hello, I have a bootloop with the last version of autopatcher (2.8.4) and I dont know what to do :/

Here is the patch (20130209 and 20130201) and the logcat !

Thanks for helping :)
[Android Software/Hacking General [Developers Only]] mateorod:
I am not able to look at log right now but this is a good time to remind people you never have to wipe anything! You can reflash your rom or use the restore.zip and preserve all data and settings and fix boot loop!

I will look at you provided info tonight and we can see what went wrong.

Edit : I couldn't help myself, I glanced at it. 4.1.2 is broken for ROMs built after O208 ( look at very top of OP). Use a ROM from before then (ypthe differences are very small for user, only missing FM radio really) and it will work.

I will try and add a temporary error-catch for this to save people from this issue while we work on a fix.
[Android Software/Hacking General [Developers Only]] Shidapu:
http://codepad.org/liCAxnOr

Tried to patch with OpenPdroid on RootBox v3.8 in the Samsung Galaxy S3 i9300 Android Development section.

It's AOKP Android 4.2.2 with CM stuff, it also has some own Framework edits.

Edit:

Adding Rom Thread. http://xdaforums.com/showthread.php?t=1898798
[Android Software/Hacking General [Developers Only]] :
hope my post is useful to fix this errors :D
[Android Software/Hacking General [Developers Only]] MadMic:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

OK, further testing with the GPS.conf file isn't looking too good.

After first boot all was epic, really fast lock

Left the device for about 3 hours, tried to use GPS and took the 5-6 minutes again..

Removed openpdroid patches and back to 5second lock

Left device for 3 hours and tried again (no patches) 5second lock

Reapplied patches and GPS lock was quite fast... Now leaving for a few hours to see if it goes slow again....

Not sure, something being cached somewhere???
[Android Software/Hacking General [Developers Only]] MadMic:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

The change log you've posted there is very old..I would suggest you delete everything to do with ApG you've got anywhere and start again from scratch (looks like you tried a new folder, but something remains)

Where did you download ApG from? The address I saw in your posting doesn't seem right. Go to http://d-h.st/users/kobik and grab ApG from there.
[Android Software/Hacking General [Developers Only]] Deviant Ollam:
that link you posted appears to be an empty folder?

i've now deleted absolutely everything, and even will launch ApG from a new folder.
[Android Software/Hacking General [Developers Only]] MadMic:
Can you see the ApG folder in there?

http://d-h.st/users/kobik/?fld_id=5247#files
[Android Software/Hacking General [Developers Only]] Deviant Ollam:
that seemed to do it... openPDroid appears now. sweet.

unfortunately, patching failed... http://codepad.org/hPldycPb
[Android Software/Hacking General [Developers Only]] Deviant Ollam:
since i could not get CM 10.1 patched (which is understandable, the nighties update so fast) i took the CM 10 that I am running currently and tried patching that original ROM instead.

that failed, too, when OpenPDroid was attempted... http://codepad.org/3jCgubAq

**** and balls. :( i'd really like to try OpenPDroid on my Galaxy S III because this lag and battery drain is a real killer.
[Android Software/Hacking General [Developers Only]] mateorod:
We may have a GPS fix. It will take me a minute to create patches with the fix applied, but since I happen to know you have the problem, will you test when it is finished?

Okay, i do not see what is wrong ( I will look tonight when I get home) but you are having some secondary problem. The patching is working fine, but there is a problem with the smali binaries recompiling the apps. I have not seen that before, and I have seen a BUNCH of logs (thousands) at this point. Either way, there may be some bug being exposed, because even if you have something non-standard, I should have an error-catch in place.

Do me one favor, download the auto_patcher 2.8.1 here and all you have to do for this test is swap the auto_patcher file with the one with 2.8.4. This may solve your problem, I had a report that a commit I merged broke file paths that have a space in them.

If that doesn't work, you could also look at the ApG configuration guide linked to in the OP. I think the current advice is to not put it under a C directory.

Otherwise, you can wait, I will take a closer look tonight.
[Android Software/Hacking General [Developers Only]] Deviant Ollam:
heh... then where would one rather want to put it? in a really deep path on some network drive instead?

---------- Post added at 01:28 AM ---------- Previous post was at 01:24 AM ----------

dropping in those additional files worked, it seems.

cm-10.1-20130304-NIGHTLY-d2tmo has just been patched for OpenPDroid

i'm trying to patch cm-10.0.0-d2tmo as well, just to see.
[Android Software/Hacking General [Developers Only]] mateorod:
Dunno, really. Maybe I read it wrong. I haven't used a Windows machine since 1999, when all I knew about computers was that formatting documents in Office was maddening. Then the thing got the Love Bug. Yeah.

Yeah, I thought it might. Seems there was a bug in that pull. I will revert it and release a new version tonight.
[Android Software/Hacking General [Developers Only]] go2net:
A question about ApG, since my network can not connect to internet directly, I must use proxy, I know in ApG.ini, I can config proxy, but what is the format of proxy setting, I have tried , <IP_ADDRESS>:<PORT>, <IP_ADDRESS>/<PORT>, <IP_ADDRESS>@<PORT>, no one works.
[Android Software/Hacking General [Developers Only]] Deviant Ollam:
this is great. thanks for the continued work on everything. and, while OpenPDroid was successfully patched to the CM 10.1 nightly that i grabbed recently, i was not a fan of that ROM at all, at least in its current form.

imagine my delight when the OpenPDroid patching worked just fine for my CM 10.0 version. so, i took the current state of my phone (well, i restored a TWRP backup of the pre-10.1 version) and then...

1. used the "restore" patch for pDroid 2.0 (i LOVE that this is also auto-generated... thank you SO MUCH!

2. patched the OpenPDroid update

3. uninstalled pDroid app

4. installed PDroid Manager (new app)

5. much to my delight, all the previous pDroid settings were ported over! thank you again! (wrong thread for that discussion)

... anyway, all the lag and awful processor chewing seems to have gone away with the camera and GPS. OpenPDroid is amazing and your ApG utility works perfectly.

I am running it from c:\ApG
[Android Software/Hacking General [Developers Only]] samarium:
Never used ApG, however often when I have to specify a proxy I have to use syntax like:

http://proxy.host:port/

and the trailing / can be important. Good luck.
[Android Software/Hacking General [Developers Only]] MadMic:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

No problem, whatever you need give me a shout :)

---------- Post added at 08:19 AM ---------- Previous post was at 08:16 AM ----------

Are you sure your proxy isn't an authentication proxy? Most setup like this won't allow programs like ApG to talk directly to the internet. Unless you can change its settings on the proxy or the writer of ApG does some code changes I don't think you'll get it working.
[Android Software/Hacking General [Developers Only]] go2net:
http://proxy.host:port/ still can not work for me

It seems that I must setup Linux environment to path my Favorited ROM.
[Android Software/Hacking General [Developers Only]] pro.aggro:
According to git it's now possible to patch PAC (aosp-pac) but in ApG i can't choose this option.

I think this needs to be fixed by an ApG update?:confused:
[Android Software/Hacking General [Developers Only]] MadMic:
Interestingly - I was doing some tests last night - I finally got my internet connection at home back again (thanks Virgin Media!) and updated to the latest patches - patching the PA rom failed. 2.8.2 patches were ok, but the latest failed... not sure why, is this a known issue?
[Android Software/Hacking General [Developers Only]] pro.aggro:
AW: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

ApG said patching PA failed but it created the zips and they work.

Sent from Nexus 4 powered by PARANOIDANDROID
[Android Software/Hacking General [Developers Only]] MadMic:
I saw the zips were created correctly and I could open them (so they weren't corrupted at that level) - not got round to trying it though - thanks for confirming

@mateorod - any idea?