PIXNET Logo登入

H's 手札

跳到主文

My memo

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 1月 09 週一 201211:49
  • Build Android on Ubuntu 11.10

2013/4: Android JB 之後,不需要特別修改即可搭配 gcc 4.6


 
今年中出的 Ubuntu 11.10 把 gcc 升級到 4.6,這會讓不少人的 Android build 不出來 :X
(繼續閱讀...)
文章標籤

huenlil 發表在 痞客邦 留言(3) 人氣(3,152)

  • 個人分類:Android
▲top
  • 3月 22 週二 201115:53
  • Android adb tool 功能整理

Adb 全名是 Android Debug Bridge,是開發或使用 Android 時很常用到的工具。使用者可以從Android 官方站下載 SDK,在其中的 platform-tools (原本在 \Tools) 中找到。

當機器上有打開 USB debug mode 時,使用者即可通過adb 進行各種 debug 、底層(linux user space)的 Android 功能。比較常用的功能:
(繼續閱讀...)
文章標籤

huenlil 發表在 痞客邦 留言(1) 人氣(231,123)

  • 個人分類:Android
▲top
  • 2月 24 週四 201110:55
  • MTP (Media Transfer Protocol) on Android

最近發布的Android Honeycomb ,其中一項新功能是支援了 MTP/PTP。








Digital media file transfer


The platform includes built-in support for Media/Picture Transfer Protocol (MTP/PTP) over USB, which lets users easily transfer any type of media files between devices and to a host computer. Developers can build on this support, creating applications that let users create or manage media files that they may want to transfer or share across devices.






MTP/PTP簡單來說就是支援多媒體傳輸的協定,同時支援一般的 UMS 功能。這兩項功能分別由兩間廠商所提出,MTP 是微軟為了搭配 Windows Media Player 所提出的、而PTP由 Kodak 為了數位照片所提出。市場上,其實 Samsung 早就在 Galaxy S 就使用 MTP 取代傳統的 UMS,而 Nokia 在 Symbian 也有 support MTP。
Google 在 Android 3.0 會採用 MTP 作為標準,其實有一大部分是為了DRM (Digital Rights Management) 而作的,因為MTP原本就是為了 DRM 所設計出來的協定。如同MS當初提出MTP的原因,Google目前面臨的也是如何處理數位內容的問題,才能替Android 取得更多的數位內容,其實更是為了解決 Android App 太容易被散佈問題鋪路。
(繼續閱讀...)
文章標籤

huenlil 發表在 痞客邦 留言(0) 人氣(13,773)

  • 個人分類:Android
▲top
  • 11月 18 週四 201014:15
  • [轉錄][MM] EGL error list

追一個關於 open gl 的 display 問題,摘錄 error list 原因,方便以後查找 XD
來源: http://blog.chinaunix.net/u3/111072/showart_2273346.html
 
(繼續閱讀...)
文章標籤

huenlil 發表在 痞客邦 留言(0) 人氣(609)

  • 個人分類:Android
▲top
  • 10月 01 週五 201017:58
  • Android 的 uid

先參考 這篇Android 的 uid 了解概念,再來是系統預設的 uid list,實際上是定義在
system/core/include/private/android_filesystem_config.h
包括 root, system, :
(繼續閱讀...)
文章標籤

huenlil 發表在 痞客邦 留言(0) 人氣(5,960)

  • 個人分類:Android
▲top
  • 7月 30 週五 201010:07
  • Android build system 和 Make 的一些參考資料

前言:
Android 的 build system 已經大幅將build的過程簡單化、自動化,所以可以在執行 envsetup.sh 之後使用各種方便
的指令,以下列出目前支援的功能:
Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:
(繼續閱讀...)
文章標籤

huenlil 發表在 痞客邦 留言(0) 人氣(11,608)

  • 個人分類:Android
▲top
  • 7月 21 週三 201012:01
  • Android ashmem 相關資訊

引言:
ASHMEM = Android shared memory, 由Goolge 設計的一種記憶體分享、分配機制,主要用於 Google 設計給 Android 使用的 IPC Binder。
主要的driver 可在 aosp 的 kernel/mm/ashmem.c 找到實作,user space 的部份則是主要在 IMemory 裡面處理。
下面是從網路上收集的資訊:
(繼續閱讀...)
文章標籤

huenlil 發表在 痞客邦 留言(0) 人氣(7,706)

  • 個人分類:Android
▲top
  • 7月 21 週三 201010:25
  • [轉] Controlling the Embedded VM

Android 官方的文件,可直接看 android/dalvik/docs/embedded-vm-control.html
 
Controlling the Embedded VM
Overview
Extended JNI Checks
Assertions
Bytecode Verification and Optimization
Execution Mode
Deadlock Prediction
Stack Dumps
DEX File Checksums
(繼續閱讀...)
文章標籤

huenlil 發表在 痞客邦 留言(0) 人氣(2,138)

  • 個人分類:Android
▲top
  • 5月 21 週五 201000:46
  • Android 2.2 - Froyo

新功能:http://developer.android.com/sdk/android-2.2-highlights.html
SDK: http://developer.android.com/sdk/android-2.2.html
Demo: http://www.engadget.com/2010/05/20/android-2-2-froyo-beta-hands-on-flash-10-1-wifi-hotspots-an/
(繼續閱讀...)
文章標籤

huenlil 發表在 痞客邦 留言(0) 人氣(636)

  • 個人分類:Android
▲top
  • 5月 17 週一 201016:15
  • [轉]Analyze memory leak of Android native process

來源: http://freepine.blogspot.com/2010/02/analyze-memory-leak-of-android-native.html
Android libc_debug.so has a built-in function to dump all heap allocations with its backtrace, which is very useful to debug memory leaks of native processes. Below are the steps summarized during my investigation of mediaserver process:
apply the patch in ./frameworks/base, which registers a memory dumper service in mediaserver process, then rebuild
flash new system.img, replace libc.so with libc_debug.so, then reboot

  • $ adb remount

  • $ adb shell mv /system/lib/libc_debug.so /system/lib/libc.so

  • $ adb reboot


run memorydumper to get the initial heap allocations of mediaserver process

  • $ adb shell /system/bin/memorydumper


play several files, save the process maps during playback, then get the memory dump again

  • $ adb shell pull /proc/<mediaserver_pid>/maps .

  • $ adb shell /system/bin/memorydumper


get the diff file of memory allocations

  • $ adb pull /data/memstatus_1136.0 .

  • $ adb pull /data/memstatus_1136.1 .

  • $ diff memstatus_1136.0 memstatus_1136.1 >diff_0_1


run the script to resolve symbols from the backtrace addresses in the diff file

  • $ ./addr2func.py --root-dir=../ --maps-file=./maps diff_0_1


(繼續閱讀...)
文章標籤

huenlil 發表在 痞客邦 留言(0) 人氣(3,268)

  • 個人分類:Android
▲top
12...4»

近期文章

  • 資訊產業、專案管理常用術語
  • Build Android on Ubuntu 11.10
  • Android device kernel source code git list
  • Android Vold (Volume Daemon)
  • Android adb tool 功能整理
  • Android init language Tips
  • MTP (Media Transfer Protocol) on Android
  • [轉] Interactive map of Linux kernel
  • [整理] Galaxy S / Nexus S 硬體
  • [整理] Linux file system & eMMC

最新迴響

  • [20/02/19] 123 於文章「何謂callback function?...」留言:
    https://ithelp.ithome.com.tw/a...
  • [17/07/14] 訪客 於文章「資訊產業、專案管理常用術語...」留言:
    你OEM的理解錯誤 OEM ODM都是代工, 差別在OEM...
  • [17/02/13] SunyAndy 於文章「[轉]Windows Kernel 學習...」留言:
    我佩服佩服 您的知識增長...
  • [16/08/16] 訪客 於文章「資訊產業、專案管理常用術語...」留言:
    你的OEM和ODM寫反囉 ...
  • [16/01/29] 訪客 於文章「資訊產業、專案管理常用術語...」留言:
    請問一下, G/O和G/L以及SMT又是甚麼意思呢? 謝...
  • [14/11/20] 13245 於文章「Android 真的免費?...」留言:
    大推 版主 GOOGLE開放ANDROID給各家製造商,像...
  • [14/01/09] Crazy Shark  於文章「[轉]Android 的AIDL是啥?...」留言:
    正好看到Android Gradle有提到這名詞 謝謝講解 ...
  • [14/01/01] 倪承義 於文章「[轉]科幻與現實:永動機...」留言:
    果然永動機是不可能的因為他違反物理定律...
  • [13/12/27] dfhrm 於文章「[整理] Galaxy S / Nexu...」留言:
    ☉啥§?性藥性藥§居然買1送﹂2-﹉你﹋還♀傻...
  • [13/11/12] 訪客 於文章「Build Android on Ubu...」留言:
    --slave /usr/bin/gcov gcov /u...

文章搜尋

文章分類

toggle Android (2)
  • Android (34)
  • Android AP (8)
toggle Linux (1)
  • Linux Kernel & driver (28)
toggle Programming (3)
  • Tools (9)
  • Windows Programming (10)
  • C++ (5)
toggle 技術 (3)
  • 專案管理 (1)
  • Misc (3)
  • 硬體 (3)
toggle 閱讀與聆聽、觀賞與體會 (3)
  • 第八藝術 (2)
  • 遊戲 (1)
  • Music (3)
toggle 雜記 (3)
  • Notes (17)
  • 旅行 (1)
  • 知識- (1)
  • 未分類文章 (1)

參觀人氣

  • 本日人氣:
  • 累積人氣: