yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] Ferrari328:
I have the 4.2 Tablet UI installed on the nexus 7. The nexus thinks it's running 4.2 with kernel 3.1.10 and I keep getting the 4.2 update downloaded and when I try to install it I ends up with a dead robot so I have to reboot and it comes up with the Tablet UI still installed. This time I tried to reinstall stock 4.2 ui before applying the update but again ended up with a dead robot and I have no clue where to go now. I have also modified the local.prop to change the dpi.
[Nexus 7 Android Development] jamesst20:
The OTA Update package verify for every single files if it has been modified so it wont work in your case ;) You need to install the full update available here https://developers.google.com/android/nexus/images?hl=fr
[Nexus 7 Android Development] Kodiack99:
Thanks worked perfect on stock 4.2.1 in my car install.
[Nexus 7 Android Development] eak1080:
The OP explains the two files needed to be modified. The 4.2.1 patches linked a few pages back work on stock and custom roms based from the stock images.

They currently do not work on CM 10.1 due to different code in the source trees before the rom is compiled. When you compile the CM rom from source a bunch of files are compiled together giving you the .jar files found under framework. Similar edits would need to be coded into CM source, compiled and then the two files could be removed from the .zip and made flashable.

Once i get my build machine back up and running i will attempt this.
[Nexus 7 Android Development] jamesst20:
I usually use Smali to edit the 2 needed files for rom, that way it takes 5 minutes :)
[Nexus 7 Android Development] Ferrari328:
This seems strange to me me. Does everyone who uses the patch reflash their rom after every update to have the latest rom version?
[Nexus 7 Android Development] opz187:
Will this work on cm10.1?
[Nexus 7 Android Development] KidCarter93:
Read the post 3 posts above yours.
[Nexus 7 Android Development] opz187:
Well smoothrom is cm10.1 and has tablet ui. I'm fairly sure the dev just used this patch, and maybe edited whatever he needed to edit to get it working. So its definitely possible. I just want to have the patch on cm10.1 because smoothrom doesn't get updated that often
[Nexus 7 Android Development] Osiris19:
Is there anyway to revert it? I wanna try it and see if I like it.
[Nexus 7 Android Development] lnfound:
As with anything,just make a nandroid.
[Nexus 7 Android Development] Osiris19:
I flashed it over CleanROM and it got stuck in a boot loop.
[Nexus 7 Android Development] opz187:
Is this patch just for stock 4.2.1? Or can it be used on aosp based ROMs? I tried both the odexed and deodexed (just for the hell of it) on eos4 and the codefire x build, but they didn't work. Would be so kick a$s if this got updated to cm10.1. I saw that you have to get you're CPU back in working condition, so good luck!
[Nexus 7 Android Development] Vlad9ck:
Any suggestions how to make it work on 160dpi? In 213dpi YouTube app miss out of screen :(
[Nexus 7 Android Development] jimmycrackcorn1:
Dang, was just about to try this with the codefire x build.

Good luck with the box!
[Nexus 7 Android Development] jmdearras:
Tried this on my stock N7 4.2.1, and it just messed up my stock launcher. Element of phone and tablet mixed and the page too large to show all the icons on the display.

Back to stock. :(
[Nexus 7 Android Development] KidCarter93:
Then just use a custom launcher like ADW. That's what I've done and it all looks fine.
[Nexus 7 Android Development] bsoplinger:
I'm using Apex Launcher Pro and I'm getting the same odd issues mentioned by others on this thread. Is anyone else seeing the same thing?

Sent from my Nexus 7 using Xparent Purple Tapatalk 2
[Nexus 7 Android Development] KidCarter93:
Trying setting Apex to tablet UI in the settings. It should sort it out.
[Nexus 7 Android Development] bsoplinger:
Thanks but setting it that way only helps in that it will at least allow some widget placement but it still won't interact with those widgets. If it wasn't for the default setting for double tap to bring up the Apex settings menu I'd be completely stuck. I gave up for now and dropped back to the stock settings. I'll keep an eye on the thread to see if anyone has a fix.

Sent from my Nexus 7 using Xparent Purple Tapatalk 2
[Nexus 7 Android Development] jmdearras:
I prefer the stock launcher, I'll wait or do without.

Jim
[Nexus 7 Android Development] andTab:
+1

Cm10.1 is total crap without tablet ui.

Please make a new fix.

And **** Google for dropping tablet ui!!!!!!
[Nexus 7 Android Development] K0v4L:
Zip for stock odexed 4.2.1 works great for me, however I found two or three apps incompatible in Google Play.
[Nexus 7 Android Development] Postmonkeh:
i've used nova launcher without any issues in 4.2 & 4.21 (except the standard one where the google now button still appears in the middle)

if you like the stock launcher, nova launcher can easily be set up to behave exactly like the stock launcher anyway.
[Nexus 7 Android Development] andTab:
any update for getting this to work with CM10.1?
[Nexus 7 Android Development] scott7044:
Have you tried this, http://xdaforums.com/showthread.php?t=1899024 , it is a CM10.1 kang with tablet ui. I have been using it since 12/15 with no issues.
[Nexus 7 Android Development] opz187:
Or use sgt7. My personal fav
[Nexus 7 Android Development] rbarcenaslp:
Tried flashing this on the cm10 nightly builds ROM official and put my nexus 7 in a bootloop..luckily I made a nandroid before so I'm fine now...just got my nexus 7 but familiar with all the flashing anyone known why it did this?

Flashed this ROM

http://xdaforums.com/showthread.php?t=2050821
[Nexus 7 Android Development] jamesst20:
The build you flashed isn't compatible with the build you were using
[Nexus 7 Android Development] 1pop23:
Is the odexed version safe to flash on 4.2.1?
[Nexus 7 Android Development] slumpz:
I'm trying to achieve this by doing binary patch to android.policy.jar and services.jar on my tablet (not a Nexus 7). Can someone wisely show me how to do it?
[Nexus 7 Android Development] azoller1:
Do I edit the same files on cm10.1?

From My Fusioned LG Spectrum Tapatalk Style
[Nexus 7 Android Development] AAccount:
Tried that yesterday. Check or all the error messages I got.
[Nexus 7 Android Development] azoller1:
Oh, maybe z1gackgly knows

From My Fusioned LG Spectrum Tapatalk Style
[Nexus 7 Android Development] AAccount:
I got a bit more success. I swapped out the file: frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java for the one in the CM10 sources and changed line 198

statusBarManager.collapse();

to

statusBarManager.collapsePanels();

However, the toggles are not customizable. You can try and change them in system settings but they won't change. I suspect another cm10 file needs to be copied in somewhere.
[Nexus 7 Android Development] azoller1:
Yeah did you try the services jar file yet? For swapping?
[Nexus 7 Android Development] AAccount:
I did the 2 modifications shown for android.policy jar and services.jar on top the one i just mentioned above.

------------------Added-----------------

I edited the cm10.1 source and recompiled the 2 jars and SyatemUI.apk to produce the screenshot i posted above.

Sent from my GT-I9300
[Nexus 7 Android Development] ronedogg:
can you please re-post.

Thank you
[Nexus 7 Android Development] Duvuk:
Hi guys, this looks great. I just have one question:

My build number is JOP40D - will this still work?
[Nexus 7 Android Development] norcal61:
Will this work with the latest AOKP? If not is there a patch that will? Thanks.
[Nexus 7 Android Development] DaveConnor:
Got the same question,,,will it work on stock 4.2.1 (deodexed)??
[Nexus 7 Android Development] mwalt2:
Does it force tablet ui in settings, gmail portrait, etc. or does it just add the combined nav./notification bar? It looks promising. Also, will you be pushing your changes to github so that others can use them? Thanks for your work.
[Nexus 7 Android Development] barrmulio:
is the same git as post #44
[Nexus 7 Android Development] Mutilatory:
I'd love to have a hybrid UI where its the current one in portrait and the normal tablet ui in landscape.
[Nexus 7 Android Development] DroidHam:
again, how did you get your power control widget in the middle of the page?
[Nexus 7 Android Development] barrmulio:
not relevant to this thread...

but just add as widget, press+hold and resize to spread across
[Nexus 7 Android Development] ragnarokx:
Full tablet UI at 213 DPI might be a little cramped in menus/apps. Just a combined status bar would be awesome though.
[Nexus 7 Android Development] neilrl79:
No, I think it will fit perfectly.
[Nexus 7 Android Development] ragnarokx:
Words are already getting cut off at 175 DPI:

Sent from my Nexus 7
[Nexus 7 Android Development] Saint Wacko:
No, no, your N7 just came with Bluetoot instead of Bluetooth! Lucky you!
[Nexus 7 Android Development] neilrl79:
Maybe you have a different idea of what tablet ui is supposed to be but, to me it is optimized for landscape viewing.
[Nexus 7 Android Development] ragnarokx:
I'm all for optimizing landscape, but I'd still want portrait to be usable.

Sent from my Nexus 7
[Nexus 7 Android Development] ice0901:
Team EOS added the tablet status bar in there most recent update
[Nexus 7 Android Development] neilrl79:
Yeah, they have tablet stausbar but unfortunately it is not tablet ui. Settings menu for example is still single pane and the stock launcher is still portrait only. It's a step in the right direction but, imo, it could be better with FULL tablet ui.
[Nexus 7 Android Development] espionage724:
It isn't unheard of for Market App incompatibilities to arise after you change the screen DPI.
[Nexus 7 Android Development] player911:
How well does the keyboard work with this change? Typically the stock keyboard gets screwy in different modes.
[Nexus 7 Android Development] spiff72:
You just took the words right out of my mouth. I was just going to post a question about how this worked with alternate keyboards like SwiftKey and Thumb Keyboard. Specifically since SwiftKey has different versions on the market for phones and tablets.
[Nexus 7 Android Development] barrmulio:
tablet ui doesn't change the keyboard...if you're familiar with how it works on the larger tablets it's the same deal...

from personal experience shiftkey phone, on a tablet, isn't great in landscape unless you have ginormously long fingers..i've been too cheap to buy the tablet version at $3.99 because they discount it to $1.99 all the time...
[Nexus 7 Android Development] MWBehr:
Huh? It's based on CM and it looks pretty public to me https://github.com/paranoidandroid
[Nexus 7 Android Development] aaronpoweruser:
They have a few public repos but their framework base the repository that gas all the UI changes is not public
[Nexus 7 Android Development] aaronpoweruser:
All this is the combined status bar, this will NOT enable dual pane mode but thats my next project after I get a linero from out
[Nexus 7 Android Development] sbdags:
I tried this on stock 4.2.1 and it kind of worked. I.e., the known 'feature' of the weird icon positions and sizes plus the shrunken borders. I restored back as I didn't like what it did and didn't want to change launchers.
[Nexus 7 Android Development] norcal61:
Yea, it will work. There is a post several pages back with links for deodexed and odexed stock 4.2.1. Not sure if it will work with AOKP though
[Nexus 7 Android Development] Osiris19:
Is there anyway of getting this to work for rasbeanjelly?
[Nexus 7 Android Development] AAccount:
You may have to compile these mods from source. I think the framework and sustemui are rom specific.

Sent from my GT-I9300
[Nexus 7 Android Development] arrtoodeetoo:
This is (almost) exactly what I'm looking for.

I just flashed CM for the first time ever (Why did I wait so long?? It's great!) and I want to be able to get the tablet mode apps, but I kind of like having the notifications and stuff at the top (surprisingly so. Thought I would hate it.) The only thing I can't stand is not having the navigation buttons on the left since I use the device in landscape almost all the time.

So, is there any chance you'd make a mod that will allow the tablet versions of the apps, but keep the unified UI with the buttons pushed to the left?
[Nexus 7 Android Development] oliverano:
Try out paranoidandroid (not sure how its written), you can change for any app the ui you want, and also the system ui.

Hope i could help you :)
[Nexus 7 Android Development] mateorod:
Ok---

When this first came out, I added Tablet UI to my tool The Auto-Patcher. That is a program that will take any deodexed rom and patch in the tabletUI changes. It runs on Windows with a GUI, or Mac/Linux on the command-line.

I never added the settings toggle, but it worked for aokp, cm, aosp and more.

The tool still works fine for all 4.1.2 roms, but now I am updating it for 4.2.1. What I want to know is should I bother upgrading this mod for our 4.2 update? No one from the Nexus 7 forums ever used it for 4.1.2.

But you can add tabletUI to any deodexed rom easily, and you never have to wait for someone else to update the files. Which never works because those people get tired of it and disappear, like what happened in this thread.

Is this worth my time, or should I leave 4.2.1 tabletUI to the ParanoidAndroid guys?
[Nexus 7 Android Development] shmega:
If someone could get this patch working on cm10.1 and aosp for 4.2 then yea, I would definitely add it to the autopatcher. You have no idea how many ppl are looking for a tab ui mod for cm and others..

---------- Post added at 04:55 PM ---------- Previous post was at 04:51 PM ----------

Eos4 is what you want, it has exactly what you are talking about I.e. the status bar on top and Nav buttons on bottoms left
[Nexus 7 Android Development] arrtoodeetoo:
Thanks. I'll give it a flash. I used that ROM on my XOOM a few times and liked it. I really like CM so far, though (I can see why it's so hyped). I just wish it had the option to push the buttons to the side (I mean, it can't be that hard to implement, can it?)
[Nexus 7 Android Development] jamesst20:
Request Accepted :)

I've seen a lot of request for CM10.1 Tablet UI patch so yeah because i'm so kind, I downloaded cm-10.1-20130109-NIGHTLY-grouper.zip and applied the patch in smali code.

For those who wish to have the patched files, there they are!

Note ! These are January 09-2013 Patched files! Might work on newer build too as long as these files havn't changed!

This is not a flashable zip! You must put these files in /system/framework

Download : http://d-h.st/Pqb

Edit : There is a bug, we can't open notification center, the crash says :

java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.RelativeLayout

It is a CyanogenMod bug.

Edit 2 : Bug is comming from this commit : https://github.com/CyanogenMod/andr...mmit/809a720254b7432e3b821a55d23e57b054163fcb

DateView.java line 91

Edit 3 : Will take a look to it later sorry guys :P
[Nexus 7 Android Development] shmega:
You da man James.
[Nexus 7 Android Development] jamesst20:
No problem :D Looks fine here :D

I'm unable to open Notification Center but unsure if it is caused by the Tablet Patch, could you confirm? :)

Edit : WIll full wipe and see :)
[Nexus 7 Android Development] shmega:
Haven't flashed quite yet, waiting for it to charge up
[Nexus 7 Android Development] jamesst20:
See my post please I edited it ;) The issue is confirmed and I wont be working on it today, school tomorow so got to go sleep but I might take a look to it later but it would require me a lot more time because I need to build CM10.1 from sources to fix ;)
[Nexus 7 Android Development] azoller1:
I was also trying to edit the files but I'm not as smart as you:p, thanks so much I'm going to add this to my ROM if ya don't mind
[Nexus 7 Android Development] shmega:
OK I'll hold off on flashing it then, thanks

