[SOLVED] Edit Navigation Bar

Moderators: mdrjr, odroid

[SOLVED] Edit Navigation Bar

Unread postby Cesar Angel Fuoco » Fri Sep 30, 2016 4:51 am

Hi there,

I want to hide the volume up/down from navigation bar.

Do I have to rebuild some module from AOSP framework?

I am working w/ C1+ Android 5.1.1 v1.2
Attachments
navigation bar.JPG
(26.42 KiB) Downloaded 832 times
Cesar Angel Fuoco
 
Posts: 34
Joined: Thu Oct 22, 2015 3:20 am
languages_spoken: english
ODROIDs: ODROID C1+

Re: Edit Navigation Bar

Unread postby Luke.go » Fri Sep 30, 2016 9:24 am

Hi there!
If you want to hide volume button, you have to rebuild SystemUI framework.

Here are hints:
System UI path from odroid-C1+ aosp - ~/frameworks/base/packages/SystemUI/
And some point - <SystemUI path> /layout-sw600dp/navigation_bar.xml, <SystemUI path>/src/com/android/systemui/statusbar/phone/NavigationBarVieww.jara

Fix some source code lines and compile it, Its makes hide volume key.

I hope it help you!
Luke.go
 
Posts: 244
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english

Re: Edit Navigation Bar

Unread postby Cesar Angel Fuoco » Sat Oct 01, 2016 4:41 am

Oh I see! So first step is to download android sources, edit navigation_bar.xml and NavigationBarView.java as you mentioned.

Doing the following take too much time in my computer, think i am doing something wrong...

$ repo init -u https://github.com/hardkernel/android.git -b s805_5.1.1_master
$ repo sync

Do you know how to clone android sources for 5.1.1_v1.2 ?
Cesar Angel Fuoco
 
Posts: 34
Joined: Thu Oct 22, 2015 3:20 am
languages_spoken: english
ODROIDs: ODROID C1+

Re: Edit Navigation Bar

Unread postby Luke.go » Tue Oct 04, 2016 9:24 am

You are not wrong!
That commands spend many time.
Android source code take almost 100GB and compile time is very long (In my system, it spend 1 hour)
Because, the repository have the all of android source code.
Please be patient for download.
Luke.go
 
Posts: 244
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english

Re: Edit Navigation Bar

Unread postby Cesar Angel Fuoco » Fri Oct 07, 2016 7:14 am

Finally I have aosp in my hands.

What I did: a partial compilation for SystemUI

$ source build/envsetup.sh
$ lunch odroidc-eng
$ mmm frameworks/base/packages/SystemUI/

This is the output after partial compilation

Install: out/target/product/odroidc/data/app/SystemUITests/SystemUITests.apk
make: Leaving directory `/home/aosp'
#### make completed successfully (01:20 (mm:ss)) ####

Then I send SystemUITests.apk to the android path /system/priv-app/SystemUI but without glory.... When I reboot I lost navigation bar :(
Cesar Angel Fuoco
 
Posts: 34
Joined: Thu Oct 22, 2015 3:20 am
languages_spoken: english
ODROIDs: ODROID C1+

Re: Edit Navigation Bar

Unread postby Luke.go » Fri Oct 07, 2016 9:28 am

Can I see your result screen? and can you try reboot again?
because, systemUI could be looked wrong, sometimes.
Luke.go
 
Posts: 244
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english

Re: Edit Navigation Bar

Unread postby Cesar Angel Fuoco » Sat Oct 08, 2016 2:43 am

Yes of course,

I reboot couple of times.

I have saved the original SystemUI so I could restore it without problem.
Attachments
navigation_bar2.jpg
(116.05 KiB) Downloaded 765 times
Cesar Angel Fuoco
 
Posts: 34
Joined: Thu Oct 22, 2015 3:20 am
languages_spoken: english
ODROIDs: ODROID C1+

Re: Edit Navigation Bar

Unread postby Luke.go » Mon Oct 10, 2016 5:31 pm

I made some patch. you can apply it by "git am" command on frameworks/base/packages/SystemUI
volume_patch.tar
(10 KiB) Downloaded 89 times

Here is screenshot that be applied.
screen.png
(335.4 KiB) Downloaded 729 times
Luke.go
 
Posts: 244
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english

Re: Edit Navigation Bar

Unread postby Cesar Angel Fuoco » Fri Oct 14, 2016 1:48 am

Solved! :D

I opened your path file, and figured out that I was doing the same changes on sources.

It worked when I made a full compilation.
Cesar Angel Fuoco
 
Posts: 34
Joined: Thu Oct 22, 2015 3:20 am
languages_spoken: english
ODROIDs: ODROID C1+

Re: [SOLVED] Edit Navigation Bar

Unread postby poptmartone » Tue Nov 15, 2016 5:10 pm

Hi everyone, any chance to resize tha navigation bar?
poptmartone
 
Posts: 52
Joined: Wed Aug 03, 2016 10:39 pm
languages_spoken: english italian
ODROIDs: ODROID C2

Re: [SOLVED] Edit Navigation Bar

Unread postby Cesar Angel Fuoco » Thu Nov 17, 2016 3:17 am

Here you can find some guide to change sizes
viewtopic.php?f=113&t=16860&view=unread
Cesar Angel Fuoco
 
Posts: 34
Joined: Thu Oct 22, 2015 3:20 am
languages_spoken: english
ODROIDs: ODROID C1+

Re: [SOLVED] Edit Navigation Bar

Unread postby Alexus1211 » Mon Sep 24, 2018 2:33 am

@Luke.go
is it possible to share your patch again?
thx
Alexus1211
 
Posts: 2
Joined: Thu Sep 20, 2018 9:53 pm
languages_spoken: english
ODROIDs: odroid-c2

Re: [SOLVED] Edit Navigation Bar

Unread postby Luke.go » Thu Sep 27, 2018 11:25 am

@Alexus1211
Hi Alexus1211!
Unfortunately, I lost patch file. :cry: It was too long ago.
So I remake the patch based on it. :)

-> https://github.com/codewalkerster/andro ... e1f8c34116

Please apply the patch by using the commands 'git am' at the frameworks/base.

And, please let me know the result. :)
Attachments
volume_patch.zip
(1.99 KiB) Downloaded 8 times
Luke.go
 
Posts: 244
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english

Re: [SOLVED] Edit Navigation Bar

Unread postby Alexus1211 » Thu Oct 11, 2018 10:46 pm

@Luke.go
Hi Luke,

sorry for late reply. Your patch works fine. Thanks for the feedback.
Cheers
Alexus1211
 
Posts: 2
Joined: Thu Sep 20, 2018 9:53 pm
languages_spoken: english
ODROIDs: odroid-c2


Return to Android

Who is online

Users browsing this forum: No registered users and 1 guest