How to control the resources not used to delete the apk during compilation ?, Compile apk1. Modify MTK_PRODUCT_LOCALS in alps/meidatek/config/xxx/ProjectConfig. mk to remove unnecessary resources, such as screen density or language.2. Related Resources of nodpi and mipmap will be retained due to their special functions.PS:Nodpi: resource does not perform scaling Based on device densityMipmap: provides resources different from device dpi.How can I remo
The procedure is as follows:
1. generate an APK to be called. In its AndroidManifest. xml settings, it is roughly the same as the general writing method. The only difference is that:
-->
The red part indicates the name to be called.
2. Install the APK to be called. The Application name cannot be found in the Application List Directory. You can view the application only in the application deletion Management
Sometimes, we are debugging the APK, the direct build can be generated normally, no error, but when we add their own signature file, will be an error. In general, we can add a thing to android{} in Build.gradle. lintoptions { Checkreleasebuilds false abortonerror false }The entire file is as follows:Apply plugin: ' Com.android.application ' android { compilesdkversion buildtoolsversion "26.0.1" defaultconfig { Appli
Click the built-in APK to install the APK that has been built into the system.
Package com. Wind. bbminstaller;
Import java. Io. file;
Import Android. App. activity;
Import Android. content. intent;
Import android.net. Uri;
Import Android. OS. Bundle;
Public class mainactivity extends activity {
Static final int request_install = 1;
@ Override
Protected void oncreate (bundle savedinstancestate ){
Sup
Apk back-compilation problem summary (phase), apk Compilation
Decompile the apk and inject your own code into smali.
I tried several tools (apkdb, apktool, and apkSign ),
All decompilers are allowed, but the decompilation is not compatible with java1.8. As a result, the re-compilation is successful, but the apk does
driver file and click "next" to install it directly.3. After the driver is installed, go to the most critical steps for one-click cleanup of APK cache spam, as shown below:Download the APK optimized software provided by Xiaobian, decompress the software, and open the software to enter the main interface. There are simple instructions for use;Select the first item "optimize
Android-General apk installation method, General android apk
Reprinted please indicate the source: http://blog.csdn.net/l1028386804/article/details/46955863
Not to mention, go directly to the Code:
Public void installApk () {Intent intent = new Intent (); intent. setAction (Intent. ACTION_VIEW); // obtain the apk name String name = "test.apk" based on the actu
View Android APK Source Code cracking and Android apk source codeTool preparation:
Tool download: http://download.csdn.net/detail/catshitone/8491347Start: Step 1:
First, decompress the apk package with the decompression software (such as good pressure. The unzipped xml file is garbled when it is opened. How can this problem be solved? Step 2:
Open cmd.exe to e
The premise is that JDK has been installed.
Required tools: apkanalyzer
: Http://download.csdn.net/detail/koko7958/3803375
1. Get APK Information
View androidmanifest. XML to obtain the package name, activity name, and version.
Because androidmanifest. XML in the APK package cannot be directly decompressed and viewed, you need to use apkanalyzer to perform the following steps:
> JAVA-jar axmlprinter2.ja
The example described in this article is the Android code for a weather report, which includes downloading and installing APK, checking apk updates, displaying ' already up-to-date ' or ' unable to get version Information ' dialog box, getting current client version information, displaying the Version Update Notification dialog box, displaying the Download dialog box, Determine whether to mount the SD card,
The associated APK is placed under the Assets Directory. The Code is as follows, but the installation is displayed when the associated APK is installed.
Private file getassetfile (){
Assetmanager asset = mainactivity. This. getassets ();Try {
Inputstream is = asset. Open ("zxing.apk ");
Fileoutputstream Fos = This. openfileoutput ("zxing.apk", context. mode_private + context. mode_world_readable );
Byte []
Solve the problem that AAPT cannot compile APK, and aapt cannot compile apk
Error:
Run Eclipse + ADT on Ubuntu 12.04 64-bit system and report the following error:
Error executing aapt. Please check aapt is present at /home/null/dev/sdk/build-tools/19.0.3/aapt
Cause:
32-bit library Not Installed
Solution:
Step 1. Modify the Ubuntu update source
$ sudo vi /etc/apt/sources.listAs follows:
deb http://mirror
of the jar are imported so save the trouble of repeated import every timeCompile Filetree (include: [' *.jar '], dir: ' Libs '),After a long repetition of finding a v13 bag,Google later found that this wasAndroid-support-v13 is a version compatible package that is released by Google, with a minimum compatible Android3.2 system. It was designed to develop a flat plate. Android 3.x systems are tablet-only systems, but the 3.x system has failed. So using V13 's package has no value.Turns out this
B's menifest file to declare the use of the appropriate permissions, App B sends the message, a is not received.In addition, you can also add android:protectionlevel= "signature" When declaring permissions in App B's Menifest file, specifying that app B can only receive messages sent by apps signed with the same certificate.The mutual invocation of data between the two Android apps is an issue that we often encounter, and this article focuses on the Android development Customization permission
Cocos2d-X development of Chinese chess 14 game package into APK, 14 apk
In the previous blog, from the return of game scenes to the start scene and the use of xml to display Chinese characters in the game, this blog will be the last article of the Cocos2d-X to develop the Chinese chess series blog, this blog will introduce how to port Chinese chess to Android.
Since I 've previously written two articles abo
Some native classes cannot be found when the apk is compiled by mm in Android4.4, because it is optimized by produard. I have not encountered this problem in Android4.2.1. What does proguard do? ProGuard is a free java File compression, optimization, and obfuscator. It detects and deletes unused classes, fields, methods, and attributes. It deletes useless instructions and uses bytecode for maximum optimization. It uses meaningless names to rename clas
[to] use the APK signature to give the application system privileges (2013-01-08 13:40:50)Reproduced ItCategory: AndroidSource: http://blog.csdn.net/doom66151/article/details/7085464 Issue: system preinstalled software, need to access some configuration files, configuration file owner is set to system. So the application needs to be authorized to read and write. Google search found the following article to solve this problem. The following explai
Problem:Pre-installed software in the system. You need to access some configuration files. The owner of the configuration file is set to system. Therefore, the application must be authorized to read and write data.Google search found the following article to solve this problem.
The following content explains:Permission rules for the Android system?How can an application obtain system permissions?What is the APK signature process?How does the
publishing organization is difficult to disguise. We can think of it as not camouflage for the time being.
With the theoretical foundation, we can start to practice. So how can I obtain the public key information of the APK file? Because the Android system installer will certainly obtain the APK information for comparison, we can get some ideas and help through
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.