---------- Post added at 12:25 AM ---------- Previous post was at 12:02 AM ----------

What ROM do you dev?
[Nexus 7 Android Development] norcal61:
Does anyone know if there is a tablet UI patch for the latest AOKP? If so where? Thanks!
[Nexus 7 Android Development] pigio76:
I have nexus 7 32gb 3g with android stock 4.2. Is the odexed version tablet ui compatible with 3g?

Inviato dal mio GT-I9100 con Tapatalk 2
[Nexus 7 Android Development] Osiris19:
Just downloaded and loaded cm10.1 last night. I'm waiting for there updated patch for this so I can test it out.
[Nexus 7 Android Development] Dsmforlife92:
Would some one willing to help with making this for the note 10.1 I'm using cm10.1 and would like to use tablet ui thanks if not no worries
[Nexus 7 Android Development] diegoms89:
stuck in colourfull logo after flashing...

was in 4.2.1 stock + m-kernel

is there a way to revert it? i had all back up before, so already tryed factory reset and it's not working

i don't have any room on the sd card too, so, i would love to hear some advice on how to solve this

thanks
[Nexus 7 Android Development] 1eyedmonster:
I had this problem the only way i solved this is to Flash stock recovery via nexus 7 toolkit restart boot loader enter recovery then hold down power button to switch off then press volume button down again to enter bl then flash cwm restart BL again then enter recovery and restore backup hope it works for you
[Nexus 7 Android Development] marvinj920:
Is there any possibility of getting this patch to work with DPI settings at 170 and under?

