Android系統的一些雜散知識點

2021-10-06 14:52:00 字數 1573 閱讀 4207

修改build/core/envsetup.mk

# figure out the output directories

#在這新增你要修改的新out目錄即可

out_dir=/dev/shm/out_mxr

ifeq (,$(strip $(out_dir)

))ifeq (,$(strip $(out_dir_common_base)

))out_dir :=

$(topdir)

outelse

out_dir :=

$(out_dir_common_base)

/$(notdir $(pwd)

)endif

endif

diff --git a/tools/post_process_props.py b/tools/post_process_props.py

index 2237707..df13699 100755

--- a/tools/post_process_props.py

+++ b/tools/post_process_props.py

@@ -23,7 +23,7 @@ import sys

# the constants in system_properties.h includes the termination nul,

# so we decrease the values by 1 here.

prop_name_max = 32

-prop_value_max = 91

+prop_value_max = 149

dumpsys package 包名
安卓8.1 預設日誌緩衝大小為64k,當前系統列印的日誌比較多時,就容易把前面的日誌沖掉,或者出現unexpected eof錯誤。導致抓取的日誌經常是無效的。

為了提高抓日誌的效率,需要把日誌緩衝區大小設定更大一點。

分析設定開發者模式的日誌大小設定介面 — developmentsettings,可以知道日誌緩衝大小修改後,都會修改屬性值persist.logd.size。

因此嘗試在開機時就把persist.logd.size配置為4m,

product_property_overrides += \

persist.logd.size=4194304

通過adb logcat -g 可以知道已成功配置為4m。

f:\>adb logcat -g

main: ring buffer is 4mb (1mb consumed), max entry is 5120b, max payload is 4068b

system: ring buffer is 4mb (143kb consumed), max entry is 5120b, max payload is 4068b

crash: ring buffer is 4mb (0b consumed), max entry is 5120b, max payload is 4068b

一些雜散但值得討論的問題

朱老師物聯網大講堂 學習筆記 1 作業系統不直接幹活,而是負責管理資源,作業系統的呼叫通道,api函式,c庫函式和api的關係,不同作業系統api是不同的,庫函式相似性很高,跨作業系統可移植平台,比如qt,2 main函式返回給誰,3 argc argv與main函式的傳參,4 c語言中不能有沒有型...

4 8一些雜散但是值得討論的問題

1 作業系統負責管理和資源調配,應用程式負責具體的直接勞動,他們之間的介面就是api函式,當應用程式需要自己使用系統資源時 譬如記憶體 cpu 硬體 就通過api向作業系統發出申請,然後作業系統就相應申請幫助應用程式實現功能。1 有了作業系統後,我們做剷平可以分為兩個部分,一部分人負責做作業系統 開...

一些雜的資料

這幾天學的東西太雜了,把接觸到的一些資料鏈結放上來 webkit perspective 3d透視屬性,該屬性可以將平面圖形轉化為具有遠景透視效果的3d圖形,該屬性只能使其孩子元素產生3d,不對自身節點內容產生影響 w3對css3中3d效果的圖景文章 css3的 nth child 偽類選擇器 圖示...