利用Linux的convert命令将11.jpg转化为11.raw:
convert -depth 8 11.jpg rgb:11.raw
将11.raw文件转换为initlogo.rle。在raw图片文件所在目录下执行:/home/libin/workspace/android-2.2r1.1/out/host/linux-x86/bin/rgb2565 -rle <11.raw> initlogo.rle
zip -r -0 bootanimation.zip .
如何编译frame
http://topic.csdn.net/u/20100417/13/17f70544-6674-42e2-9314-5c822ce838e3.html
定制Android关机界面:
http://yueguc.iteye.com/blog/762273
/policies/base/phone/com/android/internal/policy/impl/GlobalActions.java
关机代码:
位置:frameworks/base/awt/org/apache/harmony/awt/wtk/ShutdownThread.java/ShutdownActivity.java
private static void beginShutdownSequence(Context context) {
synchronized (sIsStartedGuard) {
sIsStarted = true;
}
// throw up an indeterminate system dialog to indicate radio is
// shutting down.
ProgressDialog pd = new ProgressDialog(context);
pd.setTitle(context.getText(com.android.internal.R.string.power_off));
pd.setMessage(context.getText(com.android.internal.R.string.shutdown_progress));
pd.setIndeterminate(true);
pd.setCancelable(false);
pd.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
if (!context.getResources().getBoolean(
com.android.internal.R.bool.config_sf_slowBlur)) {
pd.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
}
pd.show();
// start the thread that initiates shutdown
sInstance.mContext = context;
sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
sInstance.mWakeLock = null;
if (sInstance.mPowerManager.isScreenOn()) {
try {
sInstance.mWakeLock = sInstance.mPowerManager.newWakeLock(
PowerManager.FULL_WAKE_LOCK, "Shutdown");
sInstance.mWakeLock.acquire();
} catch (SecurityException e) {
Log.w(TAG, "No permission to acquire wake lock", e);
sInstance.mWakeLock = null;
}
}
sInstance.mHandler = new Handler() {
};
sInstance.start();
}
编译framework:
1、修改代码
2、make framework(后来发现出问题了,编译没效果)后改用这个:
mm frameworks/base/core/res/res; make android.policy; make framework; make snod; cp out/target/product/generic/system.img ../../program/android/android-sdk-linux_x86/platforms/android-8/images/
或者:libin@libin-desktop:~/workspace/android-2.2r1.1/frameworks/policies/base/phone$ mm
3、make snod
4、将out/target/product/generic/system.img这个文件复制到SDK中的platforms/android-8/images/这个目录下:
cp out/target/product/generic/system.img /home/libin/program/android/android-sdk-linux_x86/platforms/android-8/images/
附:
有时候按上述步骤操作后,会出现模拟器不能启动的现象。即一直重复播放开机动画(没有开机动画的就是一直显示闪烁的android字符)。
解决:一般重新make即可。
从svn上检出代码后,代码所在文件夹上有一个小锁,那是因为检代码时的权限不对(??),用sudo chmod 777 -R nvdroid命令即可更改文件夹权限为所有用户。
make 出错后排查:
删掉android/out/target/common/obj/JAVA_LIBRARIES/frameworkintermediates
分享到:
相关推荐
目前android开机画面由三个部分(阶段)组成,第一部分在bootloader启动时显示(静态),第二部分在启动kernel时显示(静态),第三部分在系统启动时(bootanimation)显示(动画)。
自己在做android固件订单时,总会遇到logo的制作,尤其是这个rle格式,在ubuntu上转换稍微麻烦一点,有了这个工具,一键搞定
rle code par la langue c
把BMP文件转换成RLE文件,可以用于Android开机LOGO制作。
bmp_rle_source,bitmap还可以带压缩,此资源用来RUN_LENGTH压缩格式的解析
RLE的基本思路是,把数据分两种情况对待: A1.一些连续的重复字节 A2.一些连续的,不相重复的字节 RLE压缩最常见的一种算法思路: 将全部的数据分成很多块,这些块的长度各不一样: all data = [block] + [block] +...
游程编码 可以进行压缩解压、图像对比处理,原图像,压缩后,解压后数据长度的对比
对我上传的RLE行程编码所压缩的文件进行解码,编码文件在我的上传中可以下载。
Shafa是一个免费的开源程序,用于用 C (2020/21) 编写的无损...对于 RLE 的解压缩,需要一个 .freq 文件以及 .rle 文件。 对于 Shannon Fano 的解压缩,需要 .cod 文件和 .shaf 文件。 (所有这些文件都是程序生成的)
RLE算法压缩解压源代码文件
android 启动 rle 制作工具,牛人写的,保存个链接,怕丢失。
A fast RLE encoding and decoding implementation. It uses inline assembly functions.
对图像进行压缩和解码的程序,nenggoujiaohaodeshixianjiema
RLE压缩算法C语言实现 RLE压缩算法C语言实现 RLE压缩算法C语言实现
自己写的一个利用RLE算法把黑白两色的bmp文件转换成rle格式的文件。压缩文件里有较详细的说明。
游程编码,对于二值图像而言是一种编码方法,对连续的黑、白像素数(游程)以不同的码字进行编码。是无损压缩编码的一种。
易语言RLE压缩解压源码,RLE压缩解压,RLE压缩,RLE解压,转为RLE,RLE解码
LZW和rle算法的实现及其演示例子源码
我的博客:docker 安装RLE配置中所用到的相关安装包和文件,链接:https://blog.csdn.net/weixin_44861214/article/details/106897597
Atom-pathr.zip,操作路径的包pathr包,atom是一个用web技术构建的开源文本编辑器。