yashsingh1/xdaforums huggingface dataset:
[Nook HD, HD+ Android Development] fanoush:
combined tabletui with OpenPDroid

Here is tabletUI patch combined with OpenPDroid if anyone is interested. Just made for myself to test what the PDroid privacy stuff is about. Seems to work fine. Settings can be managed by PDroid Manager app from Google Play store.

Download: update-cm-ovation-20130615-openpdroid-tabletUI

I used autopatcher 2.9.8 to generate this. Should work both for sd and emmc installs.
[Nook HD, HD+ Android Development] dmanlee:
I think these are issues pertaining to CM 10.1 & not tablet UI mod.

As far as automatic screen brightness, I've read that there just isn't a light sensor on the hardware in order for automatic brightness to work.

The lock screen bug seems to be pretty common occurrence in CM10.1. What I've done is disabled the lockscreen in settings (security > screenlock > none), I prefer my phone/tablets w/ no lockscreen anyways. Suffice to say, no lockscreen freezes/bugs, my nook just turns on.
[Nook HD, HD+ Android Development] champrock:
if i use multiple accounts, then the notification bar is not different for each user.

i see Gmail notifications from my account A even when i am working in account B (Account B is not configured with any Google account). i do not think this is the expected behavior as this defeats the purpose of different Android accounts/workspaces.
[Nook HD, HD+ Android Development] lancorp:
Does the "restore" file posted above undo the "update" file in case I want to get rid of the tablet UI?

Just wondering if that is the purpose.

Thanks.
[Nook HD, HD+ Android Development] ShapeShifter499:
Seeing as the EMMC version for Nook HD has no tablet ui, any plans on making this for the Nook HD?
[Nook HD, HD+ Android Development] fanoush:
I guess I may add it next time I will generate it for my HD+ (and it will include openpdroid again too, haven't seen any issues with it).

As of now there is no sdcard build of cm-10.1-20130624-UNOFFICIAL so I had no need yet. Also it looks like autopatcher has some recent changes in tabletUI patch for CM builds after 2013.06.20 (see https://github.com/mateor/auto-patcher ) so I'd like to test it first on my device before uploading it somewhere.
[Nook HD, HD+ Android Development] MadMikeSS:
I installed tablet ui after updating to cm 10.1 emmc 6/24 and got boot loop. Reinstalled 6/24 without tablet ui and working fine. Any ideas?
[Nook HD, HD+ Android Development] nhidog:
Did you install an old tablet ui? Or did you patch it yourself then install it?
[Nook HD, HD+ Android Development] nhidog:
tabletUI for cm-10.1-20130624-UNOFFICIAL-ovation-emmc.zip

Patched using auto_patcher from xboxexpert. At work haven't installed it yet, so do it at your own risk.
[Nook HD, HD+ Android Development] MadMikeSS:
I tried installing the 6/15 tablet ui with the 6/23 that was just put out. I tried your patch and it let me boot but gave me a constant "System UI has stopped" message.
[Nook HD, HD+ Android Development] nhidog:
Did you remember to install gapps after flash but before patch?
[Nook HD, HD+ Android Development] MadMikeSS:
Why do I need to install gapps? I flashed cm10.1 6/23 and my gapps work fine. Play store works. When I flashed tablet ui with 6/15 I only had to flash it after cm.
[Nook HD, HD+ Android Development] fanoush:
As I already mentioned there are some updates for tabletui patch for recent CM10.1 builds. Here is patch generated by latest (2.9.878, 2 days ago) autopatcher with latest tabletui patch. Get the	update-cm-ovation-20130624-openpdroid-tabletUI.zip one. I was hoping verygreen would update sdcard build to 0624 soon but it is still at 0615 version so I cannot test it.
[Nook HD, HD+ Android Development] MadMikeSS:
Unfortunately that patch didn't work either. "System UI has stopped" endlessly after boot. I'm not wiping and installing fresh at this point and I don't have the time to try and figure out autopatcher right now. I do appreciate the help though. You guys are great.
[Nook HD, HD+ Android Development] al mon:
Note on the Verygreen 6/29 build - the UI mod 6/23 does not work and will not boot. You get to the CM boot logo and it stays there. It never proceeds forward.
[Nook HD, HD+ Android Development] mateorod:
You guys will probably have to match the date on the tabletUI zips with the date of the build. Not always, but usually. It just depends how many changes the upstream people had to make and whether or not it affects those patches.
[Nook HD, HD+ Android Development] jamus28:
As soon as the latest tabletui autopatch works with this version, I'll upload. Right now, Caldair's patch is having issues, but apparently should be fixed soon.
[Nook HD, HD+ Android Development] fredfishstick:
So I'm running the 6-30 release and I am dieing to get tablet ui enabled. Is there anyone with the know how to do so. Seems like if I try an existing patch I will be stuck in a boot loop or get for close errors.
[Nook HD, HD+ Android Development] nhidog:
tabletUI for emmc cm-10.1-20130630-UNOFFICIAL-ovation-emmc.zip

I actually run carbon, so flash at your own risk. Using latest autopatcher 2.9.89
[Nook HD, HD+ Android Development] duck9191:
Didn't work for the 630 build. No it sure if its the new build or carbon mods.
[Nook HD, HD+ Android Development] fanoush:
The latest autopatcher tabletui patch still doesn't work. And it looks to me that it is not the tabletUI patch that is broken, it is the tablet part of SystemUI in CM source that got broken recently.

there is this big patch https://github.com/CyanogenMod/andr...mmit/a012186757fb6fe7695e0c21b79fa20cad57b2d2 adding multiuser support and maybe nobody tested it with (deprecated) tablet UI.

If you go through that patch there are quite a lot changes in systemui/statusbar/phone/PhoneStatusBar.java but very few changes in its tablet equivalent systemui/statusbar/tablet/TabletStatusBar.java

To me it looks like if someone just fixed the tablet part to compile.

Latest tablet UI patch seems to just workaround it by disabling some old previously working stuff broken by that multiuser patch (battery circle status).

Without disabling it, it crashes for me in old TabletStatusBar.java code - line 557

final CircleBattery circleBattery =
(CircleBattery) sb.findViewById(R.id.circle_battery);
mBatteryController.addStateChangedCallback(circleBattery);

which was not touched by that multiuser patch so I guess there was more stuff to fix there to get it working.

hmm, I wonder if switching off circle battery status in preferences before switching to tabletui would get things working or where it will crash next.

EDIT: hmm, after checking a history of related SustemUI files there is more stuff that went in since 0616 build (which is the last that works fine for me) so it may not be the multiuser patch at all, another is this one which added those lines that crash for me.
[Nook HD, HD+ Android Development] fredfishstick:
I'm loosing sleep over this. I'm determined to get tablet ui going on cm10.1. I had an HP touch pad and I loved tablet ui on it. Would be orgasmic to figure out how the heck to get it going on here. I'm running the update from the 30th and have tried everything.
[Nook HD, HD+ Android Development] jamus28:
Don't lose anything.

http://xdaforums.com/showthread.php?t=2154075&page=29

Try using caldairs suggestions. I don't know which cm nightly the 630 build uses but I think its 10.1.0
[Nook HD, HD+ Android Development] fanoush:
So he is simply suggesting using older tabletUI patch? That is what people tried at first before going to newer autopatcher because of crashes. Also I can see the newer code _is_ in our build as reported in my previous post. The crash while calling mBatteryController.addStateChangedCallback(circleBattery) is in recently added code.

BTW you can verify where SystemUI is crashing via adb shell and running logcat or you can put Terminal icon on the home screen and run it between clicking OK in the "systemUI crashed" dialog. It is possible to enter "su" to get root and run "logcat" while closing the dialog after each letter (you need to be quick or use two fingers :)
[Nook HD, HD+ Android Development] jamus28:
Heavy Edit: I'm not building from source with the patches, just using the autopatcher synced from the hub.

Caldair indicates that he fixed the patch for the newest cm changes. Am I wrong? Our issue is why aren't these working on verygreens build.

The latest 2013.06.22 tabletui code fails with either the 20130403 or 20130625 tabletui patches.

"failed com/android/internal/policy/impl/PhoneWindowManager.smali in android.policy.jar cannot be remedied"

This is about as advanced as I can go. I'll push my comfort zone, but Fanoush maybe you can discuss this with verygreen in pm, find out his modifications from stock cm10.1
[Nook HD, HD+ Android Development] jamus28:
EDIT: to fix this, rollback cygwin's "patch" version

This is where I have no idea what I'm doing or talking about (just a dude with cygwin, not a coder), but maybe it'll be helpful:

So I pulled up the PhoneWindowManager.smali from an older working build of verygreens rom and from the newest build to compare.

The tabletUI patch is trying to mod this section:

https://github.com/mateor/auto-patc...tabletUI/4.2/cm/20130625/android.policy.patch

I can't tell why it would be failing. The code in that section looks the same for both builds and the patch. Only the line numbers are different...

The patch references the lines "@@ -14449,17 +14449,13 @@" , but in my weak knowledge, I have no idea how to translate this hunk data into line numbers in notepad++
[Nook HD, HD+ Android Development] fanoush:
I am quite happy with 0616 build + tabletui now so I am not exactly in a hurry to have it fixed.

I used like 5 latest versions of autopatcher including very latest from git tree. The patches apply fine for me, it is just that the result will crash SystemUI. Once I have more time I will check again where it crashes with various parts of tabletUI patch added/removed so I know better how it works.

To me it looks like there may be no easy fix to patch in via autopatcher right now because current CM tree itself may be broken in tablet ui parts of the code. I think it is better to keep tabletui autopatcher patches minimal so it just enables hidden tablet mode and leave rest to original CM source. So the best IMO is to contact CM developers like the maniac103 guy who made latest changes so they can fix it. And the best would be to tell him where exactly his changes broke tablet parts of the code because I guess they really don't care much about that outdated and deprecated tablet interface now :) In fact I wonder when they will simply remove it altogether instead of leaving it unused and bitrotting in CM tree.
[Nook HD, HD+ Android Development] xboxexpert:
The only reason I'm not updating this thread is for the simple fact that I do not have the deice any longer. So If I produce a patch that breaks stuff I can not test or try to resolve. There for I will not be updating this thread further.
[Nook HD, HD+ Android Development] fredfishstick:
Is the 6-16 build fully functional? Seems like only minor tweaks have been made since its release. If that is the case I'm going to go back to the 6-15 build and install the tablet ui patch that works.
[Nook HD, HD+ Android Development] jamus28:
Edit: Nope it didn't work.
[Nook HD, HD+ Android Development] fredfishstick:
So I flash the 7-3 zip and then flash the attached tablet ui zip and I'm good to go? There is a light at the end of the tunnel.
[Nook HD, HD+ Android Development] jamus28:
I'm trying to test it atm, but you can let me know if it works.
[Nook HD, HD+ Android Development] fredfishstick:
I'm trying now as well. Fingers crossed......
[Nook HD, HD+ Android Development] jamus28:
Nope still not farther than fanoush. Crashing system ui. I'm really having trouble getting a logcat in this situation.

My initial issue was I had to rollback the cygwin "patch" package version.
[Nook HD, HD+ Android Development] jamus28:
SUCCESS!

I edited some small values in PhoneStatusBar and TabletStatusBar patch hunks. I have tabletui running on 7/3.

Here yall go.

since xbox is gone, should make a new thread?
[Nook HD, HD+ Android Development] fanoush:
Cool, thanks. So what did you change exactly?
[Nook HD, HD+ Android Development] jamus28:
I noticed caldair in the github was frequently changing hex values to keep up.

https://github.com/mateor/auto-patcher/commit/c51126d2da020dc11ca45bf40e56cf8ef6bb6b55

I compared those values with the decompiled systemui.apk and made them match. I also made a small matching change in the 2nd hunk:

.line 647

:goto_2ea

but since that's not updated, it probably doesn't matter.
[Nook HD, HD+ Android Development] fredfishstick:
OK so I wiped everything installed 7/3 ROM, then newest tablet ui, then gapps through cwm. Stuck at boot animation. If I flash just ROM and gapps it boots. What am I doing wrong. I've tried different SD cards and multiple downloads. Does it have something to do with the apk.patch file?

All the files including tablet ui .zip say they install.
[Nook HD, HD+ Android Development] fredfishstick:
Ahhhhh still can't seem to get it. I let it sit at boot animation for close to 10 mins. Any ideas?
[Nook HD, HD+ Android Development] jamus28:
The patches don't quite work if you flash them directly after the rom without rebooting. Do a full boot into the normal cm10.1, then back to recovery.
[Nook HD, HD+ Android Development] fredfishstick:
Jumping up and down:) :) trying it now. Thank you soooo much.

