[Android Software/Hacking General [Developers Only]] JayXon:
I patched pa_maguro-3.10-28FEB2013-025925.zip with ApG successfully but after I applied the update.zip in TWRP on GNex, I can not get network location by any app (GPS are fine), for example google maps, foursquare etc. I installed PDroid Manager 0.2.9.9 but I haven't change any settings yet, which means network location is allowed to read by any app. I tried purge setting in PDroid Manager, but it doesn't help. So I applied the restore.zip in TWRP, and then everything works just fine. I can get network location instantly in google maps.

Here is my log, there is a reversed patch detected, is it caused this problem?

ROOT= /cygdrive/d/ApG/ApGPackages/ap
TOOL= /cygdrive/d/ApG/ApGPackages/ap/patch_tools.tgz
ROM= /cygdrive/d/ApG/pa_maguro-3.10-28FEB2013-025925.zip
ROMX= D:\ApG\PA_MAG~1.ZIP

### verify tools ###
/cygdrive/d/ApG/ApGPackages/cygwin/bin/patch
/cygdrive/d/ApG/ApGPackages/cygwin/bin/tar
/cygdrive/d/ApG/ApGPackages/Java/bin/jar
/cygdrive/d/ApG/ApGPackages/Java/bin/java
/cygdrive/d/ApG/ApGPackages/cygwin/bin/cpio

### verify ROM ###
### running ./auto_patcher /cygdrive/d/ApG/pa_maguro-3.10-28FEB2013-025925.zip openpdroid pa
PATH= /cygdrive/d/ApG/ApGPackages/ap/tmp20130303160703:/cygdrive/d/ApG/ApGPackages/Java/bin:/cygdrive/d/ApG/ApGPackages/cygwin/bin:/cygdrive/d/ApG/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###
#### Standard Build Query ####
# VER= v2.8.31
# OS= cygwin 32bit
# VID= 4.2.2
# PID= openpdroid
# MID= pa_maguro-userdebug
# RID= pa
# ANDR= 4.2
# BDID= 20130228
# DID= maguro
# BID= 20130213
Patches are openpdroid/4.2/pa/20130213
### DELETE FILES=
### COPY FILES= system/media/PDroid.jpeg
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar system/framework/telephony-common.jar
### APK FILES= system/app/Mms.apk
### IMG FILES=
### TXT FILES=

### unzip rom ###

### create updater script ###

... using Clockworkmod installer ...
# generated updater-script
ui_print("");
ui_print("");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("* *");
ui_print("* * The Auto-Patcher * *");
ui_print("* * * * * *");
ui_print("* * by mateor * *");
ui_print("* *");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("");
ui_print(" Attention");
ui_print(" ************************************");
ui_print("");
ui_print(" There is nothing that can go wrong here");
ui_print(" that reflashing your ROM won't fix.");
ui_print("");
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(1000, 1000, 0644, "/system/etc/paranoid/properties.conf");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm(0, 2000, 0755, "/system/vendor/etc");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");
set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/res");
set_perm(0, 0, 0644, "/system/vendor/res/images/dock/dock.png");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
unmount("/system");
ui_print(" .");
ui_print(" .");
ui_print(" done!");

### create restore.zip ###

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...
已解压: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...
已解压: system/framework/framework-res.apk

... installing framework files ...

... decompile Mms.apk ...
### copy patch openpdroid/4.2/pa/20130213 ###

... copying system/media/PDroid.jpeg ...
`patches/openpdroid/4.2/pa/20130213/system/media/PDroid.jpeg' -> `./system/media/PDroid.jpeg'

... overwriting ContentResolver.smali ...
### delete patch openpdroid/4.2/pa/20130213 ###
### jar patch openpdroid/4.2/pa/20130213 ###

... apply framework.patch ...

... apply preloaded.patch ...
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/widget/TextView.smali.orig
GARBAGE=

... apply core.patch ...
GARBAGE=
GARBAGE=

... apply services.patch ...
GARBAGE=
GARBAGE=

... apply telephony-common.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
15 out of 15 hunks ignored -- saving rejects to file 'smali/com/android/internal/telephony/RIL$RILSender.smali.rej'
GARBAGE=
GARBAGE= tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/RIL$RILSender.smali.rej
### apk patch openpdroid/4.2/pa/20130213 ###

... apply Mms.apk.patch ...
GARBAGE=
GARBAGE=
### img patch openpdroid/4.2/pa/20130213 ###
### text patch openpdroid/4.2/pa/20130213 ###

### rebuild jar ###

... rebuild framework.jar ...
正在添加: classes.dex(输入 = 8161892) (输出 = 3313369)(压缩了 59%)
正在添加: preloaded-classes(输入 = 96080) (输出 = 16124)(压缩了 83%)

... rebuild core.jar ...
正在添加: classes.dex(输入 = 2564972) (输出 = 1072897)(压缩了 58%)

... rebuild services.jar ...
正在添加: classes.dex(输入 = 2091672) (输出 = 933874)(压缩了 55%)

... rebuild telephony-common.jar ...
正在添加: classes.dex(输入 = 970144) (输出 = 388941)(压缩了 59%)

### rebuild apk ###

... rebuild Mms.apk ...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...

### create update-pa-maguro-20130228-openpdroid.zip ###
已添加清单
正在添加: system/framework/framework.jar(输入 = 3330078) (输出 = 3307956)(压缩了 0%)
正在添加: system/framework/core.jar(输入 = 1076137) (输出 = 1070169)(压缩了 0%)
正在添加: system/framework/services.jar(输入 = 934333) (输出 = 932819)(压缩了 0%)
正在添加: system/framework/telephony-common.jar(输入 = 389400) (输出 = 387320)(压缩了 0%)
正在添加: system/app/Mms.apk(输入 = 2562361) (输出 = 2430139)(压缩了 5%)
正在添加: system/media/PDroid.jpeg(输入 = 26898) (输出 = 25744)(压缩了 4%)
正在忽略条目META-INF/
正在添加: META-INF/com/(输入 = 0) (输出 = 0)(存储了 0%)
正在添加: META-INF/com/google/(输入 = 0) (输出 = 0)(存储了 0%)
正在添加: META-INF/com/google/android/(输入 = 0) (输出 = 0)(存储了 0%)
正在添加: META-INF/com/google/android/update-binary(输入 = 262796) (输出 = 173187)(压缩了 34%)
正在添加: META-INF/com/google/android/updater-script(输入 = 2560) (输出 = 565)(压缩了 77%)