[Q] How to get and set aplication permissions runtime. - Android Q&A, Help & Troubleshooting

Hi everyone.
I write a some application that use screen casting.
Every time I rebuild my app I need to upload app to phone to debug. And always, when I test screen casting part of my app I need to make request and allow it for this application to give access to MediaProjection. After I rebuild app I need again allow this access (can't store it because application deleting and uploadin a new one whil debug).
{
"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"
}
So i found AppOps application, that can allow this permission programmatically, as I click it on permission appearing in runtime. So I understand, that I can do it programmatically in start of my rebuilded app in runtime.
So question: how can I get this functional in android framework ? Which methods and mechanics I must use to achieve this goal?

Related

applications uninstall problem

because every time you uninstall an application I get this (the process has stopped android.process.acore.)?? help please : Confused:
{
"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"
}
did you install custom phonebook.apk? (ex. Xperia S apps)
1. if yes, try to install the original phonebook.apk manually and open it. (do not import contacts cause you contacts are still there)
2. then install back the custom phonebook.apk manually.
In my case, it solved the problem.
It just means that the process has had to stop, it must be linked into your applications. I get a similar issue on some of the bloatware.
Yep, quick google shows it as syncing issues, try clearing data on contact storage remember to backup first as it'll probably delete your numbers etc.
Sent from my LT18i using XDA

[Q] I need help making a Star Trek-themed launcher

I'm currently using some fakery to scroll the live wallpaper (my app broadcasts the new X/Width parameters, but it's a bit laggy) and will do some more fakery to support widgets (both methods will only work with another Star Trek app I made: https://play.google.com/store/apps/details?id=com.omnicorp.lcarui.test&hl=en since I want to keep everything LCARSian.)
My questions are as follows:
High priority:
What is the code to either bring up the Create Shortcut dialog, or get a list of the shortcut types currently registered?
I understand that once the app creates a shortcut, it sends it to the launcher via intents I'll have to listen to.
Low priority:
What is the code to scroll the live wallpaper the correct way?
I'm using android:[email protected]:style/Theme.Wallpaper to show it.
Demo of what I've got so far:
http://sites.google.com/site/neotechni/Home/programs/Starbase1.apk
{
"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"
}

[Q] Remove Notification Icon

This icon appears whenever my data allowance has been used up. My network who are usually useful with things like this were otherwise on this occasion.
My phone is rooted with CM and terminal editor. Although I've not well versed in terminal editor I can follow instructions, like adding read/write to the system folder so I could delete system apps.
Any help in the matter is greatly appreciated.
{
"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"
}
Not sure entirely which app controls that, but you can find out by long pressing on the notification drawer then choosing App Info - should have the option to uncheck notifications. Unless it's system app that doesn't have that option. Then you could look into using the Xposed Framework and something like this: http://repo.xposed.info/module/de.defim.apk.notifyclean

Spoofing App Lollipop. Emulator KitKat?

Hi guys,
I tested my security with droidsheep or faceniff but these apps don't work with Lollipop.
I tried zAnti but when I try to use mitm attack, it doesn't capture sessions. And when I scan network it finds hosts without description(it doesn't say me if host is android, smartphone, PC, windows.... Nothing of this)
Why?
I tried network spoofer but when I try to use mitm attack it gives me this output :
{
"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"
}
I thought I have to emulate kitkat on my HTC with Lollipop(rooted with rom)..is this the only method? If yes, how can I emulate kitkat?
Thanks guys
Use cSploit.
Has all thoses features and many more , and it has a built-in Metasploit
Sent from my HUAWEI MT7-TL10 using Tapatalk

[Debloat] Disable any apps and bloatware using ADB AppControl

Hi friends!
I built a list of applications, that can be safely disabled, for Huawei P40.
Especially for my new program - ADB AppControl.
This is very usefull program for managing applications on andoid devices. With it you will forget about the ADB command line, and get the opportunity to disable and remove bloatware with an easy-to-use graphical interface. It will help you get rid of unnecessary junk like bloatware and save battery energy. Works great with Huawei smartphones.
You can choose which applications to disable when you load it into the program. If you disable something wrong, you can easily enable it again. Also, you can create your own presets and share them with other users in this topic.
{
"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"
}
Download ADB AppControl

Categories

Resources