본문 바로가기

Android

Android system property


Property set 하는 경우 property name이 "persist." 로 시작하는 경우에는
data/persist/ 에 파일로 저장이 되어 reboot 되어도 남아있게 된다.

system property 최대 개수는 system/core/init/property_service.c 의 PA_COUNT_MAX 값을 보면 알 수 있다.

MAX 값을 초과하게 되어 필요시 못쓰게 되는 경우를 막기 위해 init.rc에서 setprop 할 수 있다.