android aosp_x86-eng,android 11 custom update

Hi Sir,

I try to develop android system, I have some problems about development.

I get used to ubuntu18 and tag of android 11 is android-11.0.0_r17,

I have built successfully with lunch 30 "aosp_x86-eng" and I have seen $OUT files and checked

then I prepared test_aosp.sh file under ~/bin

the results are like that and no emulator window appears:

$ ./test_aosp.sh

emulator: Android emulator version 30.0.21.0 (build_id 6647651) (CL:N/A)

emulator: Found AVD name 'a25x86'

emulator: Found AVD target architecture: x86

emulator: argv[0]: 'emulator'; program directory: '/home/ubuntu/aosp/prebuilts/android-emulator/linux-x86_64'

PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT

the content of test_aosp.sh is :

#!/bin/sh

emulator -avd a25x86 -verbose -show-kernel -system $OUT/system.img -ramdisk $OUT/ramdisk.img -initdata $OUT/userdata.img

when I checked ROGER YE notes, before that partition he had run ~/Android/Sdk/emulato/emulator @a25x86, also I did it with the last version of android-studio.

Also I try to do following thing but is has loop in the command line and the black window of emulator shows up but not appear any menu and any more:

$ sudo ~/Android/Sdk/emulator/emulator -avd a25x86 -verbose -show-kernel -system $OUT/system.img -ramdisk $OUT/ramdisk.img -initdata $OUT/userdata.img

also I have checked the emulator location with the following command:

$ which emulator

/home/ubuntu/aosp/prebuilts/android-emulator/linux-x86_64/emulator

also I want to add following results, maybe you want to check it:

$ printenv |grep ANDROID

ANDROID_DEV_SCRIPTS=/home/ubuntu/aosp/development/scripts:/home/ubuntu/aosp/prebuilts/devtools/tools:/home/ubuntu/aosp/external/selinux/prebuilts/bin:/home/ubuntu/aosp/prebuilts/misc/linux-x86/dtc:/home/ubuntu/aosp/prebuilts/misc/linux-x86/libufdt

ANDROID_TOOLCHAIN_2ND_ARCH=

ANDROID_PRE_BUILD_PATHS=/home/ubuntu/aosp/prebuilts/jdk/jdk11/linux-x86/bin:

ANDROID_HOST_OUT_TESTCASES=/home/ubuntu/aosp/out/host/linux-x86/testcases

ANDROID_JAVA_TOOLCHAIN=/home/ubuntu/aosp/prebuilts/jdk/jdk11/linux-x86/bin

ANDROID_TARGET_OUT_TESTCASES=/home/ubuntu/aosp/out/target/product/generic_x86/testcases

ANDROID_BUILD_TOP=/home/ubuntu/aosp

ANDROID_BUILD_PATHS=/home/ubuntu/aosp/out/soong/host/linux-x86/bin:/home/ubuntu/aosp/out/host/linux-x86/bin:/home/ubuntu/aosp/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin:/home/ubuntu/aosp/development/scripts:/home/ubuntu/aosp/prebuilts/devtools/tools:/home/ubuntu/aosp/external/selinux/prebuilts/bin:/home/ubuntu/aosp/prebuilts/misc/linux-x86/dtc:/home/ubuntu/aosp/prebuilts/misc/linux-x86/libufdt:/home/ubuntu/aosp/prebuilts/clang/host/linux-x86/llvm-binutils-stable:/home/ubuntu/aosp/prebuilts/android-emulator/linux-x86_64:/home/ubuntu/aosp/prebuilts/asuite/acloud/linux-x86:/home/ubuntu/aosp/prebuilts/asuite/aidegen/linux-x86:/home/ubuntu/aosp/prebuilts/asuite/atest/linux-x86:

ANDROID_EMULATOR_PREBUILTS=/home/ubuntu/aosp/prebuilts/android-emulator/linux-x86_64

ANDROID_PRODUCT_OUT=/home/ubuntu/aosp/out/target/product/generic_x86

ANDROID_PYTHONPATH=/home/ubuntu/aosp/development/python-packages:

ANDROID_TOOLCHAIN=/home/ubuntu/aosp/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin

ANDROID_JAVA_HOME=/home/ubuntu/aosp/prebuilts/jdk/jdk11/linux-x86

ANDROID_HOST_OUT=/home/ubuntu/aosp/out/host/linux-x86

Could you guide me?

Thank you

Regards

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值