yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] tsruggles:
Help me out folks. I'm a noob and I'm not smart enough to be scared. I'm rooted with stock JRO03D. I really want to try this. I'm sick of my oversized phone. I can get around ok by flashing in CWM. So, in lay terms can someone give me a simple guide to getting this patch up and running? I think I get it but I want to be sure.

Is it as simple as this?

-Flash "flashable" deodexer without any wiping or formatting on top of my stock JRO03D build.

-Flash the patch.

Also, can someone link to the test build from molesarecoming?
[Nexus 7 Android Development] barrmulio:
1. install CWM

2. download the deoxder and alpha2

3. reboot to recovery - a)turn off device b) hold down vol and press power to turn on c) press vol down when you see the android until it says recovery d) press power again

[alternatively download rom manager fro market, which lets you flash CWM from there and has a 'reboot to recovery option']

4. go to backup and make a backup

4b. go to restore and make sure your back is there :)

5. go to install from zip and install the deodexer zip (should be in sdcard/download)

6. go back to install from zip and install alpha2 (should be in sdcard/download)

7. reboot

paranoid android thread
[Nexus 7 Android Development] ragnarokx:
Does that mean this mod will no longer be worked on?
[Nexus 7 Android Development] donwhall70:
Call me stupid but what is PA?
[Nexus 7 Android Development] scooter217:
Lol I was wondering the same thing.
[Nexus 7 Android Development] donwhall70:
Think they are talking about ParanoidAndroid
[Nexus 7 Android Development] barrmulio:
I'm still dev'ing, unless folks lose interest and i can add more value elsewhere

i spent a very long time trying to find an alternative way that might not trigger the dropbox issue with no success..

it wasn't all for naught as i have a much better understand of the massive kludge that this code is (there is so much redundancy)

i'm thinking i may have to carry that over as i fix the launcher and work on menu and possibly a portrait/landscape hybrid mode

i did notice that PA has a 'smaller' tablet view - narrower notification and shorter navbar... any interest in that?
[Nexus 7 Android Development] NYConex:
i rooted my nexus just for this and its amazing. im using apex launcher and have no issues (that im aware of) so far. at first the navbar was a little big to me but i got over it and now think it looks great.
[Nexus 7 Android Development] PhilDX:
i haven't tried PA, but i definitely prefer your mod over the other existing mod (setting LCD density = 160) specifically because your mod does not shrink the navbar (and everything else on the screen). both my aging eyes and my fat fingers very much prefer the size of the navbar in your mod, and i'm pretty sure i'm not the only one. if you do choose to shrink things in the future, perhaps you could still give us the option for a larger size too...
[Nexus 7 Android Development] Zico 10:
Very nice work, mate.
[Nexus 7 Android Development] kssood:
awesome work man ! but can u tell me which smali,xml get affected...i mean when u unzip a rom! what apk or jar to decompile and after that which one in particular.

i dont have any system to do it from the source so can u help?

edit: i decompiled the android.policy.jar and opened the phonewindowmanager.smali but no such code there.so can u explain a thing that way.thanks.

greets! :D
[Nexus 7 Android Development] lekofraggle:
I just want to thank you for this. I got it up and running with cm10 on ky nook color. I hardcoded your changes into my build and it worked perfectly.

~Leko

Sent from my NookColor using Xparent Cyan Tapatalk 2
[Nexus 7 Android Development] SS2006:
barmullio, not sure if someone mentioned this yet; and this could be a fault from Google but here is my observation

1) App drawer is SLOW to rotate, it takes like 6 seconds; but when in the desktop, it rotates instantly and smoothly (anyone else?)

2) Why is there 4 icons in in a row portrait mode, while in phablet mode it was 5; this is purely GOogle but I wish it could be changed
[Nexus 7 Android Development] barrmulio:
It's all in the op - I didn't do it in smali but in the pre-build java files and then compiled them in - you should be able to find the functions and possibly these variables by viewing the smali in jd-gui or similar tool

android.policy.jar - PhoneWindowManager.java (and thus smali) is one part, where I hardcode mHasSystemNavBar = true; and mNavigationBarCanMove = false;

Second part is services.jar - WindowManagerService.java, where I hardcoded outConfig.smallestScreenWidthDp=720 in the computeSizeRangesAndScreenLayout function

if this still doesn't help pm me and i'll run a diff on the smalis
[Nexus 7 Android Development] barrmulio:
thanks - good to know and appreciate you testing and posting

it should be universal, as long as the build has the sw720 folders in systemui and framework
[Nexus 7 Android Development] barrmulio:
1) i noticed this too - you turn, it goes black, and then shows up after a few seconds...not sure what needs to be fixed yet

2) i do plan on improving my patched launcher for 5 or 6 rows, plus reducing the margins on the main launcher panes
[Nexus 7 Android Development] SS2006:
awesome; if its any consolation, even on a stock nexus 7 ; if you change in build prop: rotation = true

it starts rotating, but it still has the lag (unresponsiveness, black screen) found here

so its definitely a google limitation, that hopefully can be fixed by you great coders
[Nexus 7 Android Development] tsruggles:
How can I fix this overcrowding issue?
[Nexus 7 Android Development] barrmulio:
since you asked how *you* can fix it :) it's a matter of changing the dimens xml values in the Launcher apk

edit: turns out you need to edit workspace.java too

but i'm working on that now, i have the 5 pane app drawer done and just tweaking the workspace to find something that works well
[Nexus 7 Android Development] tsruggles:
Yeah, I meant how do YOU fix this. I'm just an electrician. :p
[Nexus 7 Android Development] nize2beme:
seen this? :

https://github.com/sgt7/android_frameworks_base/commit/fdb427ef62a366809e41054868ce27f2dfca322e
[Nexus 7 Android Development] barrmulio:
ok launcher is re-patched -

5 pane in app drawer

icons on workspace: not perfect (i can't get edge-to-edge) but this maximizes the available real estate and decreases some of the cramped view in both portrait and landscape

soak test download: mirror 1 mirror 2 see update w/faster rotation speed in post 346 below

it's a system app, so boot to recovery, adb rm the old one from /system/app and adb push this version

once i get some feedback i'll upload into alpha3

note - be very very careful using this with 3rd party roms like sgt7 because they compile their own launchers..this isn't needed for roms like jr6 that don't use the stock launcher

screens:

see update w/faster rotation speed in post 346 below
[Nexus 7 Android Development] tsruggles:
I'll be right on this......as soon as its in a flashable format. I'm a dummy and I have no idea what all that abb pushy stuff is.
[Nexus 7 Android Development] ejchis:
I've spent the last several days trying every rom and combination out there, working on finding the best way to use this tablet. The best approach I've found is to wipe everything clean and flash, in this order, Pure AOSP, gapps, supersu, and this patch in one recovery session, then boot and install everything fresh from the market. I am running sko smoothly right now, and everything feels great. Thank you.
[Nexus 7 Android Development] barrmulio:
I can probably package all that in one zip in the next release

I do have a rom that's exactly that,but until I either have a toggle or fix the dropbox bug I don't think i want to release it
[Nexus 7 Android Development] ejchis:
Well, that would be pretty awesome of you. 100% pure, unadulterated android with a tablet ui is all I want on this thing.
[Nexus 7 Android Development] imritechere:
Thanks

Thanks for your hard work I'm using Alpha 2 on JR6 w/ Motley Kernel and no problems to report ! Been running several days! Looking forward to the latest Alpha!
[Nexus 7 Android Development] barrmulio:
i found some explanation why the stock launcher rotation is so slow

// Determines how long to wait after a rotation before restoring the screen orientation to
// match the sensor state.
private final int mRestoreScreenOrientationDelay = 500;

I changed it to 100, it's faster for the app workspace, and the drawer is moderately faster too

I deleted the links above for an updated launcher, please use the ones below

Edit: wrong launcher updated will fix in the am
[Nexus 7 Android Development] barrmulio:
unreleated note to launcher, but for the folks on jr6

has anyone seen a guide or aosp git for extended power menu that *does not* involve smali edits but java source edits?

(i know cm git has their extended menu, but hoping for aosp or source code), if not i'll try to adapt the one from fuzion24

all the guides, like djmcnz, seem to be based on smali which will be a PITA to integrate
[Nexus 7 Android Development] PhilDX:
is it just me or is the effective screen area (indicated by the outline box when you move icons around) larger than the actual screen? icons I put at the edge of the screen (top/bottom/side) are partly off the viewable screen. this is on JRO03D.
[Nexus 7 Android Development] barrmulio:
EDIT: I uploaded the wrong launcher (stock without the previous fixes), my apologies, will fix links tomm morning

EDIT 2: links this afternoon, i incorrectly merged to my git and lost all the changes i had made to launcher2

FIXED & IMPROVED - see post 346 below

------

If you already wrote over it, just flash alpha 2 again
[Nexus 7 Android Development] jozkam:
Ran the update on mine with the TabletUIN7a2 zip file and at the moment, for the last 10 minutes it is showing the x logo just flashing away and nothing is happening.

I used the ROM as suggested in the first post, any ideas?
[Nexus 7 Android Development] barrmulio:
i need a logcat - see my sig

you are on stock rom and ran the deodexer , right? if you did, try clearing cache and dalvik

other than that i need to see the logcat
[Nexus 7 Android Development] aaronpoweruser:
Got revert?
[Nexus 7 Android Development] barrmulio:
lol well the changes were local, so i pushed them trying to maintain them, and i pushed the wrong thing

It's not really a backup unless you follow the 3 Copy Rule...sadly i didn't

i'm back at where i was last night, but i'm really trying to figure out how to increase these workspaces
[Nexus 7 Android Development] bovineyard:
Does anyone know if this patch will work on the new AOKP rom that's out for the nexus 7?
[Nexus 7 Android Development] barrmulio:
ok sorry everyone, but here's the new Launcher

I was able to squeeze even more space out of the workspace and drawer so hopefully the wait was worth it because now it's full size. I also added some speed enhancements, but it's just a slow app.

It's set for 7x6 in the workspace, and 5x7 in the drawer (i think that's a little denser than stock, but looked good IMO)

