yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] lexelby:
Hmm, well, if you're not on froyo then I guess your phone is just designed to use yaffs2.

This trick only stops Market from updating itself. It won't stop Market from updating your apps automatically -- use Market's settings for that.
[Android Apps and Games] polobreaka:
crap..i dont know what happened, but my market updated to 3.4.4. only thing i did different was uninstalled an app. when i went back into the market, it updated.
[Android Apps and Games] plotinus:
oh...ok but what i wanted to say was for example. if i search for gta 3 in market 3.4.4 i find it. but if i uninstall the updates and search for it it says can't find app. (i'm searching the game clicking on a link here in xfa)
[Android Apps and Games] lexelby:
Oh, interesting... I didn't know some apps were only visible in 3.4.4. Yeah... My tweak would make it so your market is stuck on 3.1.3, so you wouldn't see gta.
[Android Apps and Games] lexelby:
Argh! No idea why you keep having such bad luck. I've uninstalled apps without any problem.
[Android Apps and Games] polobreaka:
i have uninstalled apps prior to this too..i just dont get it.

i am bad luck.
[Android Apps and Games] sam3000:
love it, thanks! I'm now locked on market v3.3.12.
[Android Apps and Games] buma82:
how? what did you do?
[Android Apps and Games] polobreaka:
its posted in the OP.
[Android Apps and Games] le grande magnetto:
why is it useful? I mean is it bad if market keeps updating itself?
[Android Apps and Games] polobreaka:
Its useful for people running aosp rooms because there's a problem with the latest market version that cause crash.
[Android Apps and Games] lexelby:
Well, this is concerning. Now, any time I try to view an app in Market that is not free, Market crashes. This is with 3.1.3. Anyone else seeing this? Maybe I need to upgrade to some version less than 3.4.4...
[Android Apps and Games] Donmeister85:
I'm having this problem too. I noticed it yesterday when I was trying to view an app for A+ certification. It force closed on me. Thought it was just a random fluke until I saw your post today. Then I tried viewing three different paid apps and I got force closes.

Interestingly, I bought an app on Sunday, then got a refund for it. Hadn't viewed any paid apps until yesterday and today and I've got the fc's. Wtf... I sure hope a fix comes out for the market version 3.4.4 soon. Because of this, the only other rom options for the phone are Samsung stock based roms. Ugh...
[Android Apps and Games] polobreaka:
thats weird...im getting market update randomly and you guys arent. but im not getting any FC when buying/viewing paid apps with market 3.1.3.

btw, im on miui. what are you guys on? i wonder if this matters why we're getting different results.
[Android Apps and Games] Donmeister85:
I'm on CM7. Haven't had my market update. I just suddenly lost the ability to view paid apps on the market. Screw this damn market! Gonna flash the latest nightly in a few and see what's up.
[Android Apps and Games] lexelby:
Cm7 here too. Interesting, I also bought and then returned an app a few days ago. Could just be a coincidence, though.
[Android Apps and Games] Donmeister85:
This is so lame. After installing the latest nightly and running the commands in terminal emulator, I have the same FC issues in 3.1.3. So really, the only option to browse apps on the phone is with using that lame ass 3.4.4 market that freezes up the phone. Just going to use the computer from now on if I need any apps. Screw the market.
[Android Apps and Games] polobreaka:
cant you install apps using the mobile browser by navigating to androids market link?

---------- Post added at 11:17 AM ---------- Previous post was at 11:06 AM ----------

omg, this has got to be the weirdest thing. i just checked my market right now by viewing a paid app and my market FC. i bought some apps yesterday and it ran fine.

i guess i jinxed myself.
[Android Apps and Games] lexelby:
Problem solved! I upgraded Market in /system to 3.3.12 and now it doesn't crash when viewing paid apps. Here's how to do it (root required):

* remove Market in Titanium backup (make s backup first!)

* reboot

* download market 3.3.12 apk

* remount /system as read-write

* copy the apk to /system/app/Vending.apk

* reboot

The nice thing about my chattr trick is that it locks you to whatever Market version you put in /system -- even if you change versions.

I've yet to see whether this version freezes my phone... Time will tell!
[Android Apps and Games] Donmeister85:
Awesome lex. Gonna try this. Thanks!
[Android Apps and Games] polobreaka:
so you leave the 'touch' and 'chattr' command, but you're manually replacing the market from /system/app?
[Android Apps and Games] Donmeister85:
Yeah, you shouldn't have to rerun the commands. Run lsattr data/app/com.android.vending-1.apk just to make sure you still see that "i" for immutible. Also, don't forget to set the permissions to rw-r-r before rebooting.

