mateor / auto-patcher

smali patcher for Android code injection
MIT License
74 stars 42 forks source link

Slimkat RC1 Phone App problem. #278

Closed hteles closed 10 years ago

hteles commented 10 years ago

Good night.

Although openpdroid patches successfully Slim-i9300-4.4.2.build.2.5.RC1-WEEKLY-2478.zip after applying the openpdrood patch, Phone App keeps force closing.

Performed a factory reset and the problem persists.

Regards.

mateor commented 10 years ago

On 01/28/2014 04:37 PM, hteles wrote:

Good night.

Although openpdroid patches successfully Slim-i9300-4.4.2.build.2.5.RC1-WEEKLY-2478.zip after applying the openpdrood patch, Phone App keeps force closing.

Performed a factory reset and the problem persists.

Regards.

— Reply to this email directly or view it on GitHub https://github.com/mateor/auto-patcher/issues/278.

Yeah, I believe that. We had a sneaky FC in some of the other roms as well. I believe I know what is needed to resolve this. Like I said, I was somewhat prepared to get a report like this.

I will comment when I push a potential fix.

mateor commented 10 years ago

When you get a chance, could you upload the autopatcher log for me? I want to keep an eye on what circumstances are causing these new issues so I can harden against them in the future.

thanks.

hteles commented 10 years ago

Hi mateor.

will upload in a minute. Almost near my computer.

hteles commented 10 years ago

hi.

Link to logfile.

https://mega.co.nz/#!h8oGwb7C!l0ok3UqzzXz2VnQBk8H-j72eni0ocif7RI-2p84-hOg

Regards & Thanks for your amazing work.

smartymcfly commented 10 years ago

This happening to me as well. I haven't got the com.android.phone run but when I go into airplane mode it stops I am having a systemui problem still. I tried clearing systemui data&cache in titanium backup and it fixed the systemui. I was thinking I was in the clear until I turned off airplane mode and phone is still breaking.

Where is the log saved to? I thought was in the same directory as auto_patcher...

I found it...in the root of the user home directory.

Log mako slimkat2.5rc1(2473)

I missed two lines, at the top. http://pastebin.com/23KwVCt3

cp: ap_scripts/config_template: No such file or directory /Developer/android/auto_patcher/auto_patcher: line 243: .config: No such file or directory

here is line 239-243 of auto_patcher # Config file: For now hosting AUTO_UPDATE and PRODUCTION(currently unused). Not under version control. if [ ! -f .config ]; then cp -a ap_scripts/config_template .config fi source .config

mateor commented 10 years ago

Yeah, I see the (non-related) issues with those lines. It also is related to the fact that you couldn't find the auto_patcher log. I believe this is a consequence of you calling the script from some parent directory (probably home/$USER). This is a problem with the script, obviously, and should be fixed. I opened an issue about it just now to remind myself.

As for the usability issues...I am rebuilding and constructing some things right now. When I have something to test (later tonight) I will reference it from the commit message, which will also have any further info should it interest you guys.

mateor commented 10 years ago

I have updated some files which I am hoping will fix your issue. There have been some related issues from other posters, so I will need to look at all the responses after you guys give this a run through.

Please include the new auto_patcher log in any test reports, okay? Thanks guys.

smartymcfly commented 10 years ago

So if I were to change the working directory to the folder that auto_patcher command resides in, then the log will also be placed in that folder. Or in layman's terms... The log is placed in the current working directory.

I added auto_patcher to the end of osx etc/PATHS file so I can just type auto_patcher and drag the ROM onto terminal and type openpdroid. On Jan 28, 2014 8:35 PM, "mateor" notifications@github.com wrote:

Yeah, I see the (non-related) issues with those lines. It also is related to the fact that you couldn't find the auto_patcher log. I believe this is a consequence of you calling the script from some parent directory (probably home/$USER). This is a problem with the script, obviously, and should be fixed. I opened an issue about it just now to remind myself.

