When the Android system is started, "init =/init" is usually set in the kernel boot parameters. In this way, if the kernel is successfully mounted to the file system, the INIT program in the root directory is run first. What does this program do? We only have rfsc (readthe fucking source code )!!
The INIT program source code is in system/CORE/init of Android offi
APK is a program compression package, which has an executive program, ODEX optimization is the package inside the implementation of the program to extract, to become a Odex file, because you extracted, the first time the system does not need to unpack the program to compress the program, less a decompression process. That way, the system starts up faster.
Recently done a module, you need to load the APK in
When writing Android mobile apps, you will feel that materials are a very difficult task. Good materials will make your apps shine, so I can see that some Android programs on the Internet are indeed well written, the interface is also very friendly, and the operation is very smooth. At this time, I think of how to unpack the APK file,
Recently learning and using the Cocos2d-x framework, although speaking of cross-platform, but in the Development of VS, and then transplanted to android or IOS, may also have a variety of problems, minor adjustments are required.
For example, when I perform file read/write operations, it is likely that there is no problem on win32, but Get Data Failed on IOS.
After several attempts, we found that the follow
Android-File compression and decompressionI am working on a project. There is a function in the project file that requires a lot of pictures. If the pictures are packaged with the app, there will be 30 + M. Then we will consider downloading the compressed package, we took out the image, and the project was only 4 + M. Hahaha, haha, It's really horrible. This invo
There is now a need to download many files, put in an open port (URL) directory, the files under this directory will change, that is, the file name is not fixed. Now you need to download the files in this directory to the Android device. I found a lot of information and found that I could not list all the files in a URL directory as file names (?). In that case,
/tt5267621/article/details/7173972After associating the program, you also need to handle the parameter passing problem! You need to add the following sample code (not tested) in oncreate ):
Intent intent = getintent (); string action = intent. getaction (); If (intent. action_view.equals (Action) {textview TV = (textview) findviewbyid (R. id. tvtext); TV. settext (intent. getdatastring ());}
"Intent. getdatastring ()" returns the path of the clicked file
I want to see the APK source code how to do? Then you need to use the APK Anti-compilation tool.First, the idea of anti-compilation:1) apk file is actually a compressed package. Change the file suffix. apk to. zip to open with the unzip software. You can see several files by opening a compressed package:To see the source code, only need to pay attention to classe
-guiAddress for online installation http://java.decompiler.free.fr/jd-eclipse/updateDownload the image file address: Http://jd.benow.ca/jd-eclipse/downloads/jdeclipse_update_site.zip(3) The installation of the image file is used.Installation process:Help->install new software->add->archive (select Zip file)/fill in url
.
The data structure is:
ubyte 8-bit unsinged int
uint 32-bit unsigned int, little-endian
uleb128 unsigned LEB128, valriable length
struct string_ids_item
{
uint string_data_off;
}
struct string_data_item
{
uleb128 utf16_size;
ubyte data;
}
Where data holds the value of the string. String_ids is more critical, and many of the subsequent sections are directly pointing to the index of String_ids. You also need to extract
files.
Put the JSON file you want to use in the Extract directory (you can download the JSON example to http://www.json-schema.org/address):
Then, at the command line, enter:
Jsonschema2pojo--source Address--target Java-gen
You can enter the-HELP option to view additional parameters:
Jsonschema2pojo–help
For some non-standard JSON files, you need to include the
$instantiationexception:unable to instantiate Fragment Com.example.news.ArticleListFragment:make sure class name exists, was public, and have an empty constructorIstfragment "on Path:dexpathlist[[zip file"/data/app/com.example.wifidirectdemo-1.apk "],nativelibrarydirectories= [/data/app-lib/com.example.wifidirectdemo-1,/vendor/lib,/system/lib]]Xml:Error: Com.example.news.ArticleReaderFragmentThe correct fra
First, view the local KeyStore file (if there is a keystore password)Command: keytool-list-v-keystore destination file pathSecond, view the three-party application or System application signatureRight-click apk extract, the target file is the Cert.rsa file in the Meta-inf fo
Write a complex layout file: When quickly finished, found that already fast 1000 lines of code, although there are spaces, but the layout is too large, inadvertently found that the Android studio from the layout file of the method of extracting style, it is very convenient.First write the view's properties normally in the layout
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.