레이블이 Android인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Android인 게시물을 표시합니다. 모든 게시물 표시

2014년 4월 11일 금요일

LG G Pad 8.3 v50020a Custom recovery install (TWRP)


There are a lot of methos to unlock bootloader and intall custom recovery for old version of LG G Pad. I tried to those methods...but noting works

Only the below,works under v50020a, before doing this, you must root device.

http://forum.xda-developers.com/showthread.php?t=2698267

In my case, adb reboot recovery command does not works after intalling TWRP.
but I can go into custom recovery mode by key combination.

After installing , you can see below messages when it boot as recovery mode but nothing happens


Refer to below, end of this video show how to go into recovery mode by key combination after TWRP install.

http://www.youtube.com/watch?v=_tOtfF6gKkg



2014년 2월 2일 일요일

Setup Android NDK under windows


1. Install cgywin.
 Because windows doesn't have gcc build env, we must install cgywin
 Dowload cgywin here
 http://www.cygwin.com/
 and choose install option only devel

In Korean case, add this http://ftp.daum.net/cygwin for download mirror site.

2. Install Android NDK

downlodd Android NDK here and unzip
http://developer.android.com/tools/sdk/ndk/index.html

For convenience, I unziped it on cygwin/home/administrator directory

3. Setup path

Open .bashrc or .bash_profile export NDK directory
( In my case it located on C:\cygwin\home\Administrator )
export ANDROID_NDK_ROOT=/home/Administrator/android-ndk-r9

Add NDK directory to path
PATH="$PATH:$ANDROID_NDK_ROOT"

Save and close

4. Check NDK sample build
 Move to NDK sample directory and build

$ cd android-ndk-r9/samples/hello-jni/jni
$ ndk-build

then you can see belows

Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Cygwin         : Generating dependency file converter script
Compile thumb  : hello-jni <= hello-jni.c
SharedLibrary  : libhello-jni.so
Install        : libhello-jni.so => libs/armeabi/libhello-jni.so

참 쉽죠~~

2014년 1월 4일 토요일

setup android app development enviroment


1. Install JDK

 Download JDK and install latest version
 http://www.oracle.com/technetwork/java/javase/downloads/index.html

2. Install ADT (Android Development toolkit)
 Download ADT and unzip , it does not need to install
 http://developer.android.com/sdk/index.html

3. Run SDK Manager under ADT installed directory and install SW pacakges what you need
 In my case, it located C:\adt-bundle-windows-x86-20131030\SDK Manager.exe and Android 4.3(API18) is installed


4. After installing package, run eclipse.
 In my case, it loacated C:\adt-bundle-windows-x86-20131030\eclipse\eclipse.exe

5. Set up virtual device for debugging
Select menu > windows > android SDK manager then tools > manageADVs on android SDK manager dialog and create virtual device. If your PC is not good enough, vitual device can not run. In this case, select lpw option of vitual device


6. Make sample project
 Select file > new > android application project.
 Now just setup project name and use default others (just click next)

7. Build project
 Right click Project name on Project ecplorer, then select debug as >  android application
 then application runs on ADV
8. Create APK  If you want to install on the phone, you must create APK file
 Right click Project name on Project ecplorer, then Android tools > export signed application package
 There is unsigned application package, if you create unsigned package , it can not be intalled so you shoud be better install signed package

For creating signed package, you need keystore. If you already have keystore, select "use existing keystore", if not, select "Create new keystore"
9. Phone test
 Copy Created APK file to youer phone and run



2013년 6월 9일 일요일

opencl test under LG optimus G

I run clinfo application under LG Optimus G


setup opencl develop enviroment on Android


I used sample source code of aopencl clinfo sample under ubutu 10.04 LTS

Download aopencl

hg clone http://code.google.com/p/aopencl


before download source code of aopencl , install mercurial

JDK download and install

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Download android sdk

http://developer.android.com/sdk/index.html

download ADT bundle, it includes the essential Android SDK components

NDK download

http://developer.android.com/tools/sdk/ndk/index.html

Install adn 1.8 in your PC

$ sudo apt-get install ant1.8

Setup build path

- add platform tools and sdk tools to PATH
$ export PATH=/opt/adt/adt-bundle-linux-x86_64-20130522/sdk/platform-tools/:/opt/adt/adt-bundle-linux-x86_64-20130522/sdk/tools/:/opt/ndk/android-ndk-r8e:$PATH

- export ndk path
$ export NDK=/opt/ndk/android-ndk-r8e

- build ndk lib
move to clinfo directory then ndk-build






- update project as you want for example
$ android update project -p . -n clinfo -t 2












- make package
$ ant debug












then you can find clinfo-debug.apk in clino/bin

- download your android phone then install and run
it can works on nexus 4 or over



-



2012년 8월 26일 일요일

Building Android system


Move to android root directory.

Set up buildenv as below

dokyun@android$
dokyun@android$ source ./build/envsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/tuna/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
dokyun@android$

Set up build target as below
$ lunch [Build-name]-[build type]

build name is target device name such as panda or maguro
build type is build configuration such as debugging option or limitation.

currently I do not have special target , select emulator for build-name , eng for build-type

dokyun@android$ lunch full-eng
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
dokyun@android$

then build

dokyun@android$ make -j4

It can takes more than 1 hour at first build , it depends on your build system

You can also select manually the target board as like below

dokyun@android$ lunch
You're building on Linux
Lunch menu... pick a combo:
     1. full-eng
     2. full_x86-eng
     3. vbox_x86-eng
     4. full_maguro-userdebug
     5. full_tuna-userdebug
     6. full_panda-eng
Which would you like? [full-eng] 6
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full_panda
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
dokyun@android$ make -j4



2012년 8월 19일 일요일

Adroid Source Code Download


  • Installing repo


Repo is a tool that makes it easier to work with Git in the context of Android.

$ mkdir ~/bin
$ PATH=~/bin:$PATH

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

As you can see , it just get repository related script form https://dl-ssl.google.com/dl/googlesource/git-repo/repo and make excutable

  • Initializing a Repo client

First make working directory, in my case

$ mkdir ~/android
$ cd ~/android

then initialize repository.

$ repo init -u https://android.googlesource.com/platform/manifest

It shows below error at first time

-----------------------------------------------------------------------
*** Please tell me who you are.
Run
  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident  <dokyun@redbomb-server.(none)> not allowed-----------------------------------------------------------------------

as you can see on the error message, type your email and name

$ git config --global user.email "dokyun.beon@gmail.com"
$ git config --global user.name "dokyun beon"

then excute again
$ repo init -u https://android.googlesource.com/platform/manifest
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
$ repo sync

as you can see, down load is done
-----------------------------------------------------------------------
dokyun@android$ ls
Makefile  bionic    build  dalvik       device  external    hardware  ndk       prebuilt  system
abi       bootable  cts    development  docs    frameworks  libcore   packages  sdk
dokyun@android$
-----------------------------------------------------------------------

refer to official home more detail.

http://source.android.com/source/downloading.html

2012년 7월 23일 월요일

Required packages for android

Flex : http://flex.org/

flex is a software development kit for the development (SDK) deployment of cross-platform rich Internet applications based on the Adobe Flash platform

Bison : http://www.gnu.org/software/bison/

Bison is a general-purpose parser generator that converts an annotated context-free grammar into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables

gnupg : http://www.gnupg.org/

GnuPG is the GNU project's complete and free implementation of the OpenPGP standard as defined by RFC4880 . GnuPG allows to encrypt and sign your data and communication, features a versatile key management system as well as access modules for all kinds of public key directories

gperf : http://www.gnu.org/software/gperf/

GNU gperf is a perfect hash function generator

curl : http://curl.haxx.se/

cURL is a computer software project providing a library and command-line tool for transferring data using various protocols. The cURL project produces two products, libcurl and cURL. It was first released in 1997
TBD

2012년 7월 17일 화요일

2012년 7월 15일 일요일

Setup Android build enviroment ( ubuntu 10.04, 12.04 )

  • linux version

Android recommand ubuntu 10.04 LTS 64bits.
Actually, android can not be built under 32bits linux version.

  • Check the tool version

$make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
이 프로그램은 자유소프트웨어입니다; 복사조건은 소스를 참고하십시오.
상품성이나 특정 목적에 대한 적합성을 비롯하여, 어떠한 보증도 하지
않습니다
This program built for x86_64-pc-linux-gnu

$ python -V
Python 2.6.5

$ git --version
git version 1.7.0.4

$ java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)

refer to http://source.android.com/source/initializing.html

  • Intall JDK6


According to http://source.android.com/source/initializing.html

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk

But it's not works

use below

sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6-jdk

For  ubuntu 12.04 LTS

  •  Install JDK 7

$ sudo apt-get update
$ sudo apt-get install openjdk-7-jdk

  •  Install other packages


sudo apt-get install zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev
$ sudo apt-get install libx11-dev:i386 libreadline6-dev:i386
$ sudo apt-get install libgl1-mesa-glx:i386
 => it might be a problem
 => install libgl1-mesa-dri:i386 instead of this
$ sudo apt-get install libgl1-mesa-dev g++-multilib mingw32 tofrodos
$ sudo apt-get install python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

  • For ADB debugging

Create /etc/udev/rules.d/51-android.rules
and add which device you have as like below

# adb protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", MODE="0600", OWNER="<username>"
# fastboot protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", MODE="0600", OWNER="<username>"
#LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"