Thanks!
[Nexus 7 Android Development] core720:
4.2.1 could fix the launcher?
[Nexus 7 Android Development] fakeout:
Anyone have this for nexus 7 3g?
[Nexus 7 Android Development] jamesst20:
Use patched files from my ROM 'SmoothROM' or use it ;)

- framework/services.jar

- framework/android.policy.jar

- app/SystemUI.apk

Envoyé depuis mon Nexus 7 avec Tapatalk
[Nexus 7 Android Development] cdesai:
Quick ugly fix:

https://github.com/sgt7/android_fra...d/systemui/statusbar/policy/DateView.java#L88
[Nexus 7 Android Development] powerpoint45:
So just comment this out

/*@Override

protected void onDraw(Canvas canvas) {

if (mParent == null) {

mParent = (RelativeLayout) getParent();

mParent.setOnClickListener(this);

mParent.setOnLongClickListener(this);

}

super.onDraw(canvas);

}*/

Will pulup status bar still work though? What exactly is this doing? Is it removing date view?
[Nexus 7 Android Development] nenadr:
TabletUI for Nexus7 3G 4.2.1 stock odexed

Are there flashable zips for Nexus7 3G 4.2.1 stock odexed roms ?
[Nexus 7 Android Development] powerpoint45:
Re: [PATCH] True Tablet UI (Apps+GUI) w/o DPI Change for Stock & CM10 - Update Oct11

