yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Tsjoklat:
The versions of the Android Market that I have already posted have everything you mentioned above except the "DPI Hack".

I am not sure if this offers more available applications to tablet users, but I have just added another variation of the Android Market to the first page with the "DPI 160" patch that you have requested. The "DPI 160" patch forces the market to think you are using a DPI of 160 which allows you to access applications in the Android Market designed for tablets.

Please let me know if this variation of the Android Market (with the dpi160 patch applied) allows more tablet specific applications to be installed compared to only using the "no restrictions" patch.

diff -ru Vending.3.4.7.orig/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali Vending.3.4.7/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali
--- Vending.3.4.7.orig/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali	2012-04-10 23:06:45.156379816 +0200
+++ Vending.3.4.7/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali	2012-04-10 23:06:55.795879255 +0200
@@ -257,7 +257,7 @@

move-result-object v15

- iget v0, v12, Landroid/util/DisplayMetrics;->densityDpi:I
+ const/16 v0, 0xa0

move/from16 v17, v0

Note: 0xa0 is hex for 160 decimal (which is the desired DPI value).

A fourth variation of the Android Market using 240 DPI is also available on the first page of this thread.
[Android Apps and Games] famewolf:
I installed your original version (not the 160) on a tablet running 140 dpi which was having alot of "incompatibility" issues with the market and it resolved them just fine.
[Android Apps and Games] Tsjoklat:
Thanks for confirming. I believe the "DPI Hack" is no longer necessary and has been replaced by the "no restrictions" patch. I am going to mark the "DPI Hack" versions as deprecated and remove them from the first page if nobody else has any problems.

EDIT:

The "DPI Hack" patches have been added back to the first page. They seem to be still needed for certain devices.
[Android Apps and Games] gentano:
"no restrictions" is for country-patch, eg. some apps are only available in US-Market and this patch makes them available worldwide, it does not fix dpi. Iam using 200 dpi on my SGS and without a "fixed dpi"-hacked market app I wont see a lot of apps. I have tried 2 or 3 no restrictions patched markets from xda and other sites and they all do not fix dpi.
[Android Apps and Games] Tsjoklat:
There are several different versions posted. The "no restrictions" patch in this thread should also remove the device compatibility check. If the version I posted on the first page (with no restrictions applied) does not work for you, please let me know. I might have removed the "DPI Hacked" versions too soon.
[Android Apps and Games] gentano:
I just wanted to clarify about the dpi hacks. Other sources also mentioned that the no restrictions patch include the "device compatibility check" patch. But the "device compatibility check" patch has as well nothing to do with the dpi hack - Its at least my guess because all these hacks stating that device compatibility was patched did not work with changed dpi. Fixed 160 dpi market for a smartphone is btw not the best value, I prefer 240 dpi. ;)

Maybe somebody will (sooner or later) create an easy patcher for all these modifications. :) Sounds like an easier way then keep fixing every update of market apk.
[Android Apps and Games] Tsjoklat:
Thanks for all the input. The necessity of the "DPI Hack" patches seem to depend on which device you have. I have added the "DPI Hack" patches back to the first page, for further investigation.
[Android Apps and Games] xeigen:
I use "noupdate and norestrictions" version, apps are reporting incompatibilities after a day..trying with dpi hack now..I'm on sgs2 btw..
[Android Apps and Games] Tsjoklat:
Thanks for reporting. I would like to know which version works for your device.

Note: 240 DPI is probably the version you need for a GT-I9100.
[Android Apps and Games] Ferdimage:
OP thank you so much for the 3.4.7 ...240DPI hacked version! workng perfectly now with my SGSII. This version is great because i can see my purchased items again :)

