[APP] Android Market patched to skip self-update and remove device restrictions

Search This thread

Tsjoklat

Senior Member
Apr 5, 2010
1,705
2,386
I added support for DPI 320 devices (ie; Galaxy Nexus) to the first page.

Code:
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, 0x140
 
     move/from16 v17, v0
 
Last edited:

xeigen

Senior Member
Sep 16, 2011
177
23
Singapore
It's working great now..thanks..
By the way, there is no workaround for app purchasing error right? since you mod the .apk and you have to sign it with a different keyfile..
 

Tsjoklat

Senior Member
Apr 5, 2010
1,705
2,386
At a minimum you should still be able to make purchases from the web page.

I attempted to freeze "market updater" and it failed..are most folks just uninstalling it?


I am able to freeze the Market Updater with Titanium Backup. It should also be safe to just remove.

Hmm. Do all modified versions of the Android Market cause problems with purchasing apps? I have not purchased anything in a while, but signing the application with a different key should not make it fail. Maybe it is a specific patch causing the problem. I would start by using a version with the fewest changes and go from there. Maybe we can narrow it down. I could try posting a version with the "no restrictions" patch removed.

The problem could also be that the application you are trying to purchase is just not available in your country. The "no restrictions" patch allows you to see the application in the market, but there are still restrictions for downloading it set on the server side. Perhaps going through a Tor proxy would help in that case.

I have added new versions to the first page without the "no restrictions" patch applied for those who want to test without it and for those who would just rather not use it.
 
Last edited:

xeigen

Senior Member
Sep 16, 2011
177
23
Singapore
I am able to freeze the Market Updater with Titanium Backup. It should also be safe to just remove.

Hmm. Do all modified versions of the Android Market cause problems with purchasing apps? I have not purchased anything in a while, but signing the application with a different key should not make it fail. Maybe it is a specific patch causing the problem. I would start by using a version with the fewest changes and go from there. Maybe we can narrow it down. I could try posting a version with the "no restrictions" patch removed.

The problem could also be that the application you are trying to purchase is just not available in your country. The "no restrictions" patch allows you to see the application in the market, but there are still restrictions for downloading it set on the server side. Perhaps going through a Tor proxy would help in that case.

I have added new versions to the first page without the "no restrictions" patch applied for those who want to test without it and for those who would just rather not use it.