after test reviews come in i'll post into alpha 3

apk download - alpha3 released, see op

new screenshots

I won't do variants of the launcher, if you want a special X-by-Y version, decompile the apk with apktool; open dimens.xml in the res/values-sw720 and look for for <!-- Workspace cell size --> near the bottom

Edit the cell_width and cell_height and you'll get more icons; and be sure to edit both the _land and _port otherwise stuff will disappear when you rotate
[Nexus 7 Android Development] barrmulio:
try it and let me know :), but in the past services.jar between aosp, cm, and aokp have never played nice with each other
[Nexus 7 Android Development] tsruggles:
How can I install this launcher? Getting message that it is already installed, and yes, I don't know anything.
[Nexus 7 Android Development] barrmulio:
well (a) learn to adb or (b) through root browser lite / root explorer

but since i think you'll need a flashable zip:

please please please please please please please please please please please make a backup

and then flash this in CWM or TWRP: alpha3 released, see op

(link will be taken down tomorrow when I upload a proper alpha3 after testing)
[Nexus 7 Android Development] bwassef:
what does applying this patch do to the hotseat? is the hotseat something that is for the phablet UI only?
[Nexus 7 Android Development] barrmulio:
correct - hotseat is phone or phablet only - this mod does away with it
[Nexus 7 Android Development] Mischaseb:
the latest launcher you posted is working well for me, although some widgets overlap other widgets and/or app icons only when in portrait view. I've just left a space between them to solve this though.

On a related note, is there any way of having the lock screen rotate to landscape view?
[Nexus 7 Android Development] barrmulio:
ok - i'll look into that after adding in the toggle

i'll add in lock screen rotation to alpha3
[Nexus 7 Android Development] imritechere:
Alpha3_Beta.zip

I just flashed the alpha 3 _ beta zip, i forgot to wipe though no problems to report, every thing looks excellent. Greetings from Texas and Thanks for your hard work!
[Nexus 7 Android Development] barrmulio:
ok i shouldn't have committed so soon, i have 8 different apktool versions (including 4.9 released 3 days ago) and i can't get framework-res to decompile/recompile properly (stock size is ~8.9M and after using apktool it's down to 5.4M and triggers a systemUI bootloop)

so if anyone has a working apktool or has been able to decompile/recompile apktool and boot, please let me know
[Nexus 7 Android Development] bovineyard:
No, it doesn't work on AOKP, had to do a nandroid restore. :confused:
[Nexus 7 Android Development] mwalt2:
I've had good luck using the version linked below. I don't remember who modified it, but it works better for aosp ics/jb than ibotpeaches' versions (for me anyway).

http://db.tt/YaxjEKSX
[Nexus 7 Android Development] barrmulio:
thanks mwalt, i'll try that one too

hyperrunner (of glazed rom fame) was able to get me a working patch, so it'll be in alpha3

thanks to mattmanwrx as well for trying to help
[Nexus 7 Android Development] barrmulio:
aokp is probably last on my to-do list because it's a pita to build right now...depending on where cm is i'll have that updated first

i'll be surprised if aokp/cm dont implement this natively given how much customization they do have :)
[Nexus 7 Android Development] thephased:
Is it safe now to try and flash this patch zip on a CM10 N7 rom?

I realize it was made for AOSP JRO03D stock rom only, but someone posted earlier that it worked for their Fire CM10.

I'm kind of hesitant to change the build prop dpi setting myself as this patch seems like a much better solution.
[Nexus 7 Android Development] PhilDX:
alpha 3 beta in post #346 is a winner!

home screen spacing is good, app drawer spacing is good, and app drawer rotation lag (which is google's fault) is reduced. thanks!
[Nexus 7 Android Development] barrmulio:
let me build a backout solution for you (a flash zip that will restore the backed up files) just in case

since this now impacts framework-res, i'm pretty worried about it working on cm10 - if you guys already have lockscreen rotation then it's not needed anyways
[Nexus 7 Android Development] snipestech:
Love this mode

Any fix for market?

Keep getting app not compatible with your device

I'm able to side load but it's a pain
[Nexus 7 Android Development] barrmulio:
which app?
[Nexus 7 Android Development] snipestech:
Many I just tried evernote

And getting that error.
[Nexus 7 Android Development] ejchis:
I haven't encountered the error. Evernote is on my device, installed from Play Store.
[Nexus 7 Android Development] barrmulio:
thanks, i just installed evernote without a problem - are you on stock rom?

i'm assuming all the other apps work without this mod too?

try this: go to settings, apps, swipe to all column, select gmail and clear *data*

go back, select google play store, and clear *data*

after a lot of flashing i've had the play store get corrupted on me many times (wont install free apps) until i clear all that data
[Nexus 7 Android Development] snipestech:
Stock rom custom kernel tried wiping Gmail Google play didn't work
[Nexus 7 Android Development] barrmulio:
what other apps? just saying 'many' isn't helpful if others aren't having the issue

you didn't answer whether they were all compatible prior to the mod, but including your custom kernel
[Nexus 7 Android Development] Mischaseb:
Many thanks for the lockscreen rotation!
[Nexus 7 Android Development] snipestech:
Prior to the mod I had the same issue never mind

Thanks for your assistance I am going to flash another rom
[Nexus 7 Android Development] ejchis:
If I don't use the stock launcher, and I already have rotating lockscreen (Pure AOSP), will upgrading from A2 to A3 impact/benefit me in any way?
[Nexus 7 Android Development] barrmulio:
no
[Nexus 7 Android Development] lukers:
I'm on 4.1.1 rooted stock rom and stock launcher and I flashed zip file two times and I have message that launcher stop working. What I'm doing wrong?
[Nexus 7 Android Development] barrmulio:
deodexed?
[Nexus 7 Android Development] hoosbude:
Working fine on deodexed stock but........

Clock not displaying properly on rotated lockscreen eg: 21:17 shows as 21:1

Thanks for your efforts so far
[Nexus 7 Android Development] barrmulio:
hmm i dont have that issue, see below

can i get a screenshot?

anyone else seeing this?
[Nexus 7 Android Development] hoosbude:
sorry fixed, solution don't let others play with your settings, font size was changed!

still very slight clipping when displaying 23:53 on the last 3
[Nexus 7 Android Development] barrmulio:
I see it..easy solution, stop looking at the clock before midnight :)

I'll add to the list
[Nexus 7 Android Development] hoosbude:
Could you set up a google docs spreadsheet where we can add apps with display problems?

could make life easier! I have a small list of things that don't display properly.
[Nexus 7 Android Development] SladeNoctis:
Nice job bro, on finding out another method. I'll see if i can do this myself when i have time. but yes those complaining about market issues were using a dpi value other than 160dpi. That sadly was my fault since i didn't offer a fix for the market since 175dpi seem more natural on the N7 screen but just simply changing the dpi to 160dpi and using bigger fonts is a good temp tablet ui until we have a full fledged rom using patches like the OP made.
[Nexus 7 Android Development] aaronpoweruser:
You either need to deobex the rom or re flash the whole rom when you test
[Nexus 7 Android Development] Luxferro:
I'm not too sure how it's done for the Galaxy Nexus ROM PARANOIDANDROID, but maybe 'molesarecoming' can help you? http://xdaforums.com/showthread.php?t=1619582
[Nexus 7 Android Development] barrmulio:
i actually mistyped and i was building full_grouper-user so it would be odexed

nonetheless, you're right, it'll be easier just deodexing the whole thing, so let me go ahead with that first
[Nexus 7 Android Development] mwalt2:
Good luck. I know there hasn't been an easy solution on the Galaxy Nexus to just get tablet ui with the stock dpi. In addition to the paranoid android roms, there is a ROM with the combined nav/notification bar called 'salad bar' and rob43 has put his changes on github that you could look through (thread here. It doesn't change everything to tablet ui though, which would be more the goal here. Good luck.
[Nexus 7 Android Development] philwaud:
Please disregard my following muppet remark!

You're thinking too much!

How about just an option in settings?

Phil
[Nexus 7 Android Development] aaronpoweruser:
String HasNavBar = SystemProperties.get("ro.kang.nav_bar");

String NavBarCanMove = SystemProperties.get("ro.kang.nav_bar_can_move");

if(HasNavbar){

mHasSystemNavBar = true;

} else {

mHasSystemNavBar = false;

}

if(NavBarCanMove) {

mNavigationBarCanMove = true;

} else {

mNavigationBarCanMove = false;

}

how does that sound compiling now to test, if it works i can write up a quick app later today to modify the flags in the build prop
[Nexus 7 Android Development] kind3rgarten:
wat.
[Nexus 7 Android Development] aaronpoweruser:
Why no one tell me to cast to into oh well insomnia for the win
[Nexus 7 Android Development] Saint Wacko:
Looking forward to this. Tablet UI would be nice, but I'd really like to leave the DPI settings along.
[Nexus 7 Android Development] aaronpoweruser:
Working on it, the build prop way wasn't working(booted but systemUI crashed) so im trying to just force tablet ui mode only, Im about 10 builds deep im trying.
[Nexus 7 Android Development] Metallice:
What we really need is a paranoid android port. That would be optimal.
[Nexus 7 Android Development] aaronpoweruser:
Their source isnt public(Apache license ) so, there is no way to build with their tree
[Nexus 7 Android Development] philwaud:
There now follows a silly comment, please disregard and I will try harder next time...

<begin muppet remark>

As in:

Display mode

- phone UI

- phablet UI

- tablet UI

Just tick and it sets it - surely thats the way to go?

<end muppet remark>
[Nexus 7 Android Development] wildklymr:
That's pretty much what they are doing. But you can't just put a menu in settings saying:

Display mode

- phone UI

- phablet UI

- tablet UI

Without writing the appropriate code to actually make that action happen.
[Nexus 7 Android Development] anstosa:
Everything we're talking about in this thread is a prerequisite for the easy options menu you're talking about. What do you think those options do? Once there is a working method to do this at all, we can start talking about how to make it more user friendly.

Remember that you are in the development subforum.
[Nexus 7 Android Development] qoncept:
Instead of a dropdown menu with the 3 options though, doesn't it make more sense to have 2 checkboxes, mHasSystemNavBar and mNavigationBarCanMove ? We're obviously just discussing minor details that can't even be used yet, but ....
[Nexus 7 Android Development] aaronpoweruser:
Thats my goal but the code is easy just android, no liky
[Nexus 7 Android Development] SS2006:
is this looking possible anytime soon :)
[Nexus 7 Android Development] barrmulio:
depends on what your definition of 'soon' is....i can say we're getting closer

we can both boot, but it's force closing system ui, ending up with no bar at all at this point :D

looking through some solutions on the KF dev forum, it may be more than one file that needs changing
[Nexus 7 Android Development] barrmulio:
posted to OP in the second posting - haven't tried this approach before so let's see what happens
[Nexus 7 Android Development] hoosbude:
I wanted to add to this but is is set to view only :(

no hurry, I can wait, doing dpi tests on other apps whilst waiting
[Nexus 7 Android Development] jozkam:
Email app doesnt work, the Gmail app is fine though so cant setup hotmail account.

After it tries to connect to the server it states that unfortunately the app has stopped but its still running waiting for sync.
[Nexus 7 Android Development] hoosbude:
just added my hotmail account to the email app, works fine and sync'd. your problem isn't related to this patch and is probably an issue with your connection/isp
[Nexus 7 Android Development] barrmulio:
sorry about that - i think fixed - still learning google-docs

btw on hotmail - they are migrating to outlook.com - go grab a new email addy (your hotmail still works, but you can get an @outlook.com) and try out the new interface
[Nexus 7 Android Development] jozkam:
Downloaded a hotmail app and it works fine, why would it be an issue with the ISP if it was working okay before I used TrueTabletUI?
[Nexus 7 Android Development] player911:
Thanks for that. I just registered a couple new email addresses before they were taken.

I hate using my hotmail address. It gets so much spam that I ended up abandoning it but I still have to use it for the Xbox and for Windows 8 market. Hopefully I can migrate everything over and use these nice new ones.