yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] molesarecoming:
i don't think CM can hide the navigation bar (yet), so it'll be harder since you need to hack your framework. another thing is the dpi, 192 is for nexus only, other devices need individual values. the s2 for instance will kick it off around 120 which renders the poor thing useless. i don't know the galaxy player but make sure it makes sense. i once tried 160 on my s2 and it was crazy already, but 120 is madness. luckily the nexus has loads of resolution and 192 is still bearable, especially with fonts set to huge.

but if you wanna try, here you go:

tablet mode is triggered when ics registers 600 short-side device pixels, but you'll need to find or calculate the threshold for yourself. the formula in the aosp code is as follows:

int shortSizeDp = shortSize * DisplayMetrics.DENSITY_DEFAULT / DisplayMetrics.DENSITY_DEVICE;

mStatusBarCanHide = shortSizeDp < 600;

nexus default (720x1080, 720=shorter side): shortSizeDp = 720 * 160 / 320 = 360 --- smaller than 600, phone mode

tapping into tablet land via fake dpi: shortSizeDp = 720 * 160 / 192 = 600 --- 600, tablet mode

you can change the dpi in the build.prop file, or use something like lcd density modder from the market.

now once this is done ics will automatically switch and since it thinks you're running a tablet it simply doesn't expect a navigation-bar to be present. you need to hide it completely or you'll be getting system.UI crashes.

here's an article on how to hide the navigationbar: http://baroqueworksdev.blogspot.de/2012/01/navigationbar.html

you'll need to decompile your framework, change "config_showNavigationBar" in \frameworks\base\core\res\res\values - config.xml, decompile and push it over the old one.

if that's too much, delete CM and install AOKP if it's available on your device. all this stuff is part of their rom-control already and it literally takes you seconds to alternate between the two states tablet and phone without hacking or smashing something.
[Samsung Galaxy Nexus] molesarecoming:
jyabor91's already on it i think. but in the meantime, make sure your voice is heard, request a native setting that will ignore dpi changes in the apex main-thread or in their feature-request formular. :)
[Samsung Galaxy Nexus] Jayydude_SGP:
Well AOKP IS available but I don't think they've ported the softkeys. So wouldn't that mean it wouldn't work?
[Samsung Galaxy Nexus] molesarecoming:
you're right, i kept thinking in nexus terms - sorry. :o theoretically it should work simply by changing the dpi then.
[Samsung Galaxy Nexus] Rapydax:
Someone in the GP forums already ported AOKP and I believe Noisyfox or JackpotClavin have got the soft ICS buttons in the CM9. But maybe you already knew.
[Samsung Galaxy Nexus] molesarecoming:
small update, rootzwiki user faunh finally found a phone that works under 4.0.4! incomming call layout issues are gone!

i updated the first post. i tried to hack it today to blow up the layout a little but it reacts so strange, no change visible whatever i do. :mad:
[Samsung Galaxy Nexus] Jayydude_SGP:
I knew that but is it possible to use CM9 soft ICS buttons in an AOKP ROM?

---------- Post added at 02:15 PM ---------- Previous post was at 02:12 PM ----------

Okay, but I'm going through HELL trying calculate this ****. Can you help? The screen resolutions are (800x480) I've done 800 * 480 / 160 = 533.33333
[Samsung Galaxy Nexus] molesarecoming:
if im not mistaken it should be 128, or lower. 480 * 160 / 128 = 600

it should be enough to get into tablet mode (if not, go lower), navigation-bar is probably no issue because you have none anyway.

still, 128 dpi!! just sayin', buttons and texts would be so small you'd not be able to tap and read them. the only way i see for smaller devices would be lowering the actual threshold in the source itself, make 600 into something smaller. 480 for instance would do for 160 dpi, which would be bearable. it would require re-compiling ics, though.
[Samsung Galaxy Nexus] Jayydude_SGP:
Can't be 128 I'm on 129 right now. Its readable but 128 and lower is when system UI FC's...... Idk. I just tried 128 and system UI fc's. And I do have a navigation bar? Do you think that's the problem?

Sent from my Galaxy Nexus Player Tab ^_^
[Samsung Galaxy Nexus] molesarecoming:
system.ui crash is a good sign. same happens on nexus. that's why we need to hide the navigation bar. if 129 doesn't crash the calculation was probably right and your magic value is 128 indeed. please check your settings, mail client, youtube, etc. did anything change? do you see two colums? --- i guess you need to re-activate the softkeys now or it won't work. reactivating and hiding, that is.
[Samsung Galaxy Nexus] Jayydude_SGP:
When I went to the browser on some youtube tthing and switched into landscape mode I saw two columns!!! 128 is right!!! YESSS!!!! THANK YOUUU! NOW I MUST GET RID OF THIS NAVIGATION BAR AND IM GOOD!!!

[EDIT]

Well the settings wasn't in two columns. I'm going to re-activate them and see what happens. How do I hide them tho? Should I just re-flash CM9 AND DONT ACTIVE them?
[Samsung Galaxy Nexus] stacio88:
The link to the phone apk doesn't work

Edit: never mind
[Samsung Galaxy Nexus] faun_h:
That'd be me. ;)

I posted it right here in this topic too:
[Samsung Galaxy Nexus] Jayydude_SGP:
I only have play store and play music working in tablet mode. What do you think is the problem?

[EDIT] I can confirm that su is also in tablet mode:)
[Samsung Galaxy Nexus] molesarecoming:
i suggest you open up a similar topic in your device's forum and work from there. i can only guess how all this stuff comes together on a hardware-button device and im sure room cooks there will be able to help out since they had to deal with navigation-bar issues for sure in their ports. :)
[Samsung Galaxy Nexus] Jayydude_SGP:
I did just that:) but can you see if the Guy who modded apex launcher, mod it for me so it'd fit on a 129 DPI display?
[Samsung Galaxy Nexus] stacio88:
I I pushed the phone apk and it still cuts off at the bottom. 192 dpi.
[Samsung Galaxy Nexus] molesarecoming:
jay,

