1. Ubuntu Configuration Environment anroid variable:
Execute sudo gedit/etc/profile at the terminal to open the text editor, and at the end append #set android Environment
2. Running eclipse, you also need to configure Java environment variables
#set Java Environment
JAVA_HOME=/HOME/LOGINNAME/JDK Directory Name
JRE_HOME=/HOME/LOGINNAME/JDK Directory name/jre
Export path= $JAVA _home/bin: $JRE _home/bin: $PA
1 apktool Download and installhttps://code.google.com/p/android-apktool/[1]. Download apktool.jar-Decompression[2]. Download the accessibility tools on your Mac apktool-install-macosx..– unzip[3]. Put Apktool.jar in Apktool-install-macosx. Directory, that is, with the Apktool command put together[4]. Run SH apktool2 Dex2jar Download and install[1] Https://dex2jar.googlecode.com/files/dex2jar-0.0.9.15.zip[2] Extracting files[3]
Commonly used terminal commands in ubuntu
Lsusb query the usb device id by adding 0x ***** (numbers 0 and letters x) to the home directory/. android/adb_usb.ini File)
Adb devices displays all currently running Simulators
Adb reboot restart adb reboot-p Shutdown
Adb install-r application .apk install the application (-r re-install the program to save data;-s is i
Android BLE development-Android mobile phone and BLE terminal first recognized, androidble
Bluetooth BLE official Demo: http://download.csdn.net/detail/lqw770737185/8116019Refer to blog address: http://www.eoeandroid.com/thread-563868-1-1.html? _ Dsign = 843d16d6
Device: One MX5 mobile phone and one pesticide residue detector (BLE
Configure the Android development environment, change bash_profile This file, finally somehow only the CD command can execute, I guess the Bash_profile file can be modified after not saving the resulting Save command is: source. bash_profileHere's my solution:1, on the command line, enter:Export Path=/usr/bin:/usr/sbin:/bin:/sbin:/usr/x11r6/binThis guarantees that command-line commands can be used temporari
Configure the Android development environment, change bash_profile This file, finally somehow only the CD command can execute, I guess the Bash_profile file can be modified after not saving the resulting Save command is: source. bash_profileHere's my solution:1, on the command line, enter:Export path=/usr/bin:/usr/sbin:/bin:/sbin:/usr/x11r6/bin This guarantees that command-line commands can be used tempo
1, Android Studio Terminal command line invalid problem
The command line terminal terminal is brought in from Android studio, but we often find that "XXX" is not an internal or external command, or a running program or batch file, when we enter a command. Such as:This
The PM command is used as follows:
The PM command is the packagemanage command line in Android for installation package operations. Generally, run the following command to install a new installation package.
1. Install APK. For example, enter:
PM install-r/data/card/apicalradio.apk
You can reinstall apicalradio.apk on the Android system. By default, it is installed in the data/APP/directory of the s
A2sd is occupying 1 GB of memory for no reason. I am using 2 GB of cards, but I still don't know where to buckle it. The available memory is less than MB, so I cannot play a movie.
What's more, after several games are installed, a2sd becomes 300 m, and 700m is missing. debuggingProgramAppears
Installation Error: install_failed_insufficient_storage
Super Terminal for online query. The command a2sd remove,
Result All a2sd
Part 1:
1. Configure the environment anroid variable in Ubuntu:
Run sudo gedit/etc/profile on the terminal to open the text editor and append # Set Android Environment
2. To run eclipse, you also need to configure Java environment variables.
# Set Java environment
Java_home =/home/loginname/JDK directory name
Jre_home =/home/loginname/JDK directory name/JRE
Export Path = $ java_home/bin: $ jre
There are two ways to create the Android simulator:1> created through the graphical interface, click Windows->android Virtual Device Manager in Eclipse to start the graphical interface window2> If you are not using eclipse, you can switch to the ~/tools/folder, execute "Android AVD" at the terminal, click the Create bu
Part 1:1. Configure the environment anroid variable in ubuntu:Run sudo gedit/etc/profile on the terminal to open the text editor and append # set android environment2. To run Eclipse, you also need to configure JAVA environment variables.# Set java environmentJAVA_HOME =/home/loginname/jdk directory nameJRE_HOME =/home/loginname/jdk directory name/jreExport PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATHExpo
ADB common commands:"ADB help" for assistance"ADB Get-serialno" gets the device string number"Adb-s "adb root" gets root permission, which is useful for some phones, and most of the listed phones have turned this feature off. Root privileges can also be obtained through third-party tools such as pea clips."adb kill-server" kills ADB's server process."ADB start-server" starts the ADB server process."ADB devices" view the
system is started. You can use Android adb to connect to the operating system and run some system commands, just as you usually access a remote linux/unix server through a terminal. You can use adb shell. Run the ls command after the following shell. In this shell, you can run some common commands in linux. Note: adb
For Android commands, select a few frequently used records.
1. view the Android version list
Command:
./Android list target
2. Create a simulator based on the version number.
Command:
./Android create AVD-N magicyu-T 8
Display:
Created AVD 'mytest' Based on Google APIs (Goo
ADB (Android Debug Bridge) Description: The following commands must have the root permission to be successfully executed to quickly start the dos window to execute adb: 1. add the path of adb.exe to the system environment variable. 2. enter the C: \ WINDOWS \ system32directory directory and find cmd.exe. right-click the menu "send to"-> desktop shortcut. On the desktop, right-click "shortcut to cmd.exe"-> "
Adbkill-server kill adbAdbstart-server start adbAdbdevides List all the devicesAdbinstall xxx.apk Install the application . apkExample: adb install d:\....\ xxx.apkIf you have more than one device, you need to specify the device.adb-semulator-5554 Install d:\....\xxx.apkAdbshell Mount to Linux terminalExample: adb shell ( when only one device is available )adb–s emulator-5554 Shell ( specified device when multiple devices )Exit (Exit Shell ) adbpush source file path > mobile target >
Android Studio Common commands
Description
Mac
Linux/win
Lookup IDE Commands
Cmd+Shift+A
Ctrl+Shift+A
Open Class
Cmd+O
Ctrl+O
Open File
Cmd+Shift+O
Ctrl+Shift+N
Open recently edited file
Cmd+Shift+E
Ctrl+Shift+E
Lookup Acti
I. Linux commands1. Mount/mongome partitions in read/write status
Mount-o remount, rw-t yaffs2/dev/block/mtdblock3/system
2. Switch to the Root user
Su
2. Common simulator commands 1. Install the application
Adb install xxx.apk2. reinstall the application (data remains unchanged)
Adb-r install xxx.apk3. export data from the simulator
Adb pull simulator path local path such as adb pull/mnt/sdcard/test.png c :\4. view the created simulato
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.