The worker calculates that the emitted message is received by those tasks according to the definition of topology and assigned to its own task, and because the tasks assigned on the worker may be adjusted, the worker needs to update the connection information periodically. ZMQ Connection Information Update Function: Mk-refresh-connections Method Prototypes:
1
(defn mk-refresh-conne
If you want to add a ringtone to the Android system, you can use the ADB push method. However, if you want to modify the system multiple times, it will be too difficult to push it in. Here is a simple method, it is to compile the ringtone into the Android system. in the imgfile, the ringtone is automatically added every time you brush the image.
If you don't talk much about it, You can directly get into the topic:
1. ringtones in the Android system are stored in the frameworks/base/data/sounds
. The related code is as follows:
Smdk2410_config: unconfig@ $ (Mkconfig) $ (@: _ Config =) arm ARM920T smdk2410 null s3c24x0Unconfig:@ RM-F $ (OBJ) include/config. h $ (OBJ) include/config. mk/$ (OBJ) Board/*/config. tmp $ (OBJ) Board/*/config. tmp
When you execute make smdk2410_config, The unconfig target is first executed to clear the previous configuration information. Then run @ $ (mkconfig) $ (@: _ Config =) arm ARM920T smdk2410 null s3c24x0. mk
: = $ (objtree)
Export topdir srctree objtree
2) Definition variable mkconfig: this variable points to a script, that is, mkconfig in the top-level directory.
Mkconfig: = $ (srctree)/mkconfig
Export mkconfig
Run
# Make smdk2410_config
Smdk2410_config is a target of makefile and is defined as follows:
Smdk2410_config: unconfig
@ $ (Mkconfig) $ (@: _ Config =) arm ARM920T smdk2410 null s3c24x0
Unconfig ::
@ RM-F $ (OBJ) include/config. h $ (OBJ) include/config.
will first list the simple steps of NDK development, and then use this outline to describe NDK development with a Hello World instance:
(1) Create an android Project
(2) write the Declaration native METHOD public native String helloFromJNI () in JAVA code ();
(3) create the jni directory and write the c code. The method name should correspond to the jni. h header file imported in the c code.
(4) Compile the Android. mk File
(5) dynamic library genera
the product from selection, variant local variant =$ (-n $ selection |-e [$? -Ne = [-z-o-z // export TARGET_PRODECT, TARGET_BUILD_VARIANT and TARGET_BUILD_TYPE. For example, if full-eng is selected, TARGET_PRODUCT = full, TARGET_BUILD_VARIANT = eng export TARGET_PRODUCT =4. Compile -- make-j8
Make must have Makefile. The Makefile in the Android root directory simply includes a file:
include build/core/ ### DO NOT EDIT THIS FILE ###
Build/core/main. mk
PHP is a weak type of language
PHP has 8 types of Chinese4 scalar//Only one value can be stored1. Integral type: int integer2. Boolean: BOOL Boolean3. Floating-point type: float,double,real4. Character type: string2 compound types//A variable can store multiple values1. Arrays: array//Only multiple variables can be stored2. Objects: Object//stored variables and functionsSpecial type in 21. Resource type: Resource2. NULL type: nullExample: var_dump (variable or value); That is, you can view the
1:./mk n (r) kernel;/mk bootimage; When modifying kernel related code, it is as follows:
alps/kernel/
alps/mediatek/platform/mt65xx/kernel/
alps/mediatek/source/kernel/
alps/mediatek/customer/mt65xx/kernel/
alps/mediatek/customer/common/kernel/
alps/mediatek/customer/$porject _name$/kernel
......
2:./mk N PL When modifying preloader related code, it is as
Detailed explanation of Android. mk specifications
This article from: http://blog.ednchina.com/laizibin315/1895365/message.aspx
The android. mk file is a required file for compiling C code using ndk. The Android. mk file describes which c files will be compiled and how to compile them. Master android. the preparation of the
= mass_storagePersist. service. acm. enable = 0Ro. mount. fs = EXT4
In this case, we need to pay attention to the ADDITIONAL_DEFAULT_PROPERTIES variable, which is the target variable defined in the makefile file. In the makefile file, ro. secure variables are defined on the ADDITIONAL_DEFAULT_PROPERTIES target variable. Search ADDITIONAL_DEFAULT_PROPERTIES in/build:
Grep-nr "ADDITIONAL_DEFAULT_PROPERTIES ".
./Build/core/main. mk: 330: ADDITIONAL_DE
cyclic redundancy test CRC error detection technology can only do error-free acceptance (just very approximate think is error-free), and can not guarantee reliable transmission.Six, mathematical reasoning although the above content has a clearer mathematical calculation process, in this section will give a more rigorous mathematical model to deepen the impression: consistent with the third section of the content 1. The information to be transmitted is K-bit, 6.1 shows 2. The data sequence m (x)
Android System lunch A current product approximate process consists of the following sections:1. Lunch determine target_product. The vendorsetup.sh script, which is generally located in Vendor/device/build/target/product, has user/eng/userdebug defined respectively.2. The reasonableness of developing check product.By loading the androidproduct.mk file in Vendor/device/build/target/product, record the individual. mk files it includes and the path to wh
Dalvik VM compilation script and source code tree
This article briefly analyzes the structure of Dalvik Virtual Machine source code (Dalvik/Vm) and the compilation script (*. mk)Compile scripts
The directory structure of Dalvik source code is not complex. The compilation script is also very simple. It consists of the following files:
Dalvik/Vm/Android. mk
Dalvik/Vm/reconfiguredvm.
makefile and is defined as follows:
Smdk2410_config: unconfig@ $ (Mkconfig) $ (@: _ Config =) arm ARM920T smdk2410 null s3c24x0
Unconfig ::@ RM-F $ (OBJ) include/config. h $ (OBJ) include/config. mk/$ (OBJ) Board/*/config. tmp $ (OBJ) Board/*/config. tmp
Obviously, when you run # Make smdk2410_config, run the unconfig target first. Note that when the output target is not specified, the OBJ and SRC variables are empty, the commands below unconfig clea
concentrated in build/CORE. Several important *. mk files are as follows:
Main. mk (Master makefile)
Base_rules.mk (normalization of some makefile variables)
Config. mk (configuration of compilation parameters and compilation commands)
Definations. mk (defines many macros used in the compilation system, which is equiv
remote_build item and export
Ifneq ($ (objtree), $ (srctree ))OBJ: = $ (objtree )/SRC: = $ (srctree )/ElseOBJ: =SRC: =EndifExport OBJ SRCIf the output directory objtree and srctree are different from the current uboot directory, assign values to OBJ and SRC. Otherwise, OBJ and SRC are empty.Obj src is defined in config. mk in the main directory, but it is also required before the main makefile contains config. mk
1. Set the compilation option to make-J5 target_arch = x86 target_product = generic target_simulator = false target_build_type = release target_ OS = Linux local_prelink_module = false.
2. Set line 91 in build/CORE/envsetup. mk to x86 (this step can be omitted)
3. Modify Android. mk In the build/tools/dexpreopt directory as a Android-arm.mk and do not compile the module (this module since with emulator ).
M
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.