Android 上并未加载所有服务
我面临的问题是并非所有服务都在 Android 上运行。
我正在尝试在 ARM 开发板上安装 Android 4.0 并从 mmc 卡加载文件系统。
我已经为 system.img、userdata.img 完成了 unyaffs,并为 ramdisk 完成了 untar。我已将内容从 ramdisk 复制到 mmc 卡,将 system.img 内容复制到 mmc 上的 /system,将 userdata.img 复制到 /data。
shell启动成功,我尝试运行:
$service call SurfaceFlinger 10
$service call wallpaper 6 i32 1024 i32 768
$service call window 58
但出现错误:
service: Service SurfaceFlinger does not exist
service: Service wallpaper does not exist
service: Service window does not exist
我检查了服务列表,发现只加载了7个服务:
$ service list
Found 7 services:
0 power: [android.os.IPowerManager]
1 entropy: []
2 sensorservice: [android.gui.SensorServer]
3 media.audio_policy: [android.media.IAudioPolicyService]
4 media.camera: [android.hardware.ICameraService]
5 media.player: [android.media.IMediaPlayerService]
6 media.audio_flinger: [android.media.IAudioFlinger]
当我在Android虚拟设备模拟器上检查服务列表时,发现有50个服务正在运行,包括服务SurfaceFlinger、壁纸、窗口、服务调用执行成功。
感谢您的帮助!
I am facing problem that not all services are running on Android.
I am trying to install Android 4.0 on ARM Development Board and load filesystem from mmc card.
I have done unyaffs for system.img, userdata.img and untar for ramdisk. I have copied content from ramdisk to mmc card, system.img content to /system on mmc and userdata.img to /data.
The shell booted successfully, I tried to run:
$service call SurfaceFlinger 10
$service call wallpaper 6 i32 1024 i32 768
$service call window 58
but I got errors:
service: Service SurfaceFlinger does not exist
service: Service wallpaper does not exist
service: Service window does not exist
I checked service list, an found that only 7 services are loaded:
$ service list
Found 7 services:
0 power: [android.os.IPowerManager]
1 entropy: []
2 sensorservice: [android.gui.SensorServer]
3 media.audio_policy: [android.media.IAudioPolicyService]
4 media.camera: [android.hardware.ICameraService]
5 media.player: [android.media.IMediaPlayerService]
6 media.audio_flinger: [android.media.IAudioFlinger]
When I checked for service list on Android Virtual Device emulator, I found that 50 services are running, including services SurfaceFlinger, wallpaper, window, and service call is executed successfully.
Thanks for help!
SDK不是完整的源代码,等待几周的源代码就是答案
The SDK is not the full source, wait a few weeks for the source is the answer