Thanks for the log.

line 463
https://git.replicant.us/replicant/frameworks_base/tree/cmds/bootanimation/BootAnimation.cpp#n463

        ALOGW("Unable to cache the animation");

line 105
https://git.replicant.us/replicant/frameworks_base/tree/cmds/bootanimation/BootAnimation.h

        enum ImageID { IMG_DATA = 0, IMG_SYS = 1, IMG_ENC = 2, IMG_THM = 3 };

lines 928-935
https://git.replicant.us/replicant/frameworks_base/tree/cmds/bootanimation/BootAnimation.cpp

        const char *fileName[2][4] = { { OEM_BOOTANIMATION_FILE,
            SYSTEM_BOOTANIMATION_FILE,
            SYSTEM_ENCRYPTED_BOOTANIMATION_FILE,
            THEME_BOOTANIMATION_FILE }, {
            OEM_SHUTDOWN_ANIMATION_FILE,
            SYSTEM_SHUTDOWN_ANIMATION_FILE,
            SYSTEM_ENCRYPTED_SHUTDOWN_ANIMATION_FILE,
            THEME_SHUTDOWN_ANIMATION_FILE} };

line 69-70
https://git.replicant.us/replicant/frameworks_base/tree/cmds/bootanimation/BootAnimation.cpp

        #define SYSTEM_BOOTANIMATION_FILE "/system/media/bootanimation.zip"
#define SYSTEM_ENCRYPTED_BOOTANIMATION_FILE "/system/media/bootanimation-encrypted.zip"



In all likelyhood then it's not loading bootanimation-encrypted.zip or bootanimation.zip from the above paths, which can cause boot loops. At a wild guess, because the device is encrypted and the filename for the boot animation is not reflected in the replicant image.

Josh

On 16/11/17 17:47, Denis 'GNUtoo' Carikli wrote:
Hi,

This bug is pretty serious, I don't understand how, but I was able to
boot my i9300 somehow. Since I use it daily, I've done the tests below
with an i9305.

On Tue, 14 Nov 2017 22:27:26 +0100
Wolfgang Wiedmeyer <[email protected]> wrote:
But in the meantime, it would be good to get some feedback if my patch
actually fixes the issue for various apps. The patch will be
automatically included if you build an image using the
replicant-6.0-dev branch.
[...]
https://git.replicant.us/replicant/frameworks_base/commit/?id=953d2a3493aaceb3209afc7eef1ff1e7f7242908

Here's what I did:
- I downloaded, setup and built i9305 images and images with the
   replicant-6.0 branch, and enabled -eng targets in
   vendor/replicant/targets by copying the lines and replacing
   'userdebug' by 'eng'. I've no idea if that modification is relevant
   here or not.
- I then ran repo init -u \
   https://git.replicant.us/replicant/manifest.git -b replicant-6.0-dev
   and did repo sync
- I then built images for the replicant_i9305-end target, rebooted to
   the recovery, cleared cache and data, and sideloaded the
   replicant-6.0.zip.

The repository has the commit mentioned above.

The device is stuck at boot, however since I'm using -eng builds I have
logs and I can adb in it.

Here are the last logs in adb logcat -b main:
01-01 04:16:22.280  2000  2000 I SurfaceFlinger: Client API: OpenGL_ES
01-01 04:16:22.280  2000  2000 I SurfaceFlinger: EGLSurface: 5-6-5-0, config=0x0
01-01 04:16:22.280  2000  2000 I SurfaceFlinger: OpenGL ES informations:
01-01 04:16:22.280  2000  2000 I SurfaceFlinger: vendor    : Android
01-01 04:16:22.280  2000  2000 I SurfaceFlinger: renderer  : Android 
PixelFlinger 1.4
01-01 04:16:22.280  2000  2000 I SurfaceFlinger: version   : OpenGL ES-CM 1.0
01-01 04:16:22.280  2000  2000 I SurfaceFlinger: extensions: 
GL_EXT_debug_marker GL_OES_byte_coordinates GL_OES_fixed_point 
GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture 
GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image 
GL_OES_EGL_sync GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression 
GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane 
GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
01-01 04:16:22.280  2000  2000 I SurfaceFlinger: GL_MAX_TEXTURE_SIZE = 4096
01-01 04:16:22.280  2000  2000 I SurfaceFlinger: GL_MAX_VIEWPORT_DIMS = 4096
01-01 04:16:22.285  2000  2000 W SurfaceFlinger: no suitable EGLConfig found, 
trying a simpler query
01-01 04:16:22.285  2000  2000 W SurfaceFlinger: EGL_SLOW_CONFIG selected!
01-01 04:16:22.285  2000  2000 I SurfaceFlinger: EGL information:
01-01 04:16:22.285  2000  2000 I SurfaceFlinger: vendor    : Android
01-01 04:16:22.285  2000  2000 I SurfaceFlinger: version   : 1.4 Android 
META-EGL
01-01 04:16:22.285  2000  2000 I SurfaceFlinger: extensions: 
EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time 
EGL_KHR_swap_buffers_with_damage EGL_KHR_image_base EGL_KHR_fence_sync 
EGL_ANDROID_image_native_buffer
01-01 04:16:22.285  2000  2000 I SurfaceFlinger: Client API: OpenGL_ES
01-01 04:16:22.285  2000  2000 I SurfaceFlinger: EGLSurface: 5-6-5-0, config=0x0
01-01 04:16:22.285  2000  2000 D SurfaceFlinger: Set power mode=2, type=0 
flinger=0x405a4000
01-01 04:16:22.660  2085  2091 D libEGL  : Emulator without GPU support 
detected. Fallback to software renderer.
01-01 04:16:22.665  2085  2091 D libEGL  : loaded 
/system/lib/egl/libGLES_android.so
01-01 04:16:22.745  2085  2091 W BootAnimation: Unable to cache the animation
01-01 04:16:22.745  2085  2091 E BootAnimation: couldn't find audio_conf.txt
01-01 04:16:22.845  2085  2091 I ARMAssembler: generated 
scanline__00000077:03010102_00008A01_00000000 [  9 ipp] (30 ins) at 
[0x429c01f0:0x429c0268] in 201125 ns
01-01 04:16:22.925  2000  2000 I ARMAssembler: generated 
scanline__00000077:03010101_00000A04_00000000 [ 19 ipp] (41 ins) at 
[0x41fdb1f0:0x41fdb294] in 99250 ns


Denis.



_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant


_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to