Thank you lex. I'm now able to browse the market on my phone again! I'm just keeping my fingers crossed that it doesn't update or some other wonky mishap occurs.
[Android Apps and Games] nono83:
Your tips working for me, CM7 #166 nightly.

Thanks very much. :D
[Android Apps and Games] insanchen:
i don't know whats wrong with my market. At first, when opening market, I clicked my apps and it'll display all apk downloaded by me. Now, it'll display another screen, only 2 buttons show (browse apps and browse games)..
[Android Apps and Games] :
Just had my phone freeze on me twice. Running CM7 1/29/12 nightly and 3.3.12 market running the steps above. Looks like I'm going to be going back to Unnamed rom until a market fix stops this.
[Android Apps and Games] iXNyNe:
@lex

It seems like the process in the op works well enough that it might be worth making it into a cwm flashable zip ;)

Here would be my recommendations

When we uninstall updates I believe all we are doing is removing an updated copy of the market from somewhere on our devices which causes the phone to use the copy installed on the system. I'm pretty sure "somewhere" is the location where user apps are normally installed (I could be wrong).

So a cwm flashable zip should be able to remove updates and then apply these other commands pretty easily, and even install a known working version of the market.

I'd make this myself but its a bit difficult to do without a computer :(
[Android Apps and Games] Donmeister85:
Are you absolutely sure that it didn't update to 3.4.4 somehow behind your back? I haven't had any lockups or freezes at all since using this hack.

And that sounds like a kickass idea. Would make it easier for a lot of people. How easy is this? I've never made a CWM flashable zip before.
[Android Apps and Games] iXNyNe:
Its actually really easy, you just write the update-script file and use the update zip Creator program found in a thread here on xda somewhere.
[Android Apps and Games] :
Yes, I checked immediately after I rebooted the phone. It was still on 3.3.12.
[Android Apps and Games] iXNyNe:
edit

scrapping this post, see my next post

/
[Android Apps and Games] estxxas:
Tried this out a couple of hours ago, and so far everything is working well on my AT&T SGS2 running CM7. Looks like this finally cured my market woes. Thanks!
[Android Apps and Games] lexelby:
Wow, great idea, and great work on this! I love when a community bands together to perfect something.

I haven't run your zip, but I did extract it and look over the script. Just a couple questions, although keel inn mind that I know nothing about CWM zips. The line for the "touch" command... Is there supposed to be a comma between the args? Also, on my phone, busybox is in /system/xbin... Would that cause a problem? Or is it using a busybox that comes with CWM?
[Android Apps and Games] iXNyNe:
Okay, here's some new stuff!

I recreated the zip using the UpdatezipCreator

This should:

-remove updates

-create the immutable dummy

-install the market 3.3.11 (not 3.1.3)

I have also included an unfreeze that should set things back to normal (the unfreeze will not replace your market, just make it able to update again)

[edit]

attachments removed, new zips in later posts
[Android Apps and Games] iXNyNe:
you are correct about the comma, and it has been included in my new zips that i just posted ^

Not sure about busybody, all I can say is give the unfreeze a try first, if it works then the freeze should also work.

Also I just tested both zips, they seem to be working.
[Android Apps and Games] :
I just ran your freeze zip and still have 3.4.4 :(
[Android Apps and Games] iXNyNe:
Interesting...

Could you run the unfreeze and then freeze again and see what happens?

I'm guessing this might be related to the busybox thing lexelby mentioned.
[Android Apps and Games] :
Tried that, now getting a Status 0, installation aborted error at the end.
[Android Apps and Games] iXNyNe:
You're using the zips attached a few posts back right? Not the ones I linked to from my dropbox?

Also what rom and such are you running?
[Android Apps and Games] :
Correct, those from post 99. Running CM7 1/29/12 nightly with CM kernel
[Android Apps and Games] iXNyNe:
Hmm, so far I'm confused... I'm also on cm7, but I'm running siyah kernel (shouldn't make a difference)

Try flashing freeze twice in a row

If that doesn't work try mounting /system and /data through the mounts and storage menu in cwm before flashing.
[Android Apps and Games] :
Tried both ways, still no luck
[Android Apps and Games] iXNyNe:
I'm not sure then, I'm sorry we will need someone a little more skilled with edify to remake the zip.

