As I've posted in another thread (http://forum.xda-developers.com/showthread.php?t=1056783) I weren't able to flash my CWM for the A500.
This message appeared in the upper left corner of the device (while showing the acer logo):
Code:
secure boot: image SOS checksum fail!
Now we need to find hints that could reveal what causes this and how we can fix it or avoid this.
Regards,
Tim
I'm very keen on getting this to work, I was thinking about writing acer about unlockng the bootloader (as asus and motorola have), also about src code under the GPL.
Not sure how much luck I would have lol
In the past how did we get around a locked boot loader?
I wrote them a message this morning... waiting.....
Perhaps these links could help?
http://tegradeveloper.nvidia.com/tegra/forum/workaround-run-ubuntu-now
maybe then we can use this command?
fastboot oem unlock
and I found a wiki on how to split the images and recreate them, again not sure if its useful at all.
http://tinyurl.com/39xaqtq
Sorry if they don't!
we cant enter fastboot mode its one of the main problems...
right according to the link at tegra forums you have to add it to the boot/recovery.img which is half the problem since its signed?
just shooting arrows at the wall and seeing what sticks!
what about booting the recovery from a script at kernel startup...?
a good example of this is SE X10 bootloader is locked as hell with a 1024bit encryption key that checks the kernel for key too and what has been done is hijacking the charger(this is the script that is responsible for booting the phone into a charging mode instead of loading android) script and booting the recovery if a button is pressed
this sounds interesting but I'm not known to that technique yet.
we could perhaps use fakeflash, too.
Sent from my Nexus S using Tapatalk
Bootloader seems to be encrypted
Seems like the BL is encrypted...
According to the partition table, BL should be placed @0x180000 on /dev/mmcblk0
But there seems to be encrypted stuff. I think the algorithm described in this patent is used:
faqs.org/patents/app/20100070743
--> Encrypted using SBK
According to [0027], the SBK may be flushed from the keylot in the encryption engine by the BL..
I hope acer just forgot to implement this ^^
Anyone know what kind of signature it is? 'Checksum' tells me it might be CRC, which would be just for integrity and easially spoofed.
I think the checksum starts at +0x240 and seems to have 20 bytes. Any idea what this could be?
Edit: could be sha1
Edit2: It is SHA-1..
sc2k said:
I think the checksum starts at +0x240 and seems to have 20 bytes. Any idea what this could be?
Edit: could be sha1
Edit2: It is SHA-1..
Click to expand...
Click to collapse
0x240 is the offset into the header of the id element used for writing the SHA1 signature as defined in the bootimage.h and written by the mkbootimage program in the sdk. Nothing new here. Look at the bootimage.h
Code:
#define BOOT_MAGIC "ANDROID!"
#define BOOT_MAGIC_SIZE 8
#define BOOT_NAME_SIZE 16
#define BOOT_ARGS_SIZE 512
struct boot_img_hdr
{
unsigned char magic[BOOT_MAGIC_SIZE];
unsigned kernel_size; /* size in bytes */
unsigned kernel_addr; /* physical load addr */
unsigned ramdisk_size; /* size in bytes */
unsigned ramdisk_addr; /* physical load addr */
unsigned second_size; /* size in bytes */
unsigned second_addr; /* physical load addr */
unsigned tags_addr; /* physical addr for kernel tags */
unsigned page_size; /* flash page size we assume */
unsigned unused[2]; /* future expansion: should be 0 */
unsigned char name[BOOT_NAME_SIZE]; /* asciiz product name */
unsigned char cmdline[BOOT_ARGS_SIZE];
unsigned id[8]; /* timestamp / checksum / sha1 / etc */
};
The actual checksum must be somewhere else.. flashing a working boot.img from mmcblk0p2 to mmcblk0p1 will also result in the SOS message.
If the checksum is somewhere outside it must be written by recovery.. there is some interesting code where recovery writes 4x 16 Bytes to mmcblk0p7 @0x84 after installation succeeded. It's 4x the same pattern but in my dump other data is shown there.
Any ideas what this could be?
Btw: mmcblk0p5 also has some boot flags. E.g. you can enable a tty console by calling:
$ su
$ misc_command debug on
This will modify mmcblk0p5. After reboot console=... Is appended to your boot options .
Entering recovery mode will reset the debug flag.
sc2k said:
The actual checksum must be somewhere else.. flashing a working boot.img from mmcblk0p2 to mmcblk0p1 will also result in the SOS message.
Click to expand...
Click to collapse
I believe that each partition has a different valid checksum. So something that passes the check for mmcblk0p2 does not pass for mmcblk0p1. There must be list of partitions and associated checksums somewhere.
heres the log from the last update...
Code:
Starting recovery on Tue Jun 7 11:01:19 2011
can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (1280 x 800)
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null) 0
1 /system ext4 /dev/block/mmcblk0p3 (null) 0
2 /data ext4 /dev/block/mmcblk0p8 (null) 0
3 /cache ext4 /dev/block/mmcblk0p4 (null) 0
4 /misc emmc /dev/block/mmcblk0p5 (null) 0
5 /flex ext4 /dev/block/mmcblk0p6 (null) 0
6 /mnt/sdcard vfat /dev/block/mmcblk1p1 (null) 0
7 /boot emmc /dev/block/mmcblk0p2 (null) 0
8 /aboot emmc /dev/block/mmcblk0p8 (null) 0
9 /recovery emmc /dev/block/mmcblk0p1 (null) 0
I:Got arguments from boot message
Command: "recovery" "--update_package=SDCARD:update.zip"
(replacing path "SDCARD:update.zip" with "/mnt/sdcard/update.zip")
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
persist.service.adb.enable=0
ro.build.id=HRI66
ro.build.display.id=Acer_A500_1.139.01_COM_GEN1
ro.build.system.id=Acer_A500_1.139_COM_GEN1
ro.build.version.incremental=eng.hermit.20110511.221202
ro.build.version.sdk=11
ro.build.version.codename=REL
ro.build.version.release=3.0.1
ro.build.date=Wed May 11 22:12:55 CST 2011
ro.build.date.utc=1305123175
ro.build.type=user
ro.build.user=hermit
ro.build.host=apple
ro.build.tags=release-keys
ro.product.model=A500
ro.product.brand=acer
ro.product.name=picasso_generic1
ro.product.device=ventana
ro.product.board=ventana
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=Acer
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=tegra
ro.build.product=ventana
ro.build.description=picasso_generic1-user 3.0.1 HRI66 eng.hermit.20110511.221202 release-keys
ro.build.fingerprint=acer/picasso_generic1/ventana:3.0.1/HRI66/eng.hermit.20110511.221202:user/release-keys
ro.build.characteristics=tablet,nosdcard
ro.opengles.version=131072
wifi.interface=wlan0
keyguard.no_require_sim=1
ro.dinfo.version=1.0
ro.cpu.vendor=nVidia
ro.cpu.speed=1.0 GHz
ro.cpu.version=T20
ro.config.notification_sound=OnTheHunt.ogg
ro.config.alarm_alert=Alarm_Classic.ogg
dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=48m
dalvik.vm.heapsize=256m
ro.com.google.clientidbase=android-acer
acer.sync.adb.mode=ENABLED
ro.com.google.gmsversion=3.0_r5
ro.setupwizard.mode=REQUIRED
dalvik.vm.dexopt-flags=m=y
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.factorytest=0
ro.bootmode=unknown
ro.baseband=unknown
ro.carrier=unknown
ro.bootloader=unknown
ro.ram.size=1GB
ro.hardware=ventana
ro.revision=0
init.svc.recovery=running
E:/dev/block/mmcblk1 does exist
Finding update package...
I:Update location: /mnt/sdcard/update.zip
Opening update package...
I:1 key(s) loaded from /res/keys
Verifying update package...
I:comment is 1690 bytes; signature 1672 bytes from end
I:whole-file signature verified
I:verify_file returned 0
Installing update...
Verifying current system...
partition read matched size 3043328 sha 23917956b398554dc14fe6c2d86ab3e358bfba5c
Removing unneeded files...
applying patch to /system/app/AccountAndSyncSettings.apk
target 2646 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/ApplicationsProvider.apk
target 6948 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/Bluetooth.apk
target 71682 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/Browser.apk
target 824116 bytes; free space 160763904 bytes; retry 1; enough 1
Patching system files...
applying patch to /system/app/Calculator.apk
target 42343 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/CalendarProvider.apk
target 11855 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/CertInstaller.apk
target 20049 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/Contacts.apk
target 588436 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/ContactsProvider.apk
target 10594 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/DefaultContainerService.apk
target 4118 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/DownloadProvider.apk
target 26496 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/DownloadProviderUi.apk
target 32560 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/DrmProvider.apk
target 6498 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/FDUpdater.apk
target 794799 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/HTMLViewer.apk
target 4262 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/Launcher2.apk
target 26757819 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/LiveWallpapersPicker.apk
target 126452 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/MagicSmokeWallpapers.apk
target 212304 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/MediaProvider.apk
target 10776 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/PackageInstaller.apk
target 29398 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/Phone.apk
target 618972 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/Settings.apk
target 2039503 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/SettingsProvider.apk
target 13385 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/SystemUI.apk
target 727904 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/TelephonyProvider.apk
target 7779 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/TtsService.apk
target 7876 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/UserDictionaryProvider.apk
target 3506 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/VisualizationWallpapers.apk
target 138038 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/bin/debuggerd
target 22240 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/build.prop
target 1770 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/am.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/am.odex
target 29616 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/android.policy.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/android.policy.odex
target 231528 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/android.test.runner.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/android.test.runner.odex
target 196112 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/bmgr.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/bmgr.odex
target 13640 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/bouncycastle.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/bouncycastle.odex
target 934048 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/com.android.location.provider.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/com.android.location.provider.odex
target 7240 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/core-junit.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/core-junit.odex
target 23920 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/core.jar
target 22562 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/core.odex
target 4797712 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/ext.jar
target 101174 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/ext.odex
target 1460952 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/framework-res.apk
target 5116851 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/framework.jar
target 12753 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/framework.odex
target 9118928 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/ime.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/ime.odex
target 6592 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/input.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/input.odex
target 4296 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/javax.obex.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/javax.obex.odex
target 60520 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/monkey.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/monkey.odex
target 88704 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/pm.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/pm.odex
target 27824 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/services.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/services.odex
target 1638968 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/sqlite-jdbc.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/sqlite-jdbc.odex
target 149192 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/svc.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/svc.odex
target 8280 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/lib/libEGL.so
target 95597 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/lib/libandroid_runtime.so
target 600311 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/lib/libbcc.so
target 3944716 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/lib/libcameraservice.so
target 55866 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libgui.so
target 75436 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libhwui.so
target 225596 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libmedia.so
target 423170 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libmedia_jni.so
target 76314 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libmediaplayerservice.so
target 223354 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libmllite.so
target 105436 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libsensorservice.so
target 64192 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libskia.so
target 1026635 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libstagefright.so
target 1645631 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libstagefright_omx.so
target 55098 bytes; free space 160735232 bytes; retry 1; enough 1
applying patch to /system/lib/libstlport.so
target 212915 bytes; free space 160735232 bytes; retry 1; enough 1
applying patch to /system/lib/libui.so
target 83847 bytes; free space 160735232 bytes; retry 1; enough 1
applying patch to /system/lib/libutils.so
target 165943 bytes; free space 160735232 bytes; retry 1; enough 1
applying patch to /system/lib/libvideoeditorplayer.so
target 114224 bytes; free space 160735232 bytes; retry 1; enough 1
applying patch to /system/lib/libwebcore.so
target 7343005 bytes; free space 160735232 bytes; retry 1; enough 1
Patching boot image...
applying patch to EMMC:/dev/block/mmcblk0p2:3043328:23917956b398554dc14fe6c2d86ab3e358bfba5c:3043328:5c7d8b4e98bb083ae8f0d8f585a3aca3a9833d34
partition read matched size 3043328 sha 23917956b398554dc14fe6c2d86ab3e358bfba5c
0 bytes free on /cache (3043328 needed)
error opening /cache/recovery/otatest: No such file or directory
0 regular files in deletable directories
no files can be deleted to free space on /cache
not enough free space on /cache
minzip: Extracted file "/system/etc/install-recovery.sh"
minzip: Extracted file "/system/recovery-from-boot.p"
Unpacking new recovery...
Symlinks and permissions...
Random offset: 0x29f
minzip: Extracted file "/tmp/0"
minzip: Extracted file "/tmp/f"
minzip: Extracted file "/tmp/imei.sh"
about to run program [/system/bin/sh] with 2 args
000000000000000
/tmp/IMEIwithBarcode /tmp/f differ byte 0
No need to do!!
000000000000000
minzip: Extracted file "/tmp/calibration.sh"
minzip: Extracted file "/tmp/calibration_f"
minzip: Extracted file "/tmp/calibration_wrong"
about to run program [/system/bin/sh] with 2 args
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
/tmp/GyroGain /tmp/calibration_wrong differ byte 0
No need to do!!
minzip: Extracted file "/tmp/EC_flash"
minzip: Extracted file "/tmp/ec.rom"
script result was [t]
i have a feeling that EC_flash & ec.rom are actually flasher with bootloader...
thor2002ro said:
heres the log from the last update...
Code:
Starting recovery on Tue Jun 7 11:01:19 2011
can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (1280 x 800)
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null) 0
1 /system ext4 /dev/block/mmcblk0p3 (null) 0
2 /data ext4 /dev/block/mmcblk0p8 (null) 0
3 /cache ext4 /dev/block/mmcblk0p4 (null) 0
4 /misc emmc /dev/block/mmcblk0p5 (null) 0
5 /flex ext4 /dev/block/mmcblk0p6 (null) 0
6 /mnt/sdcard vfat /dev/block/mmcblk1p1 (null) 0
7 /boot emmc /dev/block/mmcblk0p2 (null) 0
8 /aboot emmc /dev/block/mmcblk0p8 (null) 0
9 /recovery emmc /dev/block/mmcblk0p1 (null) 0
I:Got arguments from boot message
Command: "recovery" "--update_package=SDCARD:update.zip"
(replacing path "SDCARD:update.zip" with "/mnt/sdcard/update.zip")
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
persist.service.adb.enable=0
ro.build.id=HRI66
ro.build.display.id=Acer_A500_1.139.01_COM_GEN1
ro.build.system.id=Acer_A500_1.139_COM_GEN1
ro.build.version.incremental=eng.hermit.20110511.221202
ro.build.version.sdk=11
ro.build.version.codename=REL
ro.build.version.release=3.0.1
ro.build.date=Wed May 11 22:12:55 CST 2011
ro.build.date.utc=1305123175
ro.build.type=user
ro.build.user=hermit
ro.build.host=apple
ro.build.tags=release-keys
ro.product.model=A500
ro.product.brand=acer
ro.product.name=picasso_generic1
ro.product.device=ventana
ro.product.board=ventana
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=Acer
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=tegra
ro.build.product=ventana
ro.build.description=picasso_generic1-user 3.0.1 HRI66 eng.hermit.20110511.221202 release-keys
ro.build.fingerprint=acer/picasso_generic1/ventana:3.0.1/HRI66/eng.hermit.20110511.221202:user/release-keys
ro.build.characteristics=tablet,nosdcard
ro.opengles.version=131072
wifi.interface=wlan0
keyguard.no_require_sim=1
ro.dinfo.version=1.0
ro.cpu.vendor=nVidia
ro.cpu.speed=1.0 GHz
ro.cpu.version=T20
ro.config.notification_sound=OnTheHunt.ogg
ro.config.alarm_alert=Alarm_Classic.ogg
dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=48m
dalvik.vm.heapsize=256m
ro.com.google.clientidbase=android-acer
acer.sync.adb.mode=ENABLED
ro.com.google.gmsversion=3.0_r5
ro.setupwizard.mode=REQUIRED
dalvik.vm.dexopt-flags=m=y
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.factorytest=0
ro.bootmode=unknown
ro.baseband=unknown
ro.carrier=unknown
ro.bootloader=unknown
ro.ram.size=1GB
ro.hardware=ventana
ro.revision=0
init.svc.recovery=running
E:/dev/block/mmcblk1 does exist
Finding update package...
I:Update location: /mnt/sdcard/update.zip
Opening update package...
I:1 key(s) loaded from /res/keys
Verifying update package...
I:comment is 1690 bytes; signature 1672 bytes from end
I:whole-file signature verified
I:verify_file returned 0
Installing update...
Verifying current system...
partition read matched size 3043328 sha 23917956b398554dc14fe6c2d86ab3e358bfba5c
Removing unneeded files...
applying patch to /system/app/AccountAndSyncSettings.apk
target 2646 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/ApplicationsProvider.apk
target 6948 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/Bluetooth.apk
target 71682 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/Browser.apk
target 824116 bytes; free space 160763904 bytes; retry 1; enough 1
Patching system files...
applying patch to /system/app/Calculator.apk
target 42343 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/CalendarProvider.apk
target 11855 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/CertInstaller.apk
target 20049 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/Contacts.apk
target 588436 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/ContactsProvider.apk
target 10594 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/DefaultContainerService.apk
target 4118 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/DownloadProvider.apk
target 26496 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/DownloadProviderUi.apk
target 32560 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/DrmProvider.apk
target 6498 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/FDUpdater.apk
target 794799 bytes; free space 160763904 bytes; retry 1; enough 1
applying patch to /system/app/HTMLViewer.apk
target 4262 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/Launcher2.apk
target 26757819 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/LiveWallpapersPicker.apk
target 126452 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/MagicSmokeWallpapers.apk
target 212304 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/MediaProvider.apk
target 10776 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/PackageInstaller.apk
target 29398 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/Phone.apk
target 618972 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/Settings.apk
target 2039503 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/SettingsProvider.apk
target 13385 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/SystemUI.apk
target 727904 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/TelephonyProvider.apk
target 7779 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/TtsService.apk
target 7876 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/UserDictionaryProvider.apk
target 3506 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/app/VisualizationWallpapers.apk
target 138038 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/bin/debuggerd
target 22240 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/build.prop
target 1770 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/am.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/am.odex
target 29616 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/android.policy.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/android.policy.odex
target 231528 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/android.test.runner.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/android.test.runner.odex
target 196112 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/bmgr.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/bmgr.odex
target 13640 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/bouncycastle.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/bouncycastle.odex
target 934048 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/com.android.location.provider.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/com.android.location.provider.odex
target 7240 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/core-junit.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/core-junit.odex
target 23920 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/core.jar
target 22562 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/core.odex
target 4797712 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/ext.jar
target 101174 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/ext.odex
target 1460952 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/framework-res.apk
target 5116851 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/framework.jar
target 12753 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/framework.odex
target 9118928 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/ime.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/ime.odex
target 6592 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/input.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/input.odex
target 4296 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/javax.obex.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/javax.obex.odex
target 60520 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/monkey.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/monkey.odex
target 88704 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/pm.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/pm.odex
target 27824 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/services.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/services.odex
target 1638968 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/sqlite-jdbc.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/sqlite-jdbc.odex
target 149192 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/svc.jar
target 313 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/framework/svc.odex
target 8280 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/lib/libEGL.so
target 95597 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/lib/libandroid_runtime.so
target 600311 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/lib/libbcc.so
target 3944716 bytes; free space 160743424 bytes; retry 1; enough 1
applying patch to /system/lib/libcameraservice.so
target 55866 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libgui.so
target 75436 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libhwui.so
target 225596 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libmedia.so
target 423170 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libmedia_jni.so
target 76314 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libmediaplayerservice.so
target 223354 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libmllite.so
target 105436 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libsensorservice.so
target 64192 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libskia.so
target 1026635 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libstagefright.so
target 1645631 bytes; free space 160739328 bytes; retry 1; enough 1
applying patch to /system/lib/libstagefright_omx.so
target 55098 bytes; free space 160735232 bytes; retry 1; enough 1
applying patch to /system/lib/libstlport.so
target 212915 bytes; free space 160735232 bytes; retry 1; enough 1
applying patch to /system/lib/libui.so
target 83847 bytes; free space 160735232 bytes; retry 1; enough 1
applying patch to /system/lib/libutils.so
target 165943 bytes; free space 160735232 bytes; retry 1; enough 1
applying patch to /system/lib/libvideoeditorplayer.so
target 114224 bytes; free space 160735232 bytes; retry 1; enough 1
applying patch to /system/lib/libwebcore.so
target 7343005 bytes; free space 160735232 bytes; retry 1; enough 1
Patching boot image...
applying patch to EMMC:/dev/block/mmcblk0p2:3043328:23917956b398554dc14fe6c2d86ab3e358bfba5c:3043328:5c7d8b4e98bb083ae8f0d8f585a3aca3a9833d34
partition read matched size 3043328 sha 23917956b398554dc14fe6c2d86ab3e358bfba5c
0 bytes free on /cache (3043328 needed)
error opening /cache/recovery/otatest: No such file or directory
0 regular files in deletable directories
no files can be deleted to free space on /cache
not enough free space on /cache
minzip: Extracted file "/system/etc/install-recovery.sh"
minzip: Extracted file "/system/recovery-from-boot.p"
Unpacking new recovery...
Symlinks and permissions...
Random offset: 0x29f
minzip: Extracted file "/tmp/0"
minzip: Extracted file "/tmp/f"
minzip: Extracted file "/tmp/imei.sh"
about to run program [/system/bin/sh] with 2 args
000000000000000
/tmp/IMEIwithBarcode /tmp/f differ byte 0
No need to do!!
000000000000000
minzip: Extracted file "/tmp/calibration.sh"
minzip: Extracted file "/tmp/calibration_f"
minzip: Extracted file "/tmp/calibration_wrong"
about to run program [/system/bin/sh] with 2 args
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
/tmp/GyroGain /tmp/calibration_wrong differ byte 0
No need to do!!
minzip: Extracted file "/tmp/EC_flash"
minzip: Extracted file "/tmp/ec.rom"
script result was [t]
i have a feeling that EC_flash & ec.rom are actually flasher with bootloader...
Click to expand...
Click to collapse
This part seems to be interesting:
Code:
partition read matched size 3043328 sha 23917956b398554dc14fe6c2d86ab3e358bfba5c
Removing unneeded files...
This is a very good hint!
Edit: not really. This is after the signature check...
Sent from my GT-I9000 using XDA App
yea, but if it's not checking that signature every boot and only checking the checksum, we could build the image and use dd to flash it
netham45 said:
yea, but if it's not checking that signature every boot and only checking the checksum, we could build the image and use dd to flash it
Click to expand...
Click to collapse
But can't we already do that now? /system can be flashed with whatever you want.
huxflux2003 said:
But can't we already do that now? /system can be flashed with whatever you want.
Click to expand...
Click to collapse
But if the checksum on the boot.img isn't valid, it will refuse to boot.
I am trying to compile Omni for Ville but I am not able to over come the following hurdle. Can some one suggest me where I missed something. This is what I get.
target thumb C: mkexfatfs <= bootable/recovery/exfat/mkfs/uctc.c
target thumb C: mkexfatfs <= bootable/recovery/exfat/mkfs/vbr.c
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/system/lib/libcryptfslollipop.so', needed by '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libbmlutils_intermediates/teamwin'. Stop.
make: *** Waiting for unfinished jobs....
target StaticLib: libfusetwrp (/home/ace/android/omni/out/target/product/ville/obj/STATIC_LIBRARIES/libfusetwrp_intermediates/libfusetwrp.a)
real 2m23.315s
user 2m48.614s
sys 2m2.250s
[email protected]:~/android/omni$
Click to expand...
Click to collapse
letsurock said:
I am trying to compile Omni for Ville but I am not able to over come the following hurdle. Can some one suggest me where I missed something. This is what I get.
Click to expand...
Click to collapse
Set TW_INCLUDE_CRYPTO := false for now, Dees-Troy added a commit to use that .so but did not include it in the prebuilts. I have not found the file anywhere on the net.
ktoonsez said:
Set TW_INCLUDE_CRYPTO := false for now, Dees-Troy added a commit to use that .so but did not include it in the prebuilts. I have not found the file anywhere on the net.
Click to expand...
Click to collapse
Thanks:good: it did the trick, but now I have this problem.
Notice file: external/scrypt/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libscrypt_static.a.txt
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libqcci_legacy_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/wcnss_service_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/extras/f2fs_utils/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libf2fs_sparseblock.so.txt
real 4m51.854s
user 4m14.897s
Click to expand...
Click to collapse
Tried to recompile and that error disappreared. Now, this problem.
target thumb C: amix <= hardware/qcom/audio/legacy/libalsa-intf/amix.c
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:33:23: fatal error: sound/tlv.h: No such file or directory
#include <sound/tlv.h>
^
compilation terminated.
build/core/binary.mk:698: recipe for target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o' failed
make: *** [/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
letsurock said:
Tried to recompile and that error disappreared. Now, this problem.
Click to expand...
Click to collapse
You got some problems in your device tree, as the error says you missing a header file, nothing to do with recovery though
ktoonsez said:
You got some problems in your device tree, as the error says you missing a header file, nothing to do with recovery though
Click to expand...
Click to collapse
Will look at it at this weekend. Thanks for your advices.
Ok, dug deeper on the crypto part and found that there is a config that needs changing:
Change this:
TW_INCLUDE_CRYPTO
To this:
TW_INCLUDE_L_CRYPTO
Something with Wifi?
Can some one guide me to overcome this error?
Import includes file: /home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/dumpstate_intermediates/import_includes
target thumb C: libdumpstate.default <= frameworks/native/cmds/dumpstate/libdumpstate_default.c
target thumb C++: dumpsys <= frameworks/native/cmds/dumpsys/dumpsys.cpp
target thumb C: mount.exfat <= external/exfat/main.c
target thumb C: gzip <= external/zlib/src/test/minigzip.c
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/STATIC_LIBRARIES/lib_driver_cmd_qcwcn_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/hostapd_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
real 25m14.641s
user 65m59.889s
sys 18m12.959s
Click to expand...
Click to collapse
Thank you.
letsurock said:
Thanks:good: it did the trick, but now I have this problem.
Click to expand...
Click to collapse
Quote:
Notice file: external/scrypt/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libscrypt_static.a.txt
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libqcci_legacy_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/wcnss_service_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/extras/f2fs_utils/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libf2fs_sparseblock.so.txt
got the same error , someone fix it ????
i build for lg msm8226 device.
Thx in advance..............
shoxxy said:
Quote:
Notice file: external/scrypt/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libscrypt_static.a.txt
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libqcci_legacy_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/wcnss_service_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/extras/f2fs_utils/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libf2fs_sparseblock.so.txt
got the same error , someone fix it ????
i build for lg msm8226 device.
Thx in advance..............
Click to expand...
Click to collapse
No, not yet fixed.
letsurock said:
No, not yet fixed.
Click to expand...
Click to collapse
Thx for reply.................
set
TARGET_USES_QCOM_WCNSS_QMI := true
to false or remove it , works for me but i dont know if its used by your device. saw this ijn a opo repo, and tryed it out
shoxxy said:
Thx for reply.................
set
TARGET_USES_QCOM_WCNSS_QMI := true
to false or remove it , works for me but i dont know if its used by your device. saw this ijn a opo repo, and tryed it out
Click to expand...
Click to collapse
Thanks it worked.
But now I have this problem
frameworks/base/core/jni/android_view_Surface.cpp: In function 'void android::nativeSetDirtyRect(JNIEnv*, jclass, jlong, jobject)':
frameworks/base/core/jni/android_view_Surface.cpp:206:14: error: 'class android::Surface' has no member named 'setDirtyRect'
surface->setDirtyRect(&rect);
^
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_view_InputChannel.cpp
build/core/binary.mk:618: recipe for target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_view_Surface.o' failed
make: *** [/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_view_Surface.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
It wants CAF code not yet implimented in OmniROM it seems, you're building for 5.0?
Edit: You're for sure using CM12 as a base, dirtyrect is a hallmark of 'MSM8960', Repo sync CM12 or just the surface.cpp file and diff it against Omni to add the needed support.
As someone who built for moto_MSM8960 which is basically the same thing; expect to have to change a LOT in Omni source in order to achieve that compatibility
Edit: You could also try to specify 'legacy' instead of 'caf' in your configurations too..
Thanks:good:
ktoonsez said:
You got some problems in your device tree, as the error says you missing a header file, nothing to do with recovery though
Click to expand...
Click to collapse
Hey @ktoonsez,
I'm currently working through the the same set of issues trying to build Lollipop Omni on the motorola mb886, which is also msm8960 based in this thread
and I'm kinda stuck.
I initially got the Surface.cpp errors outlined later in this thread. Just tweaked that one file to match the Cyanogenmod source (commit here) based on what @Tqr said.
Now I'm also dealing with the sound/tlv.h fatal error. I'm not really sure where exactly I could go in the device tree to start debugging this? My device source that I'm working with is here.
A tlv.h header file exists in my ~/omni2/kernel/motorola/msm8960-common/include/sound directory, which is the same place it did for cm12 which built fine.
ssuds said:
Hey @ktoonsez,
I'm currently working through the the same set of issues trying to build Lollipop Omni on the motorola mb886, which is also msm8960 based in this thread
and I'm kinda stuck.
I initially got the Surface.cpp errors outlined later in this thread. Just tweaked that one file to match the Cyanogenmod source (commit here) based on what @Tqr said.
Now I'm also dealing with the sound/tlv.h fatal error. I'm not really sure where exactly I could go in the device tree to start debugging this? My device source that I'm working with is here.
A tlv.h header file exists in my ~/omni2/kernel/motorola/msm8960-common/include/sound directory, which is the same place it did for cm12 which built fine.
Click to expand...
Click to collapse
Please give me your full error log, off-hand I want to say this is an issue in GCCprebuilts where two lines of code must be removed for some reason
Edit: You have a MSM8960 based device, It's most likely an error in prebuilts
Tqr said:
Please give me your full error log, off-hand I want to say this is an issue in GCCprebuilts where two lines of code must be removed for some reason
Edit: You have a MSM8960 based device, It's most likely an error in prebuilts
Click to expand...
Click to collapse
Gotcha, below is the error, hopefully this is what you wanted. Also, was I on the right track with that change in the android_view_Surface.cpp?
Thanks!
ssuds said:
Edit2: now it builds further but breaks on an audio blob
Code:
target thumb C: libalsa-intf <= hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:33:23: fatal error: sound/tlv.h: No such file or directory
#include <sound/tlv.h>
^
compilation terminated.
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_avail':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:401:9: warning: format '%d' expects argument of type 'int', but argument 4 has type 'snd_pcm_uframes_t' [-Wformat=]
ALOGV("hw_ptr = %d buf_size = %d appl_ptr = %d\n",
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:401:9: warning: format '%d' expects argument of type 'int', but argument 6 has type 'snd_pcm_uframes_t' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'dst_address':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:467:22: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
return pcm->addr + pcm_offset;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:471:57: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer_capture':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:505:26: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
src_addr = pcm->addr + pcm_offset;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:492:65: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer_capture(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_write_mmap':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:555:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((bytes_written >= pcm->sw_p->start_threshold) && (!pcm->start)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:526:50: warning: unused parameter 'data' [-Wunused-parameter]
static int pcm_write_mmap(struct pcm *pcm, void *data, unsigned count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'enable_timer':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:668:8: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:697:11: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_open':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:780:9: warning: return makes pointer from integer without a cast [enabled by default]
return -EINVAL;
^
real 25m34.029s
user 66m21.505s
sys 16m39.325s
[email protected]:~/omni2$
tlv.h exists in my ~/omni2/kernel/motorola/msm8960-common/include/sound directory, same place it did for cm12 which built fine.
Edit3: Think I'm getting closer... Now I'm getting this
Code:
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_view_TextureView.cpp
frameworks/base/core/jni/android_view_Surface.cpp: In function 'void android::nativeSetDirtyRect(JNIEnv*, jclass, jlong, jobject)':
frameworks/base/core/jni/android_view_Surface.cpp:206:14: error: 'class android::Surface' has no member named 'setDirtyRect'
surface->setDirtyRect(&rect);
^
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_view_Surface.o] Error 1
make: *** Waiting for unfinished jobs....
real 4m8.158s
user 4m55.351s
sys 2m13.800s
[email protected]:~/omni2$
Edit4: Found some very relevant stuff in this thread: http://forum.xda-developers.com/omni/general/help-regarding-compiling-omnirom-cm-t2964759/page2
Edit5: Tweaked the surface.cpp as that thread recommended, see https://github.com/ssuds/android_frameworks_base/commit/84c26243dcfcba9aee824dfddd11b2a3405c006b
Now the tlv.h: No such file or directory error is back:
Code:
target thumb C: libalsa-intf <= hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c
target Prebuilt: am (/home/shreyas/omni2/out/target/product/mb886/obj/EXECUTABLES/am_intermediates/am)
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:33:23: fatal error: sound/tlv.h: No such file or directory
#include <sound/tlv.h>
^
compilation terminated.
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
Notice file: frameworks/base/cmds/am/NOTICE -- /home/shreyas/omni2/out/target/product/mb886/obj/NOTICE_FILES/src//system/bin/am.txt
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_identifier':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:77:43: warning: unused parameter 'fmt' [-Wunused-parameter]
char *snd_use_case_identifier(const char *fmt, ...)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_free_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:89:40: warning: parameter 'list' set but not used [-Wunused-but-set-parameter]
int snd_use_case_free_list(const char *list[], int items)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:89:52: warning: unused parameter 'items' [-Wunused-parameter]
int snd_use_case_free_list(const char *list[], int items)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_get_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:132:15: warning: assignment from incompatible pointer type [enabled by default]
*list = (char ***)uc_mgr->card_ctxt_ptr->verb_list;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:156:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].device_list;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:180:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].modifier_list;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_apply_mixer_controls':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:792:65: warning: comparison between pointer and integer [enabled by default]
(check_devices_for_voice_call(uc_mgr, use_case) != NULL))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_mgr_reload':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:1986:49: warning: unused parameter 'uc_mgr' [-Wunused-parameter]
int snd_use_case_mgr_reload(snd_use_case_mgr_t *uc_mgr) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'print_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3102:47: warning: unused parameter 'verb_index' [-Wunused-parameter]
static int print_list(card_mctrl_t *list, int verb_index, int count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_ucm_parse_section':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3303:13: warning: format '%d' expects a matching 'int' argument [-Wformat=]
ALOGV("Effects mixer ctl: %s: %d\n", list->effects_mixer_ctl);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'free_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3597:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].ena_mixer_list[index].value;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3615:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].dis_mixer_list[index].value;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3583:40: warning: unused parameter 'verb_index' [-Wunused-parameter]
void free_list(card_mctrl_t *list, int verb_index, int count)
^
real 12m37.998s
user 27m33.618s
sys 6m41.232s
[email protected]:~/omni2$
Click to expand...
Click to collapse
ssuds said:
Gotcha, below is the error, hopefully this is what you wanted. Also, was I on the right track with that change in the android_view_Surface.cpp?
Thanks!
Click to expand...
Click to collapse
sound/tlv.h may be specified in more than one location; you only need a single tlv.h make sure there is not another one causing conflict
Edit: Yes you were on the right track chanigng surface.cpp
It's exactly like smali editing in some regards, and you're really close to building it
Tqr said:
sound/tlv.h may be specified in more than one location; you only need a single tlv.h make sure there is not another one causing conflict
Edit: Yes you were on the right track chanigng surface.cpp
It's exactly like smali editing in some regards, and you're really close to building it
Click to expand...
Click to collapse
Awesome, thanks and that's great to hear that I'm getting close.
So if I'm understanding you correctly, I would be safe in just removing the 'include tlv.h' line in alsa_mixer.c? It's kinda curious that it didn't cause any conflicts while compiling CM12 vs Omni, but I guess the source might be different enough to cause conflicts?
EDIT: It initially looked like removing the 'include tlv.h' line let me get past that, I then ran into
Code:
DumpPublicKey: /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys <= build/target/product/security/testkey.x509.pem
java -jar /home/shreyas/omni2/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys
device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te:2:ERROR 'unknown type userinit_exec' at token ';' on line 18238:
#line 1 "device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te"
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Waiting for unfinished jobs....
target StaticLib: libc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
target StaticLib: libc_nomalloc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
real 3m19.468s
user 1m34.553s
sys 1m0.526s
[email protected]:~/omni2$
The code in sysinit.te is:
Code:
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
allow sysinit property_socket:sock_file write;
allow sysinit system_data_file:file { open };
allow sysinit init:unix_stream_socket connectto;
allow sysinit sysfs:file write;
I just deleted out the first line referring to sysinit userinit_exec
Tried the build again, at which point seems like everything broke on the libalsa-intf stuff:
Code:
Install: /home/shreyas/omni2/out/target/product/mb886/system/bin/am
Import includes file: /home/shreyas/omni2/out/target/product/mb886/obj/EXECUTABLES/amix_intermediates/import_includes
target thumb C: aplay <= hardware/qcom/audio/legacy/libalsa-intf/aplay.c
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_dump':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:240:9: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
ALOGV("%4d %5s %3d %3d %3d %3d %c%c%c%c%c%c%c%c%c %-6s %8d %s",
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_read_tlv':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: error: 'SNDRV_CTL_TLVT_DB_SCALE' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_SCALE: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: note: each undeclared identifier is reported only once for each function it appears in
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:368:14: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_get':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:403:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:409:5: warning: passing argument 5 of 'mixer_ctl_read_tlv' from incompatible pointer type [enabled by default]
mixer_ctl_read_tlv(ctl, tlv, &min, &max, &tlv_type);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:311:5: note: expected 'unsigned int *' but argument is of type 'unsigned int **'
int mixer_ctl_read_tlv(struct mixer_ctl *ctl,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_mulvalues':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:537:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:544:18: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR:
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
ALOGV("tlv db linear: %d %d %d\n", percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'set_volume_simple':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:645:5: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("val = %x", val);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set_value':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:701:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("min = %x max = %x", min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long int' [-Wformat=]
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:44:8: warning: type defaults to 'int' in declaration of 'pcm_flag' [-Wimplicit-int]
static pcm_flag = 1;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:45:8: warning: type defaults to 'int' in declaration of 'debug' [-Wimplicit-int]
static debug = 0;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c: In function 'play_file':
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:196:5: warning: passing argument 2 of 'pcm_open' discards 'const' qualifier from pointer target type [enabled by default]
pcm = pcm_open(flags, device);
^
In file included from hardware/qcom/audio/legacy/libalsa-intf/aplay.c:30:0:
hardware/qcom/audio/legacy/libalsa-intf/alsa_audio.h:137:13: note: expected 'char *' but argument is of type 'const char *'
struct pcm *pcm_open(unsigned flags, char *device);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:197:13: warning: ordered comparison of pointer with integer zero [-Wextra]
if (pcm < 0)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:198:9: warning: return makes integer from pointer without a cast [enabled by default]
return pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:312:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (avail < pcm->sw_p->avail_min) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:324:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'u_int8_t *' [-Wformat=]
fprintf(stderr, "dst_addr = 0x%08x\n", dst_addr);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
fprintf(stderr, "Aplay:avail = %d frames = %d\n",avail, frames);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:339:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:444:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:461:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
real 6m36.672s
user 15m25.977s
sys 2m42.391s
[email protected]:~/omni2$
I'm not really sure where to go from here... So far I've just deleted out those two lines (one in tlv.h and one in sysinit.te), but with so much stuff seemingly broken here I don't even know where to start
ssuds said:
Awesome, thanks and that's great to hear that I'm getting close.
So if I'm understanding you correctly, I would be safe in just removing the 'include tlv.h' line in alsa_mixer.c? It's kinda curious that it didn't cause any conflicts while compiling CM12 vs Omni, but I guess the source might be different enough to cause conflicts?
EDIT: It initially looked like removing the 'include tlv.h' line let me get past that, I then ran into
Code:
DumpPublicKey: /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys <= build/target/product/security/testkey.x509.pem
java -jar /home/shreyas/omni2/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys
device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te:2:ERROR 'unknown type userinit_exec' at token ';' on line 18238:
#line 1 "device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te"
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Waiting for unfinished jobs....
target StaticLib: libc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
target StaticLib: libc_nomalloc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
real 3m19.468s
user 1m34.553s
sys 1m0.526s
[email protected]:~/omni2$
The code in sysinit.te is:
Code:
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
allow sysinit property_socket:sock_file write;
allow sysinit system_data_file:file { open };
allow sysinit init:unix_stream_socket connectto;
allow sysinit sysfs:file write;
I just deleted out the first line referring to sysinit userinit_exec
Tried the build again, at which point seems like everything broke on the libalsa-intf stuff:
Code:
Install: /home/shreyas/omni2/out/target/product/mb886/system/bin/am
Import includes file: /home/shreyas/omni2/out/target/product/mb886/obj/EXECUTABLES/amix_intermediates/import_includes
target thumb C: aplay <= hardware/qcom/audio/legacy/libalsa-intf/aplay.c
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_dump':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:240:9: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
ALOGV("%4d %5s %3d %3d %3d %3d %c%c%c%c%c%c%c%c%c %-6s %8d %s",
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_read_tlv':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: error: 'SNDRV_CTL_TLVT_DB_SCALE' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_SCALE: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: note: each undeclared identifier is reported only once for each function it appears in
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:368:14: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_get':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:403:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:409:5: warning: passing argument 5 of 'mixer_ctl_read_tlv' from incompatible pointer type [enabled by default]
mixer_ctl_read_tlv(ctl, tlv, &min, &max, &tlv_type);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:311:5: note: expected 'unsigned int *' but argument is of type 'unsigned int **'
int mixer_ctl_read_tlv(struct mixer_ctl *ctl,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_mulvalues':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:537:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:544:18: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR:
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
ALOGV("tlv db linear: %d %d %d\n", percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'set_volume_simple':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:645:5: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("val = %x", val);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set_value':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:701:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("min = %x max = %x", min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long int' [-Wformat=]
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:44:8: warning: type defaults to 'int' in declaration of 'pcm_flag' [-Wimplicit-int]
static pcm_flag = 1;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:45:8: warning: type defaults to 'int' in declaration of 'debug' [-Wimplicit-int]
static debug = 0;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c: In function 'play_file':
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:196:5: warning: passing argument 2 of 'pcm_open' discards 'const' qualifier from pointer target type [enabled by default]
pcm = pcm_open(flags, device);
^
In file included from hardware/qcom/audio/legacy/libalsa-intf/aplay.c:30:0:
hardware/qcom/audio/legacy/libalsa-intf/alsa_audio.h:137:13: note: expected 'char *' but argument is of type 'const char *'
struct pcm *pcm_open(unsigned flags, char *device);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:197:13: warning: ordered comparison of pointer with integer zero [-Wextra]
if (pcm < 0)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:198:9: warning: return makes integer from pointer without a cast [enabled by default]
return pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:312:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (avail < pcm->sw_p->avail_min) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:324:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'u_int8_t *' [-Wformat=]
fprintf(stderr, "dst_addr = 0x%08x\n", dst_addr);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
fprintf(stderr, "Aplay:avail = %d frames = %d\n",avail, frames);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:339:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:444:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:461:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
real 6m36.672s
user 15m25.977s
sys 2m42.391s
[email protected]:~/omni2$
I'm not really sure where to go from here... So far I've just deleted out those two lines (one in tlv.h and one in sysinit.te), but with so much stuff seemingly broken here I don't even know where to start
Click to expand...
Click to collapse
Hey man, Do you remeber how do you get that problem solved? Iam currently trying to build SimpleAosp for the HTC One S (ville), also a msm8960 device
I got the exact same error after removing the 'include tlv.h' line in alsa_mixer.c..