Thanks heaps
[Android Apps and Games] Tsjoklat:
Excellent. I am happy to hear that. If any other DPI versions are necessary for other devices, please let me know and I will add it.
[Android Apps and Games] famewolf:
I went back and pushed the 160dpi and 240dpi versions to my respective devices....it may just be coincidence but I did have a few updates show up afterward and it certainly can't hurt so thanks again!
[Android Apps and Games] Hammerfest:
yeah I use Dorimanx on my HD2, i dont have a problem seeing anything, its DPI hacked to 240dpi, but sadly, its only 3.4.4 and 3.5.15... and since 3.5.15 makes me want to slaughter whole villages of google developers "children", this thread and the OP is a definite lifesaver!

*said in a joking manner and alternate meaning: i consider the code for google Play Sex shop 3.5.15 and any other app recently updated that sucks, as the developers child and would enjoy those deaths very much...
[Android Apps and Games] xeigen:
hmm, i use Vending.3.5.16.noupdate.norestrictions.dpi240-signed.apk, i'll lost app compatibility due to my dpi setting (182) after a couple of restart..i've tried this twice and both with the same outcome..
[Android Apps and Games] gentano:
Try to disable MarketUpdater.apk in Titanium Backup or delete the apk in System/App (make backup before).
[Android Apps and Games] xeigen:
:D i forgot that step :rolleyes: lets see now..hope its gonna be good...
[Android Apps and Games] PedroBustamonte:
Ok. Just to be clear. What should I do in which order?

Deleting Play Store Updates, flash the zip-file (maybe dalvik & cache wipe?) and if that not works clearing Play Store cache?

Thx for ur help btw... :D

Edit: should I flash the zip before or after I'm changing the dpi?
[Android Apps and Games] Kurre:
Have you tried deleting & re-adding your Google account? I couldn't connect play store before doing this..

Ps. Don't reboot in between ;)
[Android Apps and Games] PedroBustamonte:
I haven't tried yet but I had no problems connecting with Play Store.
[Android Apps and Games] XlAfbk:
doesn't really matter when you flash the zip. it's really just flash my zip containing gsf+market, flash the latest market zip, boot, clear market cache, enjoy.

if you want to be sure all "old" stuff is gone you could delete gsf+market, reboot, make sure they're really gone, then flash. of course those steps will require you to set up your google account again.
[Android Apps and Games] PedroBustamonte:
Alright. Thank you. I'll try.

Edit: Ah it does not come to an end... one question... how do I flash the latest market? There are just apk-files. I have no clue how to create flashable zips... :D

Or do I just put the apk into system/app?
[Android Apps and Games] Fnorder:
Here's mine with the additional patch above, for 240 dpi. The issue I think is the added patch is meant for 240 dpi, so applying it to a 320 dpi apk sends conflcting values.

If anyone else wishes to test, note that you'll need to clear gsf data and may need to reboot twice (search is broken until second boot). Searching for 'wesnoth' and 'quickpic' is how I test

edit: does not fix the issue
[Android Apps and Games] XlAfbk:
ok, that one is working for me, so far at least. let's see if it's still working after a few days unlike the other Market-only mods.

Could you please explain how you got to these values (0x3fc0 = 1.25E-1, 0x4000 = 2.0 doesn't make any sense to me) and why you're using different ones when they're both replacing the return value of the same function?

Edit: stopped working. "My Apps" went from 104 to 54. Back to the old GSF+Market solution.
[Android Apps and Games] 3473:
brilliant exactly what I was looking for
[Android Apps and Games] mbze430:
I'm still having problems with the DPI settings

my build.prop is at 270, and my default US SGS3 is 320. And it still won't let me download apps with your modded Play Market.

As soon as I change my build.prop back to 320 then I am able to download stuff again (obviously....but it's quite annoying having to reboot several times)

The APK I'm using is Vending.3.7.15.noupdate.norestrictions.dpi320.nosig-aligned.apk
[Android Apps and Games] XlAfbk:
mbze430, as mentioned countless times, flashing just the market won't do, you also need the modded gsf. Assuming you're on ICS: http://xdaforums.com/showthread.php?t=1639213
[Android Apps and Games] mbze430:
I see... is there a modded GSF for 3.7.15? the one you linked is 3.7.13 or will it work with 3.7.15?
[Android Apps and Games] MyLifeRocks10:
Yup it will work.
[Android Apps and Games] Fnorder:
I found that particular patch in another thread and failed to bookmark.

Regardless, that did -not- permanently fix it after all; mine started hiding stuff again.

I'm trying another possible fix now; in the modded market 2.x that's been behaving -perfectly- for half a year, there's a patch to the ' shouldSendDeviceConfiguration()' function that forces vending to always push its (hacked) values, overriding gsf afaik. No such function name in 3.x, however I found it's new name and discovered a database check.

In theory, the modded 3.7.15 posted earlier by tsjoklat here will stop reverting if the following record is added with:

echo "INSERT INTO 'main' VALUES('vending_always_send_config','true');" | sqlite3 /data/data/com.google.android.gsf/databases/gservices.db

So far (3 days) so good.

edit: (6 days) Failure.
[Android Apps and Games] XlAfbk:
those values were posted a few posts before yours in this thread. from your post i had assumed you had based your new mod on that and knew what it did ;)

i'll try the sql-mod with stock gsf and the "normal" dpi-modded market.
[Android Apps and Games] XlAfbk:
nope, not working :( goes straight to 54 apps after restoring the stock GSF
[Android Apps and Games] Fnorder:
AFAIK no vending-only mod will work off the bat. Tsjoklat's apk's definately work without GSF (for awhile) What I had to do is wipe gsf data+vending data, reboot, load market, wipe gsf, reboot, load market, reboot or some combination thereof (that I'm too sleepy to recall).

Market will then display full results (A search for 'wesnoth' is how I check) for a few days, then revert to limited results. Tossing in the SQL record before this -hopefully- works.

This delayed restriction issue is a PITA to test; it took more than a week to appear, last time.

...seriously tempted to fix this in framework source, and have getMetrics() return hard coded values if called by vending/gsf.
[Android Apps and Games] XlAfbk:
well it doesn't work for me, not even for a short time. And yes, I cleared caches and data.
[Android Apps and Games] vNa5h:
Where is the version 3.8.15
[Android Apps and Games] Tsjoklat:
MD5SUM:

d82b8bf40ba0ef9a129375e77afbbdbc Vending-3.8.15.noupdate.nosig-aligned.apk
c6b4592214865092a9ef7ee0046392ac Vending-3.8.15.noupdate.norestrictions.nosig-aligned.apk
017a680dd20180d7339665fc8f44ec82 Vending-3.8.15.noupdate.dpi160.nosig-aligned.apk
645f48cb68ddb11a834719e7be20d51b Vending-3.8.15.noupdate.dpi240.nosig-aligned.apk
3f3e68800197541ae6d23da3e0dfd0b9 Vending-3.8.15.noupdate.dpi320.nosig-aligned.apk
d2e652509e94bc824f90ff8b2f24f22d Vending-3.8.15.noupdate.norestrictions.dpi160.nosig-aligned.apk
de9a54d14bd6a7b46f1c356fad314846 Vending-3.8.15.noupdate.norestrictions.dpi240.nosig-aligned.apk
c52fc28ee90a7b53213dece49a284516 Vending-3.8.15.noupdate.norestrictions.dpi320.nosig-aligned.apk

Note: All of the patches from the 3.7.x versions are the same for 3.8.x.
[Android Apps and Games] vNa5h:
Hey did u release it at the time you posted...

if yes then

someone is releasing in ur name at various andriod warez sites

i saw it at many places a day before
[Android Apps and Games] XlAfbk:
credits to != release in his name
[Android Apps and Games] rirozizo:
wow! don't say what are the warez sites!

———————————————————

i didn't mean to mock you or to offend you in any kind of way
[Android Apps and Games] vNa5h:
yeah

but it is..... when it gets posted 2 days before the official post
[Android Apps and Games] Tsjoklat:
This thread is where I post everything first. At least the other person gave me a mention for the patches. But, if you want to be sure where the files are from then just compare the md5sum.
[Android Apps and Games] XlAfbk:
fwiw here's a diff of Vending-3.8.15.noupdate.norestrictions.dpi320.apk (b247a76f0b2818a6fee8b372ed75a853) found in various places and Tsjoklats Vending-3.8.15.noupdate.norestrictions.dpi320.nosig-aligned.apk:

diff -r Vending-3.8.15.noupdate.norestrictions.dpi320/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali Vending-3.8.15.noupdate.norestrictions.dpi320.nosig-aligned/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali
260,261d259
< iget v0, v12, Landroid/util/DisplayMetrics;->densityDpi:I
<

diff -r Vending-3.8.15.noupdate.norestrictions.dpi320/smali/com/google/android/finsky/utils/SelfUpdateScheduler.smali Vending-3.8.15.noupdate.norestrictions.dpi320.nosig-aligned/smali/com/google/android/finsky/utils/SelfUpdateScheduler.smali
91c91
< const-string v5, "Skipping self-update check as there is an update already queued."
---
> const-string v5, "Skipping self-update check."

There's nothing wrong with the "Credits to Tsjoklat" in those posts, in fact it's the right thing to do as it's based on his work.
[Android Apps and Games] Tsjoklat:
Yes, it's all good.
[Android Apps and Games] Kwaii49:
Can't ever get used to restricted. I love this guy. Unrestricted is the way. Thanks for your quick work.
[Android Apps and Games] hanschke:
please do an update for .16
[Android Apps and Games] Tsjoklat:
3.8.16

MD5SUMs:

a9320dcc5768f1acb0fae371d0ca526e Vending-3.8.16.noupdate.nosig-aligned.apk
ab155c5662d4b97e8eacdb5c16cc169a Vending-3.8.16.noupdate.norestrictions.nosig-aligned.apk
68c9bba18a11fd1fa02568d86e885cb4 Vending-3.8.16.noupdate.dpi160.nosig-aligned.apk
cf6c85757e095e0faea35d8c12137b92 Vending-3.8.16.noupdate.dpi240.nosig-aligned.apk
99605255ca80af187577b71e38553b6b Vending-3.8.16.noupdate.dpi320.nosig-aligned.apk
af3dacd3492fd77dd885657fab9993ea Vending-3.8.16.noupdate.norestrictions.dpi160.nosig-aligned.apk
2c5a7ac4496a9d3c7260a669a8acd3e5 Vending-3.8.16.noupdate.norestrictions.dpi240.nosig-aligned.apk
188bd278ba9fa9a9ecd47ecd81163d6a Vending-3.8.16.noupdate.norestrictions.dpi320.nosig-aligned.apk
[Android Apps and Games] Tsjoklat:
The main difference between the versions of the Android Market that I posted and those other versions on the warez sites is the signing key that was used. I keep Google's original key so that the market application can still connect to GSF so that you can still make purchases through the modified version of the market. The only caveat is that it must then be copied to /system/app (not /data/app).
[Android Apps and Games] tonyp:
Would you mind to explain this in a little more detail? :)

Are you just copying everything back into the original apk to keep the signature?
[Android Apps and Games] sniper:
A way to do that is to just pull the classes.dex and baksmali that, make the smali edits, smali, and then drop it back in with 7zip.

Click here for custom mods for your E4GT
[Android Apps and Games] Hammerfest:
3.4.7 for life!

er um... anyway! Cleaning up my HDD today and I seem to have several copies :P Backup of a Backup of a Backup im sure! Dont ever want to lose 3.4.7! (TB Market removal+Sane MyApps section)

/thanking spree!
[Android Apps and Games] Tsjoklat:
Basically, I make the modifications to the smali, compile it, and copy the classes.dex into an unmodified copy so nothing else is changed except the classes.dex.
[Android Apps and Games] senotrius:
it says server error for me no matter what I do.first time this is happening for me.could it be related to autostart managers?uninstall clear data nothing works.is Google play store having problems?
[Android Apps and Games] Tsjoklat:
Try a reboot. Sometimes that happens to me too when i restart my phone and i don't wait long enough for it to start back up.
[Android Apps and Games] senotrius:
reboot didn't help ;( had tried it already.
[Android Apps and Games] Tsjoklat:
Maybe it is blocked by droidwall or something similar perhaps?
[Android Apps and Games] senotrius:
nope.have no such thing on my phone.:(
[Android Apps and Games] Kurre:
Tried to remove & re-add your Google account?
[Android Apps and Games] Tsjoklat:
Yes, that is also a good idea. The easiest way to do that is to clear the data and cache for Google services framework.

Also, clear cache and data for Google play store.
[Android Apps and Games] dakunesu:
has anyone looked at the source to paranoid androids framework(they open sourced it)? that may lead to a solution
[Android Apps and Games] dreamland2000:
I'm running jellytime at the moment, with a 200dpi market. Would these work as a replacement for the jelly bean market?

If so, can I set the DPI to 200 or will it have to be used at the values set in the apks?

Thanks
[Android Apps and Games] senotrius:
tried this.no effect.is something new?that signature part?the only thing left is for me to do factory reset.or reflash gapps.using slimbean for sgs.

@dreamland,u can use the 200DPI.the dpi value of the playstore version is to make believe the store that ur using 240dpi ,160 or whatever on ur phone instead of the 200 u actually set.I use slim ROMs with DPI of 182 but Samsung galaxy s has original DPI of 240.playstore detects as sgs and hence will have minor issues if DPI values are not same.like installing apps for eg.

ot:nice place.east Anglia university?
[Android Apps and Games] Tsjoklat:
Everything is the same as the previous version. You could try just re flashing the official gapps.
[Android Apps and Games] senotrius:
then its just my problem.was on 3.7.15 on slim gapps.will have to do factory reset.
[Android Apps and Games] dreamland2000:
Ok thanks, will give it a go and see what happens.

Ot: yeah it is lovely, especially in this lovely weather we're having!

---------- Post added at 08:32 AM ---------- Previous post was at 07:52 AM ----------

I tried the 240dpi market and it wouldn't seem to work.

Running jelly bean he market is called Phonesky.apk. Would these apks need to be renamed to allow it to work, if so I tried renaming and replacing the current one and nothing showed upon restart, even after clearing data and cache.

Any ideas would be a great help.

Thanks
[Android Apps and Games] XlAfbk:
dreamland2000, you also need to flash GSF. flash the one in http://xdaforums.com/showthread.php?p=29401924&highlight=jellybean#post29401924, then flash the latest market apk, clear dalvik cache. if after booting nothing shows then give it some time, if it still doesn't show anything after an hour or so clear market cache and data, reboot.
[Android Apps and Games] dreamland2000:
Great thanks, will give it a go.
[Android Apps and Games] californicated:
After reading some pages back, am I right saying there is no possibilty to change DPI and have all my apps in Google Play for more than a few days?
[Android Apps and Games] Kurre:
I'm using newest modded store and modded gsf in JB and all apps are visible, compatible etc. No problems whatsoever. Problems are more likely to happen if you don't use the modded gsf.
[Android Apps and Games] californicated:
Doesn't the gsf restore to stock? I'm still on ICS
[Android Apps and Games] a-st:
Heyho!

After a long time I've got it working now with Unofficial CM10 by TheDude.

1. Delete /system/app/Phonesky.ak

2. Delete /data/data/com.google.android.gsf

3. Delete /data/data/com.android.vending

4. Reboot to recovery

5. Flash GPlay 3.8.16 240dpi noupdate norestriction nosig

6. Everything works fine!

Tested on HD2 using Unofficial CM10 1.0 and DPI of 192
[Android Apps and Games] rjmohit:
3.8.17

Here
[Android Apps and Games] decmk:
Just updated to 3.8.17

Enjoy

http://db.tt/5NCrqkuG
[Android Apps and Games] Tsjoklat:
3.8.17

8e3cb47048904889b7ea38e5fc732945 Vending-3.8.17.noupdate.nosig-aligned.apk
57b1b5c1f81cad5079cfc6dcf2fcae4e Vending-3.8.17.noupdate.norestrictions.nosig-aligned.apk
ae17de5b05af3328b7695a7efadc51a7 Vending-3.8.17.noupdate.dpi160.nosig-aligned.apk
65759d54002e0ef2c59eb7a68cf6f47e Vending-3.8.17.noupdate.dpi240.nosig-aligned.apk
e43d26fbff1e63ba936f128ed81cb9ee Vending-3.8.17.noupdate.dpi320.nosig-aligned.apk
c9dd93a445f09e4c7806cdd26499ebd5 Vending-3.8.17.noupdate.norestrictions.dpi160.nosig-aligned.apk
f052c6c168432962a9eb61f7426e3aa2 Vending-3.8.17.noupdate.norestrictions.dpi240.nosig-aligned.apk
a7ce499a52c19e29f3bcb42e8fd637cc Vending-3.8.17.noupdate.norestrictions.dpi320.nosig-aligned.apk
[Android Apps and Games] XlAfbk:
Tsjoklat, do you have any idea why your market mod breaks the markets new smart update feature (the one where only the changed part of the apk is downloaded and then patched into the installed one)? with stock market it works, as soon as I flash your mod (or an Phonesky.apk I modded myself) it breaks. Maybe something related to signatures?
[Android Apps and Games] Tsjoklat:
Hmm.. my first guess is that this problem is related to the signature and the md5sum (SHA1-Digest) of the files within the apk. When the application tries to apply an incremental patch to itself, the original md5sums of the components within the apk are most likely necessary. We can force the original signature and make the apk still run with modifications, but we can't force the actual md5sums of the files within the apks that we modify (which is why the market must be copied to /system/app and not installed normally). When applications are installed to /system/app/, their signatures and md5sums are automatically trusted by the operating system, but this is really just "faking" it.
[Android Apps and Games] XlAfbk:
but the checksums of the files to be patched - any app downloaded from market - are untouched. it's not about updating the market.apk but about updating <random app from market>.apk
[Android Apps and Games] Tsjoklat:
Oh, I see. The "smart update" feature is for updating the other applications that you have downloaded through the market (not the market itself). I was confused what it was. Well, if that is the case, then I am not sure why it wouldn't work.
[Android Apps and Games] gkalen:
Ιs this working on froyo roms ?

I tried several times but no luck ..

Do i have to patch GSF by myself ?
[Android Apps and Games] bearw815:
Smart update working for me! 15meg apk and only downloaded 2meg. Cool, thanks for keeping this updated.
[Android Apps and Games] Tsjoklat:
It could also mean apktool needs updating.
[Android Apps and Games] XlAfbk:
using apktool 1.4.10 (http://xdaforums.com/showthread.php?t=1755243)

what confuses me is that bearw815 says it's working for him. maybe it's caused by modding GSF?

btw, do you use a modded GSF yourself or do you clear cache every now and then to work around the disappearing apps?
[Android Apps and Games] bearw815:
If your asking me I don't have disappearing apps and yes I am using a modded gsf. The gapps are modified for the rom PA 1.6.
[Android Apps and Games] Tsjoklat:
I am actually still using 3.4.7 and I have not modified my GSF (because I have not changed my DPI settings). I still prefer the app section on the old one.
[Android Apps and Games] ynamojn:
Smart Update Ok

I am on SGS II and using stock ICS ROM only rooted. I have used 3.8.16 to update Facebook, Goggles and Play Music and the smart update seemed to be working well. For example, full Facebook update will require +/- 12 MB if I am not mistaken. I noticed that although the update bar show 12 MB, but after downloading 7 MB, the download stop then Facebook was updated. I believe it will work with 3.8.17 also.
[Android Apps and Games] XlAfbk:
anyone on Jellybean/CM10 and modded GSF (the one I posted in this thread) got smart updates working?
[Android Apps and Games] keynith:
I have it installed, asus tf300 on cm10 no nightly. How do you know if its working?