yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] kbeezie:
So I have an issue where Google Play (Market) is crashing consistently when I attempt to goto "My Apps", and I think it's in relations to pDroid since it seems to be having a forced closed 'app has stopped' dialog for pDroid as well as Google Play.

The following logcat attached is two attempts at getting to 'My Apps', the third attempt is after I cleared the market/play cache.

Not sure who I can relay this information to for possible fixes/suggestions. I'm using EliteMod ICS which was patched with pdroid by the following command: ./auto_patcher EliteModICS120706.zip pdroid aokp 20120706 and for the most part was running fine (was able to update, goto my apps, install apps from market etc until tonight).

Didn't think it would be appropriate to ask in the official pDroid thread since his patch, in the official sense is only supported on gingerbread roms, and the auto-patcher was the only method I know of that successfully applies pdroid to ICS roms.

I am using a zipalign apk startup tweak if that makes any difference. And Google Play is marked as trusted in the pdroid app (no restrictions). Was noticing there was some issues with google maps as well (also trusted) but I couldn't recreate the issue for a logcat.
[Android Software/Hacking General [Developers Only]] kbeezie:
Just now I was able to get into My Apps section of Google Play again. Not sure why or how, but the logcat still shows a system error in relations to it, but doesn't force close google play either though.

logcat segment attached (starting point when you're at the main Play screen, hence the bitmap loading)

... and it goes back to crashing again ...
[Android Software/Hacking General [Developers Only]] kbeezie:
Turned off zipAlign startup tweak, cleared cache + dalvik cache, rebooted, seemed to work at first, but then I got the play store crash again, again with the following logcat snippet.

So doesn't seem like zipalign is the cause, I might have to remove the pdroid patch and see if it behaves fine and if it does then that's most likely the culprit.

EDIT: After removing the pdroid app, and then flashing the restore.zip, clear cache+dalvik and rebooting, I'm unable to reproduce the problem in either Google Play Store or Google Maps. So it seems that the pdroid patch was the culprit which I do not know how to fix.

EDIT #2: tried to recreate the patch (this time correctly specifying the 20120707 date for aokp type), and well google play store immediately crashed again when going to my apps, so yea I've confirmed that the issue is definitely with the patch.
[Android Software/Hacking General [Developers Only]] mssngr:
I have the same issue with maps. Random FC followed by a PDroid FC. I had it on AOKP (ms5) and now on CM9 (nightly). I'm not running any mods.

EDIT#:

Just thought I'd mention I have no problem with Google Play and my apps.
[Android Software/Hacking General [Developers Only]] pastime1971:
map crash recently for me as well (didn't have a time to debug). you might be able to install older map and get around it.

other than that nothing reproducible.

i compile my ROM directly from source, so it is not patching issue. google introduced something to map app that pdroid doesn't like or wasn't ready for or something.
[Android Software/Hacking General [Developers Only]] mateorod:
I find maps to be real unstable right now. I am running stock rooted AOSP jelly bean on my nexus 7 and maps is FCing fairly regularly, without use.

Google changed permission handling a bunch between GB and ICS. For instance, third party apps are no longer allowed access to gapps databases or info. If an app needs your contacts, that request is sent to the People app directly, that info is never actually given to the app.

It is smart/devious of Google. It makes you more secure from other apps, while funneling your info more directly to Google.

It ties gapps much tighter to your tablet, but makes any blocking of permissions or functions that much more likely to be troublesome.

I believe that maps is FCing for me because I have GPS off, for instance.
[Android Software/Hacking General [Developers Only]] kbeezie:
Though I was getting the FC with maps and play store, even with both of them 'fully trusted'. I think it's sort of what you were saying earlier, that the way the ICS (and JB in some cases) gapps are accessing permissions that breaks pdroid and in turn itself.

I almost wonder if it's possible to have an 'exclusion' list in pdroid app (coupled with a patch change) that would allow you to make certain apps completely ignored kind of a 'Chuck Norris trusted' (cuz you don't mess with the Chuck) mode. I'm not very familiar with how the patch works so what I'm suggesting might not even be feasible.
[Android Software/Hacking General [Developers Only]] Borosin:
Hi,

I almost missed this thread, i'm glad someone did a working port to ICS. :)

I realize this is mainly a CM7/9 ICS project, but i wonder whether there are any plans to expand compatibility to older (non-CM7) GB-roms?

A lot of ppl who are stuck with GB are using buggy pre-1.32 patches, since the latest version on the original thread is notorious for causing bootloops on a lot of devices.

That kind of downward-compatibility would make this great project even better. :)

