How to get Dialed number in my Application Without Permission - android

I want to get Dialed Number in my application but without any Manifest Permission tag. I know how to do it with permission,
Is there a way to do this without Manifest Permission tag?

No, there's no way to get dialed numbers without taking permission from the user. And, this is the answer to your question.
Google is much concerned about the privacy of their users, so you cannot fetch personal informations of user without their own permission.
But still if you want to do that then you might have wanted to create your own OS.

The above answer is right you don't do it without permission.
You can do it with permission only by way describe in this link.
Although in new policies of google you can't request for permission of call logs and SMS if your app doesn’t really require these permissions.
So, I think there is no way to do it.

Related

Android Application Permissions Logging

i have a question related to Android app run time permissions.
Is it preferrable/allowed practice for developers to save users' permission preferences i.e. each user has allowed/denied any permission, on our remote server database?
Offcourse we are asking run time permission for every feature we want to use, but is it preferrable that we log on server that if user has allowed for any permission or not, please let know. Thanks
Android framework has restricted the developers to ask only those permissions which are necessary to implement a specific feature and that too if there's no other way to implement the feature without that specific permission. In your case, it seems like you have already taken care of the permissions and just want to hold the result of the asked permissions.
So the answer is YES, You can save this data and it's even considered good practice for handling permissions. Here's the reference from the official android documentation.
Greater flexibility in granting permissions
Users can deny access to individual permissions at the time they’re requested and in settings, but they may still be surprised when functionality is broken as a result. It’s a good idea to monitor how many users are denying permissions (e.g. using Google Analytics) so that you can either refactor your app to avoid depending on that permission or provide a better explanation of why you need the permission for your app to work properly. You should also make sure that your app handles exceptions when users deny permission requests or toggle off permissions in settings.
https://developer.android.com/training/permissions/usage-notes

Android Permissions should be asked on startup or only when needed?

I have built an app that use different kind of permissions like location, contacts etc.
Not all the permissions are used by all the users, instead each user only needs the permissions related to the features he/she is using it.
My question, should I ask all the permission on startup for all users or can I add them gradually while using the app and only when needed?
Thanks
If a user doesn't know why they need to accept a specific permisson, they may be suspicious and refuse (eg. camera).
If they click on a functionnality like 'Scan code' they will know why they are being asked for that permission and accept.
If you asked beforehand and the user refused, when you get to the part where you need that permission, it won't work. This is why they changed it to dynamic permissions in Android 6.

Permission Declaration Form for SMS in Android

My question is not how to implement SMS in android. I just want to get clarification regarding a post which says something about removing apps from Google store that ask for SMS permission for those that have not submitted a permission Declaration form.
https://android-developers.googleblog.com/2019/01/reminder-smscall-log-policy-changes.html …
The permission declaration form is more or less useless. Google wants to remove all Apps which use read/write SMS from the store.
There are a few cases in which the declaration form helped. Tasker was allowed to use read/write SMS but that was an exception because Tasker is very popular.
If you want to use read/write SMS in your App you won't be able to publish it on the Play Store. Google won't allow it.
This all happened because some developers from India and China used read/write SMS for illegal activities.
There still are ways to send SMS from your App but you are not allowed to use read/write SMS permission or do it automatically from you App.
Read more here:
https://proandroiddev.com/no-more-sms-call-log-permissions-now-what-9b8226de7827
The Answer suggested above worked for me. I used an Intent to open the default SMS app. And yes the permission declaration form is real. So i will advice looking for an alternative to figure out the problem.

Android - Change READ_PHONE_STATE permission request message

I'm using the Android Marshmallow READ_PHONE_STATE permission and I would like to change the text that appears on the permission request.
By default it shows:
Allow [App name] to make and manage phone calls?
But I'm using it to get the device id and the sim serial number, so I think is better to change the request message. Do anyone knows how to do it (some special function or something)?
Or I just have to implement an independent Dialog for that?
Thank you very much.
No you can't change the text in the dialog. It is implemented by default in the system. You can provide a brief explanation regarding the permission before you ask for it. That way user will know exactly what you're going to use it for.
Request Permissions
If your app needs a dangerous permission that was listed in the app
manifest, it must ask the user to grant the permission. Android
provides several methods you can use to request a permission. Calling
these methods brings up a standard Android dialog, which you cannot
customize.
Explain why the app needs permissions
In some circumstances, you might want to help the user understand why
your app needs a permission. For example, if a user launches a
photography app, the user probably won't be surprised that the app
asks for permission to use the camera, but the user might not
understand why the app wants access to the user's location or
contacts. Before you request a permission, you should consider
providing an explanation to the user. Keep in mind that you don't want
to overwhelm the user with explanations; if you provide too many
explanations, the user might find the app frustrating and remove it.
One approach you might use is to provide an explanation only if the
user has already turned down that permission request. If a user keeps
trying to use functionality that requires a permission, but keeps
turning down the permission request, that probably shows that the user
doesn't understand why the app needs the permission to provide that
functionality. In a situation like that, it's probably a good idea to
show an explanation.
To help find situations where the user might need an explanation,
Android provides a utiltity method,
shouldShowRequestPermissionRationale(). This method returns true if
the app has requested this permission previously and the user denied
the request.
More details in the documentation

necessary manifest permissions for ad providers?

I want to try some different ad providers for my android app.
Some of them want a lot permissions in the manifest which I don't always find appropriate.
(of course they all need android.permission.INTERNET since they fetch ads from their servers)
For example: Millenial Media wants android.permission.WRITE_EXTERNAL_STORAGE; a lot of other provider want android.permission.ACCESS_COARSE_LOCATION.
If I don't grant these permissions in the manifest does the app work correct anyway or could this cause problems?
And do I get ads from these providers anyway without these manifest-permissions?
Edit: it's hard to test all SDK's of the ad providers. For MoPub I know it still works if I don't give them android.permission.ACCESS_COARSE_LOCATION - and I get ads from them.
I think I will only get an Error when their SDK-Code is trying to use a Method which needs a permission - but they could catch this. So my question is more:
Do all ad providers handle this correct? And will they then refuse to send ads in general?
Edit-2:
Has anyone had errors/crashes because he didn't grant special permissions requested from the ad-providers SDK?
App will work fine but you will not get the adds.
these are compulsions , you need to add permissions in Android Manifest file .... its compulsion
From the official doc
If an application needs access to a feature protected by a permission,
it must declare that it requires that permission with a
<uses-permission> element in the manifest. Then, when the application
is installed on the device, the installer determines whether or not to
grant the requested permission by checking the authorities that signed
the application's certificates and, in some cases, asking the user. If
the permission is granted, the application is able to use the
protected features. If not, its attempts to access those features will
simply fail without any notification to the user.
This is the complete list of permissions you have to provide according to your needs

Categories

Resources