---------- Post added at 08:12 PM ---------- Previous post was at 07:56 PM ----------

Yay its up an running. Thank you for your hard work. I'm loving tablet ui. Now how to fix the battery percentage.......
[Nook HD, HD+ Android Development] Darrian:
I flashed this on the 7/4 build, seems to be stable. Prob would have been better to wait for a newer fix, but by the time that happens there'll prob be a newer build out. I just hid the battery status and am running Battery Widget Reborn, which puts a notification in the status bar anyway.
[Nook HD, HD+ Android Development] fanoush:
I have updated the tabletui + openpdroid patch for 7/4. Should work for both sd and emmc installs.

The battery percentage does not work because is is removed on purpose by tabletUI patch (it crashes systemUI when present)
[Nook HD, HD+ Android Development] Darrian:
I love the tablet UI and the "phablet" UI irritates the hell out of me. However, I cannot figure out how to enable USB host mode in tablet UI. Anybody know where the setting is?
[Nook HD, HD+ Android Development] Caldair:
Since this is one of the most active tabletUI threads I thought I'd tip you guys off. I just pushed updates to the CM tabletUI patches that fix the Circle Batteries:

Hopefully it works for your devices as well!:fingers-crossed:
[Nook HD, HD+ Android Development] jamus28:
Wow the big man himself is here. Thanks for the fix and all you're hard work. I'll try it out.