couldn't do it blind anyway, hacking smali was more like trial and error. i sat one night and adb-pushed countless of times to see if changes were reflected or not. you'll be better off grabbing apktool (1-2 pages before you'll find a working version), learning dalvik-opcode basics and just hack it.

what i did was:

1. find everything that contains "density" and hardcode it. you'll be looking out for displaymetrics api's. density is a float, look up the manual and calculate it. make sure you encode it properly, use an IEEE 754 converter. denditydpi is an int which can be either 160, 240 or 320. scaleddensity, same as density.

2. half of the app drawer will be wasted. i had to kill a switch somehere to help it, but i dont find it because i trashed the rewritten smali by accident and my comments are gone. i studied the original launcher2 java code to find it. not so important for now.

3. you'll get the dock back by changing launcher.xml in the res files. take the original one and copy it over the one in the dpi600 folder. port and landscape need different implementations.

4. all the relevant sizes and styles were in dpi600.

im sorry it's such a mess. a real dev would have written down the pieces of code to change but im a newb and that's all that i can offer you.
[Samsung Galaxy Nexus] molesarecoming:
yeah, that's what i meant, it behaves really strange. at some point i even deleted the apk and the phone was still running like nothing happened. it must have been cached somewhere. go to cwm and wipe all caches, normal and dalvik, then reboot and adb remount and push again. if everything works out it won't be cut and doesn't crash of course.
[Samsung Galaxy Nexus] Jayydude_SGP:
I'm a ROOKIE lol I know less than you do. I'll direct a dev to this and let him do it. Ahaha I read it but wouldn't know how to do it without a proper tutorial on YouTube or something. But thanks anyway.

Sent from my Galaxy Nexus Player Tab ^_^
[Samsung Galaxy Nexus] Medic97:
I saw that but im using b28 and that option is not there. All i was saying was i didnt hide the nav bar and i have no issues. Didnt even have a system ui crash.

---------- Post added at 08:21 PM ---------- Previous post was at 08:17 PM ----------

What does the new phone.apk fix?
[Samsung Galaxy Nexus] stacio88:
I couldn't get it to work :( deleted the app, went to recovery and deleted cache and devlink. Then adb pushed the apk. @192 dpi still get the cut off at the bottom. I'm running liquid 1.25
[Samsung Galaxy Nexus] molesarecoming:
bummer, maybe it has something to do with the rom. under aokp 28 it was fine, but then 29 came along and I had that awful cut. I assumed it must've been because of 4.0.4 but who knows, I have no idea how deep the phone is linked into the os.

one question though, the settings button, is it on the lower right or upper right?
[Samsung Galaxy Nexus] molesarecoming:
the incoming call screen was cut in half, the little receive knob Sat way down there on the lower boundary of the display, it's action seats left and right were trimmed visually. well at least under aokp b29 it looks good again.
[Samsung Galaxy Nexus] irishrally:
Pretty sweet. Can we make the folders stack etc. larger too like the icons? Also, an update to Apex v1.0.3.
[Samsung Galaxy Nexus] Medic97:
Thanx for the response I'm still on b28 waiting for the kinks to be worked out before I jump. I'll have to look and see if it's an issue here otherwise I'll just leave it "don't fix what ain't broke" right.
[Samsung Galaxy Nexus] kin24173493:
Where can I find the wallpaper that shown in post 1?
[Samsung Galaxy Nexus] molesarecoming:
http://xdaforums.com/showthread.php?t=1395999
[Samsung Galaxy Nexus] nacho129:
Works in Galaxy S2 Android 4.0.3?

Thanks
[Samsung Galaxy Nexus] Tyrany:
Nacho not working by now, im trying to learn how to port it, the modded windowmanagerservice.smali dont kick the phone into tablet when changing the dpi, the system ui FC and the tablet navigation bar dont show because there must be something missing
[Samsung Galaxy Nexus] sgs2arora:
What about on CM9 4.0.4? does it work. Also Tyrany thanks for your efforts on sgs2 i enjoyed the previous port.
[Samsung Galaxy Nexus] Tyrany:
Jay to make everything tablet the dpi is 120, for the navigation bar dont know now but you will get something like this without bar
[Samsung Galaxy Nexus] danial.aw:
is there a way to get just the nav button and status bar and not have to change to the tablet ui? ...
[Samsung Galaxy Nexus] florelui001p:
Does the link in the OP for the phone apk link the the 4.04 phone apk? I'm currently running android revolution but the phone crashes and does not work when i replace it :(
[Samsung Galaxy Nexus] molesarecoming:
delete caches in cwm, come back and push it over again. that phone is kinda stubborn and it'll nag you even if you delete it. what crashed is probably still the old one lurking in some cache.
[Samsung Galaxy Nexus] *MERN*:
Would an easy solution be to simply change the threshold where Android changes to tablet mode from 600 to whatever it needs to be to work with a say 241 dpi?
[Samsung Galaxy Nexus] molesarecoming:
everything i tried with apktool failed. from source it would be easy i guess. but even if it works you're left with new problems like overlapping notification symbols in the button/status-bar. it would require some rewriting to bring the curtain back to give notifications their dedicated space again.
[Samsung Galaxy Nexus] danwguy:
Please please please I am begging can someone please fix the clock for aokp b28? Every time I try to open it it force closes so my alarms don't work. I have downloaded 2 alarm apps from the market and neither of them worked. I almost got fired today for being 2 hours late 2 days in a row. I'm going to have to turn off tablet mode until it's fixed. Please fix it... please.
[Samsung Galaxy Nexus] brmayhem:
Never had this issue, ever since I used this MOD back with b27. Have you tried a wipe of any kind?
[Samsung Galaxy Nexus] danwguy:
Tried full wipe, install rom, boot, set it up, reboot to tablet and still clock force closes as soon as I press the icon
[Samsung Galaxy Nexus] brmayhem:
Are you using any themes and/or mods? (Supercharger, Blue Magic)

How about fixing permissions?
[Samsung Galaxy Nexus] danwguy:
I am using amoled theme. Not sure if that's it though
[Samsung Galaxy Nexus] molesarecoming:
newer had any issues with that, alarm rings fine. :)
[Samsung Galaxy Nexus] waxxone:
hi

is there a modified apex 1.0.4?
[Samsung Galaxy Nexus] tomyboombotz:
I feel nova launcher works better then modified apex try it guys
[Samsung Galaxy Nexus] brmayhem:
Wipe everything and before installing anything else install this MOD and check your alarm.

Worth a shot.
[Samsung Galaxy Nexus] waxxone:
hello

i got a question.

when i create a folder, it is much smaller than the normal icons, also there is no text of the icon in the folder.

is there any fix for these issues?

Gesendet von meinem Galaxy Nexus mit Tapatalk
[Samsung Galaxy Nexus] molesarecoming:
i'll fix it in the coming days using latest apex. sorry for that, i dont use folders so i didn't see it. :)
[Samsung Galaxy Nexus] Medic97:
Just change the folder setting in apex from stack to grid.
[Samsung Galaxy Nexus] tokomoto:
So tablet mode in ICS does not hide away the buttons to make use of the full screen then correct?
[Samsung Galaxy Nexus] irishrally:
... or to fan.
[Samsung Galaxy Nexus] Medic97:
If you've ever had a tab you would also notice that Netflix doesn't use the will screen it darkens the buttons but doesn't go to fill screen. it's a tab mode thing.
[Samsung Galaxy Nexus] Medic97:
Yes or that :-) I've only used grid it's more clean.
[Samsung Galaxy Nexus] skusa93:
If anyone missed it Swiftkey has a new beta that is optimized for tablets running ICS and I am using it with this mod. The new app recognizes the modified DPI and it looks pretty good on default settings but is a bit on the small side.

So what I did was go into advanced options and there is an option to set the height of the keys and on the large settings and changed the skin. There are a few skins in the default app, one being a cobalt ICS version. Now fits the phone almost perfectly, screenshot and link to the download below :D

Download thread

Attachment doesn't want to work so here is the image:
[Samsung Galaxy Nexus] molesarecoming:
yeah I tried it yesterday and it still has alot of bugs, sometimes keys block. I deinstalled it again, Swype had normal sized keys under tablet mode and I'm like a bazillion times faster I typing. :D
[Samsung Galaxy Nexus] bast-sama:
Very cool mod. I hope some day I'll see this mod on my Galaxy smtd :)

Good job
[Samsung Galaxy Nexus] aiinjylls:
Running CM9-4/4/12

I added " qemu.hw.mainkeys=1" and changed density to 192. Rebooted and now I have tablet mode :)
[Samsung Galaxy Nexus] aiinjylls:
I used the phone.apk from the first post. Is it supposed to look like that?
[Samsung Galaxy Nexus] molesarecoming:
good to know, I'll add it tomorrow! :)
[Samsung Galaxy Nexus] kjwalker:
Damn I wish devs could cook this into roms without changing dpi.
[Samsung Galaxy Nexus] kjwalker:
Also, instructions work flawlessly on LiquidSmooth

Cannot edit previous post, sorry for double.
[Samsung Galaxy Nexus] brmayhem:
No.

Delete phone apk. Clear cashes and then finally re-install apk (ADB push or move it with Root Explorer. Fixing permissions may be needed). Reboot and it should be there.

Let me know if that works.
[Samsung Galaxy Nexus] aiinjylls:
I tried deleting the phone and wiping cache, but I get the same result. Am I doing something wrong?

I start with Modding the build.prop to remove the navbar and change the density. I deleted the phone.apk, rebooted into recovery and wiped cache and dalvik. The phone then boots into tablet mode. I switched from Trebuchet to Apex and made the setting corrections. I then copy the new phone.apk to /system/app. I boot back into recovery and wipe cache, again.

