1. Error message:03-31 16:48:43.740:info/activitymanager: Start proc Com.android.packageinstaller for activity com.android.packageinstaller/. packageinstalleractivity:pid=620 uid=10026 gids={}03-31 16:48:44.749:warn/zipro (620): Unable to open zip '/data/data/ com.my.app/cache/myapp.apk ': Permission denied03-31 16:48:44.749:debug/asset (620): Failed to open Zip archive '/data/ data/com.my.app/cache/myapp.a
Some time ago, the company developed the javaee project and the website provided download for Android applications. The results showed that the APK files downloaded by many 3G online users were changed to zip files, but the database is stored in the APK file path, recently cannot be understood, our company uses apache-tomcat7, I took a look at tomcat, it is found
The Apache server's configuration file path is Conf/mime.typesAdd a row of data to the file, as follows:
The code is as follows
Copy Code
. application/vnd.android.package-archive apk
If your thing Apache server, find your Tomcat directory
Add the type of apk to the Conf/web.xml file.
The code is as follows
Copy Code
......
-----
The corresponding location of the Conf/mime.types file under the Apache installation directory, plus the following line of statements, specifies that the MIME type of the APK file is application/vnd.android.package-archive:
The code is as follows
Copy Code
Application/vnd.android.package-archive apk;
Restart Apache
How to share some other formatting additions
Found a
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 files not compiled into resources. ARSC;
3. Lib \ stores the compilation code of specific software and shares library
Today, you have a need to download an apk file. After the download is complete, the text of the button changes to click Install. After the installation is complete, the button changes to open.
Here is how to download the apk:
/*** Return the downloaded File after the following Apk is downloaded in the background. ** @ param httpUrl * @ return */private File down
Obtain the APK information (package name, version, version number, size, permission...) in a pure JAVA environment, and obtain the APK information on the PC end in pure JAVA language. The apk package name
Obtain APK information in a pure JAVA environment: package name, version, version number, size, permission...
To ob
Server Installation PHP EnvironmentDownload Android-sdk-windows Download JDK1. Open the ZIP support C:/windows/php.ini and open the exec2.APK SupportMIME Add. apk application/vnd.android.package-archive3. Install JAVASDK (to be consistent with Android's edit version)4. Edit IIS Bind permissions (www:www), directory does not have permissions to cause build to fail
. 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 Android Package, that is, the Android installation Package (anapk ).
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 these technologies. Next we will introduce ano
d -f [apk文件 ] [输出文件夹])
Once you have succeeded, you can view all the resource files for that app.
If you want to repackage the anti-compiled files into an apk, you can: enterapktool.bat b emanager(你编译出来文件夹) 便可,这就不述说了。
Third, apk anti-compilation get Java source code
APK anti-compilatio
Apk signature, apkApk Introduction
APK is the abbreviation of AndroidPackage, that is, the Android installation package (apk ). APK is a file format similar to Symbian Sis Or Sisx. Directly upload the APK file to the Android simulator or Android mobile phone for installation
= Applicationloaders.getdefault (). getClassLoader ( zip, LibraryPath, mbaseclassloader); ............. Pathclassloader Pathclassloader = new Pathclassloader (zip, parent); Trace.traceend (Trace.trace_tag_activity_manager); return pathclassloader;If using Pathclassloader to create is not feasible, fortunately Android opened a dexcla
and replace functions
This article is mainly used to decompile apk get the source code, but Google has been reversed, can only get some of the readability of the source code, here is mainly the use of decompile APK generated program source code and pictures, XML configuration, language resources and other documents.
The apktool-1.0.0.tar.bz2 and Apktool-install-windows-2.1_r01-1.
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 these technologies. Next we will introduce ano
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. The first two we talked about the shell technology and the runtime to modify the bytecode, if there is not clear can see my blog in the first two of the introduction of these two technologies. Next we will introduce another easy-to-use technology that prevents a
for files:
[root@iZ28srao5ssZ mag]# zip -rj config.zip /home/work -i "*config.properties" adding: config.properties (deflated 63%)
. Skip the specified file during compression
Specify the Options "-x" and "-- exclude ".Skip the mobile client program:
# zip -r 160.zip /home/work/release/* -x \*.apk
3.12.Deletes a sp
The laziest way to generate APK is:As long as you run the Android project, you can find the APK file with the same name as the project under the Bin folder of the working directory, which is signed by the debug user by default apk.
If you want to sign apk yourself:
1. The meaning of the signatureTo ensure that the le
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.