Open the suffix. apk file, that is, start the installer;Apkfilepath file path public void installapk (String apkfilepath) { //create URI uri uri = uri.fromfile (new file Apkfilepath)); Intent Intent = new Intent (intent.action_view); Set the URI and type intent.setdataandtype (URI, "application/vnd.android.package-archive"); Perform installation mcontext.startactivity (intent); } /** * Open mult
Method One:Suppose the software name to be built is Iperf.exe1. Place the iperf.exe in any of the codebase directories (the directory must be searchable when searching for android.mk), such as System/iperf/iperf.exe2. In the System/iperf directory, add a android.mk file that reads as follows:Local_path:= $ (call My-dir)Product_copy_files + = $ (local_path)/iperf.exe:system/iperf/iperf.exeRecompile codebase, the file will be built into the System/iperf directory of your phoneThis method prohibits
As we all know, packagemanager can be used to obtain information about the APK files installed on the mobile phone end. The specific code is as follows:
Packagemanager = This. getpackagemanager ();
Through the above method, you can obtain all the applications installed on your mobile phone, including information about the APK package that is manually installed a
();} inputStream. close ();} System. out. println ("downloaded"); // send a Message to handler to change the text attribute of the button. message = handler. obtainMessage (); message. what = 1; handler. sendMessage (message);} catch (MalformedURLException e) {e. printStackTrace ();} catch (IOException e) {e. printStackTrace ();}}}). start (); return file ;}
Here is how to install APK:
/*** Install APK *
[Android's Beauty] APK slimming, reduce the size of the APK
Keep your apk files as small as possible, and you should remove unused code and resource files. So this section describes how to make the apk smaller, better per
optimize it:D:\>zipalign-v 4 demo_signed.apk final.apkAs above, Zipalign is able to align uncompressed data in APK files on 4-byte boundaries (4 bytes is a good performance value), this allows the Android system to read the file using the mmap (check the function's purpose) function to get higher performance on the Read resource ,Ps:1. Alignment on a 4-byte boun
. pk8
4. If you do not have source code, you can use the tool I share in micro cloud: http://url.cn/LFvYbU
How can I Package Multiple APK files? Can I package more than 10 APK files into one file?
Apk APK is the abbreviation of
Preface:
What is APK?"Application package file"
Simply put, the compiled files and resource files are packaged together in a zip container. Let's just get to know it.
It usually contains the following directories and files:
1. META-INF \ store the signature key;
2. Res \ stores the resource
I've recently seen Lao Luo's blog on the analysis of Android resource management and APK packaging process, referencing other materials, doing some tidying up, leaving out tedious packaging details and data structures, and outlining the entire process of apk packaging as a whole.Process Overview:1, packaging resource files
:\Program Files (x86) \java\jdk1.7.0_10
Click OK;
Create a new variable with the variable named Classpath and the value of the variable as follows:
.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar;%java_home%\bin
(Don't fall in front of that point) here is the relative path, so you can copy my, click OK;
Find an existing system variable path, edit its value, don't change the original content, and at the end add
; C:\Program
First, prefaceToday, finally, the final article of the break series, the two previous articles were:First article: How to use eclipse Dynamic debugging Smali source codeSecond article: How to use Ida to dynamically debug so filesNow to say is the last article, how to deal with some of the Android APK security protection, in the previous two cracked articles, we can see one is for the Java layer of the crack
Android decompile apk (1), android decompile apkWhy decompilation:
As a personal developer, sometimes you can see exquisite UI effects and interesting functions. Do you have the urge to refer to learning. Decompiling the android apk is to extract the source code from the
Original source anti-compile Android apk and prevent apk program from being decompile how reverse engineer to decompile Android APK
Google Android Development is open source, some of the development process will encounter
Android 5.0 pre-fabricated APK method, android5.0 pre-fabricated apkFirst, how do I preset the APK with source code into the system? // Cao haoyang's column1) Under packages/apps, create a new folder with the name of the apk to be preset. The example is to preset an APK name
signature, which is very convenient and recommended. The steps are as follows:Step 1: export.
Step 2: Create the keystore, enter the location and password for the keystore export, and remember the password. It will be used in the next use existing keystore.
Step 3: Enter the keystore information, password of some APK files, expiration time, and organization unit information.
Step 4: generate an
After a busy week and finally having time to write something, we continue to introduce another way for Android APK to prevent anti-compilation technology. Top two we talked about Shell technology (http://my.oschina.net/u/2323218/blog/393372) and runtime modification bytecode (http://my.oschina.net/u/2323218/blog/396203) , if there is something you can see in the first two articles of my blog about both of t
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.