前两天遇到一个问题,在Android2.2手机上无法安装AngryBirds(1.4.2),打开Log,发现有如下的Log信息:
#
CONFIG_PARPORT
is
not
set
CONFIG_BLK_DEV=y
#
CONFIG_BLK_DEV_COW_COMMON
is
not
set
#
CONFIG_BLK_DEV_NBD
is
not
set
#
CONFIG_BLK_DEV_UB
is
not
set
#
CONFIG_BLK_DEV_RAM
is
not
set
#
CONFIG_SCSI_DMA
is
not
set
#
CONFIG_SCSI_NETLINK
is
not
set
#
CONFIG_ATA
is
not
set
CONFIG_NETDEVICES=y
#
CONFIG_DUMMY
is
not
set
#
CONFIG_BONDING
is
not
set
#
CONFIG_CRYPTO_FIPS
is
not
set
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_RNG=m
#
CONFIG_CRYPTO_NULL
is
not
set
#
CONFIG_CRYPTO_CRYPTD
is
not
set
#
CONFIG_CRYPTO_AUTHENC
is
not
set
#
CONFIG_CRYPTO_TEST
is
not
set
#
#
Block
modes
#
#
CONFIG_CRYPTO_CTR
is
not
set
#
CONFIG_CRYPTO_CTS
is
not
set
#
CONFIG_CRYPTO_ECB
is
not
set
#
#
Ciphers
#
#
CONFIG_CRYPTO_ANUBIS
is
not
set
#
CONFIG_CRYPTO_ARC4
is
not
set
#
CONFIG_CRYPTO_BLOWFISH
is
not
set
#
CONFIG_CRYPTO_SEED
is
not
set
#
CONFIG_CRYPTO_SERPENT
is
not
set
#
CONFIG_CRYPTO_TEA
is
not
set
虽然安装成功了,但是打开游戏时,黑屏,在网上搜索,发现了一个暂时的解决办法。
1. 修改/system/lib/egl/egl.cfg文件,内容改为:
3. 屏幕会出现一些七七八八的颜色
4. lock and unlock屏幕
5. 可以玩游戏了
记得在重启之前一定要把修改的文件改回去,否则手机重启后,颜色不正常。
黑屏的原因,怀疑是OpenGLES库的问题,我对这方面不熟悉,有机会研究一下。
-#
CONFIG_BLK_DEV_LOOP
is
not
set
+CONFIG_BLK_DEV_LOOP=y
+#
CONFIG_BLK_DEV_CRYPTOLOOP
is
not
set
-#
CONFIG_MD
is
not
set
+CONFIG_MD=y
+#
CONFIG_BLK_DEV_MD
is
not
set
+CONFIG_BLK_DEV_DM=y
+#
CONFIG_DM_DEBUG
is
not
set
+CONFIG_DM_CRYPT=y
+#
CONFIG_DM_SNAPSHOT
is
not
set
+#
CONFIG_DM_MIRROR
is
not
set
+#
CONFIG_DM_ZERO
is
not
set
+#
CONFIG_DM_MULTIPATH
is
not
set
+CONFIG_CRYPTO_AEAD2=y
+CONFIG_CRYPTO_BLKCIPHER=y
+CONFIG_CRYPTO_BLKCIPHER2=y
+CONFIG_CRYPTO_HASH2=y
-CONFIG_CRYPTO_RNG2=m
-#
CONFIG_CRYPTO_MANAGER
is
not
set
-#
CONFIG_CRYPTO_MANAGER2
is
not
set
+CONFIG_CRYPTO_RNG2=y
+CONFIG_CRYPTO_PCOMP=y
+CONFIG_CRYPTO_MANAGER=y
+CONFIG_CRYPTO_MANAGER2=y
+CONFIG_CRYPTO_WORKQUEUE=y
-#
CONFIG_CRYPTO_CBC
is
not
set
+CONFIG_CRYPTO_CBC=y
-CONFIG_CRYPTO_AES=m
+CONFIG_CRYPTO_AES=y
-#
CONFIG_CRYPTO_TWOFISH
is
not
set
+CONFIG_CRYPTO_TWOFISH=y
+CONFIG_CRYPTO_TWOFISH_COMMON=y
0 1 android
0 0 fimg
0 0 fimg
2. 运行游戏