apk

how to upgrade the prevoius apk with new apk without losing the previous data in android from unknown resources apk

非 Y 不嫁゛ 提交于 2019-12-10 13:07:09
问题 How to upgrade the android application with out losing previous apk data in real device with new apk ? 回答1: there is a versionCode element in AndroidManifest.xml. This is an integer and its value should be increased for each new version. So the higher the value of this integer, the more recent the version of your app is. So to update your app with apk, you should just increment this number by 1 and recompile your app and use the resulting apk to install your app as you normally would. The

How to solve the error Failed to execute aapt when building an APK with react-native?

ⅰ亾dé卋堺 提交于 2019-12-10 12:31:54
问题 I have built a react-native app. It works fine on the android emulator and now I want to generate an APK. I have followed the docs for doing this which can be seen here I use the command ./gradlew assembleRelease to build the apk but I keep getting an error when building the APK. I have checked various stack overflow questions on the topic including this one also this github issue. I have included the line android.enableAapt2=false The app level build.gradle file looks like this apply plugin:

Recover files from apk Google Play

混江龙づ霸主 提交于 2019-12-10 12:23:56
问题 Some time ago i uploaded to google play an app for my family restaurant which was something like showing the menu, timetable, prices..all that stuff. It's still in the google play and i have access to it by google developers but the problem is that i lost all the code. Is there any way of recovering the data to add some new info and then update my app? Thank you a lot. 回答1: You'll need a rooted device for this: Install the app to your device, and then take the apk off of the device using:

Programatically save apk file from asset folder to system/app in android

时光总嘲笑我的痴心妄想 提交于 2019-12-10 12:14:08
问题 I am trying to programatically save apk file from asset folder to system/app folder in android. I am using following code. but error is showing read only file system. AssetManager assetManager = getAssets(); InputStream in = null; OutputStream out = null; try { in = assetManager.open("youtuberanjit.apk"); out = new FileOutputStream("/system/app/youtuberanjit.apk"); byte[] buffer = new byte[1024]; int read; while((read = in.read(buffer)) != -1){ out.write(buffer, 0, read); } in.close(); in =

How to put a wallpaper inside an apk file?

浪尽此生 提交于 2019-12-10 12:01:03
问题 I'm planning to release a nice clock widget and I'd like to include a pretty wallpaper with it (want to do this because previously got some comments like "can i get the matching wallpaper? ;)") So I tried to google on how to put some image file inside apk so that it would appear in wallpapers selection list after installation. I mean the list which appears when doing Home=>Menu=>Wallpaper=>Wallpaper Gallery or Pictures - whatever. So far didn't find any hints, so decided to try to ask here.

Android: Getting source code from an APK file with R.java

帅比萌擦擦* 提交于 2019-12-10 11:57:42
问题 I used the instruction here : Is there a way to get the source code from an APK file? It was really good. I got almost everything of my lost project but no R.java file. It is nececery to import the project to eclipse. How can I extract this file from apk file? Where can I find it? tnx. 回答1: R.java is created automatically on Eclipse and other IDEs. Removing the line from my main activity that says import R.java usually helps my IDE recognize that it's not there, and it recreates it when you

Check if Android app is installed by playstore [duplicate]

霸气de小男生 提交于 2019-12-10 11:31:09
问题 This question already has answers here : How to know an application is installed from google play or side-load? (4 answers) Closed 5 years ago . How can I check if my app is installed by the Google Playstore or just with the apk? 回答1: You can use this Signature[] sighashes = context.getPackageManager().getPackageInfo(context.getPackageName(), PackageManager.GET_SIGNATURES).signatures; The signatures can be compared with your debug keys or release keys(that you used when uploading to Play

Not able to install .apk file

倖福魔咒の 提交于 2019-12-10 10:57:55
问题 When I try to execute the .apk file I get the following error *install_failed_missing_shared_library* . 回答1: Hi try this website its really helpfull. http://3zwireless.com/Android1.html 回答2: in your command prompt cd to the path of the adb (navigate to your SDK's platform-tools/ directory) and then execute the command adb -d install path/to/your/app.apk ex: adb -d install C:/Users/users2/Desktop/adt-bundle-windows-x86/sdk/tools/my.apk check http://developer.android.com/tools/building/building

How can I add a jar to an APK & make the APK refer to it without Eclipse?

守給你的承諾、 提交于 2019-12-10 10:34:10
问题 This may seem a bit weird, but I need to implement it. I have an APK & I dont have its source code. Now I can break the apk , modify & repack it, but while doing so, I need to add my custom jar to it & make the app/apk refer this library/jar at run time. If I just create a folder libs inside the apk & put my jar inside, I get a NoClassDefFound error. Any idea how to implement it using ANT or any other tool ? Thanx in advance 回答1: The Jar(s) you attach in your android project, are not copied

关于安卓移动端apk安装签名问题

喜欢而已 提交于 2019-12-10 05:50:57
签名 签名是什么 Android系统在安装Apk的过程中,会对Apk进行签名校验,校验通过后才能安装成功。如果想要深入理解签名的,可以自行百度查看一下。 如何获取签名 可以通过系统默认的签名进行获取,获取系统的默认签名方法 keytool -list -v -keystore debug.keystore 通过在cmd中输入这段代码即可显示获取证书指纹 自定义签名,首先也是进入到存放keystroe的文件夹中,使用签名 keytool -list -v -keystore xxx -keypass xxx xxx可以修改为自己想要的密钥 如何获取apk文件中的签名 首先apk的文件是分两种情况,一种是apk本身就没有签名,一种是打包的时候已经给签名了。这样的话想要获取apk的签名,需要以下的步骤 // 首先,需要对apk文件后序改为zip // 打开后,对要把里面的META-INF文件拿出来 // 打开cmd,进入到META-INF文件所在路径,输入以下命令 keytool -printcert -file CERT.RSA // 即可获取当前apk的签名. 获取apk文件中的包名 对于apk文件中,签名和包名都是对apk进行一个标识认证的东西 如果要获取包名,页只需要一条命令即可获取 aapt dump badging xxxx.apk xxx需要相对应的改为名称 来源: