Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Blindfold_NL
Old
#31  
Junior Member
Thanks Meter 1
Posts: 8
Join Date: Jan 2012
Location: Nieuwegein
Thanks. This finally solved having to switch to 240 every time I wanted to install an incompatible app.
 
cole2kb
Old
#32  
Junior Member
Thanks Meter 1
Posts: 5
Join Date: Apr 2011
I would also like to throw in a request as to how this is done exactly. I want to write a guide for my phone on another forum on changing LCD Density, as there are quite a few users discouraging others from doing so due to the issues with the Play Store.

Semi-related, can I mirror your files on my post and give you credit, or would you like me to link straight back to this thread?
 
syl0n
Old
#33  
Senior Member
Thanks Meter 25
Posts: 342
Join Date: Nov 2010
Doesn't work on CM7. After flashing this I lost my market app and had to re-flash gapps.
Dropbox 2GB Free storage referral: http://db.tt/YE8R2qk
 
Blindfold_NL
Old
(Last edited by Blindfold_NL; 6th June 2012 at 09:13 PM.)
#34  
Junior Member
Thanks Meter 1
Posts: 8
Join Date: Jan 2012
Location: Nieuwegein
Plagueboy,

I never got the CWM package working, but replacing the files worked perfectly.

Have you ever contacted ROM creators to see if they want to include your changed market files in their ROM's?

Because it's great we can fix the problem with your files, but it would be even better if this fix would be default in all ROM's so we don't have to update the market files after each update.
 
PlagueBoy
Old
#35  
Junior Member - OP
Thanks Meter 83
Posts: 28
Join Date: Nov 2007
Quote:
Originally Posted by cole2kb View Post
I would also like to throw in a request as to how this is done exactly. I want to write a guide for my phone on another forum on changing LCD Density, as there are quite a few users discouraging others from doing so due to the issues with the Play Store.

Semi-related, can I mirror your files on my post and give you credit, or would you like me to link straight back to this thread?
You can mirror them, if you haven't already. Sorry for the delay in response I have been away for work for over a month and running short on time.

Quote:
Originally Posted by Blindfold_NL View Post
Plagueboy,

I never got the CWM package working, but replacing the files worked perfectly.

Have you ever contacted ROM creators to see if they want to include your changed market files in their ROM's?

Because it's great we can fix the problem with your files, but it would be even better if this fix would be default in all ROM's so we don't have to update the market files after each update.
I haven't really reached out to any of the ROM developers... I guess I just never thought of it since it doesn't seem like a very large portion of the community actually changes DPI. Also, there seem to be a lot of options for getting around the Google Play issues when DPI is changed, so it just seemed to fit better as a mod in my mind. Glad I was able to help you though.
The Following User Says Thank You to PlagueBoy For This Useful Post: [ Click to Expand ]
 
Yank555
Old
#36  
Yank555's Avatar
Senior Member
Thanks Meter 5892
Posts: 4,769
Join Date: Sep 2009
Quote:
Originally Posted by PlagueBoy View Post
You can mirror them, if you haven't already. Sorry for the delay in response I have been away for work for over a month and running short on time.

I haven't really reached out to any of the ROM developers... I guess I just never thought of it since it doesn't seem like a very large portion of the community actually changes DPI. Also, there seem to be a lot of options for getting around the Google Play issues when DPI is changed, so it just seemed to fit better as a mod in my mind. Glad I was able to help you though.
Any chance to get to know how you need to mod both files ? I'd really like to be able to do it in case of a Play Store update that breaks this mod

And you're not around to help us out immediately You know patience is a virtue so little of us have

JP.
SGS3 GT-I9300
Samsung SDXC 64Gb FAT32 / PhilZ Touch 5.03.7 / SlimBean 5
Yank555.lu CM10.1 kernel v1.6a-beta2 (3.0.79) @0.2-1.6GHz / 240dpi

My latests kernels : CM-AOSP-AOKP v1.6 (3.0.78) for i9300 & v1.5m (3.0.77) for i9305 / SGS3-U10 v3.4 (3.0.78) for i9300 & v3.3k (3.0.77) for i9305

Hardswap mods : SGS3 / Sensation / HD2

HTC Sensation XE & HD2
TF300TG 32Gb
 
Porkchops
Old
#37  
Member
Thanks Meter 5
Posts: 34
Join Date: Oct 2011
Location: Saskatchewan
Default anyone else lose their purchase apps?

I was able to just manually replace the files and it's working great, with one exception: Any apps that I had previously purchased but didn't have installed aren't showing up as having been purchased anymore... Just wondering if anyone else has had this issue or if anyone knows if there's a fix for this? I just copied the files over, set the permissions and cleared data on the Google Play through Manage Applications. Running 4.0.3 ICS...
 