How I made My CM10.1 ROM Tablet UI? Look here:

------------------------------------FILE------------------------------------------------------------ESTIMATED LINE NUMBER
frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java #1269-1287
frameworks/base/services/java/com/android/server/wm/WindowsManagerService.java #6839
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavbarEditor.java #179
packages/apps/Settings/src/com/android/settings/Utils.java #653
frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java #1132
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java #88

Screenshots:
[Nexus 7 Android Development] Jdgp42:
I will love to integrate TabletUI on Galaxy Tab 2 CM10.1 any tutorial?

I have been trying with Auto-Patcher but tabletUI patch is not yet ready for 4.2.1
[Nexus 7 Android Development] powerpoint45:
Re: [PATCH] True Tablet UI (Apps+GUI) w/o DPI Change for Stock & CM10 - Update Oct11

You a ROM builder?
[Nexus 7 Android Development] Jdgp42:
You can guess im not because im asking :( , but I learn fast. Its very complicated?
[Nexus 7 Android Development] powerpoint45:
Re: [PATCH] True Tablet UI (Apps+GUI) w/o DPI Change for Stock & CM10 - Update Oct11

I suggest you set up build environment first then I can help
[Nexus 7 Android Development] Jdgp42:
I will, let me install ubuntu and set everything up and PM you ok?
[Nexus 7 Android Development] powerpoint45:
Re: [PATCH] True Tablet UI (Apps+GUI) w/o DPI Change for Stock & CM10 - Update Oct11

Ok
[Nexus 7 Android Development] powerpoint45:
Re: [PATCH] True Tablet UI (Apps+GUI) w/o DPI Change for Stock & CM10 - Update Oct11

Thought I'd link my kf2 tabui ROM

http://xdaforums.com/showthread.php?t=2105077
[Nexus 7 Android Development] Eef:
Thanks for this but what I dont understand is how to edit this in smali. Because .java is not editable?
[Nexus 7 Android Development] powerpoint45:
Re: [PATCH] True Tablet UI (Apps+GUI) w/o DPI Change for Stock & CM10 - Update Oct11

This is from ROM source
[Nexus 7 Android Development] Eef:
rgr, I have just download the files from your rom and decompiled them and compared them and changed mine. Works perfectly.

many thanks!
[Nexus 7 Android Development] powerpoint45:
Re: [PATCH] True Tablet UI (Apps+GUI) w/o DPI Change for Stock & CM10 - Update Oct11

Oh wow! Smart! Good job!
[Nexus 7 Android Development] mustbepbs:
Re: [PATCH] True Tablet UI (Apps+GUI) w/o DPI Change for Stock & CM10 - Update Oct11

Soo.. Does this work with 4.2.1 JOP40D stock? Unsure by OP as it shows old build.
[Nexus 7 Android Development] kingofcomedy:
Yes, it does.
[Nexus 7 Android Development] liebowa:
Disregard - All set now.

I'm trying to follow along with you guys, but I'm running into a problem that I'm hoping you can help with.

I've downloaded your ROM, and I've using dex2jar. But, I'm receiving an error:

>d2j-dex2jar.bat classes.dex
dex2jar classes.dex -> classes-dex2jar.jar
[B]Error:Landroid/net/VpnService;.protect(I)Z->null[/B]
Detail Error Information in File classes-error.zip
Please report this file to [url]http://code.google.com/p/dex2jar/issues/entry[/url] if possible.

Any ideas?
[Nexus 7 Android Development] bennettg:
When you metioned that this works with 4.2.1 JOP40D stock....did you mean the flashable zip in the original post? i want to get this to work on cleanrom 3.0 inheritance http://xdaforums.com/showthread.php?t=2092489

thank you.
[Nexus 7 Android Development] sbdags:
I couldn't get it to work as it was made for 4.1.2 not 4.2.1 unless something has been changed?
[Nexus 7 Android Development] kingofcomedy:
No, I mean the flashable zip from this post as it was updated for 4.2.1 JOP40D.

http://xdaforums.com/showthread.php?p=35054154#post35054154

Edit: 4.2.1-TabletUI.zip is working fine on my 4.2.1 Stock.
[Nexus 7 Android Development] sbdags:
Working without messing up the dpi on the stock launcher? Last time I tried those zips on 4.2.1 I ended up in bootloop city.
[Nexus 7 Android Development] kingofcomedy:
My build.prop and dpi-value are untouched and it is working with stock launcher and nova too.
[Nexus 7 Android Development] Jim Omar:
How to uninstall ?
[Nexus 7 Android Development] Nico_60:
Re: [PATCH] True Tablet UI (Apps+GUI) w/o DPI Change for Stock & CM10 - Update Oct11

Try to reflash your rom or a backup if you have one

Phone: GT-I9100P

Kernel: Dorimanx

ROM: 4.2.1 Vanilla RootBox

Tablet: Nexus 7

Kernel: M-Kernel

ROM: 4.2.1 AOKP PUB

MOD: JusTunBean