All I can say is its working for me after multiple tests.
[Android Apps and Games] :
I did have some good results after updating to the 2/1 cm nightly. The zip removed the market but didn't replace it. I had 3.3.12 saved on my sd and have been running that about 12 hours.
[Android Apps and Games] iXNyNe:
For me it seems to do this as well but its random when it works or fails. I'm considering not having the zip replace the market, just because I can't figure out how to get reliable results from it.
[Android Apps and Games] dkbrz:
# ls -al | grep vendin

-rw-rw-rw- 1 root root 0 Feb 8 17:26 com.android.vending-1.apk

# lsattr | grep vend

-----i--A---- ./com.android.vending-1.apk

#

chattr works great preventing market from self update.

But are you sure that Market 3.1.3 works without freezes (CM7+CM KERNEL+SGS2) ? Testing now;)
[Android Apps and Games] uwflatlander:
I ran the zips from iXNyNe and end up with no Market installed after running the freeze one. If I manually install 3.3.11 it keeps force closing on start.

Any ideas on what to look at?
[Android Apps and Games] iXNyNe:
Check with root explorer or file expert (or even terminal) if /system/app/Vending.apk exists.

If it doesn't, extract it from the freeze zip and place it there. You may need to remount system as writable.

Either way do this:

Use terminal to run these two commands

su
chmod 644 /system/app/Vending.apk

This will also probably require system to be writable.

Then reboot

When I have a chance I'm going to add the permission change into the zip.
[Android Apps and Games] iXNyNe:
Here is a new zip that should work better, and safer than the old ones

new zip coming soon

This zip brings its own busybox and touch command and doesn't rely on anything from the system so it should be more universal.

it also sets permissions and clears cache and dalvik

IMPORTANT!

if the zip fails, run it again!

Its something about the mounting I think, but I'm not sure.

If you cannot get it to finish on its own, mount /system and /data from your cwm mounts menu and then flash again.

If it still doesn't work please let me know.
[Android Apps and Games] iXNyNe:
New zip is ready, uploading tomorrow after more testing

Much much much safer

Complete rewrite.
[Android Apps and Games] Akzey:
Will try it out now. Its really pain to keep the Data enable because of some apps!
[Android Apps and Games] chowlala:
I'm sure the concept to freeze the market has been toyed with heavily. But it does feel freezing the market is a last resort, but we really shouldn't cop out on our options.

Anyways, how bout we turn this thread into some kinda think tank to figure out what's causing the freezes? (sorry if I'm sorta hijacking OP)

I know for a fact that if you scroll the description of an app in the market, the it'll lockup. But if you do stuff really fast, it doesn't lock for some weird reason.

So, if you load an app, wait for a while, scroll description... Boom.

But if you click on an app and immediately scroll, nothing... All is well.

Anyone mind grabbing some logs?
[Android Apps and Games] lmolloy:
Im on my stock 2.3.4 androis inc 2. Is there anyway to install the older market version, even if im not rooted? I loathe the newer market
[Android Apps and Games] Donmeister85:
You need root access to get to the system/app folder to drop it in. Alternatively, you could just load a copy of the apk on your SD card and install from there, but you'd still have to remove the older version using either Titanium Backup, or by getting to the system/app folder.
[Android Apps and Games] lmolloy:
Ok. I gotcha. Do u have that older apk. I might try to root tonight
[Android Apps and Games] Donmeister85:
I have the apk version 3.3.12. Would that be ok? Or do you want to go back to the 2.x.x series? I don't have those apks.
[Android Apps and Games] lmolloy:
That'd be great. Thank you

im playing with my dinc2!
[Android Apps and Games] Donmeister85:
Ok, try this. Never done this from my phone. Hope you can download it. Let me know.

http://db.tt/FKDYoolS

This is 3.3.12.
[Android Apps and Games] lmolloy:
Thank u very much i appreciate ur help

im playing with my dinc2!
[Android Apps and Games] iXNyNe:
Ok so here is the progress I've made.

Market Freeze

http://db.tt/oDeUruVA

This will create an artificial market update that will prevent market updates.

Market Unfreeze

http://db.tt/DcaPXvfl

This will remove the artificial market update (or a real market update) so your phone can update normally.

These do NOT replace your existing market!

I recommend this pattern;

Flash Unfreeze (you should then have whatever market your rom intended)

Install desired market version (two or three posts above is 3.3.12, just run the apk)

Use Titanium Backup to "integrate updates of system apps into rom"

Flash Freeze

Please let me know if this works!

If it does maybe the OP can be updated to include this method!

P.s. I've spent quite a bit of time learning to do this as safe as possible and make it universal, so click thanks if this helps you!
[Android Apps and Games] lexelby:
I'm keeping an eye on progress here... Once we have a stable zip that has seen a fair amount of testing, I'll add it to the OP.

Folks, don't forget to click that "thanks" link on iXNyNe's posts!
[Android Apps and Games] iXNyNe:
For reference I idiot proofed the zips as much as possible. The freeze zip will unfreeze and remove an existing dummy file, or an actual update before creating a new dummy and freezing it. I'm pretty sure the unfreeze will error out if there is no dummy to unfreeze but I didn't test that. My logic there is if there is nothing to unfreeze so the zip doesn't need to succeed.
[Android Apps and Games] supercurio:
Hi there!

Small notice about the XDA article published here:

http://www.xda-developers.com/android/prevent-market-from-updating/

Compatibility is not universal but limited to the devices using Ext2/Ext3/Ext4 for /data.

I use chattr in OTA RootKeeper (and on Linux servers to protect backups for ages) and there sure is plenty of new fine usages of this old but still fancy "immutable" flag to find ! ;)
[Android Apps and Games] matee89:
Thank you very much for this one!

You saved me from using the old 2.X market app and saved my nerves from using the 3.4.4 with the freeze bug (it seems to persist only on SGS2 with some AOSP based ROMs).
[Android Apps and Games] lutanica:
Hi

I don't know if this will work for you but there is fix that worked for many people with CM7 on their global SGSII. This is a fix created by someone in MIUI forums. Don't remember who he is. But here is what you have to do:

- From Application menu, find Market. Force close it, remove the data, and then uninstall it.

- Reboot to Recovery instantly

- And install this in CWM

This fixed our freezing problem. What it does is to fake the version to 3.4.4 so that the market doesn't get updated (the version of Android Market that comes with the last Cyanogen GoogleApps is something like 3.1.x something). So this patch, lets you keep that only with a fake version of 3.4.4.
[Android Apps and Games] cyanoviper:
don't know if its coincidence or not: the process itself worked flawlessly (thanks to you!)

but: im on 3.1.3 now and instead of freezes i get FC's on certan apps. (Root Explorer for instance) i mean on the market page of that app of course, immediately when i touch the icon from search results for example

edit: i found out more: only apps that are not for free and that i havent bought yet crash the market. that's not so nice. anyone else got that problem?
[Android Apps and Games] lexelby:
Yes, that problem appeared a few weeks back. Older versions of the market app experience FC's just as you described. Use the cwm fishable zips posted above to freeze a later version of the market like 3.3.12.
[Android Apps and Games] Namaless:
I have removed MarketUpdater.apk and problem not found..

Thanks for your suggestion :)
[Android Apps and Games] iXNyNe:
Follow the instructions I posted, but be sure to install 3.3.12 and integrate into rom.
[Android Apps and Games] a3955269:
that trick will download latest market version to /cache/download over and over again. so you better have a good 3g plan:)

i've patched /cache/dalvik-cache/system@app@Vending.apk@classes.dex to make market app thinking its already checking for an update so it doesnt check again :)

for market 3.3.12

Comparing files system@app@Vending.apk@classes.dex and system@app@Vending.apk@classes.dex.org

0015709F: 10 00
[Android Apps and Games] iXNyNe:
Hmm.... can you show examples of the downloading? I thought we were blocking the download location.

It makes sense that it would still check, because even your method will check for something new. Difference is your method thinks you're up to date and this method shouldn't be able to download because its download location is blocked.

If you are right though and you have some way to show (logs?) Ill remove the cwm zips and recommend your method.

Btw does your method work on deodexed roms as well?
[Android Apps and Games] lexelby:
We're blocking the place where the downloaded apk will eventually end up, but market could potentially be downloading it to somewhere else first... So far I haven't noticed excessive data use because I'm on an unlimited 3g plan ;) This needs some investigation, though.
[Android Apps and Games] Donmeister85:
I haven't noticed any high data usage either. Day 4 into my billing cycle and only 2.4 MB. I use Onavo to keep track of usage, even on wifi.
[Android Apps and Games] chowlala:
The man is right. Chattr only prevents the installation, but does not prevent the market from constantly checking the version and trying to update the Market.

Hence, every time you launch the Market, it tries to update by downloading the package, but the package simply fails to install.

A simple way to check this would be to navigate to /cache/download/ and you should see multiple download.apks which should be vending.apks if you view em or something.
[Android Apps and Games] BenKranged:
Or, if you use Titanium Backup, simply freeze "market updater"
[Android Apps and Games] lexelby:
As previously mentioned, freezing Market Updater has no effect for Market >= 3.0.
[Android Apps and Games] iXNyNe:
Good find mate! Is there any way to easily apply your patch that would be safe and idiot proof and universal (more than one specific market version)?

It seems like 3.3.12 is pretty safe for everyone though.
[Android Apps and Games] a3955269:
no idea:) you might try the apk i've attached which is selfsigned tho
[Android Apps and Games] lmolloy:
Anybody have the old school market apk? Version 2.3.4?

im playing with my dinc2!
[Android Apps and Games] iXNyNe:
Impressive. Anyone who can test this make sure the following:

-Market doesn't update to 3.4.4

-market doesn't freeze

-market doesn't download extra copies to /cache

If you used one of the zips I previously provided, please run the unfreeze before trying this apk

Btw a3, should this be installed merely by opening it with package manager? Or renamed and placed in /system/app ?
[Android Apps and Games] a3955269:
well if you want to install it w/ package manager you will have to remove the one in /system/app first. should work fine i guess although id push it as /system/app/Vending.apk and then maybe a reboot.
[Android Apps and Games] Donmeister85:
This looks interesting. Seems like the market is going to be updated to this new Google Play app.

http://play.google.com/about/features/

I sure hope it works without a hitch on our phones!
[Android Apps and Games] BenKranged:
Freezing market updater works fine with any market version.

You guys must be doing it wrong or something.

All those complicated steps are 100% unnecessary.

My market has never updated and the only thing I have done is freeze the updater.

Maybe this thread should be in a Galaxy S2 subforum if most of the information only applies to that device.

For example Market 3.4.4 works fine on most devices.
[Android Apps and Games] lexelby:
Really?

Do you really think all of the people who have been avidly posting in this thread are "doing it wrong"? We've tried freezing market updater and it simply has no effect for market >3.0. Plenty of threads elsewhere corroborate this.

As to whether this is galaxy s2 specific, I have no idea. Is anyone here seeing market freezes on any other device?
[Android Apps and Games] chowlala:
The new Google Play Store seems to have fixed this issue!! HURRAH!

For those of you who want/need it, here's the apk file!

It'll replace your current market, so you'll end up losing the market app and it'll be replaced with the Play Store app instead.

It's still com.android.vending.playstore.apk though. So it'll still be linked to your gmail account and yada yada.

Please press thanks if it helped out. :)
[Android Apps and Games] chowlala:
Fuuuuuuuu. Problem still seems to persist. Just not as severe.

Me Gusta from my Galaxy S2.
[Android Apps and Games] Felimenta97:
No. Running CM9, no problems.

Xperia X10 Mini Pro with CM9 by paul-xxx
[Android Apps and Games] Donmeister85:
Yep, tried it myself and locked up within the first minute. I mean wtf...

Back to 3.3.12. At least THAT works without issue...
[Android Apps and Games] iXNyNe:
what's the version number?

Also the cm9 release does not have freezing with 3.4.4
[Android Apps and Games] Donmeister85:
Version 3.4.6
[Android Apps and Games] BenKranged:
The title of the thread isn't "How to prevent market 3.x from updating"

Everything I've said is fact and on topic.
[Android Apps and Games] chowlala:
So, apparently there is a fix for the market issue.

I haven't tested this yet. But I will once I get the chance.

http://www.android-hilfe.de/custom-...9-ota-xxkernel-xxtweaker-445.html#post2615694

It needs to be translated. It's in german. Google translate handles it pretty ok.
[Android Apps and Games] Donmeister85:
Did you ever try this?

Also, I think I'm going to to try that new Play Store v 3.5.15 and see if that works at all. Apparently this came out yesterday.
[Android Apps and Games] lexelby:
I haven't tried the miui fix yet... I'm happy enough with my market 3.3.12.
[Android Apps and Games] Donmeister85:
This version of the play store locks up too.
[Android Apps and Games] spunker88:
How would I undo this procedure? I did this a while ago and google play still updated itself by usingcom.android.vending-2.apk. I wish to reverse the terminal command since I've been having FC isues now. Do I just do chattr -i instead of +i.