Hi everybody,
I have been trying to create a small mod for the navigation bar that enables you to swipe left and right over it to adjust the volume. I think this would make it easier to adjust the volume when you're using your phone with just one hand. While swiping the buttons would disappear and a volume icon would show up, like this:
Initially I tried to accomplish this with an app, however this turned out to be impossible because of the limited permissions apps have. Then I tried to do it by modifying the AOSP source code but that was too difficult for me as I don't know a lot about coding.
Now, I am wondering if there's anyone with a bit more coding knowledge that likes this idea and would like to make the mod together with me? Maybe it could also be done by making it into a module for the Xposed framework instead of modifying the source code.
Related
I'm looking into creating an app (not requiring a recompile) that can add a button to the navigation bar. Is it possible? Anyone have a link to documentation? I'd ideally like it to auto-load itself into the nav bar but if not, that should be fine.
Sure it's possible. I would start be decompiling your systemui.apk, that's where they were stored last time I checked.
I'm looking for a way that doesn't require the internals of the OS to be edited in any way. I want to write a separate app (installable apk) that can add an extra button that will do <insert custom java code here> when pressed. Or is the only way to do this by changing SystemUI.apk?
That's the only way you will be able to add/edit anything in the status bar. You may however be able to write some sort of overlay that draws your button on top of the screen.
Hi guys! I would like to ask to someone kind for the creation of a mod that would allow the tablet to automatically hide the onscreen buttons when it is docked. This would be great since we don't need them on the screen when they are also on the dock. I'm using CM10.1. I know that there is the desktop view, but this also hides the notification bar. I hope someone answers my pray :fingers-crossed:
have you tried the full!screen app?
The Clean Rom features the app.
perhaps we could write a script to watch for the event
DockObserver which currently states it changes to level 10
and then launch the full screen app?
joelalmeidaptg said:
Hi guys! I would like to ask to someone kind for the creation of a mod that would allow the tablet to automatically hide the onscreen buttons when it is docked. This would be great since we don't need them on the screen when they are also on the dock. I'm using CM10.1. I know that there is the desktop view, but this also hides the notification bar. I hope someone answers my pray :fingers-crossed:
Click to expand...
Click to collapse
Cm10.1 has the notifications at the top correct? And the nav buttons on the bottom?
I know the systemuiservice controls the nav buttons and notification on stock. I wonder if there is a separate service for the nav buttons? I doubt it. If so it would be quite easy. Just write an app that listens for the dock broadcast then kill that service. I do know there are build.prop edits to remove the nav bar. Maybe kill the system ui service then possibly start it again without the build.prop values? If you have source code it would be a lot easier to incorporate it into the systemui service to listen for the docking broadcast then generate the system ui service without nav bar arguments.
Sent from my ASUS Transformer Pad TF300T using Tapatalk 2
My father has early onset Alzheimers and I need to create a rom that when the device is powered on all he sees is 3 buttons call, end call, and text which brings up the plain texting option. Call shows square photos of people and services..etc.. tap on one it calls that person. I Would also like to do things like change the power button so it cant fully shut down the phone with out a specific combination of buttons or a pattern. Where do I begin to learn how to do this? I would really like to learn to do this on my own.
Hi there. Sorry to hear about your father. I've had a couple members of my family suffer from this and it's difficult, to say the least. As far as what you are looking for, well, I'm not sure you need to go all in and make a custom rom for this. I think many of the things you are trying to do can be done with existing mods.
As far as the power button, you can look into using the Xposed Framework and the Xposed Additions module which allows you to customize the activity of the hardware buttons.
http://forum.xda-developers.com/xposed/framework-xposed-rom-modding-modifying-t1574401
http://forum.xda-developers.com/xposed/modules/mod-xposed-additions-t2294274
For the buttons on screen for Call / End Call - Well, the Call with a link to favorite contacts with pictures is easily done with most launchers or a favorite contact widget. The End Call option though, I'm not so sure about. Reason being is that any time you're going to make a call, it's going to open the dialer app and the end button will be there. I can't really think of a way around that. I looked into adding a shortcut to that activity with Nova Launcher, but it's not an option available (though there are a dozen other shortcuts).
But with a launcher like Nova, you will have the ability to add / delete anything off the main screen besides what you want. You can lock the home screen so he can't inadvertently make changes to it and enable a gesture he wouldn't be likely to use to allow you to access the app drawer (like 2 fingers swipe up, etc). You can also use one of the variety of locking apps that will prevent access to any unwanted apps by requiring a password or PIN.
Ooh. Custom ROMs. A lot of work for such simple need. Maybe use Tasker instead? You can accomplish this with a scene and some profiles/tasks setup on stock ROM. Only disadvantage I see compared to making your own rom is long boot time. You can bypass everything in regards to Android UI just by making the scene fullscreen and disabling keyguard with a on-boot profile. That way, when he turns the screen back on, it goes right to your scene setup with no "slide-to-unlock" crap. I am very experienced in Tasker, so if you need any help, I can help you. I'd be willing to develop this for you, it would be about a half hour on my part
All the best,
Sent from my SCH-I605 using XDA Free mobile app
Thanks for the suggestions, these are great places to start.
Hello Guys,
I have programed a few apps for android but would like to try and modify something that goes a bit deepter into the system. I have no idea where to even start looking and what to look for.
What I want to do is to change the event what happens when you (long) click the system navigation buttons. Apps only catch them when active. But I globaly want to change it. I guess I dont need to compile the whole kernel but "just" change a part of the system that handles these buttons and events. In SlimRoms its possible to customize these buttons so it must be possible somewhow. Although I want to change it on a phone with three hardware buttons on the bottom and not the onscreen navigation bar.
Can anyone point me in a direction?
Thx a lot!
Regards
Hi there, I hope this is the right place where to post this.
I'm not an expert at coding and I am struggling a lot with this issue I have.
I have an autistic child and since they have sensory issues he likes to set the brightness to its maximum level on his tablet,
he does the same with the sound but let's face the brightness issue now.
I'd like to have the chance to remove the brightness slider from the notification shade so that he cannot change it too easily.
On his previous tablet, unfortunately it has died, I managed to install a CyanogenMod Rom which had this option,
his new tablet is a HONOR Pad 8, I couldn't find any CyanogenMod Rom and since it's new I'd really like not to mess around with it for now.
I cannot really undestand how it is possible that such a useful and easy option is missing on stock roms,
the number of disabled people and children that could benefit from this kind of settings option is huge and they are completely neglected.
Is there any way to hide the brightness slider from the notification shade or lock its value?
Thank you in advance.
Alex
n3551 said:
Hi there, I hope this is the right place where to post this.
I'm not an expert at coding and I am struggling a lot with this issue I have.
I have an autistic child and since they have sensory issues he likes to set the brightness to its maximum level on his tablet,
he does the same with the sound but let's face the brightness issue now.
I'd like to have the chance to remove the brightness slider from the notification shade so that he cannot it change too easily.
On his previous tablet, unfortunately it has died, I managed to install a CyanogenMod Rom which had this option,
his new tablet is a HONOR Pad 8, I couldn't find any CyanogenMod Rom and since it's new I'd really like not to mess around with it for now.
I cannot really undestand how it is possible that such a useful and easy option is missing on the stock roms,
the number of disabled people and children that could benefit from this kind of settings option is huge and they are completely neglected.
Is there any way to hide the brightness slider from the notification shade or lock its value?
Thank you in advance.
Alex
Click to expand...
Click to collapse
Your options may be grim.
First off - you cannot remove the brightness slider without using a custom rom.
However there might be a fix for the volume controls - which will disable the volume controls, using Button Mapper. It's on the Google Play Store, however not sure if it'll work though.
webhook said:
Your options may be grim.
First off - you cannot remove the brightness slider without using a custom rom.
However there might be a fix for the volume controls - which will disable the volume controls, using Button Mapper. It's on the Google Play Store, however not sure if it'll work though.
Click to expand...
Click to collapse
Thank you for your reply.
I have found out how to change volume or brightness levels via ADB commands but I couldn't find a command to lock those values, maybe it's not possible I don't know.
I can assure you that there are lot of people who need to lock volume and brightness, disable the uninstall shortcut by long pressing apps icons, lock phone's settings via the app lock option...
All of this is missing on the stock ROMs and it's really unbelievable.
I think every parent would be willing to pay to benefit of such features.
There are many useless accessibility options available but these obvious ones are missing, I would like to know how to raise awareness about this issues with the official Android developers.
In the meanwhile I hope someone else could suggest me a workaround.
Thank you again
Alex