How to Add Per-App Settings? - Android Q&A, Help & Troubleshooting

Does anyone know what exactly you need to do to add per-app settings to Android? I'm talking about things like the permissions and the default apps in Settings->Apps & Notifications->[Application Name].
I'm not afraid to dig around in the code, just asking in case someone knows to reduce the workload.

Related

App for fine-grained control of nice values?

I searched the market, Google and the forums. Does something like this exist?
I'm looking for fine-grained control over nice values and priorities with individual app processes that can factor in state (forground, background, etc).
Thanks for helping me out.
A bump. Might put in the work to write this if it doesn't exist.

[Q] XML tags for invisible

Hello,
Do any one know how can I make <EditTextPreference> and <CheckBoxPreference> invisible in ANDROID. I don't want that the user should be able to change the setting of some of the options in the preference, I want to hide them so that the user don't know what parameters are taken by the application.
Is it possible ???
Regards

[Q] layout XML, fill_parent, app-specific screen-size spoofing

Hi all,
I have a Galaxy Tab 2 10.1 with a 1280x800 display and recently enabled floating multi-window capabilities using this mod: http://forum.xda-developers.com/showthread.php?t=2449094
Now that I can have floating windows, I wanted to try and edit some games I play to not take up the whole screen and make them think I'm running on a phone with a small screen size (which I know they can, since I've played the same exact APK on a smaller screen size).
So what do I do? I download apktool, decompile the APK, and check the res/layout XML files. In this particular app's case, there are 3 XML files, and all the views are defined at layout_width and layout_height of fill_parent. I change them to something silly like 400px and 640px (to, say, run 4 of these in landscape mode on my screen).
Of course this doesn't work. Some parts are actually 400/640, but some draw at full screen size. My guess is that there are some parts that are drawn pragmatically that bypass the layout settings set in the XMLs and use calls like GetDeviceScreenSize() for dimensions or whatever. I can't find any other layout rules in the XML so I assume this is embedded in the smali files somewhere (pardon my android development nubbery here).
Now that you know the background, my question is: is there a way I can fool a particular app into thinking that my screen is smaller? I know I can change the entire devices DPI but that won't help me. I want to do this on an app-specific basis, sandbox style. Have I missed something simple other than red/layout that I can change to get this app to behave like I want it to?
If the answer to these questions is no, will I be able to achieve my goal by digging into the smali files? If so, would anyone care to share some advice?
Thanks in advance!

How to Customize Sounds in APPs That Doesn't Allow so in their Settings

Hello,
I am trying to customize the sound certain apps makes. Here's my dilemma. Say application X allows you to customize sounds/notifications in the specified application's settings, but application Y does not have that feature. However, if I want to change the sounds for application Y I need to change the entire system notification/sound. Is there anyway to customize/change ONLY application Y's sounds/notifications? Any help would be greatly appreciated. Thanks.

rom that puts google settings under account and gets rid of accessability settings

i don't know if this is the right section if it's not please move it
i am a perfectionist when it comes to things being Clean i've installed lineage and a couple of mods and gotten my phone the way i want it, what bothers me is two things, the giant GOOGLE section in the settings panel so now theres two google settings one under accounts and one under the main settings panel, i want a rom where this is moved under accounts i hate any kind of branding i've gotten rid of all google like Icons and text i want my phone to visibly be as free from google logos or text as possible, Another issue i have is accessability i don't use it i only use and i wonder who messes with custom roms actually does use any of those help features, the one function where apps require it can be put under system , i'd like to get rid of that entire section and have the accessability for apps feature moved to the system section
these are things i'd like for a rom and i wonder if anyone likes the idea enough to do it, basically modify lineage and make those Changes, will Android break if you mess with the settingspanel? i just want to move things around to keep it cleaner i for example also wanted network settings and blutooth etc to be combined into one section all connectivity data,wifi,bluetooth etc.
actually i just noticed Android pie has the google settings removed
https://www.androidcentral.com/how-manually-turn-dark-mode-android-p

Categories

Resources