Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to create Application which disable other application permission. for example I Don’t want Facebook or Viber to access my location. there are 2 application (in my knowledge) which can do something like this
1.this is a open source application.
https://github.com/slvn/android-appops-launcher
but this is not for all android version.
https://play.google.com/store/apps/details?id=com.gmail.heagoo.pmaster&hl=en
so my question is how can i disable other application permission?
please guide me.
Thank you.
You have source, what else you want?
App Ops were introduced in 4.3 and were disabled/removed in 4.4.3. You can't change permissions in other versions of system, because these options are simply not present there (before 4.3 and above 4.4.2, including 4.4.3 and 4.4.4).
Thats why this linked app is "not for all android version". Some of them (these with root) porting these methods from original App Ops or are using present, hidden in system. In >=4.4.3 it needs root permission level for execution.
This is fairly impossible without rooting, and shouldn't be possible afterwards (though it seems it is)
Basically, when you install an app, you accept the permissions it needs. Something as a terms and conditions.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I want to make an app in which we can change API level of mobile temporarily and test our apps.So,
Is it possible to change API level of mobile and test our app by using android app?
If it is possible then how we can do this in android applications by using Java.
No deployed version of OS of any sort contains its previous releases (don't confuse this with OS backward compatibility). The simplest way to test on various versions of given platform is to use emulator(s).
For Android see either stock one or 3rd party ones like Genymotion or Blue Stacks.
You can do that via emulator.
I don't think that it's possible to do with mobile.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I know some permissions(like sdcard_rw,network,etc)is checked by Linux kernel.But other permissions?Like location,receive boot_boardcast, camera,etc. If they're checked by Android framework. Could we write code instead of the framework to use this without permissions?
Can we write code to instead the default Android API.
Should I read the source code of Android?
Sorry,I am a beginner of Android , and my English is poor.
Thank you.
Have a look at the LocationManager Sourcecode. The code is scattered with throws SecurityException statements, every function call that might fail because of permission reasons should check the permission.
VoicemailContentProvider does this too, have a look at it's source to get an idea how it's implemented.
EDIT: my previous statement about checking on bind time is only partially true, this might be the case for older Android versions, current implementations seem to check permission on every access to the secured resources to allow for revoking through the settings application and runtime permission granting (a background process will fail to insert contacts when the permission is revoked, even if it never created a new binding to the ContactsProvider.)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am new in mobile app dev. And I want to build my app in standard camera. It will be like helper guide lines on camera to make better photos. But I don't want to build separate app, instead I want make it in standard cam like add on. So, because I am new in that sphere, I don't know is it possible to do, and which API or tools I should use. Can you help me with that?
In the way you want to achieve this based on description above : no, you can't.
Only way to do something like this is build own app (with own app icon in launcher) and try open camera from your app by Intent, but before that show tutorial within your app. But it seems to be not nice idea for tutorial purpose.
You cannot add more features in the application provided by different vendors. Each vendor(like Samsung, HTC) has its own application of Camera which is protected. If you want to do that then you will need to have permission of a vendor or become a vendor in the process. That entails to building your own OS or custom OS (Android Source Code is Open Source).
Next best thing you could do is provide a helper application that gives tips and tricks and anything informative for guidelines. Then user can learn from your app which is available for download through Google Play.
It is worth noting that almost every device hardware is different. Some features are device specific. Therefore quality and settings will also differ.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want test my application or specific apps with CTS but I can't find any way!!
Please help me.
Thanks
CTS has nothing to do with testing your application. It has nothing to do with testing "specific apps". It is for testing an Android device build, for compatibility confirmation. This is used by device manufacturers (and, perhaps, by ROM modders) for confirming that changes they made to Android do not break any Android SDK APIs. Passing the CTS is a requirement for licensing the Play Store and other commercial apps.
For testing "my application or specific apps", you are welcome to use the various test tools and frameworks in the Android SDK.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am looking at locking down several Android Tablets (Samsung Galaxy tab) to allow the user to unlock the device and be sent straight into one application and not allowed to leave. I was wondering if this is possible without creating a custom ROM and if so how? Any help is greatly appreciated
You might try creating a custom launcher and see how far that gets you. I don't think it will be bulletproof but by adding some hacks like having it auto-launch a specific app, it's probably about as far as you can get without a custom ROM. See here for the code of the stock Android launcher:
https://android.googlesource.com/platform/packages/apps/Launcher/+/master/src/com/android/launcher/Launcher.java
You could create an app that is more or less "non-exitable" by overriding the hardware buttons' default behaviour in your application.
Although if your app crashes and doesn't automatically restart after a crash, the user has full access to the rest of the system.