greets
[Android Software/Hacking General [Developers Only]] mithrial:
New nightly for CM7 22.07.2012 is out. Unfortunately my patching still resolves in a bootloop.

Can you please patch it manually and upload it to your Mediafire again as you did before? Thank you in advance.
[Android Software/Hacking General [Developers Only]] pastime1971:
sure.

it's not gonna be too much different from a week before though. :p

looking at gerrit, there were almost no GB commits merged other than kernel stuff.

edit: PDroid/CM7/bravo, http://www.mediafire.com/?wbwx39bswtz40ge
[Android Software/Hacking General [Developers Only]] kobik77:
No problem here.

Both of you, please upload ApG.log and ApG-old.log.

After that, just delete ap folder and try again.
[Android Software/Hacking General [Developers Only]] bustedwings:
Problem with the mms patch .......errrr replacement option is slim added the ability to use trds (inverted version of certain apps) changing that can be done on the fly. with latest opendroid patch using your suggestion it breaks this for both the mms and gmail. Its not a major issue. would just like it to patch without error. hopefully karamelos can fix as im not a noob just not as skilled as him

*update: sry just MMS not gmail
[Android Software/Hacking General [Developers Only]] karamelos:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

Hi

@mateorod work on fix.

When I build from sauce no error appeared it's in auto-patcher

Envoyé depuis mon GT-N7000
[Android Software/Hacking General [Developers Only]] Didgesteve:
I know this seems like quite a simple request, but it might be easier (or quicker) if you use this inverted Mms.apk made by justin860 from the JusTunBean thread here

place it in system/app folder (replacing the one that's there), and don't forget to set permissions to

rw-r--r--

I think Mateorod has enough to do without fixing the black messaging on your rom (although I use Slim rom & it is the best)
[Android Software/Hacking General [Developers Only]] noonecanhide:
What changes are done to the mms.apk ? it breaks on cm10.1, the original one works if restored. which functionality do i loose if i use the stock mms.apk ?
[Android Software/Hacking General [Developers Only]] Didgesteve:
I was suggesting a fix for bustedwings Mms problem, I have used JusTunBean aroma installer on 4.2.1 & 4.2.2 Slim roms, and its never given me a problem.

But I can't say it works on CM10, I believe it's aokp based.

This isn't a replacement for anything to do with autopatcher.
[Android Software/Hacking General [Developers Only]] Togijak:
CommuniSation

Is there a chance to support this http://xdaforums.com/showthread.php?t=1833423 ROM?

thx

Togijak
[Android Software/Hacking General [Developers Only]] mithun46:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

No
[Android Software/Hacking General [Developers Only]] Sh0wt1me:
Error

Since the update I get an error! Here is the important part of the log where the error happens!

... decompile Mms.apk ...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\hp\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
### copy patch openpdroid/4.2/cm/20130219 ###

... copying system/media/PDroid.jpeg ...
`patches/openpdroid/4.2/cm/20130219/system/media/PDroid.jpeg' -> `./system/media/PDroid.jpeg'

... overwriting ContentResolver.smali ...
### delete patch openpdroid/4.2/cm/20130219 ###
### jar patch openpdroid/4.2/cm/20130219 ###

... apply framework.patch ...
1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/app/ContextImpl$42.smali.rej'
1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/app/ContextImpl$43.smali.rej'
1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/app/ContextImpl$44.smali.rej'
2 out of 13 hunks FAILED -- saving rejects to file smali/android/app/ContextImpl.smali.rej

... apply preloaded.patch ...

!!! PATCHING FAILED FOR android/app/ContextImpl$42.smali' android/app/ContextImpl$43.smali' android/app/ContextImpl$44.smali' android/app/ContextImpl.smali !!!
!!! patch error for android/app/ContextImpl$42.smali' !!!

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

!!! error: failed android/app/ContextImpl$42.smali' in framework.jar cannot be remedied

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[Android Software/Hacking General [Developers Only]] bustedwings:
It wasn't meant as a demand. i know Materorod has more important things at this time, just reporting bugs so they can be corrected when time allows.

instead of using the inverted mms.apk its easier to just push the original one from the rom back to system/app set permissions and trds functionality is restored.

and it does appear as though gmail is also still affected. same idea....apk push to fix.
[Android Software/Hacking General [Developers Only]] Completely_Clueless:
Where is v2.8.6.7?

Hi. I downloaded SlimRom build 2 and tried to patch it with Auto Patcher v2.8.6 from here. It failed, so I read a few pages back that in v2.8.6 the SlimRom patch broke (other people had the same patching failure with SlimRom I had), but I read that v2.8.6.7 fixed it and allowed openpdroid patching to work. But I can't find v2.8.6.7 on the download page. How did you guys get it?
[Android Software/Hacking General [Developers Only]] mateorod:
Try installing the Mms.apk patched by autopatcher manually (or does the Mms.apk patching fail? Of the patching fails, then the autopatcher copies over a prepatched mms.apk, which will break the theming as you state.).

We are having problems with the Mms apk, I am struggling to figure out what it is, since it hasn't shown up in a logcat. I may have to just do a bunch of experiements and see.

I just uploaded 2.8.7 to techerrata, check very soon.

Autopatcher 2.8.7

TabletUI should be fixed for all devices for CM10.1. It works on things like nexus 7, galaxytab 7 and 10 and Nook color. Check it out and thank Caldair for his work at the tabletUi maintenance page.

Current 4.2.2 SlimRom patches (thanks karamelos)

Still working on CM10 roms after 0209 and of course the various workarounds listed at the top of the OP (Samsung Pa and missing Mms.apk). There are fixes for the latter two problems, check the OP for links.
[Android Software/Hacking General [Developers Only]] bustedwings:
yeah it copies over. breaks theme. i will try new patch tonight.

i also noticed it did break theme on gmail aswell. Slims new approach uses dupe resources in framework. allowing changing between regular and there dark/inverted apps without reboot. pretty inginius actually.

they also just released a new version today. hope karamelos patches work as they fixed some bugs

if you want help tracking mms issues ie: logcats, i have a spare s3 i can use as a guinee pig for whatever rom or tests you want to try.

thanks for all your guys hard work. its appreciated
[Android Software/Hacking General [Developers Only]] l3ullseye:
Problem patching this rom :( thanks.

http://codepad.org/0FNWeVAd

[ROM] CM10.1 AOSP 4.2.2 Jellybean [KANG] [Mar-22-build2]

http://xdaforums.com/showthread.php?t=2115520
[Android Software/Hacking General [Developers Only]] mateorod:
That is the third report, looks like Cm10.1 patches broke. I think karamelos is already building new patches, but I will ask him. For now, just use a Cm10.1 from a week ago or so. We will add new patches soon.

I see. ingenious except it breaks apktool :). I had noticed the dup resources in the apktool errors, I just didn't realize it was on purpose. I can actually use the smali binaries on apks if I need to. let me look into that. The functionality is already built into the autopatcher (just add a tilde (~) to the beginning of the apk in the files.txt), although the patches have to be remade for slight differences.

I will try and make some smali Mms patches and see if that can't help you. I know it is just an aesthetic thing, but one of the core ideas of the autopatcher is that it allows you to layer your mods and apply new changes non-destructively. Now certain things break that function (slimroms breakage of apktool may be one of those things) but I will fight to maintain that. It is one of the many reasons why the autopatcher is better than the rampant flashable zip trading that goes on elsewhere ;)

edit: also funny that SlimRom, a rom built of having very small size, is the one now shipping double resources.
[Android Software/Hacking General [Developers Only]] superdog404:
Hi mateorod - Great job. The good news is that the Slimbean 4.2.2 Official release 2 worked for me. It did get the error about gsm part but it made the patch files and did install and is working.

The bad news is that on my Galaxy Tab 2 10.1" running the aokp_p5113_jb_milestone-1 it made the patches and installed it OK. When I reboot and slide the lock screen over there is an error "unfortunately, the process com.android.phone has stopped working." That error comes up on boot and I can't clear it. All I can do is install the restore patch. I think that milestone rom is from around the end of October 2012. Since there was no error to report through your code pad I think it's called I will attack the log here.

This Tab 2 is wifi only. I'm using your latest 2.8.7 autpatcher

Thank you

superdo404
[Android Software/Hacking General [Developers Only]] karamelos:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

Yes i have build some new slim, new cm10, add low devices support s5830 "cooper" cm10.1 (armv6 project )

my connection s... In upload

Nexus 7 (wifi) in progress

Envoyé depuis mon GT-N7000
[Android Software/Hacking General [Developers Only]] bustedwings:
you sir are amazing.

managed to patch new slim build 2.5 no prob using your last patch. still mms no trds but no big deal. will try new patch after work.
[Android Software/Hacking General [Developers Only]] brGabriel:
TabletUI is confirmed working on Nexus10!!! Just tested it on CM10.1 M2 build and...bam!!

Great job mateorod & Caldair !! :highfive:
[Android Software/Hacking General [Developers Only]] Caldair:
:highfive: Of course I am out of thanks for the day, but Thank You so much for testing and confirming this! :good:

Now to turn my attention to other roms and hopefully get AOSP and AOKP up to speed.
[Android Software/Hacking General [Developers Only]] noobsgs2:
Slim Beam build 2.5

http://codepad.org/x0NSudiw
[Android Software/Hacking General [Developers Only]] karamelos:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

Try with out aosp option

@mateorod I push nexus 7 build today

Envoyé depuis mon GT-N7000
[Android Software/Hacking General [Developers Only]] meviox:
Thanks a lot.

Unfortunately, that didn't work.

I did the following steps:

deleted the entire "ApGPackages" folder and all ApG log and configuration files

started the ApG executable again

ApG performs the downloading (Java & Cygwin) and synchronization (autopatcher) operation

I guess something goes wrong in the "auto_patcher" script when it comes to the line endings and carriage returns "\r", respectively. Further, I noticed that the two TGZ files ("patch_patches.tgz", "patch_tools.tgz") are missing in the "ApGPackages/ap" directory. Actually, these TGZ files should be there, right? If - for instance - I download the latest autopatcher archive (v2.8.7) from the file hosting service and copy the two (missing) TGZ files from the archive into the "ApGPackages/ap" folder, all the entries in both the "Select Mod Types" and "Select ROM Type" fields are back again. However, if I then try to start the ROM patching operation, I still get the following error output:

cygwin warning:
MS-DOS style path detected: ApGPackages\cygwin\bash.sh
Preferred POSIX equivalent is: ApGPackages/cygwin/bash.sh
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Setting new path variable
Running autopatcher with the following arguments:
ROM_PATH: /cygdrive/d/cm-10.1-20130323-NIGHTLY-i9100.zip
PATCH_TYPE: openpdroid
ROM_TYPE: cm
./auto_patcher: line 2: $'\r': command not found
./auto_patcher: line 4: $'\r': command not found
./auto_patcher: line 7: $'\r': command not found
./auto_patcher: line 11: $'\r': command not found
./auto_patcher: line 123: $'\r': command not found
./auto_patcher: line 127: $'\r': command not found
./auto_patcher: line 130: $'\r': command not found
: invalid optionline 132: set: -
set: usage: set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...]
./auto_patcher: line 133: $'\r': command not found
./auto_patcher: line 134: syntax error near unexpected token `$'{\r''
'/auto_patcher: line 134: `printusage_help () {

Anyway, as I already said, it works just fine and flawlessly if I download the "autopatcherv2.8.3.zip". So, I suppose that something must have changed afterwards.

Attached the two ApG log files.
[Android Software/Hacking General [Developers Only]] mateorod:
Awesome! All the improvements are all Caldair. Tell your friends!

I can look at this (that rom was made from before we released openpdroid, so it may not be supported. I have to look). But you actually posted your ApG.log instead of the autopatcher log. I know that can be confusing. Look for the other log and post it here.

karamelos already sent me a build, but it did not patch the albinoman build. I saw that it is based on something called Team Hydra, did the first build he based of Team Hydra work?

Already got it from your dropbox : ) But the patches I made from the Nexus 7 build did not work with the albinoman rom. I will go see the other two reported failures and see if the new patches work for them.

