我打算创建一个用户可以为他们的SMS安全的应用程序.我有可能看到Android手机短信的源代码吗?怎么样?
我刚刚根据官方说明下载了完整的4.0.1_r1 Android源代码库.有人可以帮我理解存储库的基本命名方案吗?
例如,在存储库的根目录中,"框架"目录究竟是什么?这与"packages"目录有什么不同?
out/target/common/obj/PACKAGING/public_api.txt:4316: error 5: Added public field android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_MOVEMENT
******************************
You have tried to change the API from what has been previously approved.
To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.
2) You can update current.txt by executing the following command:
make update-api
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
Run Code Online (Sandbox Code Playgroud)
所以我试着在我的成员变量中添加@hide注释,但它只会给我另一个错误:
frameworks/base/core/java/android/app/admin/DevicePolicyManager.java:233: cannot find symbol
symbol …Run Code Online (Sandbox Code Playgroud) 最近我读了Android源代码,发现在进行一些BinderIPC调用时总会调用一对方法.我看了评论,但我不清楚根本原因.这对方法如下:
final long origId = Binder.clearCallingIdentity();
//other local method.
Binder.restoreCallingIdentity(origId);
Run Code Online (Sandbox Code Playgroud)
有谁知道这对方法的功能是什么?它似乎与许可有关.
Android构建过程为android.jar中的每个类生成(?)Java存根,并将它们存储在以下目录中:
./out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/
例如,java/lang/上面目录的子目录包含对应于java.lang.*类的.java文件,子目录`android/app /'包含对应于android.app.*类的.java文件.这些.java文件不包含实际代码,只是包含虚拟主体的签名.
我假设这些.java文件是使用工具从实际源代码生成的.我的问题是,这个工具是什么,它是否可以在Android构建过程之外使用?
我想使用该工具为非Android Java类生成存根.
我一直在使用以下命令在Android源代码的几个分支之间切换:
repo init -u https://android.googlesource.com/platform/manifest -b android-4.4_r1.2
repo sync
Run Code Online (Sandbox Code Playgroud)
最近的标签是android-5.0.0_r2.我注意到我的.repo目录现在大小为30 GB.那是预期的大小吗?如果没有,那么我猜测我的历史来自我在.repo目录中存储的其他分支/标签.
有没有办法减少.repo目录的大小?我想限制只有源/对象/图像/等.我需要我正在研究的特定分支.硬盘空间对我来说比下载时间更重要.
我看到git gc用于.git存储库,但在这种情况下不起作用.是否存在等效的.repo存储库?
注意:我确实尝试过repo prune,但这并没有减小.repo目录的大小.
我package com.android.server;从Android的源代码中查看.有一些文档表明,在系统启动时加载其他重要服务作为Activity/Package/Power等是主要的角色,但这只是我的猜测.
有人可以更详细地解释什么是SystemServer的关键角色?
每当我制作android时,我都会失败,并且下面的错误大约是36%.我尝试构建相同错误的平台无关紧要.我看起来几乎到处都玩着.jack文件,.jack-settings文件并仍然被击中.
它似乎发生在插孔服务器正在初始化时......我试图手动启动服务器并且它失败了.
osboxes@osboxes:~/android$ jack-admin start-server
/home/osboxes/android/out/host/linux-x86/bin/jack-admin: line 108: syntax error near unexpected token `('
/home/osboxes/android/out/host/linux-x86/bin/jack-admin: line 108: ` echo "Internal unknown error ($2), try 'jack-diagnose' or see Jack server log" >&2'
Run Code Online (Sandbox Code Playgroud)
杰克诊断似乎不起作用.我在论坛上一直在圈子里跑.请帮忙!
输出错误低于....
[ 36% 12150/33274] target Strip (mini debug info).../generic/obj/EXECUTABLES/init_intermediates/init)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/generic/symbols/init: no symbols
[ 36% 12259/33274] target Strip (mini debug info)...ic/obj/EXECUTABLES/healthd_intermediates/healthd)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/generic/symbols/sbin/healthd: no symbols
[ 36% 12261/33274] Ensure Jack server is installed and started
FAILED: /bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar 2>&1 || (exit 0) ) && …Run Code Online (Sandbox Code Playgroud) 我们正在定制Android x86 Nougat(Android v7.1)项目的分支.由于我们的系统中没有视频显示硬件,因此我们尝试设置虚拟帧缓冲区(VFB),以便我们可以自定义方式处理视频显示(例如,通过VNC服务器路由视频显示等).
我们在系统启动时SurfaceError尝试初始化它时尝试使用gralloc分配内存时失败.以下是logcat的摘录:
03-02 18:31:21.757 986 986 E gralloc : #### gralloc_alloc
03-02 18:31:21.757 986 986 E gralloc : #### gralloc_alloc_framebuffer
03-02 18:31:21.757 986 986 E gralloc : #### gralloc_alloc_framebuffer_locked
03-02 18:31:21.757 986 986 E Gralloc1On0Adapter: gralloc0 allocation failed: -12 (Out of memory)
03-02 18:31:21.757 986 986 E GraphicBufferAllocator: Failed to allocate (360 x 480) format 5 usage 6656: 5
03-02 18:31:21.757 986 986 V Gralloc1On0Adapter: Destroying descriptor 3
03-02 18:31:21.757 986 986 V Gralloc1On0Adapter: dump(0 (0xbfe341f4), 0x0 …Run Code Online (Sandbox Code Playgroud) android linux-kernel android-source android-x86 surfaceflinger
我正在Mac(macOS Sierra 10.12.6)中构建AOSP 8,而Jack因未知内部错误而失败
Internal unknown error (415), try 'jack-diagnose' or see Jack server log
Run Code Online (Sandbox Code Playgroud)
杰克诊断显示:
ps: illegal argument: -o
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-g grp[,grp...]] [-u [uid,uid...]]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]
Port 8073 is used by another process (pid=), please ensure to free the port or change port configuration in '/Users/user/.jack-settings' and '/Users/user/.jack-server/config.properties'
ps: illegal argument: -o
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-g grp[,grp...]] …Run Code Online (Sandbox Code Playgroud) android-source ×10
android ×7
android-sms ×1
android-x86 ×1
api ×1
build ×1
git ×1
hide ×1
linux ×1
linux-kernel ×1
master ×1
repo ×1
repository ×1
ubuntu ×1