yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] kobik77:
These hurricanes are a b*tch. First take care of yourself and family, man.

Hopefully, you will get back home with no time.

Regarding your question, here are the log files for 26th build of AOKP

Kobi@Kobi-PC /cygdrive/e/ap
$ ./auto_patcher aokp_maguro_jb-build-1.20120826-1305.zip pdroid

The Auto-Patcher v1.9.6

### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
### probe rom type ###
inflated: system/build.prop
### Result of ROM check aokp-jb ###
### unzip rom ###
inflated: system/framework/core.jar
inflated: system/framework/framework.jar
inflated: system/framework/services.jar
### create updater script ###
inflated: META-INF/com/google/android/update-binary
inflated: META-INF/com/google/android/updater-script
... using Clockworkmod installer ...
### create restore.zip ###
### decompile framework.jar ###
... extract preloaded-classes ...
### decompile core.jar ###
### decompile services.jar ###
### copy patch pdroid/aokp-jb/latest ###
... copying tmp/system/framework/services.jar.out/smali/com/android/server/am/Ac
tivityManagerService.smali ...
... overwriting tmp/system/framework/services.jar.out/smali/com/android/server/a
m/ActivityManagerService.smali from pdroid ...
### jar patch pdroid/aokp-jb/latest ###
### apply framework.patch ###
Reversed (or previously applied) patch detected! Skipping patch.
13 out of 13 hunks ignored -- saving rejects to file smali/android/app/Fragment.
smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file 'smali/android/app/LoaderMana
gerImpl$LoaderInfo.smali.rej'
1 out of 4 hunks FAILED -- saving rejects to file smali/android/location/Locatio
n.smali.rej
... apply preloaded.patch ...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed framework.patch
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! please refer to /cygdrive/e/ap/log20120827122442 for any debugging

! patching failed.
! it may be possible to patch /cygdrive/e/ap/aokp_maguro_jb-build-1.20120826-130
5.zip using other patch version

smali auto patcher v1.9.6
pdroid 1.32 patches 2012.08.20.
v6supercharger patches 2012.08.17.

usage: ./auto_patcher ROM.ZIP MODS [ROMTYPE] [PATCHDATE]

MODS can be pdroid,v6supercharger or pdroid or v6supercharger
optional [ROMTYPE] can be cm9, aokp, etc.
optional [PATCHDATE] can be specified to use older patch versions.
try "./auto_patcher ROM.ZIP -h" to see what is available
[Android Software/Hacking General [Developers Only]] switchgott:
Hi,

big thanks for autopatcher.

Question.

I have a problem to patch new version of cm10.

Get following error:

$ ./auto_patcher cm-10-20120827-UNOFFICIAL-i9100.zip pdroid cm10 20120820

### apply services.patch ###

134 out of 135 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! error: failed services.patch

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Please help.

THANKS!!
[Android Software/Hacking General [Developers Only]] poncik:
hi mateorod,

here are the log and terminal output for evervolv-jb based rom. i'm using cygwin on xp.
[Android Software/Hacking General [Developers Only]] Dantecore:
Does this support jedi mind tricks? Been working on trying to comprehend all this for weeks and I think I finally got it
[Android Software/Hacking General [Developers Only]] anilrawal:
Weird issue

I create the pdroid patch using both 1.96 and 1.97 version for cm7 rom http://download.cyanogenmod.com/?device=olympus , the patch is created successfully, but when installed on my phone, the phone does not boot. If I create the patch using pdroid windows.exe it works fine. I noticed the patch created with autopatcher is 4.7mb where as with exe it is over 5.7 mb, where as the restore file is exact size on both autopatcher and exe.

Any suggestion why the autopatcher does not create the file of same size?
[Android Software/Hacking General [Developers Only]] kobik77:
A teaser for a all-in-one autopatcher-frontend which would automatically download Java, Cygwin and autopatcher, so the only thing a user would do is drag-and-drop the desired ROM to the GUI and hit start.
[Android Software/Hacking General [Developers Only]] anomalya:
I realize this project has come such a long way in supporting several rom types across the board!

Will it possibly extend unto stock-based builds like the one here? It's a TouchWiz ROM based off an official SAMSUNG/AT&T ICS Release.

I've run it through the patcher under "common" and "generic" type but no luck in getting its framework(s) patched.

Just in case, I've attached a logcat of one those trials.
[Android Software/Hacking General [Developers Only]] My Gnexi:
That looks great. If I may I'd suggest something like this sketch:
[Android Software/Hacking General [Developers Only]] Darkshado:
I got the same error as djsven, here are my logs for it.

./auto_patcher cm-10-20120827-NIGHTLY-crespo.zip pdroid
[Android Software/Hacking General [Developers Only]] mateorod:
Geez, I wasn't getting my email notifications, I thought we were just having a slow day...

I have been working on 2.0 all weekend. All that is left is to merge webd's cygwin related changes and make sure that cygwinnusers can use the newly bundled apktool.

I hope you guys like it, it blows our last big update out of the water. Of course, that is more room for errors, too, so hopefully you guys will be kind when it gets out.

And every Windows user needs to scroll back to Kobik77's post and click thanks, immediately. We wouldn't be supporting Windows at all if he hadn't joined the team. 2.0 will be up on github, make your project even easier on users (and me! Thanks to ALL contributors!)

@kobik, for evervolv, the new function does not cover Loader, but it only errored in one hunk. You could try opening the patcher and removing that file from the patch.

If they supply source, we can cover it. Seems pretty popular, so it would probably be worth it.

The ROM probing isn't working, I reccomend you end your auto_patcher command with cm10. It may still fail, though. Although despite all the nasty errors, it looks like that failed on repacking the boot.img on cygwin, for which a fix is in route.

Kobik, did you try asop-jb? Although it isn't working on windows yet. In a few days, weather permitting.

After 2.0 gets stable, I will look into furthering our stock support. Although the best way is to try and find source and set up a build environment. Although I have idea how to go about building Touchwiz from home. We'll see..

That is a log with only the command and the -h flag.

Have you tried the full command?

./auto_patcher ROMNAME.zip pdroid cm10

With your details substituted?

And I must have missed quoting you, but whomever posted a failed i9100 from 8/20, I know for a fact we can patch that. It looked like (from my phone, anyway) that you had a space between 'cm' and '10'. Use 'cm10'.

Thanks everybody.
[Android Software/Hacking General [Developers Only]] baka2x:
I absolutely DEMAND you provide instructions for donations! Ever since PDroid was first introduced, I have been using it. You good devs carrying on the original work of Syvat/Svyat (not sure on spelling) allow me to continue using PDroid.

Now, give me your PayPal address or equivalent.
[Android Software/Hacking General [Developers Only]] cdkg:
I agree with baka2x, Please allow those of us who can donate an opportunity to show our gratitude. The team commitment and support is awesome!

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] switchgott:
Thanks for your answer,

I tried this command:

./auto_patcher cm-10-20120827-UNOFFICIAL-i9100.zip pdroid cm10

and get this error:

### apply services.patch ###

134 out of 135 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! error: failed services.patch

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! please refer to /cygdrive/c/tmp/ap/log20120828082944 for any debugging

Error Log file:

### decompile framework.jar ###

... extract preloaded-classes ...

\vergrößert: preloaded-classes

### decompile core.jar ###

### decompile services.jar ###

### apply framework.patch ###

... apply preloaded.patch ...

GARBAGE=

GARBAGE=

### apply core.patch ###

GARBAGE=

GARBAGE=

### apply services.patch ###

134 out of 135 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej

Any idea??

I tried 4 cm10 roms!

No way :((
[Android Software/Hacking General [Developers Only]] kobik77:
I agree that using checkboxes and radio buttons seems more logical here, but I'm building the available patches list and ROM types list dynamically so I currently prefer my way.

Here is the package auto-download part...

Still no luck with both
[Android Software/Hacking General [Developers Only]] gnunix-:
The phantonphreakepic4gupdate.zip worked perfectly on my E4GT for phantom phreak's alpha CM10 rom. Thank you so much!
[Android Software/Hacking General [Developers Only]] mateorod:
I checked the builds from the 27th,28th. Same issue. I am building new patches. Hopefully beat the weather that is coming. Try those beanpeeler builds for your device from the 8/25. Those patch fine. If I can get it out before the storm, I will release a quick patch update.
[Android Software/Hacking General [Developers Only]] kobik77:
I'm approaching to state that I would need few beta testers. Any volunteers?

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] karamelos:
YES
[Android Software/Hacking General [Developers Only]] poncik:
you can count me in =)
[Android Software/Hacking General [Developers Only]] My Gnexi:
Duh...;)
[Android Software/Hacking General [Developers Only]] anomalya:
Go for eeeett! :victory: With 2.0, nowhere to go but up, right?