There were some changes that I was not able to check personally between 2.8.3 and 2.8.4 (related to cygwin path handling). But I think I will see if kobik spots anything before I go digging any further. Those lines that are being spit out as errors are blank lines interspersed at the top of the script for readability- they haven't changed since before version 2.0.0, if ever.
[Android Software/Hacking General [Developers Only]] dlumberg:
I tried to patch a freshly synced cm10.1 today with tabletUI and I got this error

http://codepad.org/vN0O13gK
[Android Software/Hacking General [Developers Only]] Caldair:
Ok that's strange. I patched an 03-23 CM build today for my tab2 no problem. Is there a more complete log? Sorry I am unfamilar with ApG still.:o If not maybe you could copy framework-res.apk out of /system/framework for that rom and attach it so I can see what I'm up against. Better, maybe to PM me to send that file.
[Android Software/Hacking General [Developers Only]] meviox:
@mateorod @kobik77

OMG, figured out what was causing the problem: Actually, I'm also using TortoiseGit (for quite a lot of other Git repos) and some time ago I had a few issues regarding line ending conversions between Mac and Windows. Hence, I had enabled the option "AutoCrlf" in the TortoiseGit settings. Disabling that option seems to "fix" the issue with the autopatcher "'\r': command not found" notice.

Further, turns out that the autopatcher also fails if the parent installation directory contains one (or more) space characters:

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