As for the usability issues...I am rebuilding and constructing some things right now. When I have something to test (later tonight) I will reference it from the commit message, which will also have any further info should it interest you guys.

Reply to this email directly or view it on GitHubhttps://github.com/mateor/auto-patcher/issues/278#issuecomment-33553590 .

mateor commented 10 years ago

Yes, that is what I believe is happening. But the program should be flexible enough to be called from anywhere while only leaving artifacts where it intends to.

The code creating and writing to the log is almost two years old at this point and was written for a quick and modest purpose. We didn't intend for it to live so long, and I periodically come across little peccadillos like this. I intend to tidy it up.

hteles commented 10 years ago

On Tuesday 28 January 2014 20:53:40 mateor wrote:

I have updated some files which I am hoping will fix your issue. There have been some related issues from other posters, so I will need to look at all the responses after you guys give this a run through.

Please include the new auto_patcher log in any test reports, okay? Thanks guys. —Reply to this email directly or view it on GitHub[1].[2]

Everything is looking okay right now.

Log is attached to this email. If it doesn't work i will upload it at your request.

Regards.


[1] https://github.com/mateor/auto-patcher/issues/278#issuecomment-33556553 [2] https://github.com/notifications/beacon/1479047__eyJzY29wZSI6Ik5ld3NpZXM6QmV hY29uIiwiZXhwaXJlcyI6MTcwNjUwNDAyMCwiZGF0YSI6eyJpZCI6MjQ0NTk2MjJ9fQ== --a0ba3b91f6f3883fce0adbf3a6419fcafa14508f.gif ROOT= /home/helmer/incoming/src/autopatcher TOOL= /home/helmer/incoming/src/autopatcher/patch_tools.tgz ROM= /home/helmer/incoming/temp/Android/Phones/S3/CyanogenBased/Slim-i9300-4.4.2.build.2.5.RC1-WEEKLY-2478.zip ROMX= /home/helmer/incoming/temp/Android/Phones/S3/CyanogenBased/Slim-i9300-4.4.2.build.2.5.RC1-WEEKLY-2478.zip

checking for updates

Updater: Auto-Patcher is already up to date

verify tools

/usr/bin/patch /bin/tar /usr/bin/jar /usr/bin/java /bin/cpio

verify ROM

running ./auto_patcher s3/Slim-i9300-4.4.2.build.2.5.RC1-WEEKLY-2478.zip

PATH= /home/helmer/incoming/src/autopatcher/tmp20140129090104:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

unzip patch tools

unzip patch patches

... result of ROM check: RIL= SamsungExynos4RIL

probe rom type

GNU Build Query

VER= v3.8.25

OS= linux-gnu 64bit

VID= 4.4.2

PID= openpdroid

MID= slim_i9300-userdebug

RID= .aosp-slim

ANDR= 4.4

BDID= 20140127

DID= m0

BID= 20131113

Current HEAD: 9fb98c0c9aad1e77eb59e26bb9568f9ee1162c3d Address some problems with incompatible ServiceStateTracker patches from 12/2013

unzip rom

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 system/priv-app/Mms.apk

APK FILES=

IMG FILES=

TXT FILES=

create updater script

... using Clockworkmod installer ...

generated updater-script

ui_print(""); ui_print(""); ui_print("~~~~~~~~~~~~"); uiprint("* "); uiprint(" * The * _"); uiprint(" * * Auto-Patcher * * _"); uiprint(" * * _"); uiprint(" *"); ui_print("~~~~~~~~~~~~"); ui_print(""); ui_print(" Attention"); uiprint(" ***"); ui_print(""); ui_print(" No ART support!"); ui_print(" Only use the davlik runtime with OpenPDroid!"); uiprint(" *"); 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/mmcblk0p9", "/system"); package_extract_dir("system", "/system"); unmount("/system"); ui_print(" ."); ui_print(" ."); ui_print(" done!");

create restore.zip

decompile system files

... decompile framework.jar ...

... extract preloaded-classes ... inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...

... decompile Mms.apk ...

copy patch openpdroid/4.4

... copying system/media/PDroid.jpeg ...

... overwriting system/media/PDroid.jpeg from openpdroid ... 'patches/openpdroid/4.4/.aosp-slim/20131113/system/media/PDroid.jpeg' -> './system/media/PDroid.jpeg'

jar patch openpdroid/4.4

... apply framework.patch ... Matching the created file: ContextImpl$45 for openpdroid/4.4/.aosp-slim We found 3 Context match: Using: patches/openpdroid/4.4/.aosp-slim/20140128

Succesful match found! Swapping patches/openpdroid/4.4/.aosp-slim/20140128/framework_56_Settings$Secure.patch for framework_78_Settings$Secure.patch!! Succesful match found! Swapping patches/openpdroid/4.4/pa/20131126/framework_55_ServiceState.patch for framework_84_ServiceState.patch!! ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_00_preloaded.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_14_Instrumentation$1.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_15_Instrumentation$2.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_16_Instrumentation$3.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_17_Instrumentation$4.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_18_Instrumentation.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_20_ContentResolver.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_28_Camera.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_29_AudioRecord.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_30_MediaRecorder$PrivacyRunner.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_31_MediaRecorder.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_38_NetworkInfo.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_45_WifiInfo.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_56_SystemProperties.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_57_IPrivacySettingsManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_58_IPrivacySettingsManager$Stub$Proxy.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_59_IPrivacySettingsManager$Stub.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_60_PrivacyFileObserver.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_61_PrivacyPersistenceAdapter.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_62_PrivacySettings$1.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_63_PrivacySettingsManagerService.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_64_PrivacySettingsManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_65_PrivacySettings.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_66_PrivacySettingsStub.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_67_PrivacyAccountManager$PrivacyAccountManagerFuture.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_68_PrivacyAccountManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_69_PrivacyActivityManagerService.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_70_PrivacyConnectivityManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_71_PrivacyContentResolver.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_72_PrivacyCursor.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_73_PrivacyLocationManager$PrivacyLocationUpdater.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_74_PrivacyLocationManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_75_PrivacyTelephonyManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_76_PrivacyWifiManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_79_MicrophoneInputStream.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_82_PhoneStateListener$1.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_83_PhoneStateListener.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_0_ContextImpl$11.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_10_ContextImpl$45.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_11_ContextImpl$4.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_12_ContextImpl.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_1_ContextImpl$23.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_2_ContextImpl$32.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_3_ContextImpl$37.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_4_ContextImpl$39.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_5_ContextImpl$40.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_6_ContextImpl$41.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_7_ContextImpl$42.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_8_ContextImpl$43.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_9_ContextImpl$44.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_56_Settings$Secure.patch ... ...applying patches/openpdroid/4.4/pa/20131126/framework_55_ServiceState.patch ... GARBAGE= tmp/system/framework/framework.jar.out/smali/android/hardware/Camera.smali.orig GARBAGE=

... apply core.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/core_0_PrivacyInputStream.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/core_1_PrivacyProcessManager$PrivacyFileReader.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/core_2_PrivacyProcessManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/core_3_ProcessManager$ProcessImpl.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/core_4_ProcessManager.patch ... GARBAGE= GARBAGE=

... apply services.patch ... Succesful match found! Swapping patches/openpdroid/4.4/.aosp-vanir/20140117/services_0_BroadcastQueue.patch for services_0_BroadcastQueue.patch!! Succesful match found! Swapping patches/openpdroid/4.4/.aosp-slim/20140128/services_3_ServerThread.patch for services_3_ServerThread.patch!! ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_1_PrivacyTelephonyRegistry$1.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_2_PrivacyTelephonyRegistry.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_4_TelephonyRegistry$1.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_5_TelephonyRegistry$2.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_6_TelephonyRegistry$Record.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_7_TelephonyRegistry.patch ... ...applying patches/openpdroid/4.4/.aosp-vanir/20140117/services_0_BroadcastQueue.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/services_3_ServerThread.patch ... GARBAGE= GARBAGE=

... apply telephony-common.patch ... Succesful match found! Swapping patches/openpdroid/4.4/pa/20131126/telephony-common_11_SipPhoneFactory.patch for telephony-common_10_PhoneFactory.patch!! Succesful match found! Swapping patches/openpdroid/4.4/.aosp-vanir/20140117/telephony-common_15_SMSDispatcher.patch for telephony-common_14_SMSDispatcher.patch!! Succesful match found! Swapping patches/openpdroid/4.4/.aosp-slim/20140128/telephony-common_7_CdmaServiceStateTracker.patch for telephony-common_6_CdmaServiceStateTracker.patch!! Succesful match found! Swapping patches/openpdroid/4.4/.aosp-slim/20140128/telephony-common_9_GsmServiceStateTracker.patch for telephony-common_8_GsmServiceStateTracker.patch!! ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_0_PrivacyCDMALTEPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_11_SipPhoneFactory.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_12_SipPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_16_VoiceMailConstants.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_1_PrivacyCDMAPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_2_PrivacyGSMPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_3_PrivacyPhoneProxy.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_4_PrivacySipPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_5_CDMAPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_7_GSMPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_9_IccSmsInterfaceManager.patch ... ...applying patches/openpdroid/4.4/pa/20131126/telephony-common_11_SipPhoneFactory.patch ... ...applying patches/openpdroid/4.4/.aosp-vanir/20140117/telephony-common_15_SMSDispatcher.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/telephony-common_7_CdmaServiceStateTracker.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/telephony-common_9_GsmServiceStateTracker.patch ... Reversed (or previously applied) patch detected! Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/sip/SipPhoneFactory.smali.rej GARBAGE= tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/gsm/GSMPhone.smali.orig tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/IccSmsInterfaceManager.smali.orig tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/cdma/CDMAPhone.smali.orig GARBAGE= tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/sip/SipPhoneFactory.smali.rej

No Mms.apk in ROM

... apply Mms.apk.patch ... Succesful match found! Swapping patches/openpdroid/4.4/.aosp-slim/20140128/Mms.apk_1_HttpUtils.patch for Mms.apk_1_HttpUtils.patch!! ...applying patches/openpdroid/4.4/.aosp-slim/20131113/Mms.apk_0_HttpUtils$APNInfo.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/Mms.apk_1_HttpUtils.patch ... GARBAGE= GARBAGE=

rebuild jar

... rebuild framework.jar ... adding: classes.dex(in = 7652404) (out= 2992529)(deflated 60%) adding: preloaded-classes(in = 103768) (out= 17338)(deflated 83%)

... rebuild core.jar ... adding: classes.dex(in = 2383300) (out= 973626)(deflated 59%)

... rebuild services.jar ... adding: classes.dex(in = 2714056) (out= 1165513)(deflated 57%)

... rebuild telephony-common.jar ... adding: classes.dex(in = 1131884) (out= 434345)(deflated 61%)

... rebuild Mms.apk ... adding: classes.dex(in = 838292) (out= 353261)(deflated 57%)

create update-openpdroid-20140127.zip

added manifest adding: system/framework/framework.jar(in = 3010452) (out= 2989147)(deflated 0%) adding: system/framework/core.jar(in = 976861) (out= 971309)(deflated 0%) adding: system/framework/services.jar(in = 1165972) (out= 1163111)(deflated 0%) adding: system/framework/telephony-common.jar(in = 434804) (out= 432394)(deflated 0%) adding: system/priv-app/Mms.apk(in = 3864664) (out= 2704066)(deflated 30%) adding: system/media/PDroid.jpeg(in = 26898) (out= 25744)(deflated 4%) ignoring entry META-INF/ adding: META-INF/com/(in = 0) (out= 0)(stored 0%) adding: META-INF/com/google/(in = 0) (out= 0)(stored 0%) adding: META-INF/com/google/android/(in = 0) (out= 0)(stored 0%) adding: META-INF/com/google/android/update-binary(in = 279488) (out= 177331)(deflated 36%) adding: META-INF/com/google/android/updater-script(in = 1193) (out= 291)(deflated 75%)

finished

Congratulations(B, the patching was successful(B.

Any errors you may have seen were succesfully handled!

!!! Only file a bug report if the software is not(B behaving as expected !!!

--- update-openpdroid-20140127.zip(B

to restore original system, flash:

--- restore-from-openpdroid-20140127.zip(B

hteles commented 10 years ago

hi.

just waiting on smartymcfly feedback so I can close this issue.

regards.

hteles commented 10 years ago

Hi mateor.

discovered another problem.

Camera Forces Close after the phone problem was resolved. Should I open a new issue?

regards. hteles

mateor commented 10 years ago

I need a log one way or another...but I am going to warn you guys now. I don't intend to bring this project forward to Android 4.5, and if it is going to take significant work to continue support for 4.4, this might be the end. I have given about as much time as I can afford at the moment.

We're winding down over here at OpenPdroid central. The community has for the most part moved on and I intend to do the same. Post your auto_patcher log, If this is an auto_patcher issue, then I may be able to bring up a fix.

hteles commented 10 years ago

Hi mateor.

Sorry to ear about that but I surely understand d.

The log it was the same as before with the Phone problem.

I attached the same log in the end of this email.

Regards,

mateor notifications@github.com wrote:

I need a log one way or another...but I am going to warn you guys now. I don't intend to bring this project forward to Android 4.5, and if it is going to take significant work to continue support for 4.4, this might be the end. I have given about as much time as I can afford at the moment.

We're winding down over here at OpenPdroid central. The community has for the most part moved on and I intend to do the same. Post your auto_patcher log, If this is an auto_patcher issue, then I may be able to bring up a fix.


Reply to this email directly or view it on GitHub: https://github.com/mateor/auto-patcher/issues/278#issuecomment-33647085

Com os melhores cumprimentos.

Helmer Teles  http://hteles.wordpress.com

"Sent from my Android Device"

Please don't send me proprietary file formats, use ISO standard ODF instead (ISO/IEC 26300)

        .-.                    G N U               /v\                 L I N U X            // \                ---------           /( _ )\        May The Source Be     ^^     ^^               With You...  ROOT= /home/helmer/incoming/src/autopatcher TOOL= /home/helmer/incoming/src/autopatcher/patch_tools.tgz ROM= /home/helmer/incoming/temp/Android/Phones/S3/CyanogenBased/Slim-i9300-4.4.2.build.2.5.RC1-WEEKLY-2478.zip ROMX= /home/helmer/incoming/temp/Android/Phones/S3/CyanogenBased/Slim-i9300-4.4.2.build.2.5.RC1-WEEKLY-2478.zip

checking for updates

Updater: Auto-Patcher is already up to date

verify tools

/usr/bin/patch /bin/tar /usr/bin/jar /usr/bin/java /bin/cpio

verify ROM

running ./auto_patcher s3/Slim-i9300-4.4.2.build.2.5.RC1-WEEKLY-2478.zip

PATH= /home/helmer/incoming/src/autopatcher/tmp20140129090104:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

unzip patch tools

unzip patch patches

... result of ROM check: RIL= SamsungExynos4RIL

probe rom type

GNU Build Query

VER= v3.8.25

OS= linux-gnu 64bit

VID= 4.4.2

PID= openpdroid

MID= slim_i9300-userdebug

RID= .aosp-slim

ANDR= 4.4

BDID= 20140127

DID= m0

BID= 20131113

Current HEAD: 9fb98c0c9aad1e77eb59e26bb9568f9ee1162c3d Address some problems with incompatible ServiceStateTracker patches from 12/2013

unzip rom

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 system/priv-app/Mms.apk

APK FILES=

IMG FILES=

TXT FILES=

create updater script

... using Clockworkmod installer ...

generated updater-script

ui_print(""); ui_print(""); ui_print("~~~~~~~~~~~~"); uiprint("* "); uiprint(" * The * _"); uiprint(" * * Auto-Patcher * * _"); uiprint(" * * _"); uiprint(" *"); ui_print("~~~~~~~~~~~~"); ui_print(""); ui_print(" Attention"); uiprint(" ***"); ui_print(""); ui_print(" No ART support!"); ui_print(" Only use the davlik runtime with OpenPDroid!"); uiprint(" *"); 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/mmcblk0p9", "/system"); package_extract_dir("system", "/system"); unmount("/system"); ui_print(" ."); ui_print(" ."); ui_print(" done!");

create restore.zip

decompile system files

... decompile framework.jar ...

... extract preloaded-classes ... inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...

... decompile Mms.apk ...

copy patch openpdroid/4.4

... copying system/media/PDroid.jpeg ...

... overwriting system/media/PDroid.jpeg from openpdroid ... 'patches/openpdroid/4.4/.aosp-slim/20131113/system/media/PDroid.jpeg' -> './system/media/PDroid.jpeg'

jar patch openpdroid/4.4

... apply framework.patch ... Matching the created file: ContextImpl$45 for openpdroid/4.4/.aosp-slim We found 3 Context match: Using: patches/openpdroid/4.4/.aosp-slim/20140128

Succesful match found! Swapping patches/openpdroid/4.4/.aosp-slim/20140128/framework_56_Settings$Secure.patch for framework_78_Settings$Secure.patch!! Succesful match found! Swapping patches/openpdroid/4.4/pa/20131126/framework_55_ServiceState.patch for framework_84_ServiceState.patch!! ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_00_preloaded.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_14_Instrumentation$1.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_15_Instrumentation$2.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_16_Instrumentation$3.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_17_Instrumentation$4.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_18_Instrumentation.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_20_ContentResolver.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_28_Camera.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_29_AudioRecord.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_30_MediaRecorder$PrivacyRunner.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_31_MediaRecorder.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_38_NetworkInfo.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_45_WifiInfo.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_56_SystemProperties.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_57_IPrivacySettingsManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_58_IPrivacySettingsManager$Stub$Proxy.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_59_IPrivacySettingsManager$Stub.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_60_PrivacyFileObserver.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_61_PrivacyPersistenceAdapter.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_62_PrivacySettings$1.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_63_PrivacySettingsManagerService.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_64_PrivacySettingsManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_65_PrivacySettings.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_66_PrivacySettingsStub.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_67_PrivacyAccountManager$PrivacyAccountManagerFuture.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_68_PrivacyAccountManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_69_PrivacyActivityManagerService.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_70_PrivacyConnectivityManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_71_PrivacyContentResolver.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_72_PrivacyCursor.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_73_PrivacyLocationManager$PrivacyLocationUpdater.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_74_PrivacyLocationManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_75_PrivacyTelephonyManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_76_PrivacyWifiManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_79_MicrophoneInputStream.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_82_PhoneStateListener$1.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/framework_83_PhoneStateListener.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_0_ContextImpl$11.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_10_ContextImpl$45.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_11_ContextImpl$4.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_12_ContextImpl.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_1_ContextImpl$23.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_2_ContextImpl$32.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_3_ContextImpl$37.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_4_ContextImpl$39.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_5_ContextImpl$40.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_6_ContextImpl$41.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_7_ContextImpl$42.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_8_ContextImpl$43.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_9_ContextImpl$44.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/framework_56_Settings$Secure.patch ... ...applying patches/openpdroid/4.4/pa/20131126/framework_55_ServiceState.patch ... GARBAGE= tmp/system/framework/framework.jar.out/smali/android/hardware/Camera.smali.orig GARBAGE=

... apply core.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/core_0_PrivacyInputStream.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/core_1_PrivacyProcessManager$PrivacyFileReader.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/core_2_PrivacyProcessManager.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/core_3_ProcessManager$ProcessImpl.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/core_4_ProcessManager.patch ... GARBAGE= GARBAGE=

... apply services.patch ... Succesful match found! Swapping patches/openpdroid/4.4/.aosp-vanir/20140117/services_0_BroadcastQueue.patch for services_0_BroadcastQueue.patch!! Succesful match found! Swapping patches/openpdroid/4.4/.aosp-slim/20140128/services_3_ServerThread.patch for services_3_ServerThread.patch!! ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_1_PrivacyTelephonyRegistry$1.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_2_PrivacyTelephonyRegistry.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_4_TelephonyRegistry$1.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_5_TelephonyRegistry$2.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_6_TelephonyRegistry$Record.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/services_7_TelephonyRegistry.patch ... ...applying patches/openpdroid/4.4/.aosp-vanir/20140117/services_0_BroadcastQueue.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/services_3_ServerThread.patch ... GARBAGE= GARBAGE=

... apply telephony-common.patch ... Succesful match found! Swapping patches/openpdroid/4.4/pa/20131126/telephony-common_11_SipPhoneFactory.patch for telephony-common_10_PhoneFactory.patch!! Succesful match found! Swapping patches/openpdroid/4.4/.aosp-vanir/20140117/telephony-common_15_SMSDispatcher.patch for telephony-common_14_SMSDispatcher.patch!! Succesful match found! Swapping patches/openpdroid/4.4/.aosp-slim/20140128/telephony-common_7_CdmaServiceStateTracker.patch for telephony-common_6_CdmaServiceStateTracker.patch!! Succesful match found! Swapping patches/openpdroid/4.4/.aosp-slim/20140128/telephony-common_9_GsmServiceStateTracker.patch for telephony-common_8_GsmServiceStateTracker.patch!! ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_0_PrivacyCDMALTEPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_11_SipPhoneFactory.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_12_SipPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_16_VoiceMailConstants.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_1_PrivacyCDMAPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_2_PrivacyGSMPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_3_PrivacyPhoneProxy.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_4_PrivacySipPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_5_CDMAPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_7_GSMPhone.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20131113/telephony-common_9_IccSmsInterfaceManager.patch ... ...applying patches/openpdroid/4.4/pa/20131126/telephony-common_11_SipPhoneFactory.patch ... ...applying patches/openpdroid/4.4/.aosp-vanir/20140117/telephony-common_15_SMSDispatcher.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/telephony-common_7_CdmaServiceStateTracker.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/telephony-common_9_GsmServiceStateTracker.patch ... Reversed (or previously applied) patch detected! Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/sip/SipPhoneFactory.smali.rej GARBAGE= tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/gsm/GSMPhone.smali.orig tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/IccSmsInterfaceManager.smali.orig tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/cdma/CDMAPhone.smali.orig GARBAGE= tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/sip/SipPhoneFactory.smali.rej

No Mms.apk in ROM

... apply Mms.apk.patch ... Succesful match found! Swapping patches/openpdroid/4.4/.aosp-slim/20140128/Mms.apk_1_HttpUtils.patch for Mms.apk_1_HttpUtils.patch!! ...applying patches/openpdroid/4.4/.aosp-slim/20131113/Mms.apk_0_HttpUtils$APNInfo.patch ... ...applying patches/openpdroid/4.4/.aosp-slim/20140128/Mms.apk_1_HttpUtils.patch ... GARBAGE= GARBAGE=

rebuild jar

... rebuild framework.jar ... adding: classes.dex(in = 7652404) (out= 2992529)(deflated 60%) adding: preloaded-classes(in = 103768) (out= 17338)(deflated 83%)

... rebuild core.jar ... adding: classes.dex(in = 2383300) (out= 973626)(deflated 59%)

... rebuild services.jar ... adding: classes.dex(in = 2714056) (out= 1165513)(deflated 57%)

... rebuild telephony-common.jar ... adding: classes.dex(in = 1131884) (out= 434345)(deflated 61%)

... rebuild Mms.apk ... adding: classes.dex(in = 838292) (out= 353261)(deflated 57%)

create update-openpdroid-20140127.zip

added manifest adding: system/framework/framework.jar(in = 3010452) (out= 2989147)(deflated 0%) adding: system/framework/core.jar(in = 976861) (out= 971309)(deflated 0%) adding: system/framework/services.jar(in = 1165972) (out= 1163111)(deflated 0%) adding: system/framework/telephony-common.jar(in = 434804) (out= 432394)(deflated 0%) adding: system/priv-app/Mms.apk(in = 3864664) (out= 2704066)(deflated 30%) adding: system/media/PDroid.jpeg(in = 26898) (out= 25744)(deflated 4%) ignoring entry META-INF/ adding: META-INF/com/(in = 0) (out= 0)(stored 0%) adding: META-INF/com/google/(in = 0) (out= 0)(stored 0%) adding: META-INF/com/google/android/(in = 0) (out= 0)(stored 0%) adding: META-INF/com/google/android/update-binary(in = 279488) (out= 177331)(deflated 36%) adding: META-INF/com/google/android/updater-script(in = 1193) (out= 291)(deflated 75%)

finished

Congratulations(B, the patching was successful(B.

Any errors you may have seen were succesfully handled!

!!! Only file a bug report if the software is not(B behaving as expected !!!

--- update-openpdroid-20140127.zip(B

to restore original system, flash:

--- restore-from-openpdroid-20140127.zip(B

mateor commented 10 years ago

I will take a look at this tonight. What it looks like is happening is that there is a very subtle difference between Slim and Vanir which is causing incompatibilities when swapped between. There might be some hack or another that can stretch us through, I will look.

The ending of the project has lots of factors, but difficulties in porting was never supposed to be one of them. The real issue is that I no longer have the time or engineering resources to verify that the program is truly behaving the way we would expect. It appears to be working, but in privacy and security that doesn't cut it.

I will post something on XDA coming up at some point to give people time to migrate. Everything we have done is open-source, and maybe some new blood will want to pick it up.

anyway, not what you asked about. I will take a look at the log and we can try some things. It might involve testing from you as we see what happens. I don't see any Camera related issues in the log at all.

hteles commented 10 years ago

Hi mateor.

Thanks for the time you are spending on this matter.

I'm willing to help you in any of the tests that you require but only later in the morning.

I don't know your time zone, but here it's GMT+1. I will catch your instructions/requirements in 8 hours starting from now if you leave some stuff for me to test or if you update your git.

Nevertheless tomorrow night I will have more time.

Once again, thanks for all the time that you spent on this matter and openpdroid.

Good night.

[Snip] mateor notifications@github.com wrote:

I will take a look at this tonight. What it looks like is happening is that there is a very subtle difference between Slim and Vanir which is causing incompatibilities when swapped between. [/Snip]

Com os melhores cumprimentos.

Helmer Teles  http://hteles.wordpress.com

"Sent from my Android Device"

Please don't send me proprietary file formats, use ISO standard ODF instead (ISO/IEC 26300)

        .-.                    G N U               /v\                 L I N U X            // \                ---------           /( _ )\        May The Source Be     ^^     ^^               With You... 

smartymcfly commented 10 years ago

No problems to report. Ran the updated patches and phone is running as it should.

Thank You for your time and dedication. I am surprised Google allowed this to live for as long they have. Nothing can done to stop an inevitable extinction when they decide to end autopatcher development.

smartymcfly commented 10 years ago

I meant openpdroid. But auto-patcher as well. Thanks again for the support.

hteles commented 10 years ago

closing this one. There's a open issue about the can here -> https://github.com/mateor/auto-patcher/issues/282

Phone fc is solved. regards