Phone seems to have the bottom cut off, when receiving and incoming call. Outgoing looks fine.
[Samsung Galaxy Nexus] Tyrany:
can you explain better that qemu.hw stuff??????
[Samsung Galaxy Nexus] aiinjylls:
I'm not exactly sure. I found it browsing through forums. From what I remember, its a way to disable the navbar without modding an apk.
[Samsung Galaxy Nexus] Tyrany:
exposé tool? because im geting a little hope on this, on sgs 2 it changes to tablet view but the navbar fc so im out of ideias maybe it is the solution
[Samsung Galaxy Nexus] atomikpt:
Really great mod!

I really think its absolutly a must.. the 3 default black buttons take too much screen from the device, making it a normal 4.3' display.

Hoping that someone could make this perfect and cook it into a complete ROM.

I mean it, try it it's perfect for the Galaxy Nexus, otherwise it is a waste of a beautifull 720p display..
[Samsung Galaxy Nexus] arcadia2112:
What Did I Do Wrong

I followed all the instructions, nevertheless I cannot get the apps in landscape mode so where did I go wrong ?
[Samsung Galaxy Nexus] waxxone:
i have no dock bar/icons with nova launcher, dock settings neither.

Gesendet von meinem Galaxy Nexus mit Tapatalk
[Samsung Galaxy Nexus] aiinjylls:
Is there a way to disable the dock bar with the Op's Apex Launcher?
[Samsung Galaxy Nexus] molesarecoming:
just don't use the hack, nova, apex, trebuchet, all ics based launchers do not show that dock in tablet mode
[Samsung Galaxy Nexus] aiinjylls:
I noticed that. I just prefer the Apex drawer configuration. Nova, Trebuchet, and ADW have the shrunken app drawers
[Samsung Galaxy Nexus] :
I love this mod! Just installed it! Everything works with flying colors! I definitely recommend this!
[Samsung Galaxy Nexus] rafi300:
How's the progress coming along for the updated apex launcher hack?

Sent from my gNe-X using a Swyping thumb!
[Samsung Galaxy Nexus] molesarecoming:
sorry i didnt take the hollydays into account, today or tomorrow i mod 1.0.5 i promise. this time i'll document the steps i take so that later versions can be adapted faster. flashable zip would also be cool but for this i have to study a bit, haven't done it before. :)
[Samsung Galaxy Nexus] Upstreammiami:
Love this mod but I don't have a dock also grid size 9x8 looks better
[Samsung Galaxy Nexus] Upstreammiami:
Nvm un installed my apex and installed yours
[Samsung Galaxy Nexus] Upstreammiami:
Wish the app drawer icons were smaller
[Samsung Galaxy Nexus] molesarecoming:
guys, this might come as a surprise but i stopped fooling around with apex and started modifying nova instead - it seems to react better to tablet mode out of the box. i just felt weird to fix bugs that really shouldn't be there and most of them were already gone in nova so it makes modifying cleaner and less messy.

what you can expect:

- increased the icon size

- brought back the dock in portrait mode

- killed the unused space in the app drawer

- app folders work!

- no fixed grid, configure as you wish!

things you should do:

- install it via adb or root explorer

- wipe caches

- play with both margins in novas settings

- persistent search bar: yes

known bugs:

- in landscape mode the app titles are still cut, i need to figure it out later

https://rapidshare.com/files/3859445191/NovaLauncher_1.0.3beta2-signed.apk
[Samsung Galaxy Nexus] Upstreammiami:
sorry but apex runs better for me
[Samsung Galaxy Nexus] molesarecoming:
be more precise please,

is something wrong in the mod or is it simply because you enjoy apex more as a whole. ;)

bear in mind, hacked apex in its third installment still had alot more issues than nova which is the first hacked version ever and will be fine tuned soon. you couldn't break out of 5x4, couldn't use stacks & grids, folders were too small ... alot of people didn't like that. personally i couldn't care less if apex or nova or whatever, i just want a launcher that works in hybrid mode.
[Samsung Galaxy Nexus] Upstreammiami:
Why don't you try go launcher HD I installed it looks fine but I can't bypass a screen saying I'm using a tablet launcher install go launcher for phone
[Samsung Galaxy Nexus] molesarecoming:
because its not a holo launcher and i before i put a themed ics launcher on my poor phone i'll rather not use tablet mode, im vain in that aspect. :p hd, as i read is made for tablets, so just use it or hack it to your liking if something is off. if you want share it here, i take no credit for anything, it's more of a group project as i see it and since it get's more usefull by adding new choice even better.
[Samsung Galaxy Nexus] shadow_empire1:
is it possible, that phone.apk from op is corrupt?

when running renameapk on it I get (though unzipping is working):

ERROR getting 'android:label' attribute: attribute is not a string value

ERROR: Badly formatted apk (is it an apk?)

renameapk:

http://xdaforums.com/showthread.php?t=1330359
[Samsung Galaxy Nexus] molesarecoming:
not that i know of, im using it right now. if you can unzip it the apk which is a simple zip file it's valid. if something internal is messed up i wouldn't know since its no hack, it was taken from another batch of ics again and should be stock. faunh found it somewhere but i forgot where. i did have trouble installing it though, it gave me hell until it finally worked. i had to wipe caches and push it again, ignore the first complaint that "airplane mode" is supposedly on which it was not and then finally it worked and now pretty much flawless.
[Samsung Galaxy Nexus] Upstreammiami:
You should post some tablet apps like craigslist HD
[Samsung Galaxy Nexus] molesarecoming:
1.5

- fixed folder grid size

- fixed app drawer layout

- fixed dock divider height
[Samsung Galaxy Nexus] hoseth0711:
Should i just download nova from first post to get this.?

Sendt fra min Galaxy Nexus med Tapatalk
[Samsung Galaxy Nexus] molesarecoming:
if you're running tablet mode already, yes, get it. if not follow all the steps i outlined and don't worry it's very easy to do.
[Samsung Galaxy Nexus] hoseth0711:
I downloaded the file but there isnt any difference.. Things is still weird you know the icons is off position and so on. Thought that it was fixed with v 1.5?

Sendt fra min Galaxy Nexus med Tapatalk
[Samsung Galaxy Nexus] foxehkins:
Only the phone link works from the first post. The other two the page errors out for me.
[Samsung Galaxy Nexus] hoseth0711:
Works now. Thank you

Sendt fra min Galaxy Nexus med Tapatalk
[Samsung Galaxy Nexus] molesarecoming:
sorry my bad i was just updating the op, they should work fine now
[Samsung Galaxy Nexus] molesarecoming:
great to hear. :)
[Samsung Galaxy Nexus] molesarecoming:
last but not least here's a vague scheme with which every ICS launcher can be modyfied to fit tablet mode. i didn't line out all the little layout changes because that's pretty much just trial and error.
[Samsung Galaxy Nexus] loonsy:
Any possibility to have mirrors for this not on rapid share. Can't seem to download from rapid share for me, keep getting parameter error.
[Samsung Galaxy Nexus] Motasap17:
hello and thanks for the MOD

I am using AOKP's ROM but can not set only 180 to 192, any suggestions?

And I'm also having problems with Chrome Beta, the rest works as a tablet! 5 stars
[Samsung Galaxy Nexus] molesarecoming:
maybe youre mixing up the marked fix with the actual setting? look further, down there you'll se a setting named "Change DPI to anything you like," it has a "custom value" checker, tap it and you'll be able to type in 192---

chrome beta runs fine here, it's my everyday browser. :)
[Samsung Galaxy Nexus] molesarecoming:
later i'll do it. no time right now.
[Samsung Galaxy Nexus] Upstreammiami:
I'm using new version of apex and it works great don't have a dock but who cares lol
[Samsung Galaxy Nexus] hoseth0711:
How do you get the icons in the dock to fit so nicely as on the screenshot in first post? Mine is kind of weird

Sendt fra min Galaxy Nexus med Tapatalk
[Samsung Galaxy Nexus] loonsy:
OK. Thanks.
[Samsung Galaxy Nexus] molesarecoming:
didn't do much, it just looks that way. can you make a screenshot?
[Samsung Galaxy Nexus] molesarecoming:
you see we had that already, if you can live without dock, shrunk icons and cut drawer that's fine. the apk in the op is optional for those who can't. :)