yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] MFVX:
Gnex / Maguro

I can't patch the latest **Cataclysm** [Jan-21-2013 Release] with openpdroid. It fails when patching camera-related files. Any tip on how to get this working?

./auto_patcher Cataclysm_Jan-21-2013-9899e03.zip openpdroid

The Auto-Patcher v2.5.2.5

### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
inflated: system/build.prop
### probe rom type ###
... result of ROM check: version= 4.2.1 rom= aosp ...
... Using results of ROM check ...
... openpdroid patch date has been set to: 20130109 ...
### unzip rom ###
inflated: system/framework/framework.jar
inflated: system/framework/services.jar
inflated: system/framework/core.jar
inflated: system/framework/telephony-common.jar
### create updater script ###
inflated: META-INF/com/google/android/updater-script
inflated: META-INF/com/google/android/update-binary
... using Clockworkmod installer ...
inflated: system/app/Mms.apk
### create restore.zip ###
### decompile system files ###
... decompile framework.jar ...
... extract preloaded-classes ...
... decompile core.jar ...
... decompile services.jar ...
... decompile telephony-common.jar ...
### copy patch openpdroid/4.2/aosp/20130109 ###
... copying system/app/Mms.apk ...
... overwriting system/app/Mms.apk from openpdroid ...
... copying system/media/PDroid.jpeg ...
### jar patch openpdroid/4.2/aosp/20130109 ###
... apply framework.patch ...
2 out of 14 hunks FAILED -- saving rejects to file smali/android/hardware/Camera.smali.rej
1 out of 23 hunks FAILED -- saving rejects to file smali/android/media/MediaRecorder.smali.rej
... apply preloaded.patch ...
!!! PATCHING FAILED FOR android/hardware/Camera.smali android/media/MediaRecorder.smali !!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed android/hardware/Camera.smali in framework.jar cannot be remedied
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

usage: ./auto_patcher <ROM> <MODS> <ROMTYPE>
example: ./auto_patcher CM10.zip openpdroid cm
[Android Software/Hacking General [Developers Only]] mateorod:
I have pushed a little more descriptive message for this, but this is no problem. CM just added a couple commits that we (auto-patcher) are rolling back until the new OpenPDroid release is ready and we add newer patches.

Is that your newest CM10.1 ROM? We just released the 4.2.1 support this week, so having trouble with Roms from before then is not unheard of. That looks like they added an upstream commit to that class, I might be able to roll it back and add a hot fix for you. I will try tonight, sync ApG and try again tomorrow, unless you find a more recent build.

As I told karamelos, this is fine. If you read the output of this log, it says "You only need to report this if running the program is giving you problems. I have bolded it.

We are having a heck of a time with the GNex. There is some hardware issue here. I thought it was just with toro and toro plus, since Google has pulled aosp support for 4.2.1. But I guess maguro is afflicted as well. There are for sure some toro and maguro Roms that do patch though. Try cm10.1 and I know Modaco for toro works.

I will be looking into some solutions, since this was/is such a popular device. I have the ability built in to the auto-patcher to handle device-specific issues. We have some scripts we employ for the Nook color only, maybe GNex will need similar TLC.

I am going to do some work on all of these things tonight, thanks everyone for the feedback, and thanks for the SMS logs too!
[Android Software/Hacking General [Developers Only]] AuSSiELaMbChOpS:
Hi Guys, thanks for your awesome work without all of your work patching our roms would be a painstaking process!! I successfully patched the first beta of Paranoid Android Rom of the Galaxy SII i9100 but the second release fails.

Rom link is: http://xdaforums.com/showthread.php?t=2109119

My log from auto-patcher & ApG: http://codepad.org/zxOHUiZd

Hope the log helps.

Thanks again for all the work on this I have been watching your thread for ages and the support you provide is amazing especially releasing the openpdroid 4.2.1 patches and supporting all the requests. I don't know how you manage it all!! Cheers.
[Android Software/Hacking General [Developers Only]] nsmart:
Is auto_patcher automatically updated from the openpdroid development branch or has this to be done manually ?

Currently this issue Device lags when GPS is active keeps me from using openpdroid and and FFU5y wrote "This is fixed in the latest development branches, and will be included in the next release."
[Android Software/Hacking General [Developers Only]] Honusnap:
Hello Everybody,

Just tried patching the deodexed Acer 4.1.2 rom for the A510, i suppose this rom is too specific... reason it gave me so many errors.

=> Tested aosp-ever and aosp-jb
[Android Software/Hacking General [Developers Only]] karamelos:
Attached Logs last cm nexus 7 20130121 with last auto_patcher v2.5.2.7

not tested.
[Android Software/Hacking General [Developers Only]] mateorod:
I will pop up a hot fix, but the real answer is that it is time to remake the patches, honestly. The upstream people just happen to be working on the phone files we also use. It takes a little while to generate all the builds we need (12 currently, and that's if all goes well).

No, the auto-patcher (and the build patches in the OpenPdroid repo) will mirror the master branch of all repos, which will be merged with the development branch on some sort of release schedule. Having said that, we are having some conflicts with upstream, which calls for an update, and many of our initial bugs have been solved I think. I am going to start then release of the next patches for all channels.

The problem is that this is a straight stock ROM, I bet. We have some ideas, and once 4.2 stabilizes testing them is our next project.

Should work, but as I said above, it is indicative of upstream work. We are going to update the patches soon.
[Android Software/Hacking General [Developers Only]] Honusnap:
This is a stock fully deodexed rom... good news about the futur project of supporting stock 4.2 roms. These functionnalities of intercepting calls to the Android API on a per application setting should be stock .. !! :fingers-crossed:
[Android Software/Hacking General [Developers Only]] xFluffyx:
the stability from my Galaxy Nexus are bad, the camera app won't work, it's very slowly

"Sorry for my bad English" :eek:
[Android Software/Hacking General [Developers Only]] karamelos:
Re: [Utility][2.5.0][1/13] Auto-Patcher (4.2.1 support)

Nexus7 ? For me work fine.

@mateorod

Confirmed it's work

Thanks!
[Android Software/Hacking General [Developers Only]] xFluffyx:
Samsung Galaxy Nexus 4.2.1 CM10.1 [GSM MODEL] with OpenPDroid (ApG.2.5.7.3) works bad, the camera app won't work, it's very slowly

This Problem concerns all nightly ROM's for example cm-10.1-20130121-NIGHTLY-maguro.zip, all the Probelms find after flashing the ROM. No Apps are installed, only GAPPS und Super User app for 4.2

Samsung Galaxy Nexus 4.2.1 CM10.1 [GSM MODEL] without OpenPDroit works fine without any Problems
[Android Software/Hacking General [Developers Only]] mateorod:
You are correct about this...we have fixed it in the development branch and that fix will be included in the next PATCH (not necessarily auto-patcher) release. But I hope to get those patches out soon, this week hopefully. It just takes a bunch of ROM building to support all the devices. Thanks for the reports, everyone.
[Android Software/Hacking General [Developers Only]] wkwkwk:
This has been fixed but not pushed to auto_patcher yet.

https://github.com/wsot/openpdroid_support/issues/3
[Android Software/Hacking General [Developers Only]] :
Getting this error on ApG 2.5.7.3:

It has downloaded Java and cygwin but i believe that cygwin build (the latest) on host is incomplete! Correct me if i'm wrong!
[Android Software/Hacking General [Developers Only]] kobik77:
Re: [Utility][2.5.0][1/13] Auto-Patcher (4.2.1 support)

Have you tried running ApG again right after this error message?

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] grayfoxmg1:
was he running in administrator mode? he may need to do that.
[Android Software/Hacking General [Developers Only]] nsmart:
What exactly does it mean if a fix is included in a PATCH release and not in an auto_patcher release? Does this mean that we have to use APG to sync with auto_patcher github and patch it this way? In the past I downloaded the auto_patcherxxxx.zip files from Techerrata.
[Android Software/Hacking General [Developers Only]] kobik77:
Uploading a fix.

No admin rights are needed whatsoever, unless a user insists in running ApG from a protected folder.
[Android Software/Hacking General [Developers Only]] SecUpwN:
Can anybody be so nice and send me a link to the patch for openPDroid for "[ROM][Unofficial] AOKP [4.2.1]" from helicopter88, please
[Android Software/Hacking General [Developers Only]] karamelos:
Re: [Utility][2.5.0][1/13] Auto-Patcher (4.2.1 support)

yes if is supported but post a direct link for your ROM please .
[Android Software/Hacking General [Developers Only]] SecUpwN:
THIS is the direct link. Thanks for helping!
[Android Software/Hacking General [Developers Only]] karamelos:
For your rom link:

auto-patcher-aokp.zip

md5sum: a0d81fcca371c5825b23ae04e5c84c42

In zip log, update & restore

If not working post attached log.
[Android Software/Hacking General [Developers Only]] Didgesteve:
At the risk of looking like I'm spamming the thread, I would be grateful of you could look at SlimBean 4.2 RC1, available here

I would love to try openPdroid on my phone, and I am hoping that you can build the patch for this rom.

I tried and failed :(

Thanks
[Android Software/Hacking General [Developers Only]] karamelos:
Same here

Reversed (or previously applied) patch detected! Skipping patch.
16 out of 16 hunks ignored -- saving rejects to file smali/android/app/BackStackRecord.smali.rej
The next patch would create the file 'smali/android/app/ContextImpl$41.smali',
which already exists! Skipping patch.
1 out of 1 hunk ignored
Reversed (or previously applied) patch detected! Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file smali/android/app/Fragment.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file smali/android/content/AsyncTaskLoader.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/content/ContentProviderOperation.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/content/CursorLoader.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/content/pm/VerificationParams.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/net/wifi/WifiStateMachine.smali.rej
1 out of 6 hunks FAILED -- saving rejects to file smali/android/os/SystemProperties.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file 'smali/android/service/wallpaper/WallpaperService$Engine.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/internal/os/BatteryStatsImpl$StopwatchTimer.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/internal/os/BatteryStatsImpl$Timer.smali.rej'
... apply preloaded.patch ...
!!! PATCHING FAILED FOR android/os/SystemProperties.smali !!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed android/os/SystemProperties.smali in framework.jar cannot be remedied
[Android Software/Hacking General [Developers Only]] AuSSiELaMbChOpS:
Sorry for being such a pain but I am still having issues with Paranoid Android Rom 2.99 for the Galaxy S2, updated auto-patcher (v2.5.2.7) which I saw had an update in the patches for PhoneFactory.smali but I am still getting errors, same file is causing the problems:

error: failed com/android/internal/telephony/RIL$RILSender.smali' in telephony-common.jar cannot be remedied

Link to my log is below:

http://codepad.org/66zmRiMU

ROM Link:

http://xdaforums.com/showthread.php?t=2109119

Direct link to latest build:

http://goo.im/devs/bluefa1con/paranoidandroid/pa_i9100-2.99-22JAN2013-091714.zip

Thanks again for all your help!! Can't wait to get Openpdroid up and running in my new 4.2.1 PA Rom.
[Android Software/Hacking General [Developers Only]] vitocor:
At the risk of looking like I'm spamming the thread, I would be grateful of you could look at SlimBean 4.2 RC1, available here

I would love to try openPdroid on my phone, and I am hoping that you can build the patch for this rom.

I tried and failed

Thanks

Ok...the pain is moving into my eyes during i read this log file...that`s really bad for this time and for all slimrom fans ..:( but....;)Mateorod wrote something like that "

he can find a way

" to create a patch for slimrom ;)....so....:cool: ???

Please keep in touch with us slimrom boys..:highfive:

Greetings

Vito
[Android Software/Hacking General [Developers Only]] :
And i did what? Of course i always start with an empty directory :eek:

---------- Post added at 04:17 PM ---------- Previous post was at 04:15 PM ----------

I am not a n00b... of course i tried every option! That error appeared 2 times in a row running as Administrator!
[Android Software/Hacking General [Developers Only]] mateorod:
Patches have been made... they will be pushed to the master branch within 24 hours. They are tied up in some testing I was doing w/kobik for ApG but are on their way. The only way to get them right now is through a git pull, but you will be testing experimental branches...

I will push a fix for this in the next hour. I need to talk with the OpenPdroid guys about releasing new patches. We have some fixes that would be good to release, and we need to catch back up with all these new commits. None of them are super impactful, but still, this is getting out of hand. Like I said, give me an hour and I will push the RIL$RILSender fix.

Read above...your eye and butt pain is nearly extinguished.:laugh:
[Android Software/Hacking General [Developers Only]] :
Will try the latest patcher: 2.5.7.4!

Edit:

The previous error i had is fixed in 2.5.7.4 :D

Works like a charm after autopatcher syncronization is done :)
[Android Software/Hacking General [Developers Only]] vander13:
Don't work

ApG dont work on my WinXP32. Same as other users before I got an error after surcessfully downloading java and cygwin, ApG complains about downloading this patcher_patch.tgz file. While investigating the log files I found this entry.

Cloning autopatcher from GitHub... Cloning into '/cygdrive/c/ApG/ApGPackages/ap'...

The mentioned directory didnt exist on my drive, so I created the 'ap' part of this path manually. Next try it started to download something and created an empty file named 'patch_list' in this ap directory.

The new log has the following content.

tar: patch_patches.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: patch_patches.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: patch_patches.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

Seems there is still a problem after downloading the file. I stuck for the moment, but will later try to investigate the problem further. Maybe my finding help to get a solution.

EDIT

I wana add the content of 'C:\ApG\ApGPackages\cygwin\script.sh'

rm -f /cygdrive/c/ApG/ApGPackages/ap/patch_list
tar tf patch_patches.tgz | egrep '[0-9]{6}/$' | cut -d'/' -f2,4 | egrep -v '[0-9]{6}$' | uniq | uniq | sort > /cygdrive/c/ApG/ApGPackages/ap/patch_list
exit

and 'C:\ApG\ApGPackages\cygwin\bash.sh'

echo Setting new path variable
JAVA_HOME=/cygdrive/c/ApG/ApGPackages/Java/bin
JRE_HOME=/cygdrive/c/ApG/ApGPackages/Java/bin
export PATH=/cygdrive/c/ApG/ApGPackages/Java/bin:/cygdrive/c/ApG/ApGPackages/cygwin/bin:/cygdrive/c/ApG/ApGPackages/cygwin/usr/sbin
TEMP=
cd /cygdrive/c/ApG/ApGPackages/ap

/./cygdrive/c/ApG/ApGPackages/cygwin/script.sh 2>&1 | tee -a /cygdrive/c/ApG/ApG.log
exit
[Android Software/Hacking General [Developers Only]] :
Download latest version? Use search? No :confused: :eek:
[Android Software/Hacking General [Developers Only]] vander13:
Its latest(?) ApG 2.5.7.4 and I read some, not all, of the pages in this thread. Ofc, I did a thread search for filtering relevant infos, maybe I overlooked the point?
[Android Software/Hacking General [Developers Only]] :
Use ApG from a directory like:

C:\AP\ApG.2.5.7.4.exe

Make sure no spaces are in between!

Delete everything inside the directory and run ApG.exe :D and everything should be fine!
[Android Software/Hacking General [Developers Only]] vander13:
I tried this already. My directory is C:\ApG, I tried without Antivirus, with Admin permission and the situation is ... like i described above. Any other advise?

Like I said, the only progress is shown if i manually create a directory what ApG seems to need but for some reason cannot create by themself. I dunno whats going on here, maybe a weird filesystem permission/owner conflict or somthing similar :confused: To exclude this I tried also to run ApG from a Fat32 drive instead NTFS, but without luck.
[Android Software/Hacking General [Developers Only]] xFluffyx:
Thx for the Info!
[Android Software/Hacking General [Developers Only]] kobik77:
There is a problem cloning from git.

In ApG.log you should see something like that

Cloning autopatcher from GitHub...
Cloning into '/cygdrive/d/Share/ApG/ApGPackages/ap'...
remote: Counting objects: 3479, done.[K
remote: Compressing objects: 0% (1/1369) [K
remote: Compressing objects: 1% (14/1369) [K
remote: Compressing objects: 2% (28/1369) [K
remote: Compressing objects: 3% (42/1369) [K
remote: Compressing objects: 4% (55/1369) [K
remote: Compressing objects: 5% (69/1369) [K
remote: Compressing objects: 5% (77/1369) [K
remote: Compressing objects: 6% (83/1369) [K
remote: Compressing objects: 7% (96/1369) [K
remote: Compressing objects: 8% (110/1369) [K
remote: Compressing objects: 9% (124/1369) [K

I'll add in the next version an option to run cygwin in "Maintenance mode", meaning you could try running git clone by yourself to see exactly what's wrong.

Edit: Try version 2.5.7.5.

It should have "Maintenance mode".
[Android Software/Hacking General [Developers Only]] mateorod:
Auto-Patcher 2.5.3 is out

SlimRom support (4.2.1 only)

Bugfixes

Added provisionals for failed patches

Rearrangement of file structure

The big change is a sync with ApG (which I believe is included in the new ApG 2.5.7.5) which should make much clearer the ROMTYPES and MODS that we offer.

Let us known how it goes and find a post of kobik's to thank or donate.

The four romtypes are {pa, aosp, aokp and cm}.

Evervolv and SlimRom are subsets of aosp, do not look for them in the auto-patcher or within ApG, Let us know how it goes, there was a rearranging of the furniture, so there is always the possibility that I messed something up.
[Android Software/Hacking General [Developers Only]] Jdgp42:
TabletUI has been updated for 4.2? :rolleyes:
[Android Software/Hacking General [Developers Only]] mateorod:
Not yet. I am doing what I can, man. That is 14 builds (at 6-10 hours apiece) and over 28 gigs to download and that isn't counting any time to code in the changes and test. Until last week, no one ever told me they were using it at all.

I ain't forgot about ya.
[Android Software/Hacking General [Developers Only]] vander13:
With 2.5.7.5 its the same as before. ApG can not find the file patch_list and the ap directory not even exists.

tar: patch_patches.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
/./cygdrive/c/AutopatcherGUI/ApGPackages/cygwin/script.sh: line 3: /cygdrive/c/AutopatcherGUI/ApGPackages/ap/patch_list: No such file or directory
tar: patch_patches.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
/./cygdrive/c/AutopatcherGUI/ApGPackages/cygwin/script.sh: line 3: /cygdrive/c/AutopatcherGUI/ApGPackages/ap/patch_list: No such file or directory
tar: patch_patches.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
/./cygdrive/c/AutopatcherGUI/ApGPackages/cygwin/script.sh: line 3: /cygdrive/c/AutopatcherGUI/ApGPackages/ap/patch_list: No such file or directory

If I create the ap directory manually and start ApG it looks like this and it seems ApG try to download something. But the patch_list file is still empty.

After the error message there is a new window to start cygwin anyway, but cygwin seems to stop in a prompt because of missing files.

tar: patch_patches.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: patch_patches.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: patch_patches.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: patch_patches.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
[Android Software/Hacking General [Developers Only]] kobik77:
Re: [Utility][2.5.0][1/13] Auto-Patcher (4.2.1 support)

Don't create this folder manually, you're missing the point.

Delete the folder, follow the directions in the command line and let me know what's going on.

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] Didgesteve:
Slimbean 4.2 RC1

Here is the openPdroid patch for Slimbean 4.2 SGS2

Huge thank you to mateorod and kobik for making this happen.

Good work guys.
[Android Software/Hacking General [Developers Only]] AuSSiELaMbChOpS:
Hi mateorod, so sorry mate but unfortunately Paranoid Android 2.99 failed again with the same RIL$RILSender.smali file. I tried both ApG and also git clone through the manual patch option into a different directory to make sure I was using the latest auto-patcher.

Link to the log is below:

http://codepad.org/Dt5hLZt5

Thanks for your help mate, sorry for being such a pain if I didn't love PA so much I would just switch to a different ROM but its the only ROM that I want to run its awesome!! :)
[Android Software/Hacking General [Developers Only]] mateorod:
Well something is wrong. Maybe I have a typo in the path or something. That got committed and pushed at the same time as the 2.5.3 update, so you should have it available. Let me try it out real quick. I am going to look through your last several posts in the hopes you added a direct link to your rom.

Edit: AussieLambChop, you can go ahead and resync ApG now. Look for 2.5.35. I had renamed some folders to be more in sync with ApG, and that file you needed was a casualty. I have fixed it for you, thanks for being patient and keeping at it.
[Android Software/Hacking General [Developers Only]] XdaProNoob:
missing mms.apk (again?)

First of all thank for a great tool, I use it for long time.

I tried many times to patch openpdroid using apg with with CM10 for Captivate (see download).

It seems to be that mms.apk might be corrupted or something, since patching doesn't really work and then I get a message that mms.apk is going to be copied from a prepatched mms.apk.

I double checked this thing and this is what I get: mms.apk is copied to the ROM but the file itself is not able to run and is also missing from phone shortcuts on the bottom.
[Android Software/Hacking General [Developers Only]] wkwkwk:
Hi,

It looks like the camera lag bug (https://github.com/wsot/openpdroid_support/issues/3) is still present in autopatcher-2.5.3

Thanks.