Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check frameworks/base/cmds/bootanimation/BootAnimation.cpp #3

Closed
IacobIonut01 opened this issue Jul 24, 2017 · 3 comments
Closed

check frameworks/base/cmds/bootanimation/BootAnimation.cpp #3

IacobIonut01 opened this issue Jul 24, 2017 · 3 comments

Comments

@IacobIonut01
Copy link
Member

lines 391 392 393 394 395

ERRORS :
error: use of undeclared identifier 'IMG_ENC'
error: use of undeclared identifier 'IMG_ENC'
error: use of undeclared identifier 'IMG_OEM'
error: use of undeclared identifier 'IMG_OEM'
error: use of undeclared identifier 'IMG_SYS'
error: use of undeclared identifier 'IMG_SYS'

@ganeshi4u
Copy link
Contributor

ganeshi4u commented Jul 25, 2017

TARGET_BOOTANIMATION_PRELOAD = true

You need to have this flag in your device tree.

@IacobIonut01
Copy link
Member Author

tried that , same error
I removed
#ifdef PRELOAD_BOOTANIMATION
// Preload the bootanimation zip on memory, so we don't stutter
// when showing the animation
FILE* fd;
if (encryptedAnimation && access(getAnimationFileName(IMG_ENC), R_OK) == 0)
fd = fopen(getAnimationFileName(IMG_ENC), "r");
else if (access(getAnimationFileName(IMG_OEM), R_OK) == 0)
fd = fopen(getAnimationFileName(IMG_OEM), "r");
else if (access(getAnimationFileName(IMG_SYS), R_OK) == 0)
fd = fopen(getAnimationFileName(IMG_SYS), "r");
else
return NO_ERROR;

if (fd != NULL) {
    // Since including fcntl.h doesn't give us the wrapper, use the syscall.
    // 32 bits takes LO/HI offset (we don't care about endianness of 0).

#if defined(aarch64) || defined(x86_64)
if (syscall(__NR_readahead, fd, 0, INT_MAX))
#else
if (syscall(__NR_readahead, fd, 0, 0, INT_MAX))
#endif
ALOGW("Unable to cache the animation");
fclose(fd);
}
#endif

and worked

@mohancm
Copy link
Member

mohancm commented Jul 25, 2017

hello @DarkWoodens this rom is still wip, we are still sorting the things now and adding features.
i recommend not to try compiling this rom!!
once everything is fine, will post on xda or other medium :)

mohancm pushed a commit that referenced this issue Feb 14, 2019
11-13 20:00:00.527 10645 10645 I crash_dump64: performing dump of process 1467 (target tid = 10124)
11-13 20:00:00.538 10645 10645 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-13 20:00:00.539 10645 10645 F DEBUG   : Build fingerprint: 'HONOR/BKL-L09/HWBKL:8.0.0/HUAWEIBKL-L09S/172(C432):user/release-keys'
11-13 20:00:00.539 10645 10645 F DEBUG   : Revision: '0'
11-13 20:00:00.539 10645 10645 F DEBUG   : ABI: 'arm64'
11-13 20:00:00.539 10645 10645 F DEBUG   : pid: 1467, tid: 10124, name: Visualizer  >>> com.android.systemui <<<
11-13 20:00:00.539 10645 10645 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
11-13 20:00:00.539 10645 10645 F DEBUG   : Abort message: 'FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7c633df0f4)'
11-13 20:00:00.539 10645 10645 F DEBUG   :     x0  0000000000000000  x1  000000000000278c  x2  0000000000000006  x3  0000000000000008
11-13 20:00:00.539 10645 10645 F DEBUG   :     x4  0000000000008080  x5  0000000000008080  x6  0000000000008080  x7  0000000000000038
11-13 20:00:00.539 10645 10645 F DEBUG   :     x8  0000000000000083  x9  40ef6d32d31c854a  x10 0000000000000000  x11 fffffffc7ffffbdf
11-13 20:00:00.539 10645 10645 F DEBUG   :     x12 0000000000000001  x13 000000005beb1f30  x14 0005a1f49bc3a000  x15 0000112f9e154a12
11-13 20:00:00.539 10645 10645 F DEBUG   :     x16 0000007cffb6f2c8  x17 0000007cffaad0d0  x18 00000000fffbfffe  x19 00000000000005bb
11-13 20:00:00.539 10645 10645 F DEBUG   :     x20 000000000000278c  x21 0000007d000d96d0  x22 0000000000000001  x23 0000000000000035
11-13 20:00:00.539 10645 10645 F DEBUG   :     x24 0000007d000c6fc8  x25 0000007d000c7680  x26 0000007c52a14588  x27 0000000000000000
11-13 20:00:00.539 10645 10645 F DEBUG   :     x28 0000000000000005  x29 0000007c52a141a0
11-13 20:00:00.539 10645 10645 F DEBUG   :     sp  0000007c52a14160  lr  0000007cffaa1bfc  pc  0000007cffaa1c24
11-13 20:00:00.564 10645 10645 F DEBUG   :
11-13 20:00:00.564 10645 10645 F DEBUG   : backtrace:
11-13 20:00:00.564 10645 10645 F DEBUG   :     #00 pc 0000000000021c24  /system/lib64/libc.so (abort+116)
11-13 20:00:00.564 10645 10645 F DEBUG   :     #1 pc 0000000000082f04  /system/lib64/libc.so (__fortify_fatal(char const*, ...)+120)
11-13 20:00:00.564 10645 10645 F DEBUG   :     #2 pc 0000000000082600  /system/lib64/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+52)
11-13 20:00:00.564 10645 10645 F DEBUG   :     #3 pc 00000000000824b4  /system/lib64/libc.so (pthread_mutex_lock+228)
11-13 20:00:00.564 10645 10645 F DEBUG   :     #4 pc 00000000000a8c54  /system/lib64/libmedia.so (android::Visualizer::periodicCapture()+56)
11-13 20:00:00.564 10645 10645 F DEBUG   :     #5 pc 00000000000a8aac  /system/lib64/libmedia.so (android::Visualizer::CaptureThread::threadLoop()+88)
11-13 20:00:00.564 10645 10645 F DEBUG   :     #6 pc 000000000000f9d8  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280)
11-13 20:00:00.564 10645 10645 F DEBUG   :     #7 pc 00000000000b4980  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
11-13 20:00:00.564 10645 10645 F DEBUG   :     #8 pc 0000000000081938  /system/lib64/libc.so (__pthread_start(void*)+36)
11-13 20:00:00.564 10645 10645 F DEBUG   :     #9 pc 0000000000023478  /system/lib64/libc.so (__start_thread+68)

Change-Id: Ic7f9788df8a38084c3b150eaa22d67f869085ca2
NotZeetaa pushed a commit to NotZeetaa/android_frameworks_base-1 that referenced this issue May 17, 2023
* The plus icon ref from I6b2947441217ddc2215d1dcb7b2e659f9bd82743.

Co-authored-by: Adithya <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: TH779 <i@779.moe>
Change-Id: I28004d62013be13dfd0825cc53049019f0e06966

Co-authored-by: TH779 <i@779.moe>
Co-authored-by: Adithya <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants