[Help] Android - How to replace volume bar with percentage? - Android Q&A, Help & Troubleshooting

Hi,
I'm using Lineage OS 14.1 with microg, xposed, magisk.
I want to see volume percentage whenever volume of ringer or media or earpiece or loudspeaker is changed by volume + - buttons.
I tried find xposed modules, google etc but couldn't get any reliable solution or any hint.
Is it possible?
Please tell me.
Thanks

I think I found it in huawei/honor phones ; Tested on honor9 with oreo.
In /product/etc/prop/local.prop there is a setting
ro. config. volume_steps=
---------- Post added at 21:24 ---------- Previous post was at 21:22 ----------
You won't see volume percentage shown, but each press to a volume key will increase/decrease of only 1 percent.
---------- Post added at 21:24 ---------- Previous post was at 21:24 ----------
If setted to 100

oslo83 said:
I think I found it in huawei/honor phones ; Tested on honor9 with oreo.
In /product/etc/prop/local.prop there is a setting
ro. config. volume_steps=
---------- Post added at 21:24 ---------- Previous post was at 21:22 ----------
You won't see volume percentage shown, but each press to a volume key will increase/decrease of only 1 percent.
---------- Post added at 21:24 ---------- Previous post was at 21:24 ----------
If setted to 100
Click to expand...
Click to collapse
Thanks for the tip.
The steps can be changed, i did that using a xposed module volume+.
But I want see the volume as percentage instead of bar whenever volume +/- is pressed.

Related

[Q] can not find symbol when compiling cm 11.0

can not find symbol when compiling cm 11.0 on debian.
any help will be greatful.
Code:
packages/apps/Settings/src/com/android/settings/hardware/DisplayColor.java:109: cannot find symbol
symbol : method getDefValue()
location: class org.cyanogenmod.hardware.DisplayColorCalibration
int defaultValue = DisplayColorCalibration.getDefValue();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
tomheng said:
can not find symbol when compiling cm 11.0 on debian.
any help will be greatful.
Code:
packages/apps/Settings/src/com/android/settings/hardware/DisplayColor.java:109: cannot find symbol
symbol : method getDefValue()
location: class org.cyanogenmod.hardware.DisplayColorCalibration
int defaultValue = DisplayColorCalibration.getDefValue();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Click to expand...
Click to collapse
I got the same error just now and I'm trying to track down the java class it's referring to. Perhaps getDefValue has changed in it.
---------- Post added at 09:38 AM ---------- Previous post was at 09:32 AM ----------
The missing value is in the "common" device folder for your hardware. In my case, /device/lge/g2-common
specifically, it's in the file /device/lge/g2-common/cmhw/org/cyanogenmod/hardware/DisplayColorCalibration.java
It SHOULD work if you add in the proper support for getDefValue as found in THIS COMMIT
I'm going to make the changes and give it another try
---------- Post added at 10:25 AM ---------- Previous post was at 09:38 AM ----------
Well, my G2 build (VZW vs980) completed. Copied it to my device and flashed. Apart from an odd glitch where the vibration notification was going nonstop until I manually adjusted the audio mode (to vibrate only, then back to sound), everything works well.
i recomipiled successfully, after modify the file according your answer.
thanks a lot, and i will move on my ROM
tomheng said:
i recomipiled successfully, after modify the file according your answer.
thanks a lot, and i will move on my ROM
Click to expand...
Click to collapse
Very glad to hear it!
RandomPooka said:
I got the same error just now and I'm trying to track down the java class it's referring to. Perhaps getDefValue has changed in it.
---------- Post added at 09:38 AM ---------- Previous post was at 09:32 AM ----------
The missing value is in the "common" device folder for your hardware. In my case, /device/lge/g2-common
specifically, it's in the file /device/lge/g2-common/cmhw/org/cyanogenmod/hardware/DisplayColorCalibration.java
It SHOULD work if you add in the proper support for getDefValue as found in THIS COMMIT
I'm going to make the changes and give it another try
Click to expand...
Click to collapse
Old but gold. Thanks mate. Was building cm11 for an old device.
lee.wp14 said:
Old but gold. Thanks mate. Was building cm11 for an old device.
Click to expand...
Click to collapse
WOW. I love zombies
Can't even remember the last time I used or even still had that old LG G2!!

About Navigation bar in any Phone/ROM

Hey guys,
I will complete guide you about navigation bar.
This thread devided into to parts
Who likes navigation bar
Who dislike navigation bar
1. Who likes navigation bar
Who likes navigation bar can add navigation bar into their phone
Simply follow steps...
Open /system/build.prop
Add this line at the end of it
"qemu.hw.mainkeys=0" without ""
Open /system/usr/keylayout/Generic.kl
Add "#" before 139, 158, 172 line
for example
this
139 MENU
158 BACK
172 HOME
change to this
# 139 MENU
# 158 BACK
# 172 HOME
Reboot
This code enable navigation bar to your phone/rom and disable hardkeys
2. Who dislike navigation bar
Who dislike navigation bar and there is navigation in rom, so they can remove navigation bar.
Simply follow the steps....
Open /system/build.prop
Add this line at the end of it
"qemu.hw.mainkeys=1" without ""
Or if there is already "qemu.hw.mainkeys=0"
Change "=0" to "=1"
Reboot
NOTE: DO THIS ONLY IF YOUR PHONE HAS HARD KEYS AND IT IS WORKING
How to enable vibration in soft keys of miui rom
---------- Post added at 07:40 PM ---------- Previous post was at 07:40 PM ----------
I'm using miui 7 5.9 of Javed
rahult2838 said:
How to enable vibration in soft keys of miui rom
---------- Post added at 07:40 PM ---------- Previous post was at 07:40 PM ----------
I'm using miui 7 5.9 of Javed
Click to expand...
Click to collapse
Look in the sound settings
Sent from my Micromax A311 using XDA-Developers mobile app
rahult2838 said:
How to enable vibration in soft keys of miui rom
---------- Post added at 07:40 PM ---------- Previous post was at 07:40 PM ----------
I'm using miui 7 5.9 of Javed
Click to expand...
Click to collapse
Go to sound sttings. Enable vibrate on touch.
Thankies it worked for me using Zte Blade L2 and Bliss ROM
(JHH from FB)
Omay32 said:
Thankies it worked for me using Zte Blade L2 and Bliss ROM
(JHH from FB)
Click to expand...
Click to collapse
Enjoy
It will work in any ROM...

[ROM][6.0.1] Note5 Family ROM v1.0 N920CXXU2BPD6 +S7 Edge Panels [v2 Updated 23/6]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello Everyone, long time lurker and seldom poster....i'm part of an amazing whatsapp group manager by asif, and upon their pressure i've released my first ROM to the wonderful xda commnunity. Now lets get to Business
Disclaimer:
By flashing this Rom you void your warranty, I nor Xda take any responsibility for any damage done to your device, I've Tested this Rom only on SM-N920C, Always Make a Backup before you flash anything in TWRP.
ROM Features:
- Based on N920CXXU2BPD6 Firmware
- Added Once and Always option in Open With
- Deodexed all Apps
- Rooted with SuperSU 2.74
- Auto Wipe Cache, Dalvik Cache and Format System
- System Optimization
- Tweaks in Build.prop
- Removed Knox
- Removed Social Apps
- Removed Microsoft Apps
- Added More System Fonts
- Removed Safe Volume Warning
- Ad Away
- Faster Gps
- Fix Private Mode with Knox 0x1
- Exit option in Browser
- Enable Camera During Call
- Enable Copy To Dialer
- SMS Time As Server
- Disable MMS Conversion
- Call Recording
- Camera Shutter Sound Menu
- Reboot Menu
- Statusbar with 3Minit Battery
- All Apps in Multiwindow
- Tap Statusbar Clock to screen-off (hold to power menu)
- Added V4A+Dolby Atmos
- Language Enabler by wanam
- Enabled Multi User
- Data Usage on Quick Panel
- Added Outdoor Mode
- Ultra Data Saving in Smart Manager
- Rounded Notifications
- Rounded recent panel view
- Remove gray status bar when activated PowerSaveMode.
- Change Window Animation to 0.25
- Made Non-Removable Notifications, Removable again
- Enable Black list in Stock Message settings
- Enable Save/Restore in Stock Message
- Add only LTE mode in Network selection menue in Settings
- S7 Edge Apps/Panels as a seperate Flashabke Zip in 4th Post (Thanks to @ksr007)
- Ambient Display as a seperate Flashabke Zip in 4th Post (Thanks to @ksr007)
Please Note: This ROM comes WITHOUT a kernel, so make sure you flash your choice of kernel after flashing the rom (I recommend Googy Max for my rom as i've seen its stable)
Screenshots:
Instructions:
You'll need a rooted device with TWRP Recovery, Place the rom on your SDCard, Do your backups if necessary and reboot to recovery (vol up+home+power), Click Install, choose the Rom and Flash away.
Credits:
@Chainfire for SuperSU
Xda admins for the wonderful community
@thereassaad for the tools and all his help!
Note5 Family Members for the motivation (especially adi,joe,malik,sanjay)
ksr for the edge panels and ambient display
to everyone whose mod's i've used in the rom, forgive me if i dont mention you directly, but know this that i really Thank you!
Download Links and Changelog
in the 2nd post you'll find all the downloads and changelogs
Download and Changelog for v2:
- Based on Official Firmware N920CXXS2BPE4
- Added ROM Control (Thanks Wubydax!)
- Custom Notification BG Image from Rom Control
- Updated Smart Manager from Galaxy C5 (thanks joe for pointing it out)
- Logo & Rom info to Settings/About device
- Battery Bar (available in Rom Control)
- Colorize Data Usage text in Expanded Notification view
- Virtual lock, recent and home button on statusbar (from ROM Control)
- Toggle between 3minit Battery Mod and Stock battery (From ROM Control)
- Network Speed with seperate in/out and option to colorize and switch it on & off (from ROM Control)
- 0.25x anmimation scale in developer options (works only in English Language)
- Toolbox Controller to Settings
- RAM Usage in Expanded Notification view (Customizeable from ROM Control)
- ListView animations!!!! (configurable from ROM Control)
- 3Minit Clock
- OTA Support!!
- Colorize Lock screen clock and date in real time, add seconds aswell
- Change Quick Panel toggles from ROM Control
- Colorize Expanded Status bar clock and add seconds
- Open all toggles in the Quickpanel swipe from the right side of the screen, available in ROM Control
- Change Quickpanel Toggle on/off colors *** The modification will automatically disabled if a theme is installed and enabled since most themes use their own color scheme.
- Colorize status bar icons
- Increase Quick Settings to 15 in Settings
- Change the Number of Columns in Settings (From ROM Control)
- Gesture anywhere on Home screen: Double tap, Swipe Up, Swipe Down (15 actions) for TouchWiz Launcher
- Modified Animations for TouchWiz launcher to make it really fast!
- Transform Permanent Notifications to dismiss-able (configurable from ROM Control)
- Ambient Display Toggle and Display Timeout from ROM Control
- Reboot Recovery button in power menu (configurable from ROM Control)
- Dynamic Statusbar Gradient
- Auto call record with toggle in ROM Control
- Added DPI Changer as aroma option.
- the rest of the features from v1.0
- and a lot of other changes and features...
Video of most of the features:
https://youtu.be/XK2v5yX1L2U
Credits:
i've used up many guides from all over xda so i'd like to thank the xda forums and all the devs whose work i've utilized in my rom, if you think i've taken your work without permission please PM me so we can sort it out!
Note:
There is no kernel included with the rom
Aroma installer will take time when installing at the last step, be patient
Download v2.0:
Mega - Gdrive - AFH
Version 1.0
mega - gdrive
Changelog:
Initial Release
​
If the ROM's base is updated and has a newer bootloader/modem, i will update this post with it.
BL_N920CXXU2BPE4.tar
Mega - Gdrive - AFH
CP_Modem_XXU2BPE4.tar
Mega - Gdrive - AFH
Bootloader: BL_N920CXXU2BPD6
Mega - Gdrive
Modem: CP_N920CXXU2BPD5
Mega - Gdrive
​
S7 Edge Panels by @ksr007 for Family Rom v1.0 Only!
Ambient Display for Family v1.0 by @ksr007
DND Force Close Fix for Family v1.0
congratulation.....hope all the best for u and for us and for all our whatsapp group...great work...keep it on...highfive
Congratulations Ather , i am sure it will a fantasy rom .
thanks dear for making this rom...
Good work ! Will give it a try .
Great bro. Gonna flash soon ☺
Sent from my SM-N920G using XDA-Developers mobile app
Welcome and congrats.
Sent from my SM-N920C using Tapatalk
Congrats n thanks for new rom.
Wow amazing ather brother, congratulations... Rom is on download will report u soon... Best of luckk..here adi innocent
ksr007 said:
Good work ! Will give it a try .
Click to expand...
Click to collapse
we are happy be with us in this familly
---------- Post added at 03:56 PM ---------- Previous post was at 03:55 PM ----------
nickanh75 said:
Congrats n thanks for new rom.
Click to expand...
Click to collapse
nickanh75....u are my best friend...we hope all vietnamese like this rom and whenever u like join our whatsapp group pm me....missed u
---------- Post added at 03:58 PM ---------- Previous post was at 03:56 PM ----------
adilabdi110 said:
Wow amazing ather brother, congratulations... Rom is on download will report u soon... Best of luckk..here adi innocent
Click to expand...
Click to collapse
lol.....adi....i.n.n.o.c.e.n.t
Very promising Rom from a very promising dev ! Congratulations my friend and keep up the good work ?
@googy_anas hru brother, we are living ln ur kernal, boss ur work is great, wondering, amazing thnks for ur hard work.... Master... :thumbup::thumbup::thumbup:
---------- Post added at 06:34 PM ---------- Previous post was at 06:31 PM ----------
carlitobahsoun said:
we are happy be with us in this familly
---------- Post added at 03:56 PM ---------- Previous post was at 03:55 PM ----------
nickanh75....u are my best friend...we hope all vietnamese like this rom and whenever u like join our whatsapp group pm me....missed u
---------- Post added at 03:58 PM ---------- Previous post was at 03:56 PM ----------
lol.....adi....i.n.n.o.c.e.n.t
Click to expand...
Click to collapse
My brother @Joe Where ru today, did saw u anywhere, we all missing u in the group.. Im downloading this are Ather rom, will report u both.... Thnks here adi i.n.n.o.c.e.n.t.
Great work @Ather congrats on your great work
Glad to be a part of the family group and will definitely test it soon and report
Sent from my SM-N920G using Tapatalk
carlitobahsoun said:
we are happy be with us in this familly
---------- Post added at 03:56 PM ---------- Previous post was at 03:55 PM ----------
nickanh75....u are my best friend...we hope all vietnamese like this rom and whenever u like join our whatsapp group pm me....missed u
---------- Post added at 03:58 PM ---------- Previous post was at 03:56 PM ----------
Click to expand...
Click to collapse
im still keep in touch with u via whatsapp. lol...lol....:good:
I hope this works with N9208 with sickness kernel.
Welcome to the Family ... Family Rom.... @Ather brother welcome and best of luck with this new project.....
Thank you very much for the kind wishes everyone

[REQUEST] Recommended magisk modules?

Hey, i'm new to this forum.
I'm searching for some interesting modules for Magisk, any recommendations?
I've already installed Youtube Vendor.
Thanks for your help.
EDIT: My device is Redmi Note 4X (Mido) (snapdragon version)
[email protected] recording with HEVC support: https://drive.google.com/file/d/1DifkcLt3QiCZUyjEAnLsqzS_mKfF1Q3b/view
You also need Gcam and camera2 api enabled (most ROM's does have it enabled by default), highly recommended gcam: https://drive.google.com/open?id=1zZv5FmtIpro8m9f38Nyzw7yoJ-mQTlNh
well i don't know if gcam will work because I have MIUI 10 Global Dev and some APKs that I downloaded didn't work
hope it will work
also HEVC support will work at any camera sensor? I have omnivision ([email protected]@t)...
earl_21 said:
well i don't know if gcam will work because I have MIUI 10 Global Dev and some APKs that I downloaded didn't work
hope it will work
also HEVC support will work at any camera sensor? I have omnivision ([email protected]@t)...
Click to expand...
Click to collapse
Then dont bother, it wont work.
earl_21 said:
Hey, i'm new to this forum.
I'm searching for some interesting modules for Magisk, any recommendations?
I've already installed Youtube Vendor.
Thanks for your help.
EDIT: My device is Redmi Note 4X (Mido) (snapdragon version)
Click to expand...
Click to collapse
I use YouTube Vanced, Debloater and the Google Product Sans font mostly.
magisk modules
in magisk modules my must have module is viper4android fx materialized.
other modules are wifi bonding and youtube vanced
youksa said:
in magisk modules my must have module is viper4android fx materialized.
other modules are wifi bonding and youtube vanced
Click to expand...
Click to collapse
What does WiFi Bonding do exactly..?
---------- Post added at 04:55 PM ---------- Previous post was at 04:54 PM ----------
k3lcior said:
[email protected] recording with HEVC support: https://drive.google.com/file/d/1DifkcLt3QiCZUyjEAnLsqzS_mKfF1Q3b/view
You also need Gcam and camera2 api enabled (most ROM's does have it enabled by default), highly recommended gcam: https://drive.google.com/open?id=1zZv5FmtIpro8m9f38Nyzw7yoJ-mQTlNh
Click to expand...
Click to collapse
That BoltiShok is for Samsung Sensors only.
---------- Post added at 04:59 PM ---------- Previous post was at 04:55 PM ----------
My Modules Are--
Additional Features for Mido Stock Camera
(Only for MIUI 10)
Audio Modification Library
Camera API2 Enabler
Magic Charging Switch
Max Resolution for YouTube
Viper4Android FX Materialized
YouTube Vanced (Black themed)
HTH.
I have
Could flare dns for magisk ipv6
Global optimised GPS file replacer
GPU turbo boost
RAM management fix by crok
Sysconfig patcher (sp)
I use
Busybox for Android NDK
Camera2 API enabler
Enable doze for GMS
Global optimized GPS file replacer
Init.d injector
Magisk google DNS
Sysconfig patcher
viper4android FX
viper4android XHIFI
WIFI bonding Qualcomm
Youtube vanced black themed
All these modules work well on LOS treble 15.1.
earl_21 said:
well i don't know if gcam will work because I have MIUI 10 Global Dev and some APKs that I downloaded didn't work
hope it will work
also HEVC support will work at any camera sensor? I have omnivision ([email protected]@t)...
Click to expand...
Click to collapse
I tried gcam when i was using miui 10 , but somehow it workes when i transferred to rr rom .
mohsinreadymoney said:
I use
Busybox for Android NDK
Camera2 API enabler
Enable doze for GMS
Global optimized GPS file replacer
Init.d injector
Magisk google DNS
Sysconfig patcher
viper4android FX
viper4android XHIFI
WIFI bonding Qualcomm
Youtube vanced black themed
All these modules work well on LOS treble 15.1.
Click to expand...
Click to collapse
What Init.d injector works??? Are you using it in mido
Shahbaz17 said:
What Init.d injector works??? Are you using it in mido
Click to expand...
Click to collapse
Here is thread
https://forum.xda-developers.com/android/software-hacking/mod-universal-init-d-injector-wip-t3692105
youksa said:
in magisk modules my must have module is viper4android fx materialized.
other modules are wifi bonding and youtube vanced
Click to expand...
Click to collapse
can u send the link of viper4android fx module
OverLord2901 said:
What does WiFi Bonding do exactly..?
---------- Post added at 04:55 PM ---------- Previous post was at 04:54 PM ----------
That BoltiShok is for Samsung Sensors only.
---------- Post added at 04:59 PM ---------- Previous post was at 04:55 PM ----------
My Modules Are--
Additional Features for Mido Stock Camera
(Only for MIUI 10)
Audio Modification Library
Camera API2 Enabler
Magic Charging Switch
Max Resolution for YouTube
Viper4Android FX Materialized
YouTube Vanced (Black themed)
HTH.
Click to expand...
Click to collapse
Work in RR 8.1 and Omnivision sensor :good:
---------- Post added at 12:49 PM ---------- Previous post was at 12:29 PM ----------
k3lcior said:
[email protected] recording with HEVC support: https://drive.google.com/file/d/1DifkcLt3QiCZUyjEAnLsqzS_mKfF1Q3b/view
You also need Gcam and camera2 api enabled (most ROM's does have it enabled by default), highly recommended gcam: https://drive.google.com/open?id=1zZv5FmtIpro8m9f38Nyzw7yoJ-mQTlNh
Click to expand...
Click to collapse
Encode still mp4
---------- Post added at 12:49 PM ---------- Previous post was at 12:49 PM ----------
k3lcior said:
[email protected] recording with HEVC support: https://drive.google.com/file/d/1DifkcLt3QiCZUyjEAnLsqzS_mKfF1Q3b/view
You also need Gcam and camera2 api enabled (most ROM's does have it enabled by default), highly recommended gcam: https://drive.google.com/open?id=1zZv5FmtIpro8m9f38Nyzw7yoJ-mQTlNh
Click to expand...
Click to collapse
Encode still mp4
tiankrisnatian said:
Work in RR 8.1 and Omnivision sensor :good:
---------- Post added at 12:49 PM ---------- Previous post was at 12:29 PM ----------
Encode still mp4
---------- Post added at 12:49 PM ---------- Previous post was at 12:49 PM ----------
Encode still mp4
Click to expand...
Click to collapse
Video always be mp4, the difference is the encoder, if you use hevc/h265 instead of h264, the video will had better quality and less size
Enviado desde mi Redmi Note 4 mediante Tapatalk
beninin said:
Video always be mp4, the difference is the encoder, if you use hevc/h265 instead of h264, the video will had better quality and less size
Enviado desde mi Redmi Note 4 mediante Tapatalk
Click to expand...
Click to collapse
Sorry i mean the encoder still h265 after i see info codec
mohsinreadymoney said:
I use
Busybox for Android NDK
Camera2 API enabler
Enable doze for GMS
Global optimized GPS file replacer
Init.d injector
Magisk google DNS
Sysconfig patcher
viper4android FX
viper4android XHIFI
WIFI bonding Qualcomm
Youtube vanced black themed
All these modules work well on LOS treble 15.1.
Click to expand...
Click to collapse
Two viper4android modules are they working together? Or one at a time?
From where you got max resolution for YouTube @OverLord2901
Shahbaz17 said:
From where you got max resolution for YouTube @OverLord2901
Click to expand...
Click to collapse
Use YouTube Vanced
mohsinreadymoney said:
I use
Busybox for Android NDK
Camera2 API enabler
Enable doze for GMS
Global optimized GPS file replacer
Init.d injector
Magisk google DNS
Sysconfig patcher
viper4android FX
viper4android XHIFI
WIFI bonding Qualcomm
Youtube vanced black themed
All these modules work well on LOS treble 15.1.
Click to expand...
Click to collapse
How is that possible to use both viper?

Kcal profiles

I was wondering about suggestions i went looking around the web, i found this kcal profiles from a op2 forum and they work perfectly on EX kernel manager
Sorry wrong thread
How to use this and what does it do?
ronakbarman said:
How to use this and what does it do?
Click to expand...
Click to collapse
You can use KCAL profiles with a kernel that supports KCAL and then you use a kernel manager like EXKM to select the a profile (you must unzip that kcal file into the kcal folder for EXKM).
These profiles adjust the display values for color.
---------- Post added at 03:25 PM ---------- Previous post was at 03:24 PM ----------
I highly recommend franco's if it's part of that zip.

Categories

Resources