yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] alroger:
SGT7 CM10 working again

Yay! Worked without errors on latest CM10 nightly (20121017) for the SGT7 (p1).

Tell me something, which is best to use this auto-patcher or the actual JB source patches? Any advantages/disadvantages? I've just recently discovered this auto-patcher. I have been building my CM10 (and CM9 before) kang from source with pdroid patches for a long while now.

Thanks again. :D
[Android Software/Hacking General [Developers Only]] mateorod:
Well, these patches are made with the build patches. Which I need to update, this reminds me. There are some minor changes and I have been making some of the edits by hand. I will try and post new patches today.

Anyway, so they should be the same. If you have the capability to build your own ROM each night, maybe that is more assured, but honestly, I would use the Auto-Patcher personally. The disadvantage to using the Auto-Patcher is that the patches break and you have to wait for us to put out new ones. That happens every three weeks or so, although I usually have new patches out before anyone notices they need one. But of course the build patches break every so often as well, as you just saw.

Now, I know you distributed prepatched builds, as does Tonyp and Romracer, I believe. That is probably the best overall solution because the least has to be done by the user. But of course, not everyone wants PDroid and the code is originally set up the way it is for a reason and some people won't want those framework changes.

Of course, the reason the code is set up that way is to catalog and enter you data, but not everyone is as concerned about that as the people who visit this thread.

Maybe I answered your question? lol. Both are good, I personally would use whatever cost me the least time.
[Android Software/Hacking General [Developers Only]] Sir.John:
Hi everybody,

any news on supporting MIUI Roms as of yet? I'd love to run PDroid on my Miui Rom, yet fail miserably when trying to create a patch.

Obiviously some russian guy called Vcoder managed to compile one already back in April, but this is of course outdated by now. For reference: http://4pda.ru/forum/index.php?showtopic=328190&st=388

John
[Android Software/Hacking General [Developers Only]] Jeffreycat:
Will you be adding PDroid Extension in the near future? I really want to run it on my Sprint variant of the SGS2 which is currently running CM9 :)
[Android Software/Hacking General [Developers Only]] karamelos:
Works on last cm10

cm-10-20121017-NIGHTLY-n7000.zip

http://get.cm/?device=n7000
[Android Software/Hacking General [Developers Only]] jelle2503:
failed on latest cm10 nightly 10/17 for i9000:

http://codepad.org/mbxV9uHW

here's one for 10/14 nightly, it is different:

http://codepad.org/bCrXtMWC
[Android Software/Hacking General [Developers Only]] mateorod:
Hmm. It is patching fine. Your problem is executing the binaries.

For example, I just downloaded cm-10-20121017-NIGHTLY-galaxysmtd.zip and patched it with literally zero ignored hunks or problems. So I need to see if I can think of what could possibly be going on in your set-up.

I am pretty sure that these patches work, they have been working steadily in the four-five different devices I have been checking nightlies for each day.

You log indicates that something on your cygwin setup isn't working with the smali binaries. I did make a change to the smali call (one that shouldn't impact your being able to use it.

Since you use ApG, I reverted that change. Try patching the 10/17 nightly again. Somehow the smali binary isn't working on your setup right now.

Edit: The above isn't clear at all. Sorry. The patching process is working for you, but for some reason the recompiling with the smali.jar is what's failing. We did push a small change to the smali command and since the auto-patcher was working for you before, I have reverted that change.

If you have a minute, resync with ApG and try to patch the 10/17 rom again. Thanks.

As for pdroid extension I have been working on it almost every day. But as of now, the patches just aren't porting. I think I a going to need to work on CollegeDev's actual build patches. At the moment, they don't apply cleanly and some parts have to be applied by hand. I think that same issue is manifesting itself in the smali code. But hopefully some reorganization of the build patches will change some of this.

But as of right now, it isn't working....I will keep working on it.
[Android Software/Hacking General [Developers Only]] karamelos:
Hi,

I try it on ubuntu & same @mateorod result: no error (with Ap 2.1.75)

log20121018064139 - 4.60 KB

cm-10-20121017-NIGHTLY-galaxysmtd.zip

update.zip - 5.35 MB

