In many cases, we need to modify init. RC to meet different application requirements. Here we provide two ways to modify it:I. general modification methodIn the device/Samsung/smdkv210 directory, there are two files: init. RC and init_sdmmc.rc. If the image is stored inIn the SD card, you need to modify init_sdmmc.rc. If the image is stored in NAND, You need to modify the init. RC file.After the modification, run./MK-S. The modified file will be packaged into out/target/product/smdkv210/
Put this script in the Android project source root directory, you can use this script to build, and named compile.sh#!/bin/bash## Copyright (c), the Linux Foundation. All rights reserved.## redistribution and use in source and binary forms, with or without# modification, is permitted provided that the following conditions is# Met:# * Redistributions of source cod
. Eclipse
Iv. Ant script
Build. xml
Note:
A. The R. java of all the library projects created through aapt are generated under the gen directory of the Android project without resource conflicts;B. add the resource directories of all projects (library projects + Android projects) through-S, so that each Project has the same content as the R file in
.comBlat-install%server%%from% 3 25Blat%mail%-to%to%-base64-charset gb2312-subject%subj%-attacht%attach%-server%server%-F%from%-u%user%-pw%pass%
Six, set Windows timed task, the parameter fills in the test number
After the installation uninstall test has been completed, the following steps explain how to use the ADB command for UI Automation testing
First, open the application, Record button or text in the mobile phone screen coordinate point
1, in
;%logfilename%_traces.log
REM to expand, upload logs to server
: EXIT
ECHO.
ECHO. [INFO] Please press any key to close the window ...
Pause>nul
Note: When you save the bat note for the file format ANSI ha, windows you understand
2), "How to use"
A, save the script: Copy the config.conf, Monkey_findyou.bat content in this article is saved in the same directory
b, modify the configuration: Modify the content in the co
As we all know, what is the main sign of the advent of the mobile phone age? Easy access to the internet! The way the internet shows us is typically web pages, and it's essential to have JavaScript in the Web, so it's urgent that Android provides support for JavaScript, and thankfully, Android has already provided us with seamless connectivity. Allows us to interact with JavaScript through
Android init process analysis init script parsing and Processing(The lazy recently remembered that I still have csdn for a long time and I haven't taken care of it. This android init has been lying in my draft box for almost five years, And I want to change it a little.) RC file format
Rc files are common files executed during the startup and loading phases in li
Android uses the init. rc trigger script to hide built-in applications. androidinit. rc[Implementation logic] sets a flag in property_service.c. In the settings, the interface changes the flag and uses init. the declared service in rc listens for changes in the flag space, explicitly starts the declared service, executes the corresponding script, and renames the
In Android software development, it is important to increase the role of the log, so that we understand the implementation of the program and data. The Eclipse development tool provides a visual tool, but it feels like terminal efficiency is higher, so you write a Python script that filters the log of a program with the package name.
Principle
The corresponding process ID (possibly multiple) is obtained b
This article describes how to use python to obtain the GPS information script of android devices. This article provides the implementation code directly. if you need it, you can refer to it on android, we can use QPython to write and execute Python scripts. It applies to many android
System functions are easily enca
In WebRTC's example project, there is an Android project called Apprtcdemo, which enables video calling (VoIP) on a wide area network. This article is intended to demonstrate the compilation of Apprtcdemo, with Windows as an example, but also for Mac and Linux. Switch to a Linux environment please specify what platform you are currently using, and if it is Linux, you can ignore this step; otherwise, you will need a virtual machine. I'm using damn wind
by the Gradle build and the most basic dependencies3.Module Build.gradle This file describes some of the configuration of the main moduleBuild.gradle (Module:app)//This build.gradle describes primarily the configuration of the main moudledependencies {Dependent libraries for modulesCompile Filetree (include: [' *.jar '], dir: ' Libs ')Local dependent librariesTestcompile ' junit:junit:4.12 'Compile ' com.android.support:appcompat-v7:24.1.1 'Remote dependent Library, formatted as Group:name:vers
Lua learning Note 3 android calls Lua. The Lua script calls back Java using LoadLib and transmits multiple parameters.
Multiple parameters can be received in Java and each parameter is displayed.
The method for loading the Lua script in android is not the focus of this article. You can refer to the notes in front of th
This script is used to uninstall all third-party applications installed on android phones. it mainly uses the adbshellpm and adbuninstall commands, if you need this script, you can refer to it to uninstall all third-party applications installed on your android phone. the script
Android OTA update package creation script (1. Parameter Parsing)
Preface:
"Build/tools/releasetools/ota_from_target_files-u lk. bin-n target.zip update.zip" is the command for creating the entire package. Obviously, lk upgrade is supported here. This series of blog posts mainly analyzes the execution process and principle of this command in a system, involving multiple modules in the/build/tools/releasetoo
On Android, we can use Qpython to write and execute Python scripts. It on many Android
The system functions are conveniently encapsulated, and it is easy to use Qpython to write small programs with simple functions.
This example is the underlying script that I used to read the phone's location information and serve as a further process for processing the data.
On Android, we can use Qpython to write and execute Python scripts. It's a lot of Android
The system function is convenient encapsulation, it is very convenient to use Qpython to write small program with simple function.
This example is the basic script I used to read the phone's location information and act as a further processing data.
Copy Code code
How to stop Android Monkey scriptRecently, using Monkey to pack the APK performance test, found that once monkey ran up, even if the data cable and the PC disconnected, monkey script will continue to run. The result found a way to stop it:1. ADB shell2. Top | grep MonkeyShown below:Top | grep Monkey5447 0 1% S 262960K 10328K root Com.android.commands.monkey5447 0 0% S 262960K 10324K root Com.android.command
The implementation logic implements the interface change flag bit in the setup by setting the flag bit in the property_service.c. Use the services declared in Init.rc to listen for changes in flag bits, explicitly start the declared service, execute the corresponding script, rename the app suffix from the apk to Bak, and hide it (showing the opposite logic)."Implementation steps" to hide the Google Play Store (system/priv-app/phonesky.apk) as an examp
author : Wan Jing, the absolute dustReprint Please famous source : http://blog.csdn.net/shulianghan/article/details/36438365Sample code Download :-- CSDN : http://download.csdn.net/detail/han1202012/7639253;-- GitHub : https://github.com/han1202012/TracerouteAndBusybox;1. Principles and Ideasfile permission modification cannot be implemented : If No root privileges , you cannot change the file permissions of a binary file;-- push BusyBox to Android
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.