!! error: patch_tool.tgz is missing

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

!! The Auto-Patcher could not find its patches and/or tools!

Just to note for others who may encounter the same (or a similar) problem.
[Android Software/Hacking General [Developers Only]] nocturnoz:
Yes, its broken since he is working with Team Hydra and synced his Build with their hub. :(
[Android Software/Hacking General [Developers Only]] hanspampel:
Yepp, can confirm it too. Working on N10 with CM10.1 and on GTab 10.1(GT-P7500/7510) too. Thx a lot.:good:
[Android Software/Hacking General [Developers Only]] elliwigy:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

can someone help a noob! theres no easy guides and i was successful once on my e4gt and cm10.1 but now i keep getting a error :-/.. it has to be where my files are or something! i downloaded latest patches and patch tool tgz files and latest autopatcher as well as cygwin and java. using win xp.. below is what i keep getting (link)

http://codepad.org/M1a01AFJ

it keeps sayin cant locate tgz but they are in apgpackages/ap folder.. tried moving them around/extracting and nothing works.. n e help is appreciated!

edit: trying to get openpdroid on cm10.1
[Android Software/Hacking General [Developers Only]] meviox:
AW: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

That is what I mentioned on my last post: try to run the autopatcher from a folder without spaces in the directory path.
[Android Software/Hacking General [Developers Only]] elliwigy:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

stupid me read your post and lots of others and didnt catch the last part of your post! so i should just remove spaces in the directories or just move it and try again.. will let ya kno if it works!
[Android Software/Hacking General [Developers Only]] meviox:
AW: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

Yeah, try to move it into a folder without spaces in the folder name.
[Android Software/Hacking General [Developers Only]] elliwigy:
Re: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

went smooth.. thanks!
[Android Software/Hacking General [Developers Only]] motisu:
still doesn't work on 10.1 beta2 for Nook color

Autopatcher still doesn't work on Eyeballer's 10.1 Beta2 ROM for the Nook Color. I receive a message thaat Tabletui is not yet supported for 4.2.2.
[Android Software/Hacking General [Developers Only]] mateorod:
We will look at this...kobik has checked his a bunch, but the two of you in a row is odd.

I just checked it with Auto-patcher 2.8.7...worked for me. Could you update or post your log?
[Android Software/Hacking General [Developers Only]] motisu:
OK, I tried to update manually, but when I run APG.exe, it says that I am still running 2.8.1. I thought that it was supposed to update automatically. I assume that is the reason that the patch fails. Is there any way of updating without having to erase it all and starting from scratch?

Edit: OK, I wiped the whole apgpackages directory and reran. As expected, it downloaded everything correctly with the newest versions and the patch ran correctly. What am I doing wrong that it doesn't update to newest versions?
[Android Software/Hacking General [Developers Only]] SecUpwN:
AW: [Utility][2.8.3][03/01] Auto-Patcher (4.2.2)

Having downloaded the source of my system as well as the latest Auto-Patcher, why is it (yet) NOT possible to run Auto-Patcher through terminal emulator?