The modification process is simple, but the signature may need to be set up in Java.
First, the modification process:
Download arsceditor and use one to edit the resources. ARSC file! Attachment download:Download link
Use WinRAR to open the downloaded qq For pad APK, as shown in figure
Drag the resources. ARSC file to the desktop (or another folder)Open arsceditor.exe and use this software to ope
An error occurred while switching to Oracle:[Root @ ARSC ~] # Su-OracleSu:/bin/Bash: Too program open files in System[Root @ ARSC ~] #
Bytes -------------------------------------------------------------------------------------
[Root @ ARSC ~] # Cat/proc/sys/fs/file-max512
[Root @ ARSC ~] #
Too few files found
View
Android reverse trip --- parse the compiled AndroidManifest File FormatI. Preface
Today is Saturday again. I have nothing to worry about. I have to write an article. Today we will continue to look at reverse information. Today we will introduce the AndroidManifest file format in Android, some may be curious. What is the format of AndroidManifest? It's not about how tags and attributes are used? That's certainly not. It's boring to introduce the knowledge, and it's irrelevant to our reverse versi
AssetManager class looks for Resources by file name. In fact, if a resource ID corresponds to a file, the Resources class first finds the resource file name based on the ID, then, the file name is handed over to the AssetManager class to open the corresponding file. The basic process is as follows:
We can see that Resources converts the Resource ID into the name of the Resource source file through resources. arsc and then submits it to AssetManager f
According to foreign media reports, the number of software in the mobile phone software store of Google Android Market has exceeded 20 thousand, but most of these rich software is in English, which is inconvenient for friends who are not good at E. Don't be afraid of E. Let's develop our own hands-on and full-fledged spirit and turn our favorite software into Chinese.
Chinese principles
The Chinese software, which sounds highly technical, is not difficult to implement. On the Androi
in the App.
Size and ranking of various types of files
Percentage of well-known sdks in all dex Methods
Ranking of methods of various well-known sdks
Is there a cool feeling after reading the section chart in this apk! I compared this analysis tool to the smart weight scale we bought at home, which can be called weight, fat content, bone weight, bone density, muscle content, etc. So did we find some problems, then, we can use logic to link these problems with our previous experi
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 files;
4. The global configuration file of th
APK tool usage
To do well, you must first sharpen your tools. Let's first introduce the tool apktool for compiling AKP files. Apktool is a tool for decompiling and decompiling APK files. With this tool, we can build our own APK files.
First, we can use WinRAR to open the APK file. It seems like a common compressed package, but it is far from that simple. After WinRAR decompress the file, it seems that there is no problem to view the image, but when you view the XML file, you will find-"garbled "
Detailed description of the Andriod APK file structure, andriodapk
APK file structure
The APK file is actually a zip package and can be unzipped.
The structure of the APK package is as follows:
| -- AndroidManifest. xml
| -- META-INF
| -- CERT. RSA
| -- CERT. SF
| '-- MANIFEST. MF
| -- Classes. dex
| -- Res
| -- Drawable
| '-- Icon.png
| '-- Layout
| '-- Main. xml
'-- Resources. arsc
Manifest File
AndroidManifest. xml must be defined and contained
file.Drawable: stores the pictures used by the program.Layout: stores layout files of android.Menu: stores the layout of the OptionsMenu menu of android.Values (the data required by the application. The id is generated in the R file)Strings. xml stores android strings.The dimensions used for screen adaptation are stored in dimens. xml.Style. xml stores the style displayed in android.Values for values-sw600dp 7-inch flatThe value of the values-sw720dp-land 10-inch flatThe values-v11 specifies th
: Anti-compilationJava-jar Apktool.jar D com.hiwifi.hiwifi_20140801181424.apkStep two: Modify the channel numberSed-i. Bak ' 145s/.*/Step Three: RecompileJava-jar Apktool.jar b com.hiwifi.hiwifi_20140801181424 com.hiwifi.hiwifi_lenovo.apkI encountered the following error while recompiling:I:checking whether sources has changed ... I:checking whether resources has changed ... I:building Resources ... Exception in thread "main" brut.androlib.AndrolibException:brut.androlib.AndrolibException: Brut.
with the decompress software. After unzipping through WinRAR or UnZip, you will see several files and folders. IA typical APK file consists of the following content:
Global configuration file of AndroidManifest. xml ProgramClasses. dex Dalvik bytecodeResources. arsc compiled binary resource fileMETA-INF \ This directory stores signature informationRes \ This directory stores resource filesAssets \ This directory can store some configuration files
Bel
Is there a cool feeling after reading the section chart in this apk! I compared this analysis tool to the smart weight scale we bought at home, which can be called weight, fat content, bone weight, bone density, muscle content, etc. So did we find some problems, then, we can use logic to link these problems with our previous experience and head shoot.
Then, we can sort out our optimization objectives through analysis data.3. Sort out the optimization objectives
Therefore, our goal is to avoid
command:
Linux or Mac OS X:
./Aapt
Windows:
Aapt.exe
This article summarizes the usage of this tool.1. aapt L [ist] [-V] [-A] file. {zip, jar, APK}List contents of zip-compatible archive.1.1 List compressed file directoriesAapt L Parameters:-V: The directory will be output in the form of a table, the table's tables are: length, method, size, ratio, date, time, CRC-32, name.The method indicates the compression format, which can be deflate or stored. The zip directory adopts the compression
jdk,Update environment variables such as java_home.).
At this time, the compilation of the new 2.2 Project will fail. Unableto get buffer of resource assetfile. Is similar to the preceding error... There are also many solutions online. I adopted the direct method: overwrite the resource. arsc In the android. jar package. The resource. arsc file can be copied to the android. jar file of the sdk under win,
ProblemsWhen building you might run into the unable to get buffer of resource asset file error. the root cause of this is that the new Android resource file resources. ARSC is larger than the aapt tool allows. you can exchange. ARSC file inside android. jar with an older version or patch the aapt tool by editing frameworks/base/include/utils/asset. h.
Change both lines uncompress_data_max = 1*1024*1024 to s
addition, jdk is required when installing the ADT plug-in... 6_21 my colleague reported a null pointer exception when it was 6_15. If you reinstall jdk, update the environment variables such as java_home ).
In this case, an error occurs during compilation of the new Android 2.2 Project. Unableto get buffer of resource assetfile. Is similar to the preceding error... There are also many solutions online. I adopted the direct method: overwrite the resource. ar
-Source -Target -Version Version Information-Help: output the summary of standard options.-X outputs a feed of non-standard options-J Congratulations, your Java environment variable configuration is successful!2. if:'Javac' is neither an internal or external command nor a running program.Or batch files.This shows that the Java environment variable configuration has failed. Check it carefully!2. Download The apktool Toolkit (which includes the apktools decompilation tool and apksign signing tool
Author: Xu jianxiang (netpirate@gmail.com)Date: 2009/12/23Web: http://www.anymobile.org
1/apk file structure:
Apk file:
Android application package file. Every application to be installed on the ophoneplatform must be compiled into a single file with the suffix .apk, which contains the binary code, resources, and configuration files of the application.
The apk file is actually a zip package and can be unzipped. You can use zip to unbind the *. apk file. The following is a helloword apk sample fi
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.