Android TV App Development - Change system settings with Kotlin/Java - General Questions and Answers

Hi,
I am trying to create an Android TV app to change Picture Settings from my App.
Like adjust brightness, contrast etc.
I am not able to find any relevant documentation about how to change these settings.
Please let me know if its possible.

Related

Need ROM and Theme making tutorials

Have some free time, can somebody point me to ROM making and theming tutorials. Thanks.
Hi StDevious,
Free time is rare so better invest that wisely. Good choice to mod android, it's a fun thing to do. Visit my website that is filled with rom modding tutorials, in your case it's also nice to know there's an article about the wallpapers and how to mod the default one, but also how to create your own gallery of wallpapers in the rom.
TechKnow.FreeForums.org :
All about animation.data, decompressing, saving, reloading
All about wallpaper modding in the rom
Altering ROM Memsize/Swapsize
Boosting boot time of a ROM
Browser's password storage location
Change bootlogo animation
Change default and active input method
Changing default opening location of the filebrowser
Changing default snap (photo) directory
Changing the ROM's home (desktop) layout / shortcuts
Edit screen / vibration / screen time-outs / animation settings
Edit sound settings / ringtone / volumes / behavior
Enable installing non-market apps
Enable/Disable usb mass storage
HowTo preset the default browser settings
Modding some default settings like gps, sounds, lock...
Modify airplane mode behavior
Modify external connections like wifi bluetooth
Modifying the default browser bookmarks
Pre-modding general settings
Slipstreaming (pre-deploying) apps in rom
Turn on / off accelerometer's screen orientation
Viewing / Converting movies

[GUIDE] CyanogenMod 10.1 - review and features

Schedule posts:
CyanogenMod 10.1 - part. 1
CyanogenMod 10.1 - part. 2
Useful links related to CyanogenMod
CyanogenMod 10.1
When it comes to the custom ROM scene for Android, the one name that instantly comes to our minds is CyanogenMod, and for good reason!
Let's take an in-depth look at CyanogenMod 10.1 and all the features it offers that make it one of the best custom Android ROMs around.
Credits for this guide must go to HQRaja
Click to expand...
Click to collapse
Look And Feel
One of the key philosophies behind CyanogenMod is to focus on functionality rather than design, and that’s been a great thing since ICS when Android’s design got revamped to what it is now. That’s why on the surface, CyanogenMod 10.1 may look just like pure vanilla Android, and for good reason, since it is based on pure vanilla Android, meaning you wouldn’t find even the slightest traces of HTC Sense, Samsung TouchWiz, MOTOBLUR or any such manufacturer-customized version of Android in it, as you can see below in the home screen and the app drawer of CyanogenMod 10.1.
That said, there are a plethora of changes under the hood that set it apart from plain vanilla Android. The launcher itself may look like that of stock Android, but it’s actually CyanogenMod’s own custom version called Trebuchet. If you try dragging an icon somewhere, you’ll start seeing the extra options it offers, and that’s just the start.
As you can see lower, you can not only remove the icon, but also edit it. Furthermore, CyanogenMod ships with a collection of wallpapers of its own (CM Wallpapers), in addition to Android’s default ones.
CyanogenMod Apps
You must have noticed a few extra apps in the app drawer screenshot above. None of them have been added from the Play Store (that screenshot was taken immediately after installing the ROM), but rather ship with CyanogenMod itself. They include a media player, a file browser and a terminal emulator. The former two are CyanogenMod-exclusive while the terminal emulator is same as the Android Terminal Emulator app available on Play Store.
Also, while the messaging app may look exactly like the stock one, it is in fact heavily modified to deliver a much more powerful and customizable experience. Lastly, you’ll notice an icon for Sound Recorder in the app drawer. It is actually a system app that comes as a part of Android itself, it is hidden from the app drawer by default and is accessible as a recording feature within other components of the OS; CyanogenMod adds an icon for it to provide users direct access to it.
The inclusion of a media player and a file manager ensures that if you choose not to rely on Google’s ecosystem or just want to use the ROM on a device that you want to keep offline, you already start off with all the basic apps that you’re going to need.
There is also a DSP Manager app here, as well as the cLock app that doesn’t show up in the app drawer but can be seen as a widget right on the home screen as well as the lock screen, but we’ll be taking a look at both these in the Settings section, as they are both configurable from there.
CyanogenMod 10.1 Settings
What makes CyanogenMod truly powerful is the plethora of additional settings it offers for customizing the ROM and having a more complete control over Android’s features. All these settings can be found within the default Settings app, laid out in the same settings interface that you’re already familiar with. Let’s take a more detailed look at them in the order they appear. Note that we’ll only be reviewing the settings that have been added by CyanogenMod, and will therefore skip the unmodified sections.
Cell Broadcasts
For most part, the ‘Wireless & Networks’ section of the Settings remains close to stock, though you’ll notice one new option under the ‘More…’ option by the name of Cell Broadcasts. This basically lets you choose which cell broadcast messages you want to receive, and opt out of the ones you don’t want to bother you. These include alerts for extreme and severe threats, AMBER alerts, ETWS (Earthquake Tsuname Warning System) alerts and CMAS (Commercial Mobile Alert System) broadcasts. In addition to opting out of them, you can also choose change alert settings such as notifications, sound, vibration, sound duration, text-to-speech for speaking out alerts, and showing opt-out dialog after displaying the first CMAS alerts to be able to easily disable them (other than presidential alerts).
Launcher
As mentioned above, CyanogenMod ships with Trebuchet as its home screen launcher, which looks identical to the stock Android launcher but is way more customizable, and this is where you can tweak it to your liking.
Many Android users complain about the lack of landscape mode for their home screen. Trebuchet takes care of that by adding support for landscape mode and auto rotation, which you can enable here. And if you have just customized your home screen to your liking and fear messing it up by mistake, you can set everything to stay locked in place. You can also hide the status bar to extend the home screen further, though we’d suggest you read on and see what else is in store for you in the full screen department, and you’ll forget about this option alltogether!
In the Home Screen section, you can tweak a lot of options pertaining to the way things are displayed on your home screens. Each option comes with a description to make sure you don’t feel lost.
The Drawer section lets you customize how apps are displayed in your Apps and widgets drawer. You can choose between transition effects, join the sections together and even hide apps selectively.
Lastly, you can customize the dock by changing the number of apps it displays, adding more pages to it that you can then access by swiping on it sideways just like the home screens, and more.
Lock Screen
CyanogenMod’s lock screen comes with a bunch of additional features, and the first one that you’ll notice is multiple shortcuts to directly launch the apps of your choice.
What’s more – these shortcuts are fully customizable! Just hit ‘Slider shortcuts’ under Lock screen, and you’ll be able to easily assign a different one to each slot and even select a custom icon for it.
In addition to these shortcuts, you can choose your lock screen security type, and tweak several options for the selected one such as making the pattern visible, choosing a 4×4, 5×5 or even 6×6 pattern in addition to the default 3×3 one, toggle visibility for pattern, errors and dots, and set separate custom delays for automatic screen lock after timeout and manual screen off, etc.
Themes
If you’re finding things to be a but too dull and completely stock so far in terms of looks, your patience is about to be rewarded. CyanogenMod ships with a powerful theme engine that can change the look of the entire UI based on the theme you choose. Some themes may change just the app icons on your home screens and in the app drawer, some change how the menus look, some apply to widgets as well, and then there are those that change pretty much everything. We like Android’s own stock looks but are big fans of transparency, and the awesome HOLO GLASS theme lets us apply that to the stock settings app as well as many other components of the OS, as you can see in the screenshots below.
Although no extra themes are shipped with CM by default, you can find countless options available in both free and paid variants on Google Play, XDA-Developers and many other Android modding communities – just search on Google for it and you’ll find more options at your disposal than you’ll know what to do with.
Before we move on to the next section, here’s how HOLO GLASS has changed our Dialer and Messaging apps. The background is actually our desktop wallpaper, not just a static background applied to these apps.
System
This is perhaps the most extensively customizable section of the entire ROM. Here, you can tweak major UI components such as the status bar, the quick settings panel, the notification drawer, the power menu and the navigation bar as well as toggle the expanded desktop (full screen) mode and Pie controls (yes, CyanogenMod 10.1 includes Paranoid Android’s famous controls), and customize LED notifications.
Status bar
When it comes to the status bar, you can show/hide the clock as well as choose AM/PM display, and change the battery and signal icon styles from several available options. You can even set the status bar itself as a brightness control slider that will change brightness as you swipe your finger along it.
Quick Settings panel
Starting with Jelly Bean, Android ships with a section in the notification pull-down that acts as a quick settings panel. CyanogenMod basically supercharges it, letting you customize it to your liking.
You can add, remove and reposition toggles, and also specify how some of them behave. There are plenty of options available to add, pretty much for every feature you’d want. We have customized ours to add the features we need to quickly access most often, as you can see in the second screenshot below.
For quick and convenient access, you can even set this panel to always appear by default when you swipe down from the edge of your choice (left or right) on the status bar.
Power widget
If you don’t fancy the above controls and would rather have a small list of toggles right in the regular notification shade, the Power widget can do just that for you.
You can select what buttons display in it, specify their order, and tweak some appearance & behavior settings for the widget.
Expanded desktop
Want to utilize your screen real estate to the fullest? Why not get rid of the status bar as well as the navigation bar? Just choose whether you’d want the status bar to remain visible or not in this mode, and you’ll then be able to go full-screen by selecting the option from the power button’s long-press menu.
Here is how the home screen and your apps will appear while expanded desktop is enabled. As you can see, I have set the status bar to be hidden in the first one and visible in the second one, while the navigation bar is hidden in both in this mode.
Power menu
When you long-press the power key, you get more options in CyanogenMod than in stock Android, as you must have noticed in the screenshot shown in the Expanded desktop section above. A great thing about these options is that you can choose the ones you want to be displayed in the menu.
In the second screenshot, we have stripped down the power menu to the bare essentials, removing all the additional options except for ‘Reboot’ from it to get back to basics.
Clock widget
CyanogenMod ships with a clock widget of its own called cLock that works on both the home screen and the lock screen. It’s the same widget that you have seen on the home screen and lock screen images above. In addition to the time and date, it is capable of displaying weather conditions (from Yahoo! Weather) as well as your calendar events, and all this information is customizable from here.
For the clock, you can choose between analog and digital items, toggle the display of any alarms that you have set, and customize the clock’s display colors and font.
When it comes to weather conditions, you can toggle them on/off, choose weather source, set a custom location if you want (it uses your current location by default), and tweak several visual aspects of the weather display. For your calendar events, you can specify what calendars to display events from, how far into the future to look, what types of events to show and hide and what information to display for each event, along with visual tweaks for how the events are displayed. The settings will apply to the widget on both your home screen and lock screen.
Sound
To what extent can one customize sounds of an Android device, you ask? Just take a look at the Sounds section of CM settings – it spans three screens, and that’s excluding any sub-sections! As you can see below, there are options for everything ranging from volume controls, ring mode and volume panel style to music effects, quiet hours, ringtone choice, system sound toggles, headset-related tweaks and more!
As you can see above, it’s hard to think of a sound-related option that hasn’t been considered here. All options available here are self-explanatory, as you can see in case of the volume panel style below.
This section houses two great features namely Quiet hours and Music effects (DSP Manager). Let’s take a more detailed look at each of them.
Quiet hours
The Quiet hours feature is pretty awesome; it lets you specify times when you don’t want to be disturbed, and even lets you choose the type of alerts you want to disable for notifications during these hours, including sound, haptic feedback, vibrations and notification LED.
Music effects (DSP Manager)
Remember the app icon for DSP Manager that we mentioned when taking a look at the CyanogenMod apps? It is a killer app that can tweak the sound output of your device in a way that you’ll find it hard to believe your ears!
You can enable features such as bass boost, dynamic range compression and a full graphic equalizer separately for your phone’s speaker, wired earphones and Bluetooth headsets.There are several equalizer presets available, and you can choose the strength level for any effects you apply.
Display
Unlike the ‘Sound’ section, you wouldn’t see a plethora of options under Display, but that’s because the UI tweaks have already been covered to the extreme in the earlier sections and there’s little to do with the display beyond that. However, CM still manages to squeeze an extra option in here in form of customizable auto-rotate settings.
In addition to the default on/off, you can now specify the angles your device can rotate to, and even set the volume buttons to automatically swap when in landscape mode (volume-up becomes volume-down and vice versa) that can be more optimal on some devices (depending on the volume button position).
CyanogenMod 10.1 - part. 2
Profiles
CyanogenMod 10.1 ships with a powerful profile system that allows you to set how your device behaves when different profiles are active. You can switch to a profile from the power menu (by long-pressing the power button) and then tapping Profile. Your currently active profile name is shown there by default.
These profiles aren’t limited to merely choosing the volume levels or screen brightness levels – you can specify settings ranging from features like mobile data, Bluetooth, GPS, Wi-Fi, syncing and hotspot mode to individual volume levels for alarms, media, ringtones and notifications, and choose your desired ringing and lock screen modes for each profile.
Not only that, but you can also manage how different applications behave for each profile, which is made easy with application groups.
You can create as many new profiles as you want, or edit the existing ones to your liking. Similarly, you can add or remove apps to the existing groups, or create new groups of your own, and specify settings you’d want for them for each profile under that profile.
You can have one profile where everything is silent except for incoming calls, and all app notifications are also silenced other than for an app group you’ve created by the name of VoIP, in which you have Viber, Tango and Skype etc. Or you could have a profile in which only notifications from your social media apps are ignored – whatever your requirements, you can create a profile tailored for them.
Security
CyanogenMod offers enhanced security options for your lock screen, some of which we have looked at earlier in the Lock screen customization section. Under the Screen lock section in Security, you get more flexibility in certain options, specifically when it comes to the pattern lock. In addition to the regular 3×3, you can also set up to a 6×6 pattern for added security.
Also, you’ll notice a new option at the end of the Security section labeled SMS message limit. It lets you define how many messages can an app automatically send within a set time interval before it is deemed as suspicious activity and requires confirmation from you for any additional texts.
Language & Input
You’ll see mostly standard options over here as well, with the exception of two new ones: a Selector notification toggle, and Volume key cursor control.
In case have multiple input methods (like keyboards) installed, enabling Selector notifications will show you a persistent notification for selecting the input method to use whenever an input field is active. The volume key cursor control option, on the other hand, lets you control the on-screen cursor – where present – using the device’s volume keys.
Developer Options
Being Android 4.2,*-based, CyanogenMod 10.1 comes with the Developer options section hidden by default, so you’ll need to unhide it before you can tinker with the settings there.
unHIDE developer options -how to
Go to ‘Settings’ > ‘About phone’.
Repeatedly tap on ‘Build number’ seven times. That’s it!
You’ll see a few options added by CyanogenMod here as well, in addition to the standard options found in stock Android. You can toggle the advanced reboot menu from here that lets you directly reboot into bootloader or recovery, in addition to the normal rebooting.
The Launch Tools section here is meant to provide developers with quick access to several tools that can come handy when developing or debugging their apps. These include a vast range of tools such as Accounts Tester, Bad Behavior, Cache Abuser, Configuration, Connectivity, GTalk Service Monitor, Holo Spiral, Instrumentation, Media Provider, Package Browser, Pointer Location, Running processes, Sync Tester and Water (Live wallpaper).
Getting back to the main Developer options menu, you can also choose the root access level between apps only, ADB only, both apps & ADB, or none, toggle displaying the USB debugging notification icon while debugging mode is enabled, and enter hostname of your choice for identification in ADB mode.
Lastly, by scrolling all the way to the bottom, you can set the back button to kill the currently active app upon long-press, in order to quickly terminate misbehaving apps.
Superuser
Pretty much every custom ROM comes already rooted, and CyanogenMod is no exception. Though instead of the conventional Superuser app by ChainsDD or SuperSU app by Chainfire, CyanogenMod 10.1 comes with root management functionality built into the ROM’s settings interface itself, in form of Superuser by Koush (the guy behind ClockworkMod recovery and a senior CM developer). It works just like you’d expect – asking you for root permissions whenever an app requests them, and showing you a list of apps that you have granted or denied permissions.
From the list, you can tap an app’s entry to see its root permissions and make Superuser forget the remembered setting in case you want to change its access, which you can then do when prompted upon launching it next. In addition, you can see a log of all root access elevation attempts made by apps, and whether they were allowed or denied.
From Superuser’s settings, you can set if superuser access should be restricted to apps, ADB or both, toggle a setting that would show superuser requests from only those apps that declare that they require root access, choose the default automatic response to these requests, add a PIN protection so that no one else can grant apps root access, choose a timeout interval of your choice, toggle logging and tweak notification settings for the toasts that appear when apps are granted or denied superuser access.
Performance
If you’ve ever overclocked your Android device, you’re likely familiar with the SetCPU app. While many other ROMs would require you to use that or some other similar app to make the best of your custom kernel, CyanogenMod has everything taken care of in this department as well. Under ‘Performance’, you’ll find all the options you’ll ever need to tweak your processor, I/O scheduler and memory management exactly the way you want. You can also enable 16-bit transparency and choose a color dithering method of your choice for improving the graphics output.
For the processor, you can choose your CPU governor and set the minimum as well as maximum CPU frequency of your choice. For our Galaxy S Advance, the default CyanogenMod kernel provided a bunch of CPU governors and frequency options to choose from.
You can similarly choose your I/O scheduler, and zRam size. There are a few additional options available as well, like allowing purging of bitmap assets when freeing up RAM and setting your chosen CPU & I/O scheduler settings to apply each time you reboot your device.
CyanogenMod Updates
Found under ‘About phone’, this section is basically what OTA updates are to stock ROMs. Every time a new version of CyanogenMod is out, you will be notified of it, and can download it from here. You can choose how frequently should the ROM check for updates.
You can specify whether you want updates for the stable version only, or for pre-release versions (nightlies and release candidates etc.) as well. Your selected update will then be downloaded and applied via recovery.
This sums up our extensive tour of CyanogenMod 10.1
Useful links related to CyanogenMod 10.1
[ROM] [NIGHTLY] [TeamCanjica] Unofficial CyanogenMod 10.1 (GT-I9070 & GT-I9070P) - developer thread - do not ask sily questions there.
[CM10 / 10.1][Q/A] CM10 / 10.1 for the Galaxy S Advance - Q/A - DISCUSSION THREAD - here is the place where you can ask questions about CyanogenMod.
[GUIDE] From stock GB to Custom JB (Noob-friendly) - useful for users who are still on GingerBread
TeamCanjica' s Github
GooManager - download from Play
http://goo.im/gapps - GAPPS download from GOO.Manager
Just in case ... reserved 3
Be patiente and wait.
Coming soon ...
PS: Please DON'T QUOTE all OP anymore.
Can i install V6 Supercharger? And if i do, when i update rom, will i lose it?
Dude you have a dedicated thread for CM10.1 Q&A, this is a guide only.
PS: Later i give the links for threads where you can ask what you want.
Powered by CM10.1
Razvan, perhaps you could elaborate a bit... on differences under the hood, for example... is it more secure than stock or not? Meaning - the information we don't want to leak out of the phone without our notice...
R_a_z_v_a_n said:
Dude you have a dedicated thread for CM10.1 Q&A, this is a guide only.
PS: Later i give the links for threads where you can ask what you want.
Powered by CM10.1
Click to expand...
Click to collapse
Ok, sorry man.
Nice review for new people
pie control
good job, I just stayed with a doubt because in my cm10.1 the 13th does not have the pie control, have to write a command to turn on the emulator?
sory my bad english
posted in wrong thread sorry... if someone can delete it.
Amazing amazing amaaaazing guide. Just what I needed. Thank you!
Sent from my GT-I9070 using xda premium
Nice job
Great job for me as a new CM user, thanks.
Sorry for my bad english
how is the gaming performance?? does it increase or decrease??? and battery ??

[APP] Advanced Settings Shortcut

This app allows you to create shortcuts for any system setting on your device.
Basic actions are also available to toggle a few things. These basic actions currently include:
Toggle Quiet Hours
Toggle Rotation Lock
Toggle Unlimited Screen Timeout
Toggle Active Display
Advanced users!
Change any checkbox preference, list preference, or color preference for your ROM that has a system setting link.
For example:
https://github.com/AOKP/frameworks_base/blob/kitkat/core/java/android/provider/Settings.java
https://github.com/omnirom/android_...-4.4/core/java/android/provider/Settings.java
https://github.com/CyanogenMod/andr...10.2/core/java/android/provider/Settings.java
https://github.com/ParanoidAndroid/...jb43/core/java/android/provider/Settings.java
Here lie some settings projects with values you can use if you're running these respective ROMs.
The "Advanced Shortcut" will ask for a few inputs. For example:
"quiet_hours_haptic" > checkbox ? Yes.
And each click will cycle the setting on/off.
Or, you can input "quiet_hours_haptic" > checkbox ? No > 1
To turn the setting ON no matter what state it's in.
Currently, SECURE settings are unsupported for KitKat
Only SYSTEM settings will be accepted.
SECURE settings can be modified if you have root access on Android 4.3 and lower.
Special thanks to Stericson for his RootTools library:
https://github.com/Stericson/RootTools
A donate version is available via the Play Store. Currently both versions are the same.
Recent Changes:
===2.2.1===
-AOKP Color settings fix
-ICS (4.0) support
===2.2.0===
-Small AOKP Settings Table Check to grant access to only applicable settings
-Screen Timeout now accepts two values (set both to the same if you want ONE action)
-Active Display Toggle for ROMs that support it
===2.0.0===
-AOKP Settings Table Support!
===1.2===
-Check Developer Options before Advanced Shortcuts
-Add Quiet Hours Toggle
-Add Rotation Lock Toggle
-Add Screen Timeout Toggle
(Toggle between user-picked 15/30 seconds / 1/2/5/10/30 minutes and UMLIMITED screen timeout)
===1.1.1===
Secure Settings for JellyBean and below
(ROOT required)
===1.0===
Initial release
XDA:DevDB Information
ADVANCED SETTINGS SHORTCUT
Contributors
Jubakuba
Version Information
Status: Stable
Current Stable Version: 1.1.1
Created 2014-01-29
Last Updated 2014-01-29
Mine.
First update released. Should be final for some time.
Allow Secure Settings modifications for JellyBean and below.
I just picked up the play store version. no idea what I'm going to do with this yet but it looks cool and I like to play
PhilDX said:
I just picked up the play store version. no idea what I'm going to do with this yet but it looks cool and I like to play
Click to expand...
Click to collapse
D'aw. You didn't have to do that Phil =] thanks.
Edit: AOKP Added, nvm.
Updated. Play store should refresh soon. New APK here already.
:highfive: yay, kit's first play store app! i bought it before i even tested it. (try refunding that one, beeotch )
(who would settle for the xda version anyway? play version auto updates!)
anyway, seems very cool, and i'm excited to see where this app goes!
Chamber of Secrets? Looks pretty cool! Nice work
dankoman said:
:highfive: yay, kit's first play store app! i bought it before i even tested it. (try refunding that one, beeotch )
(who would settle for the xda version anyway? play version auto updates!)
anyway, seems very cool, and i'm excited to see where this app goes!
Click to expand...
Click to collapse
You're bad and you should feel bad =P
Thanks buddy.
TheBr0ken said:
Chamber of Secrets? Looks pretty cool! Nice work
Click to expand...
Click to collapse
Practically. Minus Secure Settings (KitKat).
Plus aokp's settings table integration.
The additional toggles are rewritten as well to use publicly documented APIs and, again, integrate with AOKP's settings table.
So...slightly less powerful than the Chamber.
Even more so once the chamber integrates with the custom tiles to create settings resolvers.
Thanks.
Cool, I have a new toy. Thank you J.
doesn't seem to work with MOAR 8.0 rom, can't find the program shortcut in apps drawer. it does show up in settings>app manager though.
i really got excited when i found this in play store! purchased, but clicked refund when it didn't show in app drawer.
am i missing something? or just not compatible with my rom?
SCH-I535 Galaxy S3
4.3 JB / VRUCML1 OTA firmware /VERIZON
rooted with saferoot / flashed in safestrap
MOAR 8.0 / Xposed Framework
joemichaels239 said:
doesn't seem to work with MOAR 8.0 rom, can't find the program shortcut in apps drawer. it does show up in settings>app manager though.
i really got excited when i found this in play store! purchased, but clicked refund when it didn't show in app drawer.
am i missing something? or just not compatible with my rom?
SCH-I535 Galaxy S3
4.3 JB / VRUCML1 OTA firmware /VERIZON
rooted with saferoot / flashed in safestrap
MOAR 8.0 / Xposed Framework
Click to expand...
Click to collapse
If you long-press the home screen in most launchers you can access shortcuts. Some launchers require you to open the "widgets" tab. But you'll find it in one of those places...
It doesn't have an app-drawer shortcut since there's no need to launch an app activity with it =]
Help
I'm a newbie. So I can't use the tool
Please can someone help me to toggle cell broadcast receiver on/off on aosp message com.android.mms?
Jubakuba, could you please confirm that with this app, under the "advanced shortcut" option, you can:
- select a preference listed in the setting.java file (and those preferences are all the preferences also present in the "settings" app)
- create a number of shortcuts for the selected preferences to toggle or values to cycle through (i.e. I want brightness to be either 10 or 20 or 100)
If this is correct I bet this app could be the base for a killer application in android as Tasker is...provided that you give more examples and give the set (may be in the four settings.java files you mention) of the preferences we're entitled to use.
Cutting a long story short: between you and the success there is...a clear tutorial. And I'm looking forward to reading it !!!
I suspect I've not been direct enough in my previous post, let me re-phrase it:
I'm not finding on my phone (xperia m 4.1.2 rooted) the file settings.java: can I still use the "advanced option" in the app ? Which is the actual name of the file I need to search instead of settings.java ? Any suggestion about how to decompile it ?
the gladiator said:
Jubakuba, could you please confirm that with this app, under the "advanced shortcut" option, you can:
- select a preference listed in the setting.java file (and those preferences are all the preferences also present in the "settings" app)
- create a number of shortcuts for the selected preferences to toggle or values to cycle through (i.e. I want brightness to be either 10 or 20 or 100)
If this is correct I bet this app could be the base for a killer application in android as Tasker is...provided that you give more examples and give the set (may be in the four settings.java files you mention) of the preferences we're entitled to use.
Cutting a long story short: between you and the success there is...a clear tutorial. And I'm looking forward to reading it !!!
Click to expand...
Click to collapse
the gladiator said:
I suspect I've not been direct enough in my previous post, let me re-phrase it:
I'm not finding on my phone (xperia m 4.1.2 rooted) the file settings.java: can I still use the "advanced option" in the app ? Which is the actual name of the file I need to search instead of settings.java ? Any suggestion about how to decompile it ?
Click to expand...
Click to collapse
Sorry for the slow response, this thread is on my backburner apparently and have completely forgotten about it.
Anyway, yes. That can be done.
Your rom is from an OEM, so it isn't open-source...
But you can surely use the values in AOSP, or find the ones being used by your phone via a settings.db viewer.
data/data/com.android.providers.settings/databases/ on you phones file system will have settings.db files...
Not sure what you'd use to look...but RootExplorer, for example, has a basic viewer.
Finding the values, examples, etc...however...isn't something I can do for you.
This is a very advanced app for the advanced shortcut users...and you really just have to know what you're doing, or figure it out.
For your example (just found a settings.java file for Slim, but this is an AOSP key and I highly doubt your phone's OEM has changed the AOSP keys for existing settings).
https://github.com/SlimRoms/frameworks_base/blob/kk4.4/core/java/android/provider/Settings.java
Code:
/**
* The screen backlight brightness between 0 and 255.
*/
public static final String SCREEN_BRIGHTNESS = "screen_brightness";
So if you wanted a toggle between 0/50/100% brightness...
Advanced Shortcut > screen_brightness > not a checkbox > 0,128,255
255 isn't divisible by 2, and int values (the values being used here) don't accept decimals.
So round up to 128.
Very useful solution for toggling Quiet Hours
This app is fantastic. It is the only solution I've found for toggling Quiet Hours using Tasker (and AutoShortcut). I look forward to finding more uses. Thank you for this.
In my case, I use the "Advanced Shortcut" option and use QUIET_HOURS_FORCED as the settings string. This can be set to either 1 or 0 and will enforce quiet hours no matter what the time settings are. Works great. I'm on a nightly build of CM11.
Hellow how can i find shortcuts for stock andorid? i want the shortcut (turn off all sounds) witch is found in accessibility > hearing
Still available ?
Hi !
This is exactely what i need but i d'ont find the application in Play Store and the download version available here is a zip file instead of apk. How can i install it on my phone plz ?
thx.

No wallpaper shown, by a noob

Hello
Since I installed a custom ROM ( Zombie 4.4.4 ) , my TF700 can't display a wallpaper . It stay desperately dark. I can choose one, picture or origin's wallpaper, but it doesn't show after selection.
I thought about a power saving system , but I can not find anything that allows me to enable or disable the wallpapers in systems parameters.
If a good soul could help me, it would be nice.
It's a bug. Either go through Settings > Display > Wallpaper or use a different launcher
Hello
and thanks to take time to help me.
It's the same thing with other launchers, but you're right, it's probably a bug, because if I use gallery's pictures, I can change the background. But only the ones which are in gallery folder.

how to change Accessibility Settings from Android

I am making an app for people with visual impairment to make setting process easier to them. So I need to change Accessibility Settings from Android, but I find nothing that can help me in this task. I need to change the speed of the speech from TalkBack (the screen reader) or just enable this from my app, for example. But I need help for all possible accessibility settings.

Categories

Resources