restore.zip - 6.33 MB
[Android Software/Hacking General [Developers Only]] SecUpwN:
THANK YOU!
[Android Software/Hacking General [Developers Only]] r4ptor:
Hey guys,

i wanted to test the pdroid autopatcher but ran into some problems.

1.) i wanted to patch the omega 2.0 aokp firmware for my galaxy s3. But the patching process fails with:

... apply preloaded.patch ...
!!! PATCHING FAILED FOR android/app/BackStackRecord.smali android/app/ContextImpl$18.smali' android/app/ContextImpl$26.smali' android/content/AbstractThreadedSyncAdapter$SyncThread.smali' android/content/ContentResolver.smali android/database/sqlite/SQLiteCursor.smali android/database/sqlite/SQLiteDatabase.smali android/database/sqlite/SQLiteStatement.smali android/net/wifi/WifiConfigStore.smali android/opengl/GLSurfaceView$GLThread.smali' android/telephony/PhoneStateListener$1.smali' android/view/SurfaceView.smali android/widget/GridView.smali android/widget/TextView.smali !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed android/app/BackStackRecord.smali in framework.jar cannot be remedied
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2.) then i tried to patch die aosp stock firmware and CM10 for my google nexus 7. Well, the patch completed and i flashed the update.zip over CMW on the nexus 7.

This also worked, but i still can't install pdroid over the play store because it keeps saying me that the app isn't compatible.

Any solutions on my problems? Thanks :)
[Android Software/Hacking General [Developers Only]] mateorod:
I will need the log from the omega aokp rom. Did you use aokp-jb for romtype? Add a link to that ROM. My aokp-jb patches are working i am pretty*sure. Please attach the complete log.

Glad that the aosp-jb patches are working, still my proudest moment. Those patches are wild. They have filtered PDroid from the app store for JB. It is irritating. On the OP, in the PDroid section there is a link to syvat's OP, you can download it in the first question on his FAQ.

I was waiting to hear from him, but Google had him killed. So I will mirror the app here soon.
[Android Software/Hacking General [Developers Only]] r4ptor:
Thanks for the quick reply.

Well, i feel like an idiot now. I tried to patch the files without the -jb option. So no suprise it didn't work.

Anyway, pdroid is now running on my nexus 7 und galaxy s3.

Thank you very much :) :)
[Android Software/Hacking General [Developers Only]] mateorod:
It can be confusing. I there is the beginning of a reorganization in place, by Android version, that will probably headline the next big upgrade, maybe to Copper. I may have Copper be the GUIs, though.

Anyway, I don't consider it clear enough. But thank you for these reports, I feel pretty confident all of our patches are now current.
[Android Software/Hacking General [Developers Only]] jahrule:
Hope it works out for you. I am looking forward to pdroid-ext
[Android Software/Hacking General [Developers Only]] mateorod:
For anyone interested, Auto-Patcher 2.1.9 is available on our techerrata page and through ApG.

It includes a test patch for PDroid Extension by CollegeDev, which is a new update to the core PDroid idea, something CollegeDev undertook after Google had svyat killed.

This patch is invoked thusly:

./auto_patcher <ROMNAME>.zip extension cm10

And is ONLY available for CM10 at the moment. If you would like to test it on other flavors (PA or what have you) go ahead, but please understand that all I am trying to do is test for CM10 support. So just please, just straight CM10 build reports for now, if you could.

They look good to me...:victory:
[Android Software/Hacking General [Developers Only]] gnunix-:
Thanks. I've been looking forward towards an auto-patcher with the pdroid extension as well.
[Android Software/Hacking General [Developers Only]] jahrule:
Awesomeness. Will test when I get back home
[Android Software/Hacking General [Developers Only]] wkwkwk:
I tried to patch cm-10-20121013-NIGHTLY-n7000.zip using 'extension cm10' and got the following:

### rebuild jar ###

... rebuild framework.jar ...

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: method index is too large.
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
at org.jf.dexlib.Item.addExceptionContext(Item.java:177)
at org.jf.dexlib.Item.writeTo(Item.java:120)
at org.jf.dexlib.Section.writeTo(Section.java:119)
at org.jf.dexlib.DexFile.writeTo(DexFile.java:716)
at org.jf.smali.main.main(main.java:231)
Caused by: java.lang.RuntimeException: method index is too large.
at org.jf.dexlib.Code.Format.Instruction35c.writeInstruction(Instruction35c.java:102)
at org.jf.dexlib.Code.Instruction.write(Instruction.java:57)
at org.jf.dexlib.CodeItem.writeItem(CodeItem.java:258)
at org.jf.dexlib.Item.writeTo(Item.java:117)
... 3 more
code_item @0x196898 (Landroid/database/sqlite/SQLiteConnectionPool$AcquiredConnectionStatus;->values()[Landroid/database/sqlite/SQLiteConnectionPool$AcquiredConnectionStatus;)

Thanks for all your work on this.
[Android Software/Hacking General [Developers Only]] karamelos:
Tested & approuved

Felicitations & tanks for this integration.

Rom: cm-10-20121017-NIGHTLY-n7000.zip

pdroid is already installed in my phone,i just flash zip, dl app of collegedev, desinstallation of old pdroid.apk & install new & appreciate.

Edit: I have never denied access notifications just allowed. Block or not block that's the question ?
[Android Software/Hacking General [Developers Only]] wkwkwk:
Thanks. I was being lazy and wanted just the patch without updating the nightly as well. I'll do it and report back, although it will be mid next week.

Thanks again.
[Android Software/Hacking General [Developers Only]] mateorod:
Thanks for the report. We have agents in the field hard at work on AOKP and AOSP. Glad it worked.

As for usage questions, well, that looks like a good question to take to CollegeDev's release thread. We are the maintainers for the PDroid itself, so a certain amount of pdroid talk is necessary, but at heart the Auto-Patcher is a software distributor, more than anything else.

But CollegeDev has a software app, where all the usage stuff will be better asked. For instance, I don't even have any Android devices that work right now, so I don't even know what you're talking about, lol.

But seriously, he wrote the software and can answer all your questions better than I can. I know he is busy, but the community is coming together over there.
[Android Software/Hacking General [Developers Only]] proudfoot:
I just test this (cm-10-20121018-NIGHTLY-p5100.zip + pdroid extension from git) while the patching works but pdroid extension itself doesn't, I can't save preference, got sqlite saving error (missing column).

log attached, thank you :)
[Android Software/Hacking General [Developers Only]] mateorod:
That is due to having used PDroid and not wiping data. Not a bug with the Auto-Patcher but a consequence of PDroid and PDroid Extension being incompatible. I will try and remember to add that info to the OP. It seems like my patches are fine.

Here is a post detailing some options if you don't want to wipe, but it comes down to, and I quote from CollegeDev:
[Android Software/Hacking General [Developers Only]] karamelos:
It's OK

Finally pdroid+pdroid_extension is not good idea, full wipe & reflash solved the problem.

Pdroid_extension solo work fine :good:

thanks
[Android Software/Hacking General [Developers Only]] proudfoot:
@mateorod thanks :) deleting /data/system/privacy* solved it. So glad i dont have to wipe all data \o/
[Android Software/Hacking General [Developers Only]] blackhawk_LA:
I've tried patching CM9 ROM for Razr with ApG. This one: http://xdaforums.com/showthread.php?t=1801379

And it failed, this is the report:

http://codepad.org/GcoMSOuG

Thanks for your help and contribution :)
[Android Software/Hacking General [Developers Only]] karamelos:
cm10 nightly build

pdroid-extention work on the last cm10 cm-10-20121019-NIGHTLY-n7000.zip
[Android Software/Hacking General [Developers Only]] SecUpwN:
Haven't been in here for quite awhile, does AutoPatcher now support PDroid-Extension? I'm asking because agrabren, the developer of DisarmedToaster (see my signature), won't release his new ROM with Android 4.1.2 until this works. Make me happy! :)
[Android Software/Hacking General [Developers Only]] mateorod:
I swear to you, a good bit of the time I think you are actively trolling me.:p

The last ten or so posts above yours are all concerned with PDroid Extension, and I have also posted in the PDroid Extension thread, specifically using your name as a person who I know will be excited, since you ask about it every other day.

You are causing me grief and lamentation, SecUpwN, lol.

Go, tell agraben to update. It works.

AOKP and AOSP are on their way, thanks to wbedard (AOSP) and FFU5y (AOKP). But for now, just CM10 and probably PA.

Edit: I will look at your CM9 rom, to the person above you. I know the CM9 patches work for straight builds, I am going to see if you need an earlier patch since your rom is a bit old.

Update2: @blackhawk_LA- I have added a provisional file for SurfaceView (the file that failed.). That essentially means that the script offers to copy over a prepatched version of that file should it fail to patch. That allows an update.zip to be made. Since you are on Linux, to have you run it would require an update. Since that seems like overkill to just to test this one ICS rom, I have attached an update.zip for your rom, the STOCK-cm-9-20120919-UNOFFICIAL-umts_spyder.zip.

Let me know if this works for you, ok?
[Android Software/Hacking General [Developers Only]] jelle2503:
i find it a tad trolly too

i mean you come in here asking a bunch of times about prdoid-ext, but you're too tired to read a few posts in this thread to see if there's any update about it :silly:

Anyway I patched my cm10 10/17 succesfully:

http://codepad.org/qGzwxo8j

And pdroid extension app seems to work perfectly so far. Too bad it cannot block internet access yet.

Thanks a bunch!!
[Android Software/Hacking General [Developers Only]] Px80:
i tried to patch [ROM][16 OCT 12][JB 4.1.2] PACman v14.1 | All-In-One | PA-2.21 | AOKP-B4 | CM10 | K-3

tried several options. AOSP-JP, CM10, AOKP with addon and pdroid. (which one is for pdroid by collegedev)

is there already a patch i can use? or could you tell me how to patch this rom correctly?
[Android Software/Hacking General [Developers Only]] blackhawk_LA:
Thank you very much, I tried it but gave me errors. The ROM starts but keeps on "initializing apps". I wiped cache and dalivk, and tried fixing permissions, but after that the ROM boots but keeps on FC process.phone (and I think others processes too, I couldn't see)

Here's the logcat.

I flashed the restore zip and the ROM boots normally without problems or FC
[Android Software/Hacking General [Developers Only]] mateorod:
Well, outside of building yourself, I guess we're stuck. I did just download and survey several recent CM9 builds for various devices and they all patch fine. The provisional method is something we use to get us through situations like this, where some minor kanging has disrupted the patches. It gets us through most problems, but every once in awhile, a rom comes by that needs to be patched at build time.

Thanks for trying the zip anyway.
[Android Software/Hacking General [Developers Only]] jahrule:
Looks like its a no go :(

/auto_patcher cm-10-20121018-NIGHTLY-hercules.zip extension cm10

See log.
[Android Software/Hacking General [Developers Only]] mateorod:
Odd. The patches are working fine, but for some reason apktool is failing for you. Let me look at it tonight. If worst comes to worst, I can just package up the Mms.apk, but I would rather not since the patches for it are fine.

I will see what's up- for some reason you are not able to access the aapt. Which I am pretty sure is fine, and has been working for others. We'll see. Thanks for the log.
[Android Software/Hacking General [Developers Only]] jahrule:
Yea i was looking at the logs. I am running Ubuntu 12.10 btw. Could you send me the patched MMS.apk in the meanwhile.

EDIT: phone is t989
[Android Software/Hacking General [Developers Only]] mateorod:
I am not at my desk right now, but lets try something first, if i have to I will add it to the zips.

tar xfzv patch_tools
chmod +x linux/aapt
./batch.sh

And run the patcher again. If that doesn't work,

which java

And post back.

Just sending you the apk won't do it, because you won't have the rest of the update zip, since it fails to get made once the process breaks down. But we'll get it handled. The hard part is done, this is just a quirk.
[Android Software/Hacking General [Developers Only]] htrakr:
Works fine.
[Android Software/Hacking General [Developers Only]] mateorod:
I know this is old, but I went and looked at this a little more thoroughly since the other pdroid mods have stabilized.

I don''t have a phone, so I don't know exactly what you mean by this request. I ran the original tool over a ROM, but all it does is resign some system apps to allow that apk to work.

Does the original tool not work for you? Or does it install some framework stuff I didn't see?
[Android Software/Hacking General [Developers Only]] jahrule:
Yea I patched without the MMS.apk. Anyway, yea your code stuff is not very accurate or anything because there is no bash.sh, but I got the idea of what you were trying to do. And yes, it was just that the execution +x flag was not set on aapt. All I did was make it executable and threw it back into the patch_tools archieve. Everything worked as advertised. Sorry I did not debug and test that before I came to you. Was in a rush.

Thanks. Suprised you did not have to set the +x flag... or are you running osX?
[Android Software/Hacking General [Developers Only]] mateorod:
I thought you had git cloned, since you wanted the apk. Batch.sh comes down with the source code.

Figured that was the problem, although I don't know why you are having it. We have used those aapts for months now, and you are the first Linux user to report a problem.

We had one other person have an issue with Windows, but that was with Chainfire's aapt, and I can't swear I changed the .exe permissions.

I felt I had to address this, so any potential user doesn't think the program won't work. It does, but infrequently small user tweaks and errors pop up. We pretty much resolve 98% of issues around here, way more than I would have thought possible when we started this project.

If you don't have the source, did you modify the script yourself? I am wondering how you patched everything but the apk. We delete failed patches, so you would have had to apply them by hand.
[Android Software/Hacking General [Developers Only]] Px80:
here are my logs related to this post.

i need help pls
[Android Software/Hacking General [Developers Only]] mateorod:
I haven't added PDroid Extension to the OP because we haven't finished getting our support together for it. We do support it for CM10, but for now that is it. You were on the right track, if you want it for CM10 (however that rom works, maybe somethiing like what agrabren has)

./auto_patcher ROMNAME.zip extension cm10

should do it.
[Android Software/Hacking General [Developers Only]] karamelos:
hi

well, work with another nightly

cm-10-20121020-NIGHTLY-n7000.zip

Hello first :eek:

what is your rom ?
[Android Software/Hacking General [Developers Only]] htrakr:
I used APG.

kobik77 can probably tell you how it worked.

Glad I didn't have to figure it out and patched fine in 2 clicks. (have win on virtual box just to use it)
[Android Software/Hacking General [Developers Only]] jahrule:
I just went into the extension folder in the patches zip and removed the MMS patch and the corresponding line in files.txt
[Android Software/Hacking General [Developers Only]] horqai:
Hey together,

even if mateorod is concentrating on CM10 rigth now - just to let you know... the new Paranoid 2.23 for nexus 7 is still failing -> http://codepad.org/pIAYqwrq
[Android Software/Hacking General [Developers Only]] mateorod:
I think all the PA roms are failing right now, I was alerted to that this morning. They haven't merged with CM frameworks in a little under a week, so I am going to wait and see if that makes a difference. It would be a pretty major departure for them to not work with CM sources all of a sudden; especially since the big update came all the way from AOSP. I don't see why that would cause any big differences between PA and CM.

So we are just going to wait until they merge next. If it still fails, I will add 'pa' as a ROMTYPE. Something I hope I don't have to do, for maintenance purposes. But PA is popular to the point I will make the extra effort and continue to support them.

We'll see. Thanks for the report.
[Android Software/Hacking General [Developers Only]] grayfoxmg1:
When I ran the Nook's PA through the patcher it went fine, is this a recent development with PA failing? or are our Nook ROMs just special like that?
[Android Software/Hacking General [Developers Only]] noellenchris:
I'd also be interested in this project as I've used toggle2g/3g on my GSII and CM9 and it worked good, now I'm using a stock based TW rom on a GSIII and would like to add toggle without reflashing the whole rom again etc. Thanks for looking into this.

Noellenchris
[Android Software/Hacking General [Developers Only]] mateorod:
I spoke with MasterBaron and I have a couple ideas about this. It is going to require a little more work than our regular additions, but it is officially on the action list.
[Android Software/Hacking General [Developers Only]] mj084:
@karamelos

Hello :)

CM10 build for Motorola Droid4 from hashcode