Yank555
Old
#38  
Yank555's Avatar
Senior Member
Thanks Meter 5892
Posts: 4,769
Join Date: Sep 2009
Quote:
Originally Posted by Porkchops View Post
I was able to just manually replace the files and it's working great, with one exception: Any apps that I had previously purchased but didn't have installed aren't showing up as having been purchased anymore... Just wondering if anyone else has had this issue or if anyone knows if there's a fix for this? I just copied the files over, set the permissions and cleared data on the Google Play through Manage Applications. Running 4.0.3 ICS...
All show for me...

Sent from my Virtuous Inquisition 4.0.2 / Yank555.lu kernel v1.1 (based on faux 007u r2) powered htc Sensation XE using xda premium
SGS3 GT-I9300
Samsung SDXC 64Gb FAT32 / PhilZ Touch 5.03.7 / SlimBean 5
Yank555.lu CM10.1 kernel v1.6a-beta2 (3.0.79) @0.2-1.6GHz / 240dpi

My latests kernels : CM-AOSP-AOKP v1.6 (3.0.78) for i9300 & v1.5m (3.0.77) for i9305 / SGS3-U10 v3.4 (3.0.78) for i9300 & v3.3k (3.0.77) for i9305

Hardswap mods : SGS3 / Sensation / HD2

HTC Sensation XE & HD2
TF300TG 32Gb
 
jairmoreno
Old
#39  
jairmoreno's Avatar
Member
Thanks Meter 5
Posts: 75
Join Date: Jan 2007
Location: Bogota
Hi men, I have been using your mod by 3 days and this is my findings.

1. I cannot purchase any app from my phone because always I'm getting an error in the process.
2. It seems that your googleframework mod breaks some authentication betweet google and other apps. (I'm talking about tasks, that when it request google auth to have my tasks it couldn't resolve it).
 
Blindfold_NL
Old
#40  
Junior Member
Thanks Meter 1
Posts: 8
Join Date: Jan 2012
Location: Nieuwegein
I don't know if this is the same way Plagueboy does it, but I found a guide for this. This still refers to Vending.apk, which has been replaced by Phonesky.apk if I'm not mistaken, but for the people who want to try it out themselves:

Quote:
Originally Posted by guidefix-google-play-store-dpi/

here is a guide on how to fix Google Play Store to stop showing the compatibility error when using different screen density than the stock ones.

so you need to edit 2 apk's:

GoogleServicesFramework.apk

Vending.apk

let's start with GoogleServicesFramework.apk

first thing you need to do is to decompile it using apktool

apktool d GoogleServicesFramework.apk

now open

/GoogleServicesFramework/smali/com/google/android/gsf/checkin/CheckinRequestBuilder.smali

with notepad++ or whatever you favorite editor is.

search for the following line

iget v3, v0, Landroid/util/DisplayMetrics;->densityDpi:I

and replace it with

const/16 v3, 0xf0

now instead of requesting current screens DPI density, it will use the hardcoded value of 240 DPI (f0 in hex).

save the changes and you can recompile the application.

now decompile Vending.apk

open /Vending/smali/com/google/android/finsky/api/model/Document.smali

search for

.method public isAvailable(Lcom/google/android/finsky/api/model/DfeToc;Lcom/google/android/finsky/library/LibraryZ

delete the entire method and replace it with

.method public isAvailable(Lcom/google/android/finsky/api/model/DfeToc;Lcom/google/android/finsky/library/LibraryZ

.locals 10

.parameter "dfeToc"

.parameter "library"

.prologue

const/4 v0, 0x1

return v0

.end method

save the changes

open /Vending/smali/com/google/android/finsky/utils/DeviceConfigurationHelper.smali

search for

iget v0, v12, Landroid/util/DisplayMetrics;->densityDpi:I

and replace it with

const/16 v0, 0xf0

save the changes

open /Vending/smali/com/google/android/finsky/api/DfeApiContext.smali

search for

.method private getSmallestScreenWidthDp(Landroid/content/ContextLjava/lang/String;

delete the entire method and replace it with

.method private getSmallestScreenWidthDp(Landroid/content/ContextLjava/lang/String;
.locals 8
.parameter "context"
.prologue
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v5
invoke-virtual {v5}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v3
.local v3, metrics:Landroid/util/DisplayMetrics;
iget v5, v3, Landroid/util/DisplayMetrics;->widthPixels:I
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
.local v4, widthDp:I
iget v5, v3, Landroid/util/DisplayMetrics;->heightPixels:I
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
.local v2, heightDp:I
invoke-static {v4, v2}, Ljava/lang/Math;->min(II)I
move-result v5
sput v5, Lcom/google/android/finsky/api/DfeApiContext;->sCachedSmallestScreenWidthDp:I
.end local v2 #heightDp:I
.end local v3 #metrics:Landroid/util/DisplayMetrics;
.end local v4 #widthDp:I
invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v5
return-object v5
.end method

save and your done. you can recompile the application
Unfortunately I cannot paste links yet to properly link to the source of this guide, but I claim no credit for this. I just found it.

The Following User Says Thank You to Blindfold_NL For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...