apk

how to print a specified parameter when using aapt dump

蓝咒 提交于 2019-12-24 08:03:00
问题 I saw here that the command aapt dump badging foo.apk prints all the details of the specified package. Is it possible to print any one property, say sdkversion? Something like aapt dump badging -sdkversion foo.apk P.S I'm using command prompt in windows. EDIT I am trying to store the package name in a variable. As of now, I have this code @echo off for /f "delims=" %%a in ('aapt dump badging foo.apk') do ( REM each line of the output ) I am able to retrieve each line of the output. Now I have

Permission Denial: opening provider android.support.v4.content.FileProvider

亡梦爱人 提交于 2019-12-24 07:57:20
问题 I was having some problem when trying to perform an application upgrade in Android emulator. The flow of the scenario is from an Activity, I will execute AsyncTask A which open up fragment A , then inside AsyncTask A , I will check if version upgrade is available. If available and user selected "Okay" from fragment A , I will proceed to AsyncTask B to open up fragment B which show a message to user saying that upgrading is in process. In AsyncTask B doInBackground() , I will execute the

How do i publish an updated version of my existing ionic app on google play store?

那年仲夏 提交于 2019-12-24 07:51:42
问题 I have recently launched my first ionic app on play store and now i want to publish a updated version. I have the .keystore file and its password with me but i am not getting the steps to generate the release apk to update my existing ionic app. I would appreciate a help. Thanks 回答1: Start with changing the android-versionCode , android-versionName (optional) and version attributes in the widget tag in your config.xml. Then remove all plugins you only use for development, like console: $

Is it possible that getInstallerPackageName() is null when app downloaded from Google Play Store?

自作多情 提交于 2019-12-24 07:27:13
问题 In my app I use some implementation to check, if the app was downloaded from Google Play Store. Otherwise it does not start. For this I use getInstallerPackageName() by checking if the name is com.android.vending. This basically works on all of my devices, but in Google Play the pre-launch report tells me, that 2 of 9 devices return null from this method. Now there are two possibilities. Either this method returns sometimes null, even if it's downloaded from Google Play Store, or it is null,

Is it possible that getInstallerPackageName() is null when app downloaded from Google Play Store?

扶醉桌前 提交于 2019-12-24 07:27:04
问题 In my app I use some implementation to check, if the app was downloaded from Google Play Store. Otherwise it does not start. For this I use getInstallerPackageName() by checking if the name is com.android.vending. This basically works on all of my devices, but in Google Play the pre-launch report tells me, that 2 of 9 devices return null from this method. Now there are two possibilities. Either this method returns sometimes null, even if it's downloaded from Google Play Store, or it is null,

Rename Base.apk

ぃ、小莉子 提交于 2019-12-24 07:17:09
问题 I need to know about base.apk . When i run the following code: PackageInfo paramPackageInfo = null; try { paramPackageInfo = MainActivity.this.getPackageManager().getPackageInfo(MainActivity.this.getPackageName(), 0); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } ApplicationInfo localApplicationInfo = paramPackageInfo.applicationInfo; String str2 = localApplicationInfo.sourceDir; The value in Marshamallow of str2 is: /data/app/com.package.name-RY_AUYdNAwLZg==/base

signed apk Parse error when parsing manifest

混江龙づ霸主 提交于 2019-12-24 07:14:35
问题 When I try to install my signed apk I get a parse error (see logcat). When I install the apk signed with default debug key everything is okay. this is the logcat output: 08-28 17:12:47.267 23828-23828/com.android.packageinstaller W/PackageInstaller: Parse error when parsing manifest. Discontinuing installation 08-28 17:12:47.267 23828-23828/com.android.packageinstaller W/PackageParser: Skipping dir: /mnt/shell/emulated/0/vertretungsplan-2.0.0.apk 08-28 17:12:47.287 23828-23828/com.android

using gradle to create two production apks from single source [duplicate]

送分小仙女□ 提交于 2019-12-24 06:42:31
问题 This question already has answers here : Multiple Android Application Package .apk files from single source code (10 answers) Closed 2 years ago . ANSWER Ok. So a lot happened here. So let me assemble the answer. First create the desired flavors: productFlavors{ training{ applicationIdSuffix ".training" versionNameSuffix "-training" } full{ } } Second, get a list of all the path structures you may need by: Click on the Gradle icon on the right of the IDE under your project > Tasks > android,

“Unknown Source” in release apk

青春壹個敷衍的年華 提交于 2019-12-24 05:32:31
问题 Everything in my debug APK works just fine. However, when I export my APK and install it, everything works fine until I make a call to a referenced library. E/AndroidRuntime(32571): at com.znood.znoodapp.ShowResultsActivity.a (Unknown Source) I am using ProGuard. My libraries are in the libs directory and are added to build path. Any pointers are highly appreciated =) 回答1: The problem was with the Google Gson library. Proguard converts class names into obfuscated ones rendering json

“Unknown Source” in release apk

本小妞迷上赌 提交于 2019-12-24 05:32:11
问题 Everything in my debug APK works just fine. However, when I export my APK and install it, everything works fine until I make a call to a referenced library. E/AndroidRuntime(32571): at com.znood.znoodapp.ShowResultsActivity.a (Unknown Source) I am using ProGuard. My libraries are in the libs directory and are added to build path. Any pointers are highly appreciated =) 回答1: The problem was with the Google Gson library. Proguard converts class names into obfuscated ones rendering json