Android 上并未加载所有服务

发布于 12-12 00:29 字数 1139 浏览 0 评论 0原文

我面临的问题是并非所有服务都在 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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笨死的猪2024-12-19 00:29:04

SDK不是完整的源代码,等待几周的源代码就是答案

The SDK is not the full source, wait a few weeks for the source is the answer

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文