Hi,
Since about 4.4.3 (possibly 4.4.2?) wifi-tethering broke.
logcat says:
Code:
D/AFWall ( 3615): OS reported AP state change: 11 -> 12
D/AFWall ( 3615): isWifiApEnabled is false
E/SoftapController( 1320): Cannot update "/data/misc/wifi/hostapd.conf": Permission denied
E/WifiStateMachine( 1837): Exception in softap start java.lang.IllegalStateException: command '79 softap set wlan0 AndroidAP broadcast 6 wpa2-psk [scrubbed]' failed with '400 79 SoftAP command has failed'
E/SoftapController( 1320): SoftAP is not running
D/SoftapController( 1320): Softap fwReload - Ok
D/SoftapController( 1320): Softap fwReload - Ok
D/dalvikvm( 3615): GC_CONCURRENT freed 390K, 11% free 12321K/13772K, paused 4ms+1ms, total 18ms
I/AFWall ( 3615): Now assuming 3G connection (non-tethered)
E/SoftapController( 1320): Cannot update "/data/misc/wifi/hostapd.conf": Permission denied
E/WifiStateMachine( 1837): Exception in softap re-start java.lang.IllegalStateException: command '83 softap set wlan0 AndroidAP broadcast 6 wpa2-psk [scrubbed]' failed with '400 83 SoftAP command has failed'
D/AFWall ( 3615): OS reported AP state change: 12 -> 14
D/AFWall ( 3615): isWifiApEnabled is false
This bug is reported on code.google.com but the only suggested solution is deleting /data/misc/wifi and reboot which didn't work for me.
I even chmoded 777 /data/misc/wifi and hostapd.conf but without any success.
I'm running a very recent nightly (a few days old).
Any thoughts?
Thank you.
Hi,everyone! I got into trouble when I tried to build AOSPA 4+ for mi3 tegra endtion.I successfully complied a *.zip,and successfully flash it to my device,but it always show the boot animation can not get into launcher.I have got logcat,but I am a beginner and have no knowledge about JAVA.
There is a part of locat
Code:
--------- beginning of /dev/log/main
E/nvaudio_modem(25458): Failed to get phone service!
W/AudioFlinger(25458): Thread AudioOut_2 cannot connect to the power manager service
E/AudioFlinger(25458): no wake lock to update!
I/r_submix(25458): adev_open(name=audio_hw_if)
I/r_submix(25458): adev_init_check()
I/AudioFlinger(25458): loadHwModule() Loaded r_submix audio interface from Wifi Display audio HAL (audio) handle 3
I/AudioPolicyService(25458): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
E/memtrack(25457): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug(25457): failed to load memtrack module: -2
I/SamplingProfilerIntegration(25457): Profiling disabled.
I/Zygote (25457): Preloading classes...
D/idmap (25596): error: no read access to /vendor/overlay: No such file or directory
D/TextLayoutCache(25457): Using debug level = 0 - Debug Enabled = 0
I/dalvikvm(25457): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
D/MtpDeviceJNI(25457): register_android_mtp_MtpDevice
I/dalvikvm(25457): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
I/dalvikvm(25457): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
I/dalvikvm(25457): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
E/EmojiFactory_jni(25457): Failed to load libemoji.so: dlopen failed: library "libemoji.so" not found
V/NatController(25456): runCmd(/system/bin/iptables -F natctrl_FORWARD) res=0
V/NatController(25456): runCmd(/system/bin/iptables -A natctrl_FORWARD -j DROP) res=0
V/NatController(25456): runCmd(/system/bin/iptables -t nat -F natctrl_nat_POSTROUTING) res=0
V/NatController(25456): runCmd(/system/bin/ip route flush cache) res=0
V/NatController(25456): runCmd(/system/bin/iptables -F natctrl_tether_counters) res=0
I/LibraryLoader(25457): Loading: webviewchromium
E/dalvikvm(25457): dlopen("/system/lib/libwebviewchromium.so") failed: dlopen failed: empty/missing DT_HASH in "libwebviewchromium.so" (built with --hash-style=gnu?)
W/WebViewFactory(25457): error preloading provider
W/WebViewFactory(25457): java.lang.RuntimeException: Cannot load WebView
W/WebViewFactory(25457): at com.android.org.chromium.android_webview.AwBrowserProcess.loadLibrary(AwBrowserProcess.java:31)
W/WebViewFactory(25457): at com.android.webview.chromium.WebViewChromiumFactoryProvider.<init>(WebViewChromiumFactoryProvider.java:87)
W/WebViewFactory(25457): at java.lang.Class.newInstanceImpl(Native Method)
W/WebViewFactory(25457): at java.lang.Class.newInstance(Class.java:1208)
W/WebViewFactory(25457): at android.webkit.WebViewFactory$Preloader.<clinit>(WebViewFactory.java:43)
W/WebViewFactory(25457): at java.lang.Class.classForName(Native Method)
W/WebViewFactory(25457): at java.lang.Class.forName(Class.java:251)
W/WebViewFactory(25457): at java.lang.Class.forName(Class.java:216)
W/WebViewFactory(25457): at com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:307)
W/WebViewFactory(25457): at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:247)
W/WebViewFactory(25457): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:581)
W/WebViewFactory(25457): at dalvik.system.NativeStart.main(Native Method)
W/WebViewFactory(25457): Caused by: com.android.org.chromium.content.common.ProcessInitException
W/WebViewFactory(25457): at com.android.org.chromium.content.app.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:135)
W/WebViewFactory(25457): at com.android.org.chromium.content.app.LibraryLoader.loadNow(LibraryLoader.java:87)
W/WebViewFactory(25457): at com.android.org.chromium.android_webview.AwBrowserProcess.loadLibrary(AwBrowserProcess.java:29)
W/WebViewFactory(25457): ... 11 more
W/WebViewFactory(25457): Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH in "libwebviewchromium.so" (built with --hash-style=gnu?)
W/WebViewFactory(25457): at java.lang.Runtime.loadLibrary(Runtime.java:386)
W/WebViewFactory(25457): at java.lang.System.loadLibrary(System.java:526)
W/WebViewFactory(25457): at com.android.org.chromium.content.app.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:123)
W/WebViewFactory(25457): ... 13 more
V/NatController(25456): runCmd(/system/bin/iptables -X natctrl_tether_counters) res=0
V/NatController(25456): runCmd(/system/bin/iptables -N natctrl_tether_counters) res=0
W/Zygote (25457): Class not found for preloading: java.lang.UnsafeByteSequence
I/System (25457): Loaded time zone names for "" in 35ms (32ms in ICU)
E/Netd (25456): Unable to create netlink socket: Protocol not supported
E/Netd (25456): Unable to open quota2 logging socket
D/MDnsDS (25456): MDnsSdListener::Hander starting up
D/MDnsDS (25456): MDnsSdListener starting to monitor
D/MDnsDS (25456): Going to poll with pollCount 1
I/System (25457): Loaded time zone names for "en_US" in 22ms (18ms in ICU)
I/Zygote (25457): ...preloaded 2777 classes in 775ms.
I/dalvikvm(25457): System server process 25738 has been created
I/Zygote (25457): Accepting command socket connections
D/SensorService(25738): nuSensorService starting...
I/Sensors (25738): path open /dev/input/event1
I/Sensors (25738): path open /dev/input/event0
I/Sensors (25738): path open /dev/input/event6
I/Sensors (25738): path open /dev/input/event5
E/Sensors (25738): HAL:could not open trigger name
E/Sensors (25738): HAL:could not open current trigger
I/MPL-storeload(25738): Bytes read = 4340
V/Sensors (25738): HAL:MPL:inv_compass_was_turned_off
I/Sensors (25738): path open /dev/input/event1
I/Sensors (25738): path open /dev/input/event0
I/Sensors (25738): path open /dev/input/event6
I/Sensors (25738): path open /dev/input/event5
I/Sensors (25738): path open /dev/input/event4
I/Sensors (25738): path open /dev/input/event3
I/Sensors (25738): path open /dev/input/event1
I/Sensors (25738): path open /dev/input/event0
I/Sensors (25738): path open /dev/input/event6
I/Sensors (25738): path open /dev/input/event5
I/Sensors (25738): path open /dev/input/event4
I/Sensors (25738): path open /dev/input/event1
I/Sensors (25738): path open /dev/input/event0
I/Sensors (25738): path open /dev/input/event6
I/Sensors (25738): path open /dev/input/event5
I/Sensors (25738): path open /dev/input/event4
I/Sensors (25738): path open /dev/input/event3
I/Sensors (25738): path open /dev/input/event2
I/SensorService(25738): Ambient Light Sensor
I/SensorService(25738): Proximity Sensor
I/SensorService(25738): Barometer Sensor
I/SensorService(25738): Temperature Sensor
I/SensorService(25738): Gyroscope Sensor
I/SensorService(25738): Raw Gyroscope Sensor
I/SensorService(25738): Accelerometer Sensor
I/SensorService(25738): Magnetic Field Sensor
I/SensorService(25738): Orientation Sensor
I/SensorService(25738): Rotation Vector Sensor
I/SensorService(25738): Linear Acceleration Sensor
I/SensorService(25738): Gravity Sensor
D/SensorService(25738): Max socket buffer size 1048576
D/SensorService(25738): nuSensorService thread starting...
E/Sensors (25738): HAL:ERR Full data packet was not read
E/Sensors (25738): HAL:ERR Full data packet was not read
I/installd( 201): new connection
I/powerHAL::common(25738): input device id:0 present with name:tegra-kbc
I/powerHAL::common(25738): input device id:1 present with name:atmel-maxtouch
I/powerHAL::common(25738): input device id:2 present with name:bmp180
I/powerHAL::common(25738): input device id:3 present with name:lightsensor
I/powerHAL::common(25738): input device id:4 present with name:proximity
I/powerHAL::common(25738): input device id:5 present with name:compass
I/powerHAL::common(25738): input device id:6 present with name:fsa8108_sw
D/PackageManager(25738): No files in app dir /vendor/overlay
W/ResourceType(25738): Failure getting entry for 0x7f050000 (t=4 e=0) in package 0 (error -75)
W/Resources(25738): Converting to boolean: TypedValue{t=0x3/d=0x1a9a "false" a=2 r=0x7f120876}
W/ResourceType(25738): Failure getting entry for 0x7f0d01bf (t=12 e=447) in package 0 (error -75)
W/ResourceType(25738): Failure getting entry for 0x7f0d01bf (t=12 e=447) in package 0 (error -75)
W/ResourceType(25738): Failure getting entry for 0x7f130310 (t=18 e=784) in package 0 (error -75)
W/ResourceType(25738): Failure getting entry for 0x7f130310 (t=18 e=784) in package 0 (error -75)
W/ResourceType(25738): Failure getting entry for 0x7f1302f3 (t=18 e=755) in package 0 (error -75)
W/ResourceType(25738): Failure getting entry for 0x7f04000f (t=3 e=15) in package 0 (error -75)
W/ResourceType(25738): Failure getting entry for 0x7f04000f (t=3 e=15) in package 0 (error -75)
D/PackageManager(25738): No files in app dir /vendor/app
V/tspdrv (25738): opened device /dev/tspdrv
V/tspdrv (25738): TSPDRV_MAGIC_NUMBER success
V/tspdrv (25738): TSPDRV_GET_NUM_ACTUATORS success, actuators = 1
V/tspdrv (25738): TSPDRV_SET_DEVICE_PARAMETER success
V/tspdrv (25738): timeout_ms: 0
V/tspdrv (25738): TSPDRV_DISABLE_AMP success
E/ConsumerIrService(25738): Can't open consumer IR HW Module, error: -2
W/libsuspend(25738): Error writing 'on' to /sys/power/state: Invalid argument
I/libsuspend(25738): Selected autosleep
I/powerHAL::common(25738): Enabling input device:1
I/powerHAL::common(25738): Enabling input device:2
I/powerHAL::common(25738): Enabling input device:3
I/powerHAL::common(25738): Enabling input device:4
I/powerHAL::common(25738): Enabling input device:5
I/powerHAL::common(25738): Enabling input device:6
I/powerHAL::pisces(25738): average current for last screen off is 206971
D/SurfaceFlinger( 196): Screen acquired, type=0 flinger=0xc0b450
D/SurfaceFlinger( 196): screen was previously acquired
D/EventHub(25738): No input device configuration file found for device 'atmel-maxtouch'.
D/BluetoothManagerService(25738): Loading stored name and address
D/BluetoothManagerService(25738): Stored bluetooth Name=null,Address=null
W/EventHub(25738): Unable to disable kernel key repeat for /dev/input/event1: Function not implemented
I/EventHub(25738): New device: id=1, fd=135, path='/dev/input/event1', name='atmel-maxtouch', classes=0x15, configuration='', keyLayout='/system/usr/keylayout/atmel-maxtouch.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=true, usingClockIoctl=false
D/EventHub(25738): No input device configuration file found for device 'tegra-kbc'.
W/EventHub(25738): Unable to disable kernel key repeat for /dev/input/event0: Function not implemented
I/EventHub(25738): New device: id=2, fd=136, path='/dev/input/event0', name='tegra-kbc', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/tegra-kbc.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=true, usingClockIoctl=false
D/EventHub(25738): No input device configuration file found for device 'fsa8108_sw'.
W/EventHub(25738): Unable to disable kernel key repeat for /dev/input/event6: Function not implemented
I/EventHub(25738): New device: id=3, fd=138, path='/dev/input/event6', name='fsa8108_sw', classes=0x81, configuration='', keyLayout='/system/usr/keylayout/fsa8108_sw.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=true, usingClockIoctl=false
D/EventHub(25738): No input device configuration file found for device 'compass'.
D/EventHub(25738): No input device configuration file found for device 'proximity'.
D/EventHub(25738): No input device configuration file found for device 'lightsensor'.
D/EventHub(25738): No input device configuration file found for device 'bmp180'.
I/InputReader(25738): Device added: id=-1, name='Virtual', sources=0x00000301
I/InputReader(25738): Device added: id=3, name='fsa8108_sw', sources=0x80000101
I/InputReader(25738): Device added: id=2, name='tegra-kbc', sources=0x00000101
I/InputReader(25738): Touch device 'atmel-maxtouch' could not query the properties of its associated display. The device will be inoperable until the display size becomes available.
I/InputReader(25738): Device added: id=1, name='atmel-maxtouch', sources=0x00001103
I/InputReader(25738): Reconfiguring input devices. changes=0x00000004
I/InputReader(25738): Device reconfigured: id=1, name='atmel-maxtouch', size 1080x1920, orientation 0, mode 1, display id 0
I/PackageManager(25738): No secure containers on sdcard
D/WifiController(25738): isAirplaneModeOn = false, isWifiEnabled = false, isScanningAvailable = false
D/BluetoothTethering(25738): startMonitoring: target: Handler (com.android.server.ConnectivityService$NetworkStateTrackerHandler) {41d2e7e0}
D/BluetoothTethering(25738): startMonitoring: mCsHandler: Handler (com.android.server.ConnectivityService$NetworkStateTrackerHandler) {41d2e7e0}
D/BluetoothManagerService(25738): Message: 20
D/BluetoothManagerService(25738): Added callback: [email protected]:true
D/BluetoothManagerService(25738): Message: 30
D/Tethering(25738): Exception adding default nw to upstreamIfaceTypes: java.lang.NullPointerException
I/VolumePanel(25738): changeOverlayStyle : 1
V/nvaudio_hw(25458): nvaudio_dev_set_voice_volume : vol 0.800000
D/nvaudio_hw(25458): send volume to telephony:0.800000
D/nvaudio_modem(25458): Set modem volume to 0.800000
E/nvaudio_modem(25458): Failed to get phone service!
E/SELinux (25738): SELinux: Loaded file_contexts from /file_contexts
D/Atlas (25738): Computing best atlas configuration...
D/Atlas (25738): Running Atlas Worker #1
D/Atlas (25738): Running Atlas Worker #2
D/Atlas (25738): Running Atlas Worker #3
I/com.android.server.ThemeService(25738): Spawned worker thread
I/WindowManager(25738): SAFE MODE not enabled
V/tspdrv (25738): opened device /dev/tspdrv
V/tspdrv (25738): TSPDRV_MAGIC_NUMBER success
V/tspdrv (25738): TSPDRV_GET_NUM_ACTUATORS success, actuators = 1
F/libc (25738): invalid address or address of corrupt block 0xbed47420 passed to dlfree
F/libc (25738): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 25738 (system_server)
I forgot to filter the log ,sorry...
And when I am building,it always showed that: The API version is out of date,use Xlint to recomplie(In fact I am a Chinese and the massage is in Chinese,I translate it you to understand it),but the JDK version is 1.6.0.33,it is suitable to build kitkat,right?
I hope you answer,please.
This was as a result of looking at my logcat and seeing multiple errors coming from sensors
Code:
E/Sensors (20433): sns_main.c(447):Timeout waiting for SMGR service. Exit sensors daemon!
E/Sensors (20433): sns_main.c(561):Exiting! Err 0
E/Sensors (20486): sns_fsa_la.c(89):invalid directory path -128
E/Sensors (20486): sns_reg_la.c(296):Error creating registry file
E/Sensors (20486): sns_fsa_la.c(448):realpath failed for directory name2
E/Sensors (20486): sns_fsa_la.c(448):realpath failed for directory name2
E/Sensors (20486): sns_debug_main.c(294):Debug Config File missing in EFS!
E/libsensor1(20486): realpath failed for directory name2
E/Sensors (20486): aon_control.c(119):inotify_add_watch::/persist/sensors failed
E/libsensor1(20486): realpath failed for directory name2
E/libsensor1(20486): check_sensors_enabled: open error: settings file "/persist/sensors/sensors_settings", errno 2
E/libsensor1(20486): check_sensors_enabled: inotify error: settings path "/persist/sensor", errno 2
E/libsensor1(20486): check_sensors_enabled: Sensors enabled = false
E/libsensor1(20486): realpath failed for directory name2
E/libsensor1(20486): check_sensors_enable: sensors settings file not available
E/libsensor1(20486): wait_for_service: sensors setting disabled sensors
Found out that my /persist partition didn't have any files in it, just directories that were empty
What I did is this:
In orangefox, make sure /persist is unmounted or you'll get an error
1> extracted persist.img from MIUI global rom
2> copied persist.img to my sd card via orangefox
3> adb shell to my phone while it was in orangefox
4> cd /sdcard1
5> dd if=persist.img of=/dev/block/mmcblk0p55
6> reboot
Now my camera works and auto rotate works as well as the Prox sensor.
I hope this helps someone.
Hello,
I am trying to compile a Kernel on Arch Linux for my Device Mi 9T Pro (raphael), but everytime it comes to compile the kernel it fails.
I used the guide from Nathan Chance (https://forum.xda-developers.com/an...erence-how-to-compile-android-kernel-t3627297), but even when I go step by step, it doesn't work.
The first point is, that it fails to properly use a parent directory.
I am using this repository:
https://github.com/UtsavBalar1231/kernel_xiaomi_raphael
This is what needs to be done:
mkdir -p out
make O=out distclean
make O=out mrproper
make O=out raphael-stock_defconfig
make O=out -j16
This is what I do:
##Going into the kernel source directory and setting the variables
export CROSS_COMPILE=/home/user/Toolchains/gcc-7.5.0/bin/aarch64-linux-gnu-
export ARCH=arm64 && export SUBARCH=arm64
##Creating a parent directory
mkdir -p out
##Setting up the directory
make O=out clean
Code:
make[1]: Entering directory '/home/user/build/xiaomi/out'
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
find: ‘arch/arm64/boot/dts/’: No such file or directory
find: ‘arch/arm64/boot/dts/’: No such file or directory
make[1]: Leaving directory '/home/user/build/xiaomi/out'
make O=out mrproper
Code:
make[1]: Entering directory '/home/user/build/xiaomi/out'
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
grep: .config: No such file or directory
find: ‘arch/arm64/boot/dts/’: No such file or directory
find: ‘arch/arm64/boot/dts/’: No such file or directory
make[1]: Leaving directory '/home/user/build/xiaomi/out'
make O=out raphael-stock_defconfig //works
Code:
make[1]: Entering directory '/home/user/build/xiaomi/out'
HOSTCC scripts/basic/fixdep
GEN ./Makefile
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory '/home/user/build/xiaomi/out'
make O=out -j16
Code:
/usr/bin/ld: scripts/dtc/yamltree.o: in function `yaml_propval_int':
yamltree.c:(.text+0x161): undefined reference to `yaml_sequence_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x16c): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x1ed): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x1fa): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x359): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x384): undefined reference to `yaml_sequence_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x38f): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: scripts/dtc/yamltree.o: in function `yaml_tree':
yamltree.c:(.text+0x522): undefined reference to `yaml_mapping_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x52d): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x5b9): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x5c4): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x602): undefined reference to `yaml_sequence_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x60d): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x6b8): undefined reference to `yaml_sequence_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x6c3): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x756): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x761): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x838): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x843): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x86e): undefined reference to `yaml_mapping_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x879): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0x8e1): undefined reference to `yaml_scalar_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0x8ec): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: scripts/dtc/yamltree.o: in function `dt_to_yaml':
yamltree.c:(.text+0xa8d): undefined reference to `yaml_emitter_initialize'
/usr/bin/ld: yamltree.c:(.text+0xa9b): undefined reference to `yaml_emitter_set_output_file'
/usr/bin/ld: yamltree.c:(.text+0xaa8): undefined reference to `yaml_stream_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xab3): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xacc): undefined reference to `yaml_document_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xad7): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xaf8): undefined reference to `yaml_sequence_start_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xb03): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xb1f): undefined reference to `yaml_sequence_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xb2a): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xb3c): undefined reference to `yaml_document_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xb47): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xb57): undefined reference to `yaml_stream_end_event_initialize'
/usr/bin/ld: yamltree.c:(.text+0xb62): undefined reference to `yaml_emitter_emit'
/usr/bin/ld: yamltree.c:(.text+0xb6e): undefined reference to `yaml_emitter_delete'
collect2: error: ld returned 1 exit status
make[3]: *** [scripts/Makefile.host:111: scripts/dtc/dtc] Error 1
make[2]: *** [../scripts/Makefile.build:675: scripts/dtc] Error 2
make[2]: *** Waiting for unfinished jobs....
HOSTLD scripts/mod/modpost
UPD include/generated/asm-offsets.h
CALL ../scripts/checksyscalls.sh
make[1]: *** [/home/user/build/xiaomi/Makefile:603: scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/user/build/xiaomi/out'
make: *** [Makefile:146: sub-make] Error 2
What is going wrong?
[email protected]:~/corvus$ m
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
CORVUS_VERSION=Corvus_v17.0-Vanguard-sweet-30112021-Unofficial-0901
TARGET_PRODUCT=corvus_sweet
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
BUILD_ID=RD2A.211001.002
OUT_DIR=/home/rares/corvus/out
PRODUCT_SOONG_NAMESPACES=vendor/xiaomi/sm6150-common device/xiaomi/sm6150-common hardware/xiaomi device/xiaomi/sweet vendor/xiaomi/sweet hardware/qcom-caf/sm8
150 vendor/qcom/opensource/commonsys-intf/display vendor/qcom/opensource/data-ipa-cfg-mgr vendor/qcom/opensource/dataservices vendor/qcom/opensource/commonsys
/packages/apps/Bluetooth vendor/qcom/opensource/commonsys/system/bt/conf frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice hard
ware/qcom-caf/common/fwk-detect
============================================
[100% 2/2] /home/rares/corvus/out/soong/.bootstrap/bin/soong_build /home/rares/corvus/out/soong/build.ninja
FAILED: /home/rares/corvus/out/soong/build.ninja
/home/rares/corvus/out/soong/.bootstrap/bin/soong_build -t -l /home/rares/corvus/out/.module_paths/Android.bp.list -b /home/rares/corvus/out/soong -n /home/ra
res/corvus/out -d /home/rares/corvus/out/soong/build.ninja.d -globFile /home/rares/corvus/out/soong/.bootstrap/build-globs.ninja -o /home/rares/corvus/out/soo
ng/build.ninja Android.bp
error: device/xiaomi/sweet/libinit/Android.bp:7:1: "init_xiaomi_sweet" depends on undefined module "//device/xiaomi/sm6150-common:libinit_xiaomi_sm6150"
error: device/xiaomi/sm6150-common/power-libperfmgr/Android.bp:16:1: "[email protected]" depends on undefined module "libpe
rfmgr"
Module "[email protected]" is defined in namespace "device/xiaomi/sm6150-common" which can read these 3 namespaces: ["devic
e/xiaomi/sm6150-common" "hardware/xiaomi" "."]
Module "libperfmgr" can be found in these namespaces: ["hardware/google/pixel"]
11:01:29 soong bootstrap failed with: exit status 1
#### failed to build some targets (18 seconds) ####
[email protected]:~/corvus$
NEW ERORR!!
[email protected]:~/corvus$ m
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
CORVUS_VERSION=Corvus_v17.0-Vanguard-sweet-11122021-Unofficial-1140
TARGET_PRODUCT=corvus_sweet
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
BUILD_ID=RD2A.211001.002
OUT_DIR=/home/rares/corvus/out
PRODUCT_SOONG_NAMESPACES=vendor/xiaomi/sweet device/xiaomi/sweet packages/apps/Bluetooth hardware/qcom-caf/sm8150 vendor/qcom/opensource/commonsys-intf/display vendor/qcom/opensource/data-ipa-cfg-mgr vendor/qcom/opensource/dataservices fr
ameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice hardware/qcom-caf/common/fwk-detect
============================================
[100% 2/2] /home/rares/corvus/out/soong/.bootstrap/bin/soong_build /home/rares/corvus/out/soong/build.ninja
FAILED: /home/rares/corvus/out/soong/build.ninja
/home/rares/corvus/out/soong/.bootstrap/bin/soong_build -t -l /home/rares/corvus/out/.module_paths/Android.bp.list -b /home/rares/corvus/out/soong -n /home/rares/corvus/out -d /home/rares/corvus/out/soong/build.ninja.d -globFile /home/rar
es/corvus/out/soong/.bootstrap/build-globs.ninja -o /home/rares/corvus/out/soong/build.ninja Android.bp
error: hardware/google/pixel/vibrator/drv2624/apex/Android.bp:11:23: unrecognized property "use_vndk_as_stable"
13:40:20 soong bootstrap failed with: exit status 1
#### failed to build some targets (4 seconds) ####
[email protected]:~/corvus$
NEW ERORR!!!
[email protected]:~/corvus$ m
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
CORVUS_VERSION=Corvus_v17.0-Vanguard-sweet-21122021-Unofficial-0844
TARGET_PRODUCT=corvus_sweet
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
BUILD_ID=RD2A.211001.002
OUT_DIR=/home/rares/corvus/out
PRODUCT_SOONG_NAMESPACES=vendor/xiaomi/sweet device/xiaomi/sweet packages/apps/Bluetooth hardware/qcom-caf/sm8150 vendor/qcom/opensource/commonsys-intf/displa
y vendor/qcom/opensource/data-ipa-cfg-mgr vendor/qcom/opensource/dataservices frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice
hardware/qcom-caf/common/fwk-detect
============================================
wildcard(/home/rares/corvus/out/target/product/sweet/clean_steps.mk) was changed, regenerating...
$(shell date -u +%H%M) was changed, regenerating...
[ 99% 24412/24643] including art/Android.mk ...
Disabling ART_BUILD_TARGET_DEBUG
Disabling ART_BUILD_HOST_DEBUG
[ 20% 24903/120949] build /home/rares/corvus/out/target/common/obj/all-event-log-tags.txt
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:39: warning: tag "wm_on_paused_called" (30021) duplicated in frameworks/base/cor
e/java/android/app/EventLogTags.logtags:9
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:41: warning: tag "wm_on_resume_called" (30022) duplicated in frameworks/base/cor
e/java/android/app/EventLogTags.logtags:11
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:50: warning: tag "wm_stop_activity" (30048) duplicated in frameworks/base/core/j
ava/android/app/EventLogTags.logtags:14
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:56: warning: tag "wm_add_to_stopping" (30066) duplicated in frameworks/base/core
/java/android/app/EventLogTags.logtags:35
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:6: warning: tag "lock_screen_type" (90200) duplicate
d in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:6
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:9: warning: tag "exp_det_device_admin_activated_by_u
ser" (90201) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:9
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:12: warning: tag "exp_det_device_admin_declined_by_u
ser" (90202) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:12
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:15: warning: tag "exp_det_device_admin_uninstalled_b
y_user" (90203) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:15
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:18: warning: tag "settings_latency" (90204) duplicat
ed in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:18
vendor/qcom/opensource/commonsys/system/bt/EventLogTags.logtags:36: warning: tag "bt_hci_timeout" (1010000) duplicated in system/bt/EventLogTags.logtags:36
vendor/qcom/opensource/commonsys/system/bt/EventLogTags.logtags:37: warning: tag "bt_config_source" (1010001) duplicated in system/bt/EventLogTags.logtags:37
vendor/qcom/opensource/commonsys/system/bt/EventLogTags.logtags:38: warning: tag "bt_hci_unknown_type" (1010002) duplicated in system/bt/EventLogTags.logtags:
38
[ 22% 26783/120949] build /home/rares/corvus/out/target/product/sweet/system/etc/event-log-tags
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:39: warning: tag "wm_on_paused_called" (30021) duplicated in frameworks/base/cor
e/java/android/app/EventLogTags.logtags:9
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:41: warning: tag "wm_on_resume_called" (30022) duplicated in frameworks/base/cor
e/java/android/app/EventLogTags.logtags:11
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:50: warning: tag "wm_stop_activity" (30048) duplicated in frameworks/base/core/j
ava/android/app/EventLogTags.logtags:14
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:56: warning: tag "wm_add_to_stopping" (30066) duplicated in frameworks/base/core
/java/android/app/EventLogTags.logtags:35
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:6: warning: tag "lock_screen_type" (90200) duplicate
d in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:6
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:9: warning: tag "exp_det_device_admin_activated_by_u
ser" (90201) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:9
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:12: warning: tag "exp_det_device_admin_declined_by_u
ser" (90202) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:12
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:15: warning: tag "exp_det_device_admin_uninstalled_b
y_user" (90203) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:15
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:18: warning: tag "settings_latency" (90204) duplicat
ed in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:18
[ 23% 27861/120949] Building Kernel Config
make: Entering directory '/home/rares/corvus/kernel/xiaomi/sweet'
make[1]: Entering directory '/home/rares/corvus/out/target/product/sweet/obj/KERNEL_OBJ'
GEN ./Makefile
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
HOSTCC scripts/kconfig/zconf.tab.o
clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
HOSTLD scripts/kconfig/conf
drivers/misc/Kconfig:624:warning: config symbol defined without type
#
# configuration written to .config
#
make[1]: Leaving directory '/home/rares/corvus/out/target/product/sweet/obj/KERNEL_OBJ'
make: Leaving directory '/home/rares/corvus/kernel/xiaomi/sweet'
make: Entering directory '/home/rares/corvus/kernel/xiaomi/sweet'
make[1]: Entering directory '/home/rares/corvus/out/target/product/sweet/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
drivers/misc/Kconfig:624:warning: config symbol defined without type
make[1]: Leaving directory '/home/rares/corvus/out/target/product/sweet/obj/KERNEL_OBJ'
make: Leaving directory '/home/rares/corvus/kernel/xiaomi/sweet'
[ 23% 29022/120949] //bionic/libc:common_libc versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 27% 33520/120949] //bionic/libc:libc_bionic clang arch-arm/generic/bionic/memcmp.S [arm]
bionic/libc/arch-arm/generic/bionic/memcmp.S:99:9: warning: applying IT instruction to more than one subsequent instruction is deprecated
ittt eq
^
[ 27% 33546/120949] //bionic/libc:libc_bionic clang arch-arm/cortex-a15/bionic/strlen.S [arm]
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:120:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
itt eq
^
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:140:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
itt ne
^
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:141:5: warning: deprecated instruction in IT block
ornne r3, r3, r5
^
[ 27% 33569/120949] //bionic/libc:libc_bionic clang arch-arm/generic/bionic/memcmp.S [arm apex10000]
bionic/libc/arch-arm/generic/bionic/memcmp.S:99:9: warning: applying IT instruction to more than one subsequent instruction is deprecated
ittt eq
^
[ 27% 33596/120949] //bionic/libc:libc_bionic clang arch-arm/cortex-a15/bionic/strlen.S [arm apex10000]
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:120:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
itt eq
^
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:140:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
itt ne
^
bionic/libc/arch-arm/cortex-a15/bionic/strlen.S:141:5: warning: deprecated instruction in IT block
ornne r3, r3, r5
^
[ 28% 34387/120949] //bionic/libc:libc.llndk versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 28% 34394/120949] //bionic/libc:libc.llndk versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 28% 34396/120949] //bionic/libc:libc.llndk versioner preprocess include [arm]
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 28% 34397/120949] //bionic/libc:libc.llndk versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 31% 37764/120949] //external/compiler-rt:libcompiler_rt clang lib/builtins/arm/comparesf2.S [arm]
external/compiler-rt/lib/builtins/arm/comparesf2.S:99:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
external/compiler-rt/lib/builtins/arm/comparesf2.S:128:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
external/compiler-rt/lib/builtins/arm/comparesf2.S:142:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
[ 31% 38103/120949] //external/compiler-rt:libcompiler_rt clang lib/builtins/arm/comparesf2.S [arm]
external/compiler-rt/lib/builtins/arm/comparesf2.S:99:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
external/compiler-rt/lib/builtins/arm/comparesf2.S:128:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
external/compiler-rt/lib/builtins/arm/comparesf2.S:142:5: warning: applying IT instruction to more than one subsequent instruction is deprecated
ite ls
^
[ 52% 63435/120949] //external/dtc:dtc gen yacc [linux_glibc]
external/dtc/dtc-parser.y: warning: 3 shift/reduce conflicts [-Wconflicts-sr]
[ 52% 63445/120949] build /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows
FAILED: /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/rares/corvus/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/rares/corvus/out/target/product/sw
eet/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_intermediat
es/policy.conf ) && (/home/rares/corvus/out/host/linux-x86/bin/sepolicy-analyze /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_inte
rmediates/sepolicy_neverallows.tmp neverallow -w -f /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_intermediates/policy_2.conf ||
( echo \"\" 1>&2; echo \"sepolicy-analyze failed. This is most likely due to the use\" 1>&2; echo \"of an expanded attribute in a neverallow as
sertion. Please fix\" 1>&2; echo \"the policy.\" 1>&2; exit 1 ) ) && (touch /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neveral
lows_intermediates/sepolicy_neverallows.tmp ) && (mv /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverall
ows.tmp /home/rares/corvus/out/target/product/sweet/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows )"
device/xiaomi/sweet/sepolicy/private/hal_livedisplay_default.te:2:ERROR 'attribute hal_lineage_livedisplay_server is not declared' at token ';' on line 65473:
#line 2
typeattribute shal_livedisplay_default hal_lineage_livedisplay_server;
checkpolicy: error(s) encountered while parsing configuration
12:15:03 ninja failed with: exit status 1
#### failed to build some targets (01:31:03 (hh:mm:ss)) ####
I guess there is some sepolicy error