-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DPDB JSON Entry for new devices. #162
Comments
@devasur did u find the method of calculation? It also bothers me |
cc @btco On Thu, Nov 17, 2016 at 12:17 AM Yonglin Wei [email protected]
|
I've been looking into this and think I've found the method. The 2 numbers after "dpi" are xdpi and ydpi. These are the actual precise dots per inch on the x and y axis on a devices display. You can find them for any device you have from https://play.google.com/store/apps/details?id=com.jphilli85.deviceinfo bw is bezel width. Looks like it's 3 for most latest android devices. I used this to hack a fix for the Pixel XL while waiting for the official Google dpdb to be updated. Hope it helps |
@garethwilliams |
Can someone please explain how to create a DPDB entry for a new phone? Galaxy S7, iPhone 7
@borismus
Roughly:
http://btco-code.appspot.com/debug/screen_test.html gives results
Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13F69 Safari/601.1
computed resolution: 2208 x 1242
screen.width: 414
screen.height: 736
screen.availWidth: 414
screen.availHeight: 736
window.devicePixelRatio: 3
which can be translated (some how) to dbdb entry
{
"type": "ios",
"rules": [ { "res": [ 1242, 2208 ] } ],
"dpi": [ 453.6, 458.4 ],
"bw": 4,
"ac": 1000
}
The text was updated successfully, but these errors were encountered: