yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Hammerfest:
what device?

Phone? Tablet?

I always use 240DPI on my phone, and 160DPI on my tablet, haven't had any issues yet... Im sure there is one, but I dont see the point of the 320DPI version
[Android Apps and Games] anis25:
Hi

I use your mod but i can download some apps
[Android Apps and Games] Silentbob999:
As the first post say, the 320 dpi is for the nexus and other similar resolution device's.

What is your device and which file did you use? Are you getting a message "not compatible with your device" or its just that certain app fail to download? Free or paid app?

=======

Btw, if the op can be updated with files found in this post that will be nice :) , just so we can redirect people to the op instead of in the middle of the thread ;)

http://xdaforums.com/showthread.php?p=28207664

Envoyé depuis mon GT-I9000 avec Tapatalk
[Android Apps and Games] mushtafa:
Hi guys, I've just replaced my market with the latest one in this thread, but having an error appear now.

I've not been able to install 100 floors, used get the message of not being compatible for my device.

Since this patch, I can view the game, and hit the download button, view and accept the permissions than I get the error, see screen shot.

Any ideas? I've never seen this message before.
[Android Apps and Games] anis25:
I get the same message as musthafa

I have xperia atc and i use the 240dpi no restriction
[Android Apps and Games] xEquilibrium:
Is it possible to stop the ads coming from google playstore each time I'm connected to the internet?
[Android Apps and Games] tamfrr:
Thanks. Nice job
[Android Apps and Games] F4M0U569:
I have an one x running cm10 and my dpi is set at 261 and I tried to flash 3.17.3dpi320 but no go. I get problems with gapps force closing
[Android Apps and Games] Silentbob999:
For Gapps force close try that:

Parameters -> Applications -> ALL -|

Android Framework -> Force close & Delete Cache & Delete Data

Google Play Store -> Force close & Delete Cache & Delete Data

Google Play Services -> Force close & Delete Cache & Delete Data

Download Manager -> Force close & Delete Cache & Delete Data

Reboot

open play store -> install = done

Should work normally after that, you can even try by deleting data of google framework only, its normally the issue... But normally I scroll over the app list and do a cleanup of few google related app/service, the worse that can happen is that you had to re-enter you gmail adress and password :P

But if you get "incompatible device" , then its probably because the OneX normally use 312Dpi, not 320Dpi...
[Android Apps and Games] F4M0U569:
So in this case what do I have to do? I was using LCD Modder Pro and it worked on ICS but not on JB
[Android Apps and Games] Silentbob999:
What case? Do you get force close or incompatible device?

Envoyé depuis mon GT-I9000 avec Tapatalk
[Android Apps and Games] F4M0U569:
I get both..I'm on 3.7.13 and half of the apps are missing in google play like I will search for facebook and it is not there
[Android Apps and Games] Molitro:
We need a GSF patch for JB. The code is different, ICS' patch is not gonna just work.
[Android Apps and Games] mushtafa:
Not sure if this app is working properly? I was having this problem above, and the market showed one update. I reset my dpi back to stock 240, rebooted and re checked the market, 9 new updates and 100 floors I installed without issues
[Android Apps and Games] F4M0U569:
Nvm I got it fixed..renamed it to vending.apk then I moved it to system/apps and set permissions to rw-rw-r-- then install.
[Android Apps and Games] Kwaii49:
Android market version 3.7.13 with 160 dpi works great on my Samsung Vibrant (1st gen). Thanks for your great work.
[Android Apps and Games] L3H0:
+1, i'm waiting too :)
[Android Apps and Games] XlAfbk:
I've got a GSF for JB. Can't remember whether I modded it myself or found someones mod before I did.

Attached is a CWM zip with GSF and Phonesky 3.7.13. JellyBean only!
[Android Apps and Games] xuser:
New Goolge Play 3.7.15. :D
[Android Apps and Games] rjmohit:
And here's the link
[Android Apps and Games] Molitro:
It actually works?

Gonna test right know, but if it does, you got my everlasting appreciation :D

Edit: Ain't seem to be working here :(

I'll maybe wipe and try from scratch.

Edit+: It's holding for now since I wiped and flashed that gsf with the 3.7.13 320 dpi no update from the thread right after the rom (cm10).

If tomorrow is still holding we can be fairly certain it'll work permanently.
[Android Apps and Games] XlAfbk:
It is working permanently. Have been using it for >1 week now.

The Market included in that zip is 320dpi, norestrictions btw.
[Android Apps and Games] Molitro:
Yep, holding for enough hours now. As I said, you have my everlasting appreciation :D

I had to use another market cause yours didn't prevent the update to 3.7.15.
[Android Apps and Games] XlAfbk:
as 3.7.15 links haven't been posted yet, here you go:

Mod version: Vending-3.7.15.noupdate.norestrictions http://www.MegaShare.com/4418525

Mod version & DPI 160 patch: Vending-3.7.15.noupdate.norestrictions.dpi160 http://www.MegaShare.com/4418529

Mod version & DPI 240 patch: Vending-3.7.15.noupdate.norestrictions.dpi240 http://www.MegaShare.com/4418536

Mod version & DPI 320 patch: Vending-3.7.15.noupdate.norestrictions.dpi320 http://www.MegaShare.com/4418540

Original version: http://www.MegaShare.com/4418521

credits to whoever modded them, didn't find the source
[Android Apps and Games] Gusta_HR:
Getting FC on stock samsung 2.3.6 rom :confused:
[Android Apps and Games] sniper:
If anyone else here has gone in and made the smali edits on their own like I have can you help me out with doing the no restrictions mod? That section of code is nowhere to be found when I've looked... :( I can easily mod 240dpi and no update though.

Click here for custom mods for your E4GT
[Android Apps and Games] F4M0U569:
same here..doesnt seem to be working 3.7.15
[Android Apps and Games] Tsjoklat:
Play Store 3.7.15

MD5SUMs:

f413aa816e54ce9a8571dc7070c7a251 Vending.3.7.15.noupdate.nosig-aligned.apk
3ab3f0460f7952479d8be3fead9892fd Vending.3.7.15.noupdate.norestrictions.nosig-aligned.apk
c017cbe866f662fecb68703bd44fc407 Vending.3.7.15.noupdate.dpi160.nosig-aligned.apk
91063f5135f1e944c93b46154841041f Vending.3.7.15.noupdate.dpi240.nosig-aligned.apk
5c447e23c48785f2cf7e105e5e517e0f Vending.3.7.15.noupdate.dpi320.nosig-aligned.apk
38fe313a20ce9b8253d765cc5a033f09 Vending.3.7.15.noupdate.norestrictions.dpi160.nosig-aligned.apk
d59d216d8477139a6b387690e139bb88 Vending.3.7.15.noupdate.norestrictions.dpi240.nosig-aligned.apk
6679de7e31ce62d699047411e0577b2d Vending.3.7.15.noupdate.norestrictions.dpi320.nosig-aligned.apk

NoRestrictions Patch:

diff -ru Vending.3.7.11.orig/smali/com/google/android/finsky/utils/LibraryUtils.smali Vending.3.7.11/smali/com/google/android/finsky/utils/LibraryUtils.smali
--- Vending.3.7.11.orig/smali/com/google/android/finsky/utils/LibraryUtils.smali	2012-06-29 01:04:06.475369095 +0200
+++ Vending.3.7.11/smali/com/google/android/finsky/utils/LibraryUtils.smali	2012-06-29 01:26:01.327379648 +0200
@@ -237,6 +237,8 @@

const/4 v4, 0x1

+ return v4
+
const/4 v3, 0x0

.line 38
[Android Apps and Games] sniper:
Ah, I was looking in the op at this code...

Click here for custom mods for your E4GT
[Android Apps and Games] L3H0:
This one working great with the newest Phonesky.apk and GSF from attachement on JB.

Klikniete z Prime
[Android Apps and Games] devil-kin:
Could you perhaps make one for dpi200?

Kind regards
[Android Apps and Games] viniciusrsouza:
Guys, just one question:

My DPI is configured to 280. I need to change it definitely to 240 if I pretend to use the 240 patched version or this simply doesn't matter?

Edit: I'm using Galaxy Note and AOKP ROM.
[Android Apps and Games] Hammerfest:
You miss the purpose of the 3 DPI values completely...

this is set in the market file and gsf if provided, that way you can use a tool to change your DEVICE's DPI...

IE, my device is set to 120DPI, however with the 160DPI market, I can still see apps meant for 160DPI, without having to adjust my DEVICES DPI...

You know what, I havent eaten yet, and that didnt make sense to me at all... still, there is no need to request a different DPI, these are market mods, not device mods...

---------- Post added at 01:21 PM ---------- Previous post was at 01:20 PM ----------

No... just download and follow the instructions to install the 240DPI patched market.... thats it.. nothing else... this mod is meant so you dont have to change your DEVICE DPI...
[Android Apps and Games] F4M0U569:
Does not work for me on JB 4.1.1
[Android Apps and Games] L3H0:
Did you change the GSF too?

Its working good on GS2 with changed DPI.

Klikniete z Prime
[Android Apps and Games] devil-kin:
Gah, yeah, sorry. I really must not have been awake yesterday when I asked that. *head + wall + forward motion*

I've been trying to get the edits in myself (for JellyBean), but the market still only shows a fraction of my apps.

Anyone any idea what I'm doing wrong?

I've extracted classes.dex from both Phonesky.apk and GoogleServicesFramework.apk, baksmali'd them, edited, smali, and put them back in the apk.

Here are the diffs:

diff -Nur Phonesky-3.7.15.orig/com/google/android/finsky/utils/DeviceConfigurationHelper.smali Phonesky-3.7.15/com/google/android/finsky/utils/DeviceConfigurationHelper.smali
--- Phonesky-3.7.15.orig/com/google/android/finsky/utils/DeviceConfigurationHelper.smali 2012-07-30 10:01:57.642382942 +0200
+++ Phonesky-3.7.15/com/google/android/finsky/utils/DeviceConfigurationHelper.smali 2012-07-30 10:05:12.681262476 +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 -Nur Phonesky-3.7.15.orig/com/google/android/finsky/utils/LibraryUtils.smali Phonesky-3.7.15/com/google/android/finsky/utils/LibraryUtils.smali
--- Phonesky-3.7.15.orig/com/google/android/finsky/utils/LibraryUtils.smali 2012-07-30 10:01:57.654382750 +0200
+++ Phonesky-3.7.15/com/google/android/finsky/utils/LibraryUtils.smali 2012-07-30 10:05:16.433202568 +0200
@@ -237,6 +237,8 @@

const/4 v4, 0x1

+ return v4
+
const/4 v3, 0x0

.line 38
diff -Nur Phonesky-3.7.15.orig/com/google/android/finsky/utils/SelfUpdateScheduler.smali Phonesky-3.7.15/com/google/android/finsky/utils/SelfUpdateScheduler.smali
--- Phonesky-3.7.15.orig/com/google/android/finsky/utils/SelfUpdateScheduler.smali 2012-07-30 10:01:57.676382398 +0200
+++ Phonesky-3.7.15/com/google/android/finsky/utils/SelfUpdateScheduler.smali 2012-07-30 10:05:23.281093232 +0200
@@ -29,7 +29,7 @@
invoke-direct {p0}, Ljava/lang/Object;-><init>()V

.line 45
- const/4 v0, 0x0
+ const/4 v0, 0x1

iput-boolean v0, p0, Lcom/google/android/finsky/utils/SelfUpdateScheduler;->mUpdateInProgress:Z

@@ -88,7 +88,7 @@
if-eqz v5, :cond_e

.line 79
- const-string v5, "Skipping self-update check as there is an update already queued."
+ const-string v5, "Skipping self-update check."

new-array v6, v8, [Ljava/lang/Object;

and for GSF:

diff -Nur GSF.orig/com/google/android/gsf/checkin/CheckinRequestBuilder.smali GSF/com/google/android/gsf/checkin/CheckinRequestBuilder.smali
--- GSF.orig/com/google/android/gsf/checkin/CheckinRequestBuilder.smali 2012-07-30 09:54:39.982398253 +0200
+++ GSF/com/google/android/gsf/checkin/CheckinRequestBuilder.smali 2012-07-30 09:54:25.579629393 +0200
@@ -604,7 +604,7 @@
invoke-virtual {v0, v1}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

.line 746
- iget v0, v1, Landroid/util/DisplayMetrics;->densityDpi:I
+ const/16 v0, 0xf0

invoke-virtual {v4, v0}, Lcom/google/android/gsf/checkin/proto/Config$DeviceConfigurationProto;->setScreenDensity(I)Lcom/google/android/gsf/checkin/proto/Config$DeviceConfigurationProto;

Edit: Seems a dalvik clear fixed it. The files work.
[Android Apps and Games] viniciusrsouza:
Oh! Just forgot about his question...

As I'm using Galaxy Note, which has 320 default DPI, would be recommended to use the 320 hacked version in instead of 240 one?
[Android Apps and Games] sniper:
Yes, use the patch for your default dpi.

Click here for custom mods for your E4GT
[Android Apps and Games] viniciusrsouza:
Well, I changed Phonesky.apk file and now every time Play Store stops after trying to open it.

I cleared app data and cache, unnistaled updates and forced stop before changing the file. Maybe I shouldn't do this? :(

I'm trying everything here to try to make Play Store work again without any success. I made a backup of the original file and it's not working also.

What I should try?!

Edit: If I try to put again the original file, Play Store doesn't show up, even after restarting!

Edit 2: Downloaded a clean 3.7.15 file and it seems to have solved my issue! I will try to substitute for the hacked one again.
[Android Apps and Games] Cyda:
Restore back to a previous nandroid backup?
[Android Apps and Games] viniciusrsouza:
I didn't do, but I solved installing an original file. I'll keep trying here.

Edit:

Well, just updating my situation here. I can now only see Play Store icon and open it whithout "Stopped" pop up when I install a clean 3.7.15 APK. If I unninstall it, Play Store will simply disappear.

Backing up "Phonesky.apk" file simply does nothing. I even tried to put the file there again and reboot, nothing happens. If I install a clean Play Store file after backing up original file, I also get "Stopped" pop up.

I think I simply lost any chance to make my original Play Store from AOKP ROM to work again.

Also I tried to substitute the Phonesky.apk file with a hacked one after installing a working and clean 3.7.15, but I still get apps compability issue. So, I just realized that probably this hack doesn't work when trying to substitute a not original Play Store version obtained from ROM flash.
[Android Apps and Games] Silentbob999:
Did you set permission?

Envoyé depuis mon GT-I9000 avec Tapatalk
[Android Apps and Games] viniciusrsouza:
Well, I didn't. Is this an obligatory step or just to be sure it has permissions? Can be done using Root Explorer, right?

Anyway, I will check/try this later!

And just another thing here. I thought my clean 3.7.15 APK was fine, but it was not. It's not updating my apps. When I try to update one of my London 2012 application it just closes and, again, informs Play Store stopped.

Later I will clear everything and install AOKP again and try to do this at very first point after finishing flash the ROM and see what happens!
[Android Apps and Games] daniel178:
Can someone please help me get this working on my rooted Thunderbolt? (stock).

I downloaded Google Play 3.7.15 from the link

Vending-3.5.19.noupdate.norestrictions.dpi320-aligned.apk

located here:

http://xdaforums.com/showpost.php?p=29466370&postcount=344

(the last one).

I uninstalled Play Store updates.

In the /system/apps folder I renamed my old Vending file to Vending.apk.old and kept it there.

I renamed the file I downloaded ("Vending-3.5.19.noupdate.norestrictions.dpi320-aligned.apk") to Vending.apk.

I restarted my phone.

Now, the Play Store is missing from my app drawer and if I try to Install the new Vending.apk, it fails to install.

What should I do?
[Android Apps and Games] Kurre:
Set proper permissions, clear data for play store and Google services framework and reboot. If problems occur while connecting the store, try deleting and re-adding your Google account (don't reboot in between). You might need to have a modified gsf also.
[Android Apps and Games] viniciusrsouza:
Just in case of needing a modified GSF, this will disable purchase capability through the app, right?
[Android Apps and Games] Kurre:
Hmm. No it shouldn't. I have been using modified play store & gsf for a long time with several different roms and IIRC I haven't had any problems with purchases. Let me try and I'll report back :)

Btw. I'm using now Jellybean with modded gsf and modded 3.7.15 store.

Edit: no problems whatsoever in purchasing apps.

About naming the apk..just name it to same as previous apk.
[Android Apps and Games] prangel:
Are you sure about the name of the Play Store apk??

Mine is called Phonesky.apk not Vending.apk

Try by changing the name.

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] Fnorder:
Directly overwriting /system/app/Vending.apk with the above works great at first, then sometime after a reboot it reverts (for multiple people apparently). In logcat there was: "smallestScreenWidthDp does not exist, using pre-ics hack."

The following change seems to have corrected the issue for me:

diff -ur nores.dpi.up.15.orig/smali//com/google/android/finsky/api/DfeApiContext.smali nores.dpi.up.15/smali//com/google/android/finsky/api/DfeApiContext.smali
--- nores.dpi.up.15.orig/smali//com/google/android/finsky/api/DfeApiContext.smali 2012-07-29 03:38:39.000000000 -0500
+++ nores.dpi.up.15/smali//com/google/android/finsky/api/DfeApiContext.smali 2012-08-02 06:36:51.000000000 -0500
@@ -626,7 +626,7 @@
int-to-float v5, v5

iget v6, v3, Landroid/util/DisplayMetrics;->density:F
-
+const/high16 v6, 0x3fc0
div-float/2addr v5, v6

float-to-int v4, v5
@@ -638,7 +638,7 @@
int-to-float v5, v5

iget v6, v3, Landroid/util/DisplayMetrics;->density:F
-
+const/high16 v6, 0x4000
div-float/2addr v5, v6

float-to-int v2, v5

Edit: doesnt work
[Android Apps and Games] viniciusrsouza:
Well, just after a clean AOKP flash, using Galaxy Note, I did all steps and substituted Phonesky.apk file even before changing my DPI settings inside AOKP ROM options and configured it's permissions. Initially everything was fine, but after some reboots I noticed the Market DPI issue was back.

I didn't remove the 3.15.7 modified APK and to solve this problem I followed the steps recommended inside AOKP ROM options, that consists in set default DPI, clean Play Store data, open and accept the terms and after go back again to the desired DPI.

And just another important thing! I'm from Brazil and tried to search for "Google Play Music", for example, as it's not displayed in Brazilian Play Store. I couldn't find it, so I think the "norestrictions" thing didin't work for me also!

:(

Anyway, I will let the file there, unless in case I have any problem to buy something, as I didn't test this yet.

Maybe this only works when using stock ROMs? Maybe trying to substitute "Phonesky.apk" from a custom ROM simply does nothing?
[Android Apps and Games] XlAfbk:
flashing just the market will only work for a few days, you need to flash market+gsf. there's a CWM zip with gsf+market 3.7.13 (you can flash .15 right after flashing that) in http://xdaforums.com/showpost.php?p=29401924&postcount=334
[Android Apps and Games] AlexandreT:
Kurre, can you please explain which modded gsf are you using. I'm also using Helly Bean with modded Play Store, from this thread, but while the store is working well with 200dpi I fail to see all my installed apps inside it. I can only see 17 out of 40 apps. In your opinion would the use of a modded gsf correct this problem?

Thanks for your help.
[Android Apps and Games] viniciusrsouza:
But I'm not using Jelly Bean... :(

Should I try this anyway? If yes, I need to flash CWM ZIP file and after make the manual file substitution as I did before?
[Android Apps and Games] XlAfbk:
oh sorry, completly forgot that my mod was for JB only. So used to that already that I completly forgot I'm even using it :D

Try the one from here: http://xdaforums.com/showthread.php?t=1639213
[Android Apps and Games] Tsjoklat:
Thanks for this code. With these additional changes to the market, I assume it is not necessary to modify GSF. Has anyone else tried this?

diff -ru Vending.3.7.15.orig/smali/com/google/android/finsky/api/DfeApiContext.smali Vending.3.7.15/smali/com/google/android/finsky/api/DfeApiContext.smali
--- Vending.3.7.15.orig/smali/com/google/android/finsky/api/DfeApiContext.smali	2012-08-06 00:26:29.519421163 +0200
+++ Vending.3.7.15/smali/com/google/android/finsky/api/DfeApiContext.smali	2012-08-06 00:31:13.483919589 +0200
@@ -625,7 +625,7 @@

int-to-float v5, v5

- iget v6, v3, Landroid/util/DisplayMetrics;->density:F
+ const/high16 v6, 0x3fc0

div-float/2addr v5, v6

@@ -637,7 +637,7 @@

int-to-float v5, v5

- iget v6, v3, Landroid/util/DisplayMetrics;->density:F
+ const/high16 v6, 0x4000

div-float/2addr v5, v6
[Android Apps and Games] XlAfbk:
going to test it now with gapps-jb-20120726-eos-signed GSF and my own Phonesky

edit: actually not a lot of testing required there: it fails right after the first boot. So that patch still requires GSF. Back to the old solution for me.
[Android Apps and Games] Tsjoklat:
Thanks for testing
[Android Apps and Games] Fnorder:
Odd, might be a new check in vending/gsf for JB. What DPI are you faking?

The above patch was tested with GB (unmodded GSF) and is faking 240. Cleared GSF data prior to boot.
[Android Apps and Games] XlAfbk:
real dpi is 241, market dpi 320. the apk is exactly the same on Android 2.x and 4.x, so shouldn't be an issue there.

if you send me your apk i'll give it another try, just in case something was borked with my edit (based it on my already modded 3.7.15) though I don't think so.
[Android Apps and Games] Kurre:
I'm using this one: http://xdaforums.com/showthread.php?p=29401924 posted by XlAfbk, so kudos to him :)

You can use that one with modded 3.7.15 play store also.

I'm currently using this combination without any problems (no compatible, installation or purchasing problems). :)
[Android Apps and Games] PedroBustamonte:
Hi XlAfbk,

I tried your zip but it did not really work. (I tried it with cache + dalvik wipe. Before that I deleted all Updates of Play Store)

It's supposed to work with jelly bean, right?
[Android Apps and Games] XlAfbk:
It works fine with GNexus stock JB and CM10. Also got reports about it working fine with other AOSP-based ROMs on other phones. Did you clear the markets cache?
[Android Apps and Games] PedroBustamonte:
I'm running on CM10 as well but certainly on Nexus S. May that be the problem?
[Android Apps and Games] XlAfbk:
shouldn't be, the software side is all the same. Only HAL, RIL, ... are different but those never intaract with Market
[Android Apps and Games] PMGRANDS:
Thanks I'll try this out...
[Android Apps and Games] xeigen:
Who is this L.D.B? Does he/she has a thread for this? :)
[Android Apps and Games] Tsjoklat:
In order to create the "no restrictions" patch, I pulled the changes from a "Mod" version of the Android Market that was posted in various forums by decompiling it and comparing it to the original. In that thread, "L.D.B" was the name mentioned. So, I thought I would just do the same and give the original poster a mention. :-)

The version I posted just has an additional patch to stop it from downloading and attempting to apply updates to itself.
[Android Apps and Games] Hammerfest:
Right, so tell me if im off base here:

I am looking for Android Market (not Google Play Sex Store) version 3.4.7 with the following:

Update Disabled

DPI Hack (I dont always use the standard/set DPI's)

Country Hack (should be self explanatory)

Device Restriction Hack

Is this my magical unicorn?

Or is this not the droids I am looking for...