Error messages :
http://askubuntu.com/questions/534044/error-32-bit-linux-android-emulator-binaries-are-deprecated-when-attemping-to-r
You can download 64 bit Kali Linux from here:
https://www.kali.org/downloads/
Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts
Thursday, February 4, 2016
Tuesday, September 30, 2014
Install Android SDK
You are two options:
1. Install stand-alone version
1) read the Readme
Basically, you need to run $ tools/android update sdk --no-ui
2) platform-tools contains tools including ADB.
3) you need to add the /Users/Username/Development/android-sdk-macosx/platform-tools into the $PATH or you can run it locally.
2. Instal the version with Eclipse
http://developer.android.com/sdk/index.html
1. Install stand-alone version
1) read the Readme
Basically, you need to run $ tools/android update sdk --no-ui
2) platform-tools contains tools including ADB.
3) you need to add the /Users/Username/Development/android-sdk-macosx/platform-tools into the $PATH or you can run it locally.
2. Instal the version with Eclipse
http://developer.android.com/sdk/index.html
ADB errors
1. ADB error: device not found
http://stackoverflow.com/questions/21408674/adb-error-device-not-found
2. ADB error: device offline
It is because of an old version of ADB (e.g., 1.0.29). It requires 1.0.31 or greater.
http://stackoverflow.com/questions/10680417/error-device-offline
Thursday, March 29, 2012
Android Programming 101
1. Install Eclipse
2. Install the SDK: http://developer.android.com/sdk/installing.html
3. Install the ADT Plugins for Eclipse: http://developer.android.com/sdk/eclipse-adt.html#installing
4. You should see an Android button in you Eclipse menu. Click -> open Android Virtual Device Manger
5. Press New button to create a new Android Virtual Device (AVD)
6. Start your AVD
7. Open a shell, type $ which adb
if you didn't see the adb bin file path, you need to add the SDK tools path to the $PATH environment variable.
Add
export PATH=/Users/username/Desktop/android-sdk-macosx/platform-tools:$PATH
to the ~/.profile
8. $adb devices
you should see the list of available devices connected to the machine including the AVD we just started.
9. $adb shell
It will start a shell which running in your device. You can run commands in the shell.
10. Some interesting commands in Android Shell:
# id // shows username
# su // change to root when your device is rooted.
# logcat // shows the system log message
# logcat // shows the system log message
# cd /sdcard // this is the sdcard directory. Mounted from /mnt/sdcard. For emulator, you specify the size. when you create the new Android Virtual Device.
e.g. if you take a picture, the picture should be in the file /sdcard/DCIM/
e.g. if you take a picture, the picture should be in the file /sdcard/DCIM/
if you want to copy something from your local machine to device, you could run $adb push filename. Then the file will saved in the sdcard directory
If you type run #mount in your Android device, you will see some block will be ready only. For example, the /system directory is read only.
/device/block/mtdblock0 /system yaffs2 ro 0 0
11. you will find out a lot of Linux commands cannot run in Android shell, you can install busybox to solve this problem
12. If your phone is locked by a password, you could login from command:
$adb shell login <password>
13. if you want to get a file from android device, you could run:
$adb pull /mnt/sdcard/filename
14. if you want to install an .apk app to the android
$ adb install app.apk
15. All the installed application are stored at /data/app
16. if you want to debug the crashed application
$ adb logcat | tee logcat.file
12. If your phone is locked by a password, you could login from command:
$adb shell login <password>
13. if you want to get a file from android device, you could run:
$adb pull /mnt/sdcard/filename
14. if you want to install an .apk app to the android
$ adb install app.apk
15. All the installed application are stored at /data/app
16. if you want to debug the crashed application
$ adb logcat | tee logcat.file
Wednesday, March 7, 2012
Subscribe to:
Posts (Atom)