I tried Vending.3.5.16.noupdate.dpi240-signed.apk and still unable to purchase..
Here's the step that i did..
1. copy Vending.apk to /system/app/
2. change permission
3. clear Play Store and Google Services Framework data
4. reboot
5. clear Play Store data again and force stop
6. Open Play Store and try to purchase any app
7. An error is directly shown once i click on the price button (i assume it doesn't even try to load since the error is shown instantly)

Need someone else to verify, market updater is still frozen btw..
 

Hammerfest

Senior Member
Apr 3, 2008
1,683
287
San Antonio, TX
I tried Vending.3.5.16.noupdate.dpi240-signed.apk and still unable to purchase..
Here's the step that i did..
1. copy Vending.apk to /system/app/
2. change permission
3. clear Play Store and Google Services Framework data
4. reboot
5. clear Play Store data again and force stop
6. Open Play Store and try to purchase any app
7. An error is directly shown once i click on the price button (i assume it doesn't even try to load since the error is shown instantly)

Need someone else to verify, market updater is still frozen btw..

As far as I have found, with the DPI mod, it breaks purchase's on the device... Small price to pay for compatibility if you ask me however... just got to browser, and buy app you want (chose browser instead of market when asked), and buy away...

It sucks yes, but ill take my apps anyday over not being able to use them because google sucks at being "open"...
 

xeigen

Senior Member
Sep 16, 2011
177
23
Singapore
As far as I have found, with the DPI mod, it breaks purchase's on the device... Small price to pay for compatibility if you ask me however... just got to browser, and buy app you want (chose browser instead of market when asked), and buy away...

It sucks yes, but ill take my apps anyday over not being able to use them because google sucks at being "open"...

yea, it's not really important but if you can get it working, why not? :D
I'm not buying apps everyday anyway :eek:
 

famewolf

Senior Member
Jul 14, 2006
5,368
1,371
OnePlus 7 Pro
OnePlus Nord N200 5G
can someone make the no restrictions patch for dpi 200?

Thanks in advance.

You don't need a 200...use the 240...the dpi specified is what the app reports to google..not what you are actually running. ie I had my phone on 200 dpi with the 240 and everything was still "compatible."

Almost all phones should use 240dpi. Almost all tablets should use the 160dpi (for tablet specific apps).
 
Last edited:
  • Like
Reactions: xriderx66

Tsjoklat

Senior Member
Apr 5, 2010
1,705
2,386
The default DPI value for your device can be determined by looking it up in the device specifications. When you change the default DPI setting on your device, it may cause compatibility problems for the Android Market. Therefore, we want the Android Market to think we are still using the same default value that is found in the specs.

For example, the Samsung Galaxy SII has a default DPI of 240 in the device specifications, so we want to make the Android Market think we are still using that setting (if the default value has been modified).

For most devices, the standard default DPI values are 160, 240, and 320. If your device has a different default value found in the specifications, please let me know.

Maybe the problem with the "DPI Hack" patches is that the values must be exactly the same as the specs and they are not.
 
Last edited:

xriderx66

Senior Member
Oct 10, 2010
6,473
1,501
Frisco, TX
You don't need a 200...use the 240...the dpi specified is what the app reports to google..not what you are actually running. ie I had my phone on 200 dpi with the 240 and everything was still "compatible."

Almost all phones should use 240dpi. Almost all tablets should use the 160dpi (for tablet specific apps).

OH! That makes sense, im sorry!

Just tried it and it seems to be not working... i'll try it a few more times, and report back
 
Last edited:

famewolf

Senior Member
Jul 14, 2006
5,368
1,371
OnePlus 7 Pro
OnePlus Nord N200 5G
OH! That makes sense, im sorry!

Just tried it and it seems to be not working... i'll try it a few more times, and report back

You may have up to a few DAYS before google does an update to poll your phone specs. It's not an instant thing but random. This also means if you make a change that breaks the compatibility you won't notice it right away which can get confusing.
 

khaytsus

Senior Member
Apr 8, 2008
7,258
1,175
Central Kentucky
You may have up to a few DAYS before google does an update to poll your phone specs. It's not an instant thing but random. This also means if you make a change that breaks the compatibility you won't notice it right away which can get confusing.

Force Closing the market app and clearing Market data worked for some folks on the Nook Color when we were wanting to run 190ish DPI instead of 160 as it looked better on CM7, at least for a few days as you say. ;)

So clearing data might make the update happen immediately, rather than wait a few days.
 

Tsjoklat

Senior Member
Apr 5, 2010
1,705
2,386
After a few reboots it stopped showing the extra apps and the movies section

I often have that problem with all versions of the Android Market. After I reboot, the Android Market is missing lots of applications until I clear the cache and data again. I think this is not related to the DPI hack.
 

Deeco7

Senior Member
Jul 12, 2010
1,816
421
Great work mate, just want to know if this hack would allow purchasing of apps from different regions and countries?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 184
    All versions of the Android Market (Play Store) above version 3.0 will self-update automatically (even if you freeze/rename/delete the Market Updater application). The following version of the Android Market has been patched to ignore the self-update check.

    Note: Android Market (Google Play Store) v3.4.7 is the last available version that allows Titanium Backup to control the Market links in the application.

    Note: Using the command "pm disable com.android.vending.updater" does NOT stop the Android Market 3.0+ from self-updating. Other methods of preventing the market from self-updating, such as creating a read-only file that blocks the installation procedure, are also not recommended because the market will still download market updates and use up precious internal memory and extra cpu cycles.

    Code:
    diff -ru Vending.3.4.7/smali/com/google/android/finsky/utils/SelfUpdateScheduler.smali Vending.3.4.7-noupdate/smali/com/google/android/finsky/utils/SelfUpdateScheduler.smali
    --- Vending.3.4.7/smali/com/google/android/finsky/utils/SelfUpdateScheduler.smali	2012-04-04 02:21:11.729877751 +0200
    +++ Vending.3.4.7-noupdate/smali/com/google/android/finsky/utils/SelfUpdateScheduler.smali	2012-04-04 02:33:51.870385096 +0200
    @@ -29,7 +29,7 @@
         invoke-direct {p0}, Ljava/lang/Object;-><init>()V
     
         .line 42
    -    const/4 v0, 0x0
    +    const/4 v0, 0x1
     
         iput-boolean v0, p0, Lcom/google/android/finsky/utils/SelfUpdateScheduler;->mUpdateInProgress:Z


    Logcat of Android Market with "noupdate" patch applied:

    Code:
    D/Finsky  ( 4890): [1] SelfUpdateScheduler.checkForSelfUpdate: Skipping self-update check as there is an update already queued.

    Note: Also provided below is an additional variation of the Android Market that includes an additional "no restrictions" patch applied. The additional patch removes restrictions on certain applications in the market placed by specific countries. If the country you live in has blocked the application you are looking for, this patch will allow you to see it in the market. There are still server side restrictions in place when you download an application that is blocked within your country and the use of a proxy or VPN might also be necessary. The "no restrictions" patch also removes the device application compatibility check, so every application should be visible in the Android Market (even if they "say" it is not compatible with your device). Credits to L.D.B. for the "no restrictions" patch.

    Code:
    diff -ru Vending.3.4.7/smali/com/google/android/finsky/api/model/Document.smali Vending.3.4.7.mod/smali/com/google/android/finsky/api/model/Document.smali
    --- Vending.3.4.7/smali/com/google/android/finsky/api/model/Document.smali	2012-04-05 21:49:58.647890272 +0200
    +++ Vending.3.4.7.mod/smali/com/google/android/finsky/api/model/Document.smali	2012-04-05 21:49:20.751889471 +0200
    @@ -3236,6 +3236,8 @@
         .line 674
         :cond_0
         :goto_0
    +    const/4 v2, 0x1
    +
         return v2
     
         .line 662

    Note: A third patch for the Android Market is the "DPI 160" patch. If you change the default DPI settings on your device, the Android Market might not detect the required DPI settings and specific applications will then not be visible in the Android Market. The "DPI 160" patch forces the Android Market to think you are using a DPI of 160, which makes specific applications in the Android Market visible.

    Code:
    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: A "DPI 240" patch is also posted below. Some high resolution devices (ie; HTC Desire and Samsung Galaxy SII) require a 240 DPI in order for certain applications to be visible in the Android Market. The "DPI 240" patch forces the Android Market to think the device is using a DPI of 240.

    Code:
    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, 0xf0
     
         move/from16 v17, v0

    Note: Similar to the previous DPI patches, a "DPI 320" patch is also posted below. Some of the higher WXGA resolution devices (ie; Galaxy Nexus) require a 320 DPI in order for certain applications to be visible in the Android Market. The "DPI 320" patch forces the Android Market to think the device is using a DPI of 320.

    Code:
    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, 0x140
     
         move/from16 v17, v0

    If your device is using a custom DPI setting, then you will need a version of the Android Market that includes one of the three "DPI Hacks" mentioned above (dpi160, dpi240, or dpi320). Without the "DPI Hack" applied, updates might not be visible in the Market.

    The default DPI value for your device can be determined by looking it up in it's device specifications. When you change the default DPI setting on your device, it may cause compatibility problems for the Android Market. Therefore, we want the Android Market to think we are still using the same default value that is found in the specs.

    For example, the Samsung Galaxy SII has a default DPI of 240 in it's device specifications, so we want to make the Android Market think we are still using that setting (if the default value has been modified).

    For most devices, the standard default DPI values are 160, 240, and 320.

    All modified versions of the Android Market that are signed by another key are unable to make purchases from within the Android Market application itself because the signing key does not match Google's signing key. Because the new signing key of the modified Android Market no longer matches with Google's signing key, the modified version of the Android Market is unable to connect with GoogleServicesFramework. There are also modified versions of the Android Market available (in post #132 of this thread) that are made using the original Google signature which makes it possible to purchase applications again within the modified Android Market.
    http://xdaforums.com/showpost.php?p=26102810&postcount=132

    All applications can still be purchased via the web browser.

    How to install:

    Rename file to "Vending.apk" and copy to /system/app/Vending.apk. Make sure to uninstall any updates of previous versions first. Root Required. If you are running ICS 4.0.4, "Vending.apk" might be substituted for "Phonesky.apk".

    NOTE: If you are testing a "DPI Hacked" version of the Android Market and you are still experiencing incompatibilities with certain applications or the changes are not "sticking", see post #92 in this thread for further solutions. The following link explains what additional patches may be needed: http://xdaforums.com/showpost.php?p=25720539&postcount=92

    Additionally, the following links contain modified versions of GSF uploaded to this thread:
    http://xdaforums.com/showpost.php?p=29401924&postcount=334
    http://xdaforums.com/showpost.php?p=30074336&postcount=390
    http://xdaforums.com/showthread.php?t=1631070
    http://xdaforums.com/showpost.php?p=26423837&postcount=161

    ** Google Play 3.4.4 with "market purchase fix and dpi120" has been added to the following link: http://xdaforums.com/showpost.php?p=31027248&postcount=460

    ** Google Play 3.4.7/3.5.19 with "market purchase fix" has been added to the following link:: http://xdaforums.com/showpost.php?p=26102810&postcount=132

    ** Google Play 3.7.11 has been added to the following link: http://xdaforums.com/showpost.php?p=28029688&postcount=222

    ** Google Play 3.7.13 has been added to the following link: http://xdaforums.com/showpost.php?p=28207664&postcount=243

    ** Google Play 3.7.15 has been added to the following link: http://xdaforums.com/showpost.php?p=29466370&postcount=344

    ** Google Play 3.8.15 has been added to the following link: http://xdaforums.com/showpost.php?p=30317127&postcount=399

    ** Google Play 3.8.16 has been added to the following link: http://xdaforums.com/showpost.php?p=30387825&postcount=409

    ** Google Play 3.8.17 has been added to the following link: http://xdaforums.com/showpost.php?p=30563737&postcount=436

    ** Google Play 3.9.16 has been added to the following link: http://xdaforums.com/showpost.php?p=32768509&postcount=505

    ** Google Play 3.9.17 has been added to the following link: http://xdaforums.com/showpost.php?p=33747629&postcount=544

    ** Google Play 3.10.9 has been added to the following link: http://xdaforums.com/showpost.php?p=34774989&postcount=566

    ** Google Play 3.10.10 has been added to the following link: http://xdaforums.com/showpost.php?p=35741543&postcount=599

    ** Google Play 3.10.14 has been added to the following link: http://xdaforums.com/showpost.php?p=38633857&postcount=660

    ** Google Play 4.0.25 has been added to the following link: http://xdaforums.com/showpost.php?p=40237365&postcount=694

    ** Google Play 4.0.26 has been added to the following link: http://xdaforums.com/showpost.php?p=40822664&postcount=705

    ** Google Play 4.0.27 has been added to the following link: http://xdaforums.com/showpost.php?p=40823085&postcount=706

    ** Google Play 4.3.10 has been added to the following link: http://xdaforums.com/showpost.php?p=44365806&postcount=769
    24
    Google Play 3.7.13

    Google Play 3.7.13 with various patch combos.


    Code:
    78b10a63081ddf392f7aaf1f902ee5ba  Vending.3.7.13.noupdate.nosig-aligned.apk
    64bd83662b12e622ee09df7bf3b5a8f1  Vending.3.7.13.noupdate.norestrictions.nosig-aligned.apk
    b44154ad69a5015902b4283ef805f054  Vending.3.7.13.noupdate.dpi160.nosig-aligned.apk
    f3e3f6594c671f0aefbf1f5812ae9742  Vending.3.7.13.noupdate.dpi240.nosig-aligned.apk
    9918e6663975413add96331a1b613ee8  Vending.3.7.13.noupdate.dpi320.nosig-aligned.apk
    824e025563eb3f316929537394d8f0b7  Vending.3.7.13.noupdate.norestrictions.dpi160.nosig-aligned.apk
    fd6744da15f131430259873fdf8560cf  Vending.3.7.13.noupdate.norestrictions.dpi240.nosig-aligned.apk
    c168f468d34ebf1416fe39fbe975a5e6  Vending.3.7.13.noupdate.norestrictions.dpi320.nosig-aligned.apk
    23
    Vending 3.10.9

    Code:
    9f36f556017f59a623c9531bce2406e9  Vending-3.10.9.noupdate.nosig-aligned.apk
    f8c7c97a7636b6637f71ed0a59832078  Vending-3.10.9.noupdate.norestrictions.nosig-aligned.apk
    e2b9f40a4b02d11949477e3e1561a6b1  Vending-3.10.9.noupdate.dpi160.nosig-aligned.apk
    5919d74f934429e61b68eb4803de4408  Vending-3.10.9.noupdate.dpi213.nosig-aligned.apk
    7ac2c995f109c1101509088240de47e0  Vending-3.10.9.noupdate.dpi240.nosig-aligned.apk
    1aa0919d7288eb9976754f34af25fdfc  Vending-3.10.9.noupdate.dpi320.nosig-aligned.apk
    bc8a8a2d389c581e12b143e6c1fc1504  Vending-3.10.9.noupdate.norestrictions.dpi160.nosig-aligned.apk
    e3714983735558ff3efea5e92341b23f  Vending-3.10.9.noupdate.norestrictions.dpi213.nosig-aligned.apk
    8afef0e941441ed6ae0a9a5341ff6d14  Vending-3.10.9.noupdate.norestrictions.dpi240.nosig-aligned.apk
    16fc3e84284f6c0bae2d0a05f76c988c  Vending-3.10.9.noupdate.norestrictions.dpi320.nosig-aligned.apk
    21
    I just noticed that 3.9.16 has additional new code in "LegacyDeviceConfigurationHelper.smali" which might also need to be changed for older devices to work properly. The "DPI" patches for 3.9.16 have now changed to the following (the patch used to be only a one line change in the code and now it is two lines):

    DPI 160 patch:
    Code:
    diff -ru Vending-3.9.16.orig/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali Vending-3.9.16/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali
    --- Vending-3.9.16.orig/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali	2012-10-14 00:42:17.855438171 +0200
    +++ Vending-3.9.16/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali	2012-10-14 00:50:43.251448825 +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
     
    diff -ru Vending-3.9.16.orig/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali Vending-3.9.16/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali
    --- Vending-3.9.16.orig/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali	2012-10-14 00:42:17.863438351 +0200
    +++ Vending-3.9.16/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali	2012-10-14 00:52:12.595449873 +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

    DPI 213 patch:
    Code:
    diff -ru Vending-3.9.16.orig/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali Vending-3.9.16/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali
    --- Vending-3.9.16.orig/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali	2012-10-14 00:42:17.855438171 +0200
    +++ Vending-3.9.16/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali	2012-10-14 00:50:43.251448825 +0200
    @@ -257,7 +257,7 @@
     
         move-result-object v15
     
    -    iget v0, v12, Landroid/util/DisplayMetrics;->densityDpi:I
    +    const/16 v0, 0xd5
     
         move/from16 v17, v0
     
    diff -ru Vending-3.9.16.orig/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali Vending-3.9.16/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali
    --- Vending-3.9.16.orig/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali	2012-10-14 00:42:17.863438351 +0200
    +++ Vending-3.9.16/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali	2012-10-14 00:52:12.595449873 +0200
    @@ -257,7 +257,7 @@
     
         move-result-object v15
     
    -    iget v0, v12, Landroid/util/DisplayMetrics;->densityDpi:I
    +    const/16 v0, 0xd5
     
         move/from16 v17, v0

    DPI 240 patch:
    Code:
    diff -ru Vending-3.9.16.orig/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali Vending-3.9.16/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali
    --- Vending-3.9.16.orig/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali	2012-10-14 00:42:17.855438171 +0200
    +++ Vending-3.9.16/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali	2012-10-14 00:50:43.251448825 +0200
    @@ -257,7 +257,7 @@
     
         move-result-object v15
     
    -    iget v0, v12, Landroid/util/DisplayMetrics;->densityDpi:I
    +    const/16 v0, 0xf0
     
         move/from16 v17, v0
     
    diff -ru Vending-3.9.16.orig/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali Vending-3.9.16/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali
    --- Vending-3.9.16.orig/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali	2012-10-14 00:42:17.863438351 +0200
    +++ Vending-3.9.16/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali	2012-10-14 00:52:12.595449873 +0200
    @@ -257,7 +257,7 @@
     
         move-result-object v15
     
    -    iget v0, v12, Landroid/util/DisplayMetrics;->densityDpi:I
    +    const/16 v0, 0xf0
     
         move/from16 v17, v0

    DPI 320 patch:
    Code:
    diff -ru Vending-3.9.16.orig/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali Vending-3.9.16/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali
    --- Vending-3.9.16.orig/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali	2012-10-14 00:42:17.855438171 +0200
    +++ Vending-3.9.16/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali	2012-10-14 00:50:43.251448825 +0200
    @@ -257,7 +257,7 @@
     
         move-result-object v15
     
    -    iget v0, v12, Landroid/util/DisplayMetrics;->densityDpi:I
    +    const/16 v0, 0x140
     
         move/from16 v17, v0
     
    diff -ru Vending-3.9.16.orig/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali Vending-3.9.16/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali
    --- Vending-3.9.16.orig/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali	2012-10-14 00:42:17.863438351 +0200
    +++ Vending-3.9.16/smali/com/google/android/finsky/utils/LegacyDeviceConfigurationHelper.smali	2012-10-14 00:52:12.595449873 +0200
    @@ -257,7 +257,7 @@
     
         move-result-object v15
     
    -    iget v0, v12, Landroid/util/DisplayMetrics;->densityDpi:I
    +    const/16 v0, 0x140
     
         move/from16 v17, v0

    If the previous version of 3.9.16 that I posted did not work, perhaps these changes will help.

    Code:
    17909b5fdbd7aa43e0a179d9e932a775  Vending-3.9.16.noupdate.nosig-aligned.apk
    6a0aa7c308004fbca74ca17f9c46ed4f  Vending-3.9.16.noupdate.norestrictions.nosig-aligned.apk
    399773420f334cfee1d40c427a05ff82  Vending-3.9.16.noupdate.dpi160.nosig-aligned.apk
    36cead47a46454356f07461698bd89a1  Vending-3.9.16.noupdate.dpi213.nosig-aligned.apk
    9d721f53db2ea90fac8798b014ec18d7  Vending-3.9.16.noupdate.dpi240.nosig-aligned.apk
    0070f71fe3e436745f581dc058a9ec6d  Vending-3.9.16.noupdate.dpi320.nosig-aligned.apk
    6e14221f7c623e3c3a9d335ab2dc72f2  Vending-3.9.16.noupdate.norestrictions.dpi160.nosig-aligned.apk
    584468ba944002cf36dba982ea704dc6  Vending-3.9.16.noupdate.norestrictions.dpi213.nosig-aligned.apk
    d9d876c953ed861618fde2f3a8c67ead  Vending-3.9.16.noupdate.norestrictions.dpi240.nosig-aligned.apk
    40dee1545ba5bf4dd96f7493b202a206  Vending-3.9.16.noupdate.norestrictions.dpi320.nosig-aligned.apk
    20
    3.9.16

    Code:
    cf895a511eb3f5a15840b1f24a9fba4d  Vending-3.9.16.noupdate.nosig-aligned.apk
    323e53ef8d134756390590f681572f66  Vending-3.9.16.noupdate.norestrictions.nosig-aligned.apk
    d67dd37c0fe0c0abb4b3daf0e0471cab  Vending-3.9.16.noupdate.dpi160.nosig-aligned.apk
    28b4cafeffad07b1a765bf747169e676  Vending-3.9.16.noupdate.dpi213.nosig-aligned.apk
    758945d1f2691b543e2b1a6b63351d6f  Vending-3.9.16.noupdate.dpi240.nosig-aligned.apk
    6c2ef0f8ee46aa05e13b4f094a1cd3c8  Vending-3.9.16.noupdate.dpi320.nosig-aligned.apk
    4b8260620a269790eab15f330a17b5f4  Vending-3.9.16.noupdate.norestrictions.dpi160.nosig-aligned.apk
    5ec536bc6e0d8837cb21ecb2202eca0c  Vending-3.9.16.noupdate.norestrictions.dpi213.nosig-aligned.apk
    dab9604b5a5a97b0894cf5ef59e354e3  Vending-3.9.16.noupdate.norestrictions.dpi240.nosig-aligned.apk
    005dc699282dbd87bacd671d8dd18e83  Vending-3.9.16.noupdate.norestrictions.dpi320.nosig-aligned.apk