2026년부터 트렁크 안정 개발 모델과 일치하고 생태계의 플랫폼 안정성을 보장하기 위해 2분기와 4분기에 AOSP에 소스 코드를 게시합니다. AOSP를 빌드하고 기여하려면 android-latest-release를 사용하세요. android-latest-release 매니페스트 브랜치는 항상 AOSP에 푸시된 최신 버전을 참조합니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
Google은 AI 기술을 사용하여 콘텐츠를 사용자의 기본 언어로 번역합니다. AI 번역에는 오류가 있을 수 있습니다.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
MixKernelTargetPreparer
public
class
MixKernelTargetPreparer
extends BaseTargetPreparer
implements
IConfigurationReceiver,
ILabPreparer
커널 이미지를 기기 이미지와 혼합할 수 있는 ITargetPreparer입니다.
요약
보호된 메서드 |
String[]
|
getKernelVersionFromImage(File image)
부팅/vendor_boot/system_dlkm/vendor_dlkm 이미지 파일에서 커널 버전을 추출합니다.
|
IRunUtil
|
getRunUtil()
사용할 IRunUtil 인스턴스를 가져옵니다.
|
String[]
|
parseKernelVersion(String source, String kernelVersionString)
|
void
|
runMixKernelTool(ITestDevice device, File oldDeviceDir, File kernelDir, File gkiDir, File newDeviceDir)
혼합 커널 도구를 실행하여 새 기기 빌드 생성
혼합 도구 사용: build_mixed_kernels device_dir out_dir target flavor kernel_dir
|
void
|
validateKernelCompatibility(String imageName, String[] imageVersion, String[] bootVersion, ITestDevice device)
|
void
|
validateKernelVersion(File kernelDir, File gkiDir, ITestDevice device)
이미지의 커널 버전이 예상대로인지 확인합니다.
|
공개 생성자
MixKernelTargetPreparer
public MixKernelTargetPreparer ()
공개 메서드
보호된 메서드
getKernelVersionFromImage
protected String[] getKernelVersionFromImage (File image)
부팅/vendor_boot/system_dlkm/vendor_dlkm 이미지 파일에서 커널 버전을 추출합니다.
| 매개변수 |
image |
File: 이미지 파일의 File입니다. |
| 반환 |
String[] |
파싱된 커널 버전 정보([kernelVersion,
patchLevel, pageSize])가 포함된 ERROR(/String[])입니다. 버전 문자열을 파싱할 수 없는 경우 null을 반환합니다. |
parseKernelVersion
protected String[] parseKernelVersion (String source,
String kernelVersionString)
| 매개변수 |
source |
String |
kernelVersionString |
String |
protected void runMixKernelTool (ITestDevice device,
File oldDeviceDir,
File kernelDir,
File gkiDir,
File newDeviceDir)
혼합 커널 도구를 실행하여 새 기기 빌드 생성
혼합 도구 사용: build_mixed_kernels device_dir out_dir target flavor kernel_dir
| 매개변수 |
device |
ITestDevice: 테스트 기기 |
oldDeviceDir |
File: 디렉터리 File에 이전 기기 이미지가 포함되어 있습니다. |
kernelDir |
File: 디렉터리 File에 커널 이미지 대상이 포함되어 있습니다. |
gkiDir |
File: 디렉터리 File에 GKI 커널 이미지 대상이 포함되어 있습니다. |
newDeviceDir |
File: 새 기기 이미지가 생성될 디렉터리 File |
validateKernelCompatibility
protected void validateKernelCompatibility (String imageName,
String[] imageVersion,
String[] bootVersion,
ITestDevice device)
| 매개변수 |
imageName |
String |
imageVersion |
String |
bootVersion |
String |
device |
ITestDevice |
validateKernelVersion
protected void validateKernelVersion (File kernelDir,
File gkiDir,
ITestDevice device)
이미지의 커널 버전이 예상대로인지 확인합니다. 유효하지 않은 경우 예외를 발생시킵니다.
| 매개변수 |
kernelDir |
File: 디렉터리 File에 커널 이미지가 포함되어 있습니다. |
gkiDir |
File: 디렉터리 File에 GKI 이미지가 포함되어 있습니다. |
device |
ITestDevice: ITestDevice |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2026-06-22(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2026-06-22(UTC)"],[],[]]