Windows/Cygwin user here. No need to ask twice!
[Android Software/Hacking General [Developers Only]] kobik77:
Sent you guys PMs, I already have a few changes I'd like to incorporate but be free to share your opinion.
[Android Software/Hacking General [Developers Only]] pastime1971:
not that i am competing with kobik or anything, but i feel inspired by him making this user-friendly GUI.

i guess we passed a development phase where user-convenience was not a priority.

anyone familiar with gtk or python(?) or any other GUI capable script language ?

edit: @ matero & everyone, sorry about me not participating here as much. spending most of my time fixing cm10 on p990.
[Android Software/Hacking General [Developers Only]] cdkg:
I want in!

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] samarium:
Different strokes for different folks.

I like the user friendly CLI, integrates perfectly into my environment, and works quite nicely over ssh.

A GUI would be a PITA for me, so what ever you do, don't go GUI only.
[Android Software/Hacking General [Developers Only]] Lamien:
edit: solved it myself
[Android Software/Hacking General [Developers Only]] kobik77:
Anyone whom had tested ApG (AutopatcherGUI) please grab the latest version from the same link I sent you and let me know if it's all good.

I think I'm pretty ready to release it to the wild to get more feedback.
[Android Software/Hacking General [Developers Only]] karamelos:
I tried but i've got an error (PM)
[Android Software/Hacking General [Developers Only]] kobik77:
Thanks for the feedback :good:

A new beta version is up for everyone to try :D

ApG is currently bundled with autopatcher version 1.9.7 until GitHub version comes so I'll figure out how to make it auto update.

* I recommend placing ApG.exe in its own folder.

ApG beta download

http://goo.gl/oIUzA

Screenshot

Known issues

* ap doesn't work when ApG is under a directory name with spaces

* ApG doesn't get closed on patch fail
[Android Software/Hacking General [Developers Only]] karamelos:
Works well :p
[Android Software/Hacking General [Developers Only]] pastime1971:
if i were to make a GUI, it would be a frontend, not a replacement.
[Android Software/Hacking General [Developers Only]] arko7123:
same problem here :(

1 out of 1 hunk ignored -- saving rejects to file smali/android/location/Location.smali.rej

... apply preloaded.patch ...

### apply core.patch ###

### apply services.patch ###

134 out of 135 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! error: failed services.patch

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[Android Software/Hacking General [Developers Only]] Dantecore:
Used the ApG on Jedi mind tricks. the patcher worked using the room type labeled as "common" it installed and everything but when I try to use the pdroid ap I get the "ICS not supported" message. Any tips ?
[Android Software/Hacking General [Developers Only]] nsmart:
Same error for me with cm-10-20120830-EXPERIMENTAL-i9100-TOMATOSQUEEZER.ZIP

Logfile attached.

I am using autopatcher20120823v1.9.7 on cygwin. Last successfully pdroid_patch was with build cm-10-20120825-EXPERIMENTAL-i9100-BEANPEELER.zip.
[Android Software/Hacking General [Developers Only]] kobik77:
Did you flash the generated update.zip file?

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] Dantecore:
I did now but I'm still getting the same message. Anything else I might be missing ?
[Android Software/Hacking General [Developers Only]] bobo9900:
Can this patcher make Pdroid patch for deodexed stock motorola blur rom? I tried, but it didn't work. Maybe I did something wrong?

I attached my Pdroid restore file. Is it possible to patch it with Pdroid?
[Android Software/Hacking General [Developers Only]] wkwkwk:
Hi,

It seems that CM10-Preview5 for N7000 broke the auto-patcher 1.9.7 :(

ROOT= /Users/user/Downloads/ap
TOOL= /Users/user/Downloads/ap/patch_tools.tgz
ROM= /Users/user/Downloads/cm-10-20120831-UNOFFICIAL-n7000.zip
ROMX= /Users/user/Downloads/cm-10-20120831-UNOFFICIAL-n7000.zip

### verify tools ###
/usr/bin/patch
/usr/bin/tar
/usr/bin/jar
/usr/bin/java
/usr/bin/cpio

### verify ROM ###
# running ap/auto_patcher cm-10-20120831-UNOFFICIAL-n7000.zip

### unzip patch tools ###
x baksmali.jar
x signapk.jar
x smali.jar
x updatecert.pem
x updatekey.pk8
x update-template.zip
x boot/
x boot/ramdisk/
x boot/mkbootimg
x boot/unpackbootimg
x boot/mkbootfs

### unzip patch patches ###

### probe rom type ###
# VID= 4.1.1
# MID= cm_n7000-userdebug
# RID= cm10
# DID= GT-N7000
# BID= latest
# PID= pdroid v6supercharger
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar
### APK FILES=
### COPY FILES= tmp/system/framework/framework.jar.out/smali/android/content/ContentResolver.smali
### BOOTIMG=

### unzip rom ###

### create updater script ###

... using Clockworkmod installer ...
# generated updater-script
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
delete("/tmp/system/framework/framework.jar.out/smali/android/content/ContentResolver.smali");
package_extract_dir("system", "/system");
unmount("/system");

### create restore.zip ###
tmp/system/framework/framework.jar.out/smali/android/content/ContentResolver.smali : no such file or directory
added manifest
adding: system/framework/framework.jar(in = 4286293) (out= 4261101)(deflated 0%)
adding: system/framework/core.jar(in = 1289745) (out= 1283013)(deflated 0%)
adding: system/framework/services.jar(in = 971467) (out= 969817)(deflated 0%)
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 = 221856) (out= 143915)(deflated 35%)
adding: META-INF/com/google/android/updater-script(in = 215) (out= 149)(deflated 30%)

### decompile framework.jar ###

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

### decompile core.jar ###

### decompile services.jar ###

### apply framework.patch ###
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/location/Location.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file smali/android/widget/AppSecurityPermissions.smali.rej

... apply preloaded.patch ...
GARBAGE=
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/location/Location.smali.rej tmp/system/framework/framework.jar.out/smali/android/widget/AppSecurityPermissions.smali.rej

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

### apply services.patch ###
134 out of 135 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej

Thanks.
[Android Software/Hacking General [Developers Only]] Hotfingers:
works on XPeria ARC CM9

This is to confirm that autopatcher20120823v1.9.7 works for CM9.1 on the XPeria ARC.

Thanks for the great work :)
[Android Software/Hacking General [Developers Only]] brashmadcap:
That's not an official nightly so it likely isn't going to work, nor will it work any time soon

---------- Post added at 07:33 PM ---------- Previous post was at 07:32 PM ----------

not yet, possibly in time. read the original post

---------- Post added at 07:34 PM ---------- Previous post was at 07:33 PM ----------

Try it with an older version, that nightly is too new and won't patch currently; also it's not an official nightly so it's unlikely that it's going to work as expected
[Android Software/Hacking General [Developers Only]] wkwkwk:
Actually the auto-patcher 1.9.7 worked nicely with Preview-4 so it must be something in the upstream changes that broke it.

Cheers.
[Android Software/Hacking General [Developers Only]] momashi:
Support for SlimICS 4.2 ROM?

Hi, I'm using SlimICS 4.2 for Samsung Vibrant (T959). The develloper did not put up the source code of SlimICS for the Vibrant but he did put it up for SlimICS for the Nexus S: https://github.com/krarvind/Nexus_S_ICS

The bianaries (CWM zip files) for all the SlimICS variants (varies by device) can be found here: http://www.slimroms.net/index.php/downloads/all/viewcategory/27-4-2

(basically we're supposed to flash our device specific zip - eg. t959_4.2.zip - and then then the common applications zip - slim_common.zip).

I am not using the stock kernel for SlimICS Vibrant. I'm using the latest Subzero Kernel, who's source is available here: https://github.com/mr-psycho/subZero

The bianaries can be found here: http://rootzwiki.com/topic/22833-kernelicscwm6retired-subzero-v16-build-167-end-of-line/

Do you think with this information between the source code of slimICS (non-specific to my phone) and the source code of my kernel (specific to my phone), a patch can be made for my SlimICS ROM? I'll be making a nandroid backup before flashing the patch. So, I'm willing to take a chance.
[Android Software/Hacking General [Developers Only]] mateorod:
I have been out of power due to hurricane Isaac. I have some access at the moment, so I will briefly try and address some posts.

The unofficial builds at supported, I believe that the Cyanogen repo updated. I need to update the patches, but cannot do so at the moment. For now, I suggest that you patch releases from the 24-25th or earlier.

As for SlimRom, I suggest that you begin to set up a build environment. There are build patches and instructions in pastime1971's post. We are building towards an Auto-Patcher 2.0 release. One of the features I hope to have ready is a separate downloadable zip for user submitted patches. If you build a patched slimrom, many would benefit. Please let us know if you plan to do so. I am personally building and supporting CM10, AOKP, AOSP and am trying to widen stock support. That is probably the limit that I can be responsible for. We will need help from the community to support any more than that.

Kobik77, awesome, awesome work. And pastime1971, front ends are assuredly on my list of next steps. Kobik's looks like a great start for Windows.

Github would have been up already, if not for the storm. I am thinking about starting a companion thread for community development of the program, since we have begun to gather such a robust group of contributors. Let me know what you guys think about that idea.

Sorry that the patches have fallen behind, but circumstances were out of my control. I have been very thankful fr my android devices since the power went out, they kept my two-yearold sane. But they sure could use spare battery support. I have been taking my kid to the supermarket, power strip in hand, just to charge them up.:p
[Android Software/Hacking General [Developers Only]] pastime1971:
beside the obvious issues, the bold-marked above shouldn't happen. :confused:

edit: @mateo, for some reason patches/pdroid/cm10/copies.txt and patches/pdroid/aokp-jb/copies.txt have smali files listed ?

edit: no worry folks. it wouldn't hurt, since no such file would exist in patches/
[Android Software/Hacking General [Developers Only]] mateorod:
I don't have my computer up, it I was copying over contentresolver.smali to fix broken official builds. The smali files are in common. I have sent you a bunch of stuff on it. It was a hotfix, but we have bunch of confirmed working since then.

But I think our patches are out of date now. This has been changed to an interactive menu in case of pdroid patching failure for the next version.

Existing bugs are of course possible. It wasn't noticed because, like pastime said, there isn't a file there for the updater script to delete since the jars have been recompiled by that point. But thanks for pointing it out, I will edit it when I have some time.

I haven't had a chance to check that log thoroughly, s this could be bunk advice, but try a nightly from last week. I will update the patches as soon as I can find some gasoline for the generator. Hurricanes, man...
[Android Software/Hacking General [Developers Only]] momashi:
I'll give it a a read and a go but I'm not a developer, so I'm not sure how far I can take it. I'll keep you in the loop.
[Android Software/Hacking General [Developers Only]] thibz:
GT-I9100

Win 7 X64

Cygwin

Pdroid 1.9.7

cm-10-20120825-EXPERIMENTAL-i9100-BEANPEELER.zip pdroid

=> Works :good:
[Android Software/Hacking General [Developers Only]] kobik77:
In order to allow ApG auto update stuff with a minimal effort I need a server to host about 200MB-250MB and allows direct downloading of files.

No clicks nor waiting, just direct download.

Does anyone know of such beast besides dropbox?
[Android Software/Hacking General [Developers Only]] SecUpwN:
How about DevHost? Would you please help me with the error message I posted above?
[Android Software/Hacking General [Developers Only]] tonyp:
DevHost doesn't allow direct downloading.

Can't you just "abuse" Github for that? Or maybe code.google.com.

Hosters usually pay themselves by ads - which they can't place when direct downloading is allowed hehe
[Android Software/Hacking General [Developers Only]] mateorod:
If you look over the last week of messages, you would see that error is due to Tue patches being out of date. Which is in turn due to the fact that my town got hit by a hurricane and I was without power for five days (98 degrees and counting...).

Power was restored yesterday and I have made new patches. The aokp ones will be done this aftermoon and I will put out a update with new patches that will fix the error.

I will post when it is available.
[Android Software/Hacking General [Developers Only]] SecUpwN:
Thanks for telling and staying strong.

God bless you and the people of your town.
[Android Software/Hacking General [Developers Only]] brashmadcap:
Dude take your time! We will live :P

You're a trooper; keep your chin up and let us know if we can donate some new shingles for your roof or something. ;)