How to profile a production android application - android

How to profile a production android application (apk) as its by nature not debuggable and will not show up in Eclipse DDMS or Android Monitor

I have developed a tool (apk ) using which you can make a production ready code ready for code profiling . You can download the tool (performance profiler) at here
https://play.google.com/store/apps/details?id=com.testingoncloud.makeappdebuggable
One needs to install performance profiler from google play (link given above).
Steps -
Install performance profiler from google play store - https://play.google.com/store/apps/details?id=com.testingoncloud.makeappdebuggable
Install the target app (say abcbank.apk )from playstore (which you want to profile) if its not already not done so.
Download the production (target app : say abcbank.apk) as apk on to SDCARD using apkshare
https://play.google.com/store/apps/details?id=com.newpower.apkmanager
Now uninstall the production (target) app which you want to profile(say abcbank.apk)
Start Performance Profilier app , which you have installed in step 1 and choose the target app from the grid below (its a file system access ). You can go to the sdcard location and choose the target app (say abcbank.apk) . You will get a confirmation message about your selection
Click on Install Target App Button . The targetProduction app now will be ready for profiling..
Closing Notes -
If you have any issues , you can contact me at indraneel_in#yahoo.com. Thanks for reading and have a great time code profiling

Related

Flutter Applications Not Showing In Google Play Store On Emulator

I have published several applications on the Google Play Store and I wanted to download one of them using an emulator.
What I noticed was, that when I look at the applications under my name through the Google Play Store on an emulated device, all Flutter applications are missing.
When I do the same thing in a browser on a computer, I do see all my applications (notice how Pill shows up):
Clarification: Pill is not the only Flutter application I have
published and the screenshot doesn't show the entire application
catalog)
I tried looking online for anything that would explain this, since even on my computer, I cannot download the applications, but they are showing up.
What could be causing this?
EDIT
When copying the direct Google Play link and pasting it in Chrome on the emulator, it opens Google Play and allows me to download and install the application.
When doing the same thing inside Google Play on the device, the link shows me nothing.
Your application would have bot been released in all countries. In web it might show all applications but in a device it will display based on countries that the app is available to check the same please follow these steps
Go to Play Console.
Select an app.
Select Release > Production > Countries/regions.
Update your app's country selection.
Submit your app update.
The Play Store enabled emulator images are x86 images so they can be executed faster on an Intel/AMD CPU. Physical smartphones at the moment all use ARM CPUs (armv8a 64 bit to be precise).
If an app uses CPU specific native libraries it needs to include one version them for each CPU architecture it plans to support. Therefore if the app you want to install in the emulator only has native libraries for ARM then it can not be executed on an x86 emulator and thus will not be shown in Play Store.

How to test In App Update In Android Manually

I have implemented In-app update in my app and followed the below mentioned steps to test it,
Uninstall the original app from device.
Install the app from the Google Play Store
Uninstall the app again.
Generate signed apk with the new feature, with a lower versionCode than Google Play version
Install this apk.
Above mentioned steps will not work in some devices.
So I want to know if there is any alternative way for this testing.
At the end of the document, you should make sure the below conditions:
I hope it helps!
For the in app update feature their are some pre requirements , you need to make sure that the application is already live and installed in your device , one user is already logged In into the app and their is an update coming soon for that app.
For testing the in app update feature of the android application the user needs to follow various steps:
Step - 1 Verify that the app you are testing is live on play store.
Step - 2 Install the application
Step - 3 Login to the app.
Step - 4 Ask the developer to upload the latest build
Step - 5 Open playstore and check whether their is any update for the app.
Step - 6 If their is an update on playstore , Open your app and check for the app update pop up.

Auto Updating Sideloaded Android App on Start

We have an Android app (.apk) published to a publicly accessible URL, any user who knows the URL can download and install the app.
The app is already installed on the relevant user phones and allowing sideload option from the settings is turned on.
How can I force the app, on start, to check for update and replace the existing app if found, then restart the app (to pick up the latest version)?
Is there a standard solution or a software package? Should I be thinking in a different way?
I am using Xamarin Forms, however, I am happy with Xamarin Android or any Java-based solution.
One thing you could do is to have a small plain text file in the same server where the APK is, that contains the version number of the APK available on the server. The runing app then just reads that text file and compares against its own version number.
If the version on the server is newer (has a higher version number), you simply download the new APK to a temp dir and install the APK programatically using the method outlined here: Android: install .apk programmatically
The way to go is HockeyApp. It´s a distribution system that does exactly what you are looking for. Besides, you get a useful crash logger and some statistics, etc. It´s free for 2 apps.
Once you install and configure their SDK in your Android app, an activity will popup telling the user a new update is available if there is any.
The user can install the new version with a button tap. Simple.
The setup process involves installing a nuget package and write a few lines of code in your main Activity class.

how can generate apk file from installed android application?

Hi android developers I got an issue from android development. Actually one android app I installed in my mobile successfully it is installed. But I want my apk file from installed app. How can I get suggest me thanks!!
All installed APKs are located in /data/app/, but you can see this if you have rooted device
If you don't wants to root your device then there are many application available in market such as MyAppSharer
MyAppSharer is available on google play store.
Download MyAppSharer
The APKs will goes in /sdcard/MyAppSharer
Here is the solution.
First there are two types of application in android devices
Default application (i.e. installed by manufacture)
From third party app(i.e from play store etc)
If you want apk of the third party application connect your android device in your computer and launch android studio.
Open Device File Explore --> data -->app. Right click on the apk you want and save it on your local device(i.e computer);
For the default app which installed by manufacture repeat the previous procedure but in this step go to Device File Explore --> system -->app. Right click on apk you want and save it.

Use Google apps in the emulator

Would it be possible to provide a emulator image that has all the Google apps that come with real devices, like Gmail etc?
I don't have access to a 2.0 device which makes it close to impossible for me to develop/debug apps which uses AccountManager etc.
Download the Android Dev Phone system image from http://developer.htc.com/adp.html.
Then, create a new AVD (using the android tool or adb) with the matching version. The avd directory will appear at the .android directory inside your home directory (Run %USERPROFILE% on windows). Then, put system.img file downloaded into the <name of avd>.avd directory. Start the emulator and you will use Android with Google apps installed.
Disclaimer: about whether it is legal or not to download and use such images, I don't know. Please read the text there and decide yourself.
Given the trouble that Cyanogenmod had with trying to redistribute Google's apps, I would say it's not an option. However, if it's something in the Android source (like the calendar), you can compile it yourself.
If you just want to debug the app, you don't need to create a new image. You can run some of the google apps including gmail and google maps in the emulator. If you go to the Android SDK and AVD manager in the Eclipse Android plugin, and then go to "available packages", for every SDK there are two downloads for each version of the api. There is the one with Google Apps and one with out. The one with Google apps has apps such as gmail and google maps. It does not have all Google apps. The market is not there for instance .

Categories

Resources