I don't know if you've read the previous page, but our systemUI has slightly different hex values that require the patches to be modified. The patcher would work fine, but the log would show ignored hunks. The rom would boot to a constantly crashing systemui.apk

e.g. for TabletStatusBar.smali

I had to change:

invoke-virtual {v3, v1}, Lcom/android/systemui/statusbar/policy/BatteryController;->addIconView(Landroid/widget/ImageView;)V

- .line 555

- const v1, 0x7f090062

to

.line 555

- const v1, 0x7f090063

That small change fixed the crashing systemUI.apk. + another 2 changes under PhoneStatusBar.smali, but it looks like you left that part of out of the latest update. I'll report back.
[Nook HD, HD+ Android Development] Caldair:
First off, LOL at big man!:laugh: but thank you!

The issue may have to do with when your builder synced his CM repo, or they may have cherry picked something from another source that pushes the values up.

If your most recent build is not in line with the latest official CM source there may be another such stumbling block(or 2) in the new parts of the patch as well.
[Nook HD, HD+ Android Development] jamus28:
And here it is. circle percentage works. I still had to make the single change from 0x7f090062 to 0x7f090063

Oh and whether its our builder's changes again or a resolution issue, the "percentage" battery option has never worked with TabletUI. It just shows a small battery and an empty space for the number. No biggie.
[Nook HD, HD+ Android Development] Caldair:
Sweet!:highfive: Nice work.

I know about the battery with percentage thing too. In fact, I use that one as my battery indicator.;) I like how it is a taller icon giving the fill scale more definition, and how when I expand the notification shade it shows me the numerical percentage there. It just happened this way, but I like it. Just lucky, I guess.:p

And I couldn't resist so I downloaded the latest build for your device and ripped into SystemUI.apk. The differing value you are seeing is caused by the addition of the "USB host" quick settings tile that has been added to this rom. When its various attributes are declared in public.xml it bumps all the other values that follow them, up by one (or 2). That is what is causing the different hex value that you have to change. Too bad, I guess, that you don't even get to reap the benefits of the quick settings tiles once you activate tabletUI.
[Nook HD, HD+ Android Development] stephencwl:
What will happen with portrait orientation with this mod installed?
[Nook HD, HD+ Android Development] al mon:
Do not flash the 7/6 version on the 7/8 of Verygreen's ROM. It will never boot.
[Nook HD, HD+ Android Development] MadMikeSS:
Tablet ui gave me endless spinning boot logo with 7/10 also.
[Nook HD, HD+ Android Development] jamus28:
Someone else should make the next one, I won't have my computer with me for a few days. Just make the change I noted above.
[Nook HD, HD+ Android Development] fanoush:
I have uploaded tabletui+openpdroid zips for 0710. I see one SystemUI crash after each boot but then it works. In system log I see that method TabletStatusBar.userSwitched() tries to call unknown method BatteryController.updateSettings(). See line 1626.

EDIT: removed the updateSettings call and now it does not crash anymore, reuploading fixed 0710 zips.
[Nook HD, HD+ Android Development] al mon:
The flash files posted do not flash properly. Seems to be corrupted. You get a dead droid image with red exclamation.
[Nook HD, HD+ Android Development] fanoush:
sorry, seems to be crappy hosting, just tried twice to download and once it got interrupted in the middle so I got half of the file, just make sure it downloads completely, the -tabletUI.zip should be >9MB, the tabletUI-openpdroid.zip should be >14MB
[Nook HD, HD+ Android Development] al mon:
Tried again. Files are fine. Thanks!
[Nook HD, HD+ Android Development] fanoush:
Wow, verygreen is quick, uploaded also tabletui for 07/12. Not flashed myself yet but should work.
[Nook HD, HD+ Android Development] antihero11:
you're really quick too !

you're really quick too !
[Nook HD, HD+ Android Development] stephencwl:
The TabletUI is great. But the quick setting panel is gone once modded. Any idea how to kick it back?
[Nook HD, HD+ Android Development] chinodude:
Fanoush. Thank you for the update
[Nook HD, HD+ Android Development] anqi2000:
Is there any "general" tabletui package that I can flash every time a new cm10 build comes out so I dont have to wait for?
[Nook HD, HD+ Android Development] fanoush:
no, but there is autopatcher that generates it for you. It basically decompiles parts of your rom back to source code and inserts hooks to tabletui functionality in few places and recompiles it back and produces update package with changed system files inside. There is no general way to do it, you run it with specific ROM file.

BTW, flashing older version of tabletui update to newer rom means you basically replace most of core android functionality with older version so it is better to just flash complete older rom matching tabletui package version than trying newer rom with older tabletui package. There are very few cases where it would make sense to combine it (like newer rom that only fixes something in linux kernel or device drivers and keeps the rest same - not very likely), mostly it is bad idea and may not boot at all. Also flashing the restore package does the same (=replaces old changed files by old original files) so no point in using it with different ROM version to undo the patch when things break, things will stay broken after restore.
[Nook HD, HD+ Android Development] anqi2000:
Thanks. That's a very comprehensive answer. I guess I just have to wait for new packages coming out:)
[Nook HD, HD+ Android Development] gidal:
Like the tabletUI very much - Thanks.

But how do I change USB mode from normal to host and vice versa.

Its no longer available via quick setting option?
[Nook HD, HD+ Android Development] fanoush:
verygreen also made standalone USBHostSwitcher.apk app for this, get it from

http://nook.rootshell.ru/hd/

Yes quick settings are not available, it is probably still there, just waiting for you to open it, but the top statusbar is not there to click it :) I wonder if some button added to bottom tablet statusbar could be easily made to open it.
[Nook HD, HD+ Android Development] gidal:
Thanks - grabbing the switcher apk now.

I really get to appreciate Host mode after I played around with DSLR controller.
[Nook HD, HD+ Android Development] fanoush:
update for 07/19 ROM, not tested as I'm still on 07/10

HD+

update-cm-ovation-20130719-tabletUI.zip - 9.44 MB

restore-cm-ovation-20130719.zip - 9.61 MB

HD

update-cm-hummingbird-20130719-tabletUI.zip - 9.43 MB

restore-cm-hummingbird-20130719.zip - 9.60 MB
[Nook HD, HD+ Android Development] chinodude:
Thank you Fanoush, you're the man!!!
[Nook HD, HD+ Android Development] lentm:
07/19 version for HD+ doesn't work. am I the only one?
[Nook HD, HD+ Android Development] foxalot:
Same here, buttons totally disappeared. Luckily the restore zip did its job just fine.
[Nook HD, HD+ Android Development] MadMikeSS:
Worked fine for me.
[Nook HD, HD+ Android Development] foxalot:
I stand corrected. Gave it another shot and it worked fine.
[Nook HD, HD+ Android Development] lentm:
Does that mean I have to flash it two times?

edit: funny. I flashed two times in a row. and worked.
[Nook HD, HD+ Android Development] MadMikeSS:
Shouldn't have to. I only installed mine once.
[Nook HD, HD+ Android Development] Onageric:
The Finishing Touch

This is the polish, the finishing touch to the HD+. My 7" Nook Tablet looks and works great w/ stock CM10.x but on this larger 9" HD+ there is so much empty wasted space. The AOSP leaves the top status bar so tiny its almost useless. This Tablet UI is a must have. It has not cause any problems or stability issues since I have loaded it.
[Nook HD, HD+ Android Development] colema19:
So this has to be re-built for each release of CM?

I didn't want to try applying the older version to the fresh 8/1 build yet.

Thank you!
[Nook HD, HD+ Android Development] Fornowagain:
+1, any updates?
[Nook HD, HD+ Android Development] infra_red_dude:
I built tabletUI mod using 8/1 build but autopatcher says no 8/1 tabletUI available and instead pulls 7/31. The resulting .zip flashed through CWM causes Nook HD+ to bootloop.

Anyone successful building tabletUI patch for 8/1 build yet?
[Nook HD, HD+ Android Development] jamus28:
You gotta make the auto patch edits mentioned a few pages ago.
[Nook HD, HD+ Android Development] dvschnk:
I also attempted to make a patch with auto patcher, but failed. I read through pretty much every page of this thread and I have a few questions:

I know edits need to be made to autopatcher...I edited the script so that it would work with any setup not just emmc. But since i'm trying to patch bokbokan's 8/1 build, i know that i need to edit some things in systemUI.

Jamus, you mentioned

What changes did you make for PhoneStatusBar.smali?

And fanoush also mentioned:

Do you also do this Jamus?

It would be nice to have all the mods needed for the general tabletUI autopatcher to work in one post. I know if people started to check other options in autopatcher...things could be different.