[Android Apps and Games] emph4tic:
jk@jk-VirtualBox:~/android/system$ patch -p1 < ~/androidwork/ppatches/CM10.1_build.patch
patching file build/core/pathmap.mk
Hunk #3 succeeded at 101 with fuzz 2 (offset -1 lines).
patching file build/target/product/core.mk
Hunk #1 succeeded at 22 with fuzz 2 (offset 4 lines).
Hunk #2 succeeded at 56 (offset 4 lines).
Hunk #3 succeeded at 136 (offset 3 lines).
patching file build/target/product/security/privacy.x509.pem
jk@jk-VirtualBox:~/android/system$ patch -p1 < ~/androidwork/ppatches/CM10.1_framework.patch
patching file frameworks/base/Android.mk
Hunk #1 succeeded at 57 (offset 2 lines).
Hunk #2 succeeded at 215 (offset 1 line).
Hunk #3 succeeded at 227 with fuzz 2 (offset -13 lines).
Hunk #4 succeeded at 267 (offset -13 lines).
Hunk #5 succeeded at 314 (offset -15 lines).
Hunk #6 succeeded at 323 (offset -15 lines).
patching file frameworks/base/core/java/android/app/ActivityManagerNative.java
patching file frameworks/base/core/java/android/app/ContextImpl.java
Hunk #1 succeeded at 66 (offset 1 line).
Hunk #2 succeeded at 116 (offset -1 lines).
Hunk #3 succeeded at 194 (offset -8 lines).
Hunk #4 succeeded at 312 (offset -8 lines).
Hunk #5 succeeded at 354 (offset -8 lines).
Hunk #6 succeeded at 424 (offset -8 lines).
Hunk #7 succeeded at 503 (offset -8 lines).
Hunk #8 succeeded at 543 (offset -8 lines).
Hunk #9 FAILED at 606.
Hunk #10 succeeded at 1081 (offset -33 lines).
Hunk #11 succeeded at 1096 (offset -33 lines).
Hunk #12 succeeded at 1112 (offset -33 lines).
Hunk #13 succeeded at 1767 (offset -33 lines).
Hunk #14 succeeded at 1901 (offset -33 lines).
Hunk #15 succeeded at 1918 with fuzz 1 (offset -33 lines).
Hunk #16 succeeded at 2059 (offset 52 lines).
1 out of 16 hunks FAILED -- saving rejects to file frameworks/base/core/java/android/app/ContextImpl.java.rej
patching file frameworks/base/core/java/android/app/Instrumentation.java
patching file frameworks/base/core/java/android/content/ContentResolver.java
patching file frameworks/base/core/java/android/content/ContextWrapper.java
patching file frameworks/base/core/java/android/hardware/Camera.java
patching file frameworks/base/core/java/android/net/ConnectivityManager.java
patching file frameworks/base/core/java/android/net/NetworkInfo.java
patching file frameworks/base/core/java/android/net/RouteInfo.java
patching file frameworks/base/core/java/android/os/SystemProperties.java
Hunk #2 succeeded at 60 (offset -2 lines).
Hunk #3 succeeded at 191 (offset -2 lines).
Hunk #4 succeeded at 210 (offset -2 lines).
patching file frameworks/base/core/java/android/provider/Settings.java
Hunk #1 succeeded at 18 (offset 2 lines).
Hunk #4 succeeded at 3516 (offset -97 lines).
Hunk #5 succeeded at 3595 (offset -97 lines).
patching file frameworks/base/core/java/android/speech/srec/MicrophoneInputStream.java
patching file frameworks/base/media/java/android/media/AudioRecord.java
Hunk #4 succeeded at 664 (offset -17 lines).
patching file frameworks/base/media/java/android/media/MediaRecorder.java
Hunk #5 succeeded at 703 (offset -13 lines).
Hunk #6 succeeded at 744 (offset -13 lines).
Hunk #7 succeeded at 978 (offset -13 lines).
Hunk #8 succeeded at 1025 (offset -13 lines).
Hunk #9 succeeded at 1040 (offset -13 lines).
Hunk #10 succeeded at 1059 (offset -13 lines).
Hunk #11 succeeded at 1156 (offset -13 lines).
Hunk #12 succeeded at 1454 (offset -13 lines).
patching file frameworks/base/preloaded-classes
patching file frameworks/base/privacy/java/android/privacy/IPrivacySettingsManager.aidl
patching file frameworks/base/privacy/java/android/privacy/PrivacyCache.java
patching file frameworks/base/privacy/java/android/privacy/PrivacyFileObserver.java
patching file frameworks/base/privacy/java/android/privacy/PrivacyNotificationHandler.java
patching file frameworks/base/privacy/java/android/privacy/PrivacyPersistenceAdapter.java
patching file frameworks/base/privacy/java/android/privacy/PrivacySettings.aidl
patching file frameworks/base/privacy/java/android/privacy/PrivacySettings.java
patching file frameworks/base/privacy/java/android/privacy/PrivacySettingsManager.java
patching file frameworks/base/privacy/java/android/privacy/PrivacySettingsManagerService.java
patching file frameworks/base/privacy/java/android/privacy/PrivacyWatchDog.java
patching file frameworks/base/privacy/java/android/privacy/surrogate/PrivacyAccountManager.java
patching file frameworks/base/privacy/java/android/privacy/surrogate/PrivacyActivityManagerService.java
patching file frameworks/base/privacy/java/android/privacy/surrogate/PrivacyConnectivityManager.java
patching file frameworks/base/privacy/java/android/privacy/surrogate/PrivacyContentResolver.java
patching file frameworks/base/privacy/java/android/privacy/surrogate/PrivacyCursor.java
patching file frameworks/base/privacy/java/android/privacy/surrogate/PrivacyLocationManager.java
patching file frameworks/base/privacy/java/android/privacy/surrogate/PrivacyTelephonyManager.java
patching file frameworks/base/privacy/java/android/privacy/surrogate/PrivacyWifiManager.java
patching file frameworks/base/privacy/java/android/privacy/utilities/PrivacyConstants.java
patching file frameworks/base/privacy/java/android/privacy/utilities/PrivacyDebugger.java
patching file frameworks/base/privacy/java/android/privacy/utilities/ResolveHelper.java
patching file frameworks/base/services/java/com/android/server/am/BroadcastQueue.java
patching file frameworks/base/services/java/com/android/server/net/NetworkPolicyManagerService.java
patching file frameworks/base/services/java/com/android/server/PrivacyTelephonyRegistry.java
patching file frameworks/base/services/java/com/android/server/SystemServer.java
Hunk #1 succeeded at 77 with fuzz 2 (offset -2 lines).
Hunk #2 succeeded at 245 (offset -4 lines).
Hunk #3 succeeded at 301 (offset -4 lines).
Hunk #4 succeeded at 1061 (offset -51 lines).
patching file frameworks/base/services/java/com/android/server/TelephonyRegistry.java
patching file frameworks/base/services/java/com/android/server/ThrottleService.java
patching file frameworks/base/telephony/java/android/telephony/PhoneStateListener.java
patching file frameworks/base/telephony/java/android/telephony/ServiceState.java
Hunk #1 succeeded at 489 (offset 2 lines).
patching file frameworks/base/wifi/java/android/net/wifi/WifiInfo.java
patching file frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMALTEPhone.java
patching file frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyCDMAPhone.java
patching file frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyGSMPhone.java
patching file frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacyPhoneProxy.java
patching file frameworks/opt/telephony/src/java/android/privacy/surrogate/PrivacySipPhone.java
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/CdmaDataConnectionTracker.java
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/CDMAPhone.java
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
Hunk #2 succeeded at 132 (offset -3 lines).
Hunk #3 succeeded at 184 (offset -3 lines).
Hunk #4 succeeded at 226 (offset -3 lines).
Hunk #5 succeeded at 395 (offset -3 lines).
Hunk #6 succeeded at 603 (offset -3 lines).
Hunk #7 succeeded at 691 (offset -3 lines).
Hunk #8 succeeded at 732 (offset -3 lines).
Hunk #9 succeeded at 1051 (offset -3 lines).
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/RuimSmsInterfaceManager.java
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
Hunk #1 succeeded at 629 (offset -9 lines).
Hunk #2 succeeded at 644 (offset -9 lines).
Hunk #3 succeeded at 2140 (offset -42 lines).
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/GSMPhone.java
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/SimSmsInterfaceManager.java
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/PhoneBase.java
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/PhoneFactory.java
Hunk #1 FAILED at 24.
Hunk #2 succeeded at 148 (offset 4 lines).
Hunk #3 succeeded at 195 (offset 4 lines).
Hunk #4 succeeded at 215 (offset 4 lines).
Hunk #5 succeeded at 227 (offset 4 lines).
1 out of 5 hunks FAILED -- saving rejects to file frameworks/opt/telephony/src/java/com/android/internal/telephony/PhoneFactory.java.rej
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/SipPhoneFactory.java
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/SipPhone.java
patching file frameworks/opt/telephony/src/java/com/android/internal/telephony/SMSDispatcher.java
Hunk #2 succeeded at 204 (offset -1 lines).
Hunk #3 succeeded at 394 (offset -1 lines).
Hunk #4 succeeded at 1046 (offset -8 lines).
Hunk #5 succeeded at 1132 (offset -57 lines).
jk@jk-VirtualBox:~/android/system$ patch -p1 < ~/androidwork/ppatches/CM10.1_libcore.patch
patching file libcore/luni/src/main/java/java/lang/PrivacyInputStream.java
patching file libcore/luni/src/main/java/java/lang/PrivacyProcessManager.java
patching file libcore/luni/src/main/java/java/lang/ProcessManager.java
jk@jk-VirtualBox:~/android/system$ patch -p1 < ~/androidwork/ppatches/CM10.1_Mms.patch
patching file packages/apps/Mms/src/com/android/mms/transaction/HttpUtils.java
jk@jk-VirtualBox:~/android/system$ patch -p1 < ~/androidwork/ppatches/CM10.1_PDAgent.patch
patching file packages/apps/PDroidAgent/AndroidManifest.xml
patching file packages/apps/PDroidAgent/Android.mk
patching file packages/apps/PDroidAgent/CleanSpec.mk
patching file packages/apps/PDroidAgent/README.md
patching file packages/apps/PDroidAgent/res/values/strings.xml
patching file packages/apps/PDroidAgent/src/com/privacy/pdroidagent/PrivacyReceiver.java

Patching failed at "ContextImpl.java" & "PhoneFactory.java". Any way around this?