[Miscellaneous Android Development] ninjah:
another little step forward.

Now i can see cyanogenmod bootscreen!

i take libqc-opt.so and libdvm.so from cm10 skyroket or lg p930, they are equal.

But i get another error

D/AndroidRuntime( 490):
D/AndroidRuntime( 490): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 490): CheckJNI is OFF
D/dalvikvm( 490): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 490): Added shared lib libjavacore.so 0x0
D/dalvikvm( 490): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 490): Added shared lib libnativehelper.so 0x0
I/mediaserver( 487): ServiceManager: 0x40c79d78
I/AudioFlinger( 487): Using default 3000 mSec as standby time.
I/CameraService( 487): CameraService started (pid=487)
E/HAL ( 487): load: module=/system/lib/hw/camera.msm8660.so
E/HAL ( 487): Cannot load library: link_image[1916]: 487 could not load needed library 'libOlaFaceDetector.so' for 'camera.msm8660.so' (load_library[1118]: Library 'libOlaFaceDetector.so' not found)
E/CameraService( 487): Could not load camera HAL module
I/AudioPolicyManagerBase( 487): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
I/AudioFlinger( 487): loadHwModule() Loaded primary audio interface from Default audio HW HAL (audio) handle 1
I/AudioFlinger( 487): HAL output buffer size 1024 frames, normal mix buffer size 1024 frames
I/AudioMixer( 487): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
I/AudioFlinger( 487): Using module 1 has the primary audio interface
I/AudioFlinger( 487): AudioFlinger's thread 0x40da8008 ready to run
W/AudioFlinger( 487): Thread AudioOut_2 cannot connect to the power manager service
W/AudioFlinger( 487): Thread AudioOut_2 cannot connect to the power manager service
I/AudioPolicyService( 487): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
I/netd ( 478): iptables v1.4.11.1: can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps iptables or your kernel needs to be upgraded.
I/netd ( 478): ip6tables v1.4.11.1: can't initialize ip6tables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps ip6tables or your kernel needs to be upgraded.
I/netd ( 478): iptables: No chain/target/match by that name.
I/netd ( 478): ip6tables: No chain/target/match by that name.
I/SamplingProfilerIntegration( 490): Profiling disabled.
I/netd ( 478): iptables v1.4.11.1: can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps iptables or your kernel needs to be upgraded.
I/Zygote ( 490): Preloading classes...
D/dalvikvm( 490): GC_EXPLICIT freed 37K, 90% free 420K/4096K, paused 1ms+0ms, total 4ms
I/netd ( 478): ip6tables v1.4.11.1: can't initialize ip6tables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps ip6tables or your kernel needs to be upgraded.
I/netd ( 478): iptables: Bad rule (does a matching rule exist in that chain?).
I/netd ( 478): ip6tables: Bad rule (does a matching rule exist in that chain?).
W/Zygote ( 490): Class not found for preloading: android.animation.ValueAnimator$2
W/Zygote ( 490): Class not found for preloading: android.animation.ValueAnimator$3
W/Zygote ( 490): Class not found for preloading: android.animation.ValueAnimator$4
W/Zygote ( 490): Class not found for preloading: android.animation.ValueAnimator$5
W/Zygote ( 490): Class not found for preloading: android.content.res.Resources$1
I/netd ( 478): iptables v1.4.11.1: can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps iptables or your kernel needs to be upgraded.
I/netd ( 478): ip6tables v1.4.11.1: can't initialize ip6tables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps ip6tables or your kernel needs to be upgraded.
I/netd ( 478): iptables: No chain/target/match by that name.
I/netd ( 478): ip6tables: No chain/target/match by that name.
W/Zygote ( 490): Class not found for preloading: android.database.sqlite.SQLiteCompiledSql
W/Zygote ( 490): Class not found for preloading: android.database.sqlite.SQLiteDatabase$DatabaseReentrantLock
D/TextLayoutCache( 490): Using debug level = 0 - Debug Enabled = 0
E/BandwidthController( 479): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=768
I/netd ( 478): iptables v1.4.11.1: can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps iptables or your kernel needs to be upgraded.
E/BandwidthController( 479): runIptablesCmd(): failed /system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=768
I/netd ( 478): ip6tables v1.4.11.1: can't initialize ip6tables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps ip6tables or your kernel needs to be upgraded.
I/netd ( 478): iptables: Chain already exists.
I/netd ( 478): iptables: Chain already exists.
I/dalvikvm( 490): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
D/MtpDeviceJNI( 490): register_android_mtp_MtpDevice
I/dalvikvm( 490): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
I/dalvikvm( 490): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
W/Zygote ( 490): Class not found for preloading: android.media.IRemoteControlClientDispatcher
W/Zygote ( 490): Class not found for preloading: android.media.IRemoteControlClientDispatcher$Stub
I/netd ( 478): iptables v1.4.11.1: can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps iptables or your kernel needs to be upgraded.
I/netd ( 478): ip6tables v1.4.11.1: can't initialize ip6tables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps ip6tables or your kernel needs to be upgraded.
I/netd ( 478): iptables: No chain/target/match by that name.
I/netd ( 478): ip6tables: No chain/target/match by that name.
E/BandwidthController( 479): runIptablesCmd(): failed /system/bin/iptables -t raw -A bw_raw_PREROUTING ! -i lo+ -m owner --socket-exists res=768
I/netd ( 478): iptables v1.4.11.1: can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps iptables or your kernel needs to be upgraded.
E/BandwidthController( 479): runIptablesCmd(): failed /system/bin/ip6tables -t raw -A bw_raw_PREROUTING ! -i lo+ -m owner --socket-exists res=768
D/MDnsDS ( 479): MDnsSdListener::Hander starting up
I/netd ( 478): ip6tables v1.4.11.1: can't initialize ip6tables table `raw': Table does not exist (do you need to insmod?)
I/netd ( 478): Perhaps ip6tables or your kernel needs to be upgraded.
D/MDnsDS ( 479): MDnsSdListener starting to monitor
D/MDnsDS ( 479): Going to poll with pollCount 1
W/Zygote ( 490): Class not found for preloading: android.os.Power
E/RenderScript_jni( 490): Error loading RS jni library: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1916]: 490 could not load needed library 'libRS.so' for 'librs_jni.so' (reloc_library[1331]: 490 cannot locate 'bccGetExportForEachList'...
E/RenderScript_jni( 490): )
W/dalvikvm( 490): Exception Landroid/renderscript/RSRuntimeException; thrown while initializing Landroid/renderscript/RenderScript;
E/Zygote ( 490): Error preloading android.renderscript.RenderScript.
E/Zygote ( 490): java.lang.ExceptionInInitializerError
E/Zygote ( 490):	at java.lang.Class.classForName(Native Method)
E/Zygote ( 490):	at java.lang.Class.forName(Class.java:217)
E/Zygote ( 490):	at java.lang.Class.forName(Class.java:172)
E/Zygote ( 490):	at com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:288)
E/Zygote ( 490):	at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:235)
E/Zygote ( 490):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:527)
E/Zygote ( 490):	at dalvik.system.NativeStart.main(Native Method)
E/Zygote ( 490): Caused by: android.renderscript.RSRuntimeException: Error loading RS jni library: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1916]: 490 could not load needed library 'libRS.so' for 'librs_jni.so' (reloc_library[1331]: 490 cannot locate 'bccGetExportForEachList'...
E/Zygote ( 490): )
E/Zygote ( 490):	at android.renderscript.RenderScript.<clinit>(RenderScript.java:72)
E/Zygote ( 490):	... 7 more
D/AndroidRuntime( 490): Shutting down VM
W/dalvikvm( 490): threadid=1: thread exiting with uncaught exception (group=0x40e69300)
I/app_process( 486): java.lang.ExceptionInInitializerError
I/app_process( 486):	at java.lang.Class.classForName(Native Method)
I/app_process( 486):	at java.lang.Class.forName(Class.java:217)
I/app_process( 486):	at java.lang.Class.forName(Class.java:172)
I/app_process( 486):	at com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:288)
I/app_process( 486):	at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:235)
I/app_process( 486):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:527)
I/app_process( 486):	at dalvik.system.NativeStart.main(Native Method)
I/app_process( 486): Caused by: android.renderscript.RSRuntimeException: Error loading RS jni library: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1916]: 490 could not load needed library 'libRS.so' for 'librs_jni.so' (reloc_library[1331]: 490 cannot locate 'bccGetExportForEachList'...
I/app_process( 486): )
I/app_process( 486):	at android.renderscript.RenderScript.<clinit>(RenderScript.java:72)
I/app_process( 486):	... 7 more
I/ServiceManager( 193): service 'media.audio_flinger' died
I/ServiceManager( 193): service 'media.player' died
I/ServiceManager( 193): service 'media.camera' died
I/ServiceManager( 193): service 'media.audio_policy' died

one of the reason , but im not sure - im didnt upgraded JAVA on my host

java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

---------- Post added at 07:54 PM ---------- Previous post was at 07:30 PM ----------

changes:

1. create empty /system/bluetooth/data/iop_device_list.conf

or u can edit device/pantech/presto/qcom-common.mk

PRODUCT_COPY_FILES += \
system/bluetooth/data/audio.conf:system/etc/bluetooth/audio.conf \
system/bluetooth/data/auto_pairing.conf:system/etc/bluetooth/auto_pairing.conf \
system/bluetooth/data/blacklist.conf:system/etc/bluetooth/blacklist.conf \
system/bluetooth/data/iop_device_list.conf:system/etc/bluetooth/iop_device_list.conf \
system/bluetooth/data/input.conf:system/etc/bluetooth/input.conf \
system/bluetooth/data/network.conf:system/etc/bluetooth/network.conf \

2. add to /device/pantech/presto/rootdir/etc/init.target.rc before "on fs"

on emmc-fs
mkdir /tombstones 0771 system system
wait /dev/block/mmcblk0p13
mount ext4 /dev/block/mmcblk0p13 /system rw barrier=1
wait /dev/block/mmcblk0p15
mount ext4 /dev/block/mmcblk0p15 /persist nosuid nodev noatime barrier=1
wait /dev/block/mmcblk0p14
mount ext4 /dev/block/mmcblk0p14 /data nosuid nodev noatime barrier=1
mount ext4 /dev/block/mmcblk0p14 /data nosuid nodev noatime remount noauto_da_all
mount ext4 /dev/block/mmcblk0p14 /data nosuid nodev noatime remount discard
wait /dev/block/mmcblk0p16
mount ext4 /dev/block/mmcblk0p16 /cache nosuid nodev noatime barrier=1
wait /dev/block/mmcblk0p25
wait /dev/block/mmcblk0p27
wait /dev/block/mmcblk0p17
mount ext4 /dev/block/mmcblk0p17 /tombstones nosuid nodev barrier=1
mkdir /tombstones/modem 0771 system system
mkdir /tombstones/mdm 0771 system system
mkdir /tombstones/lpass 0771 system system
mkdir /firmware 0771 system system
wait /dev/block/mmcblk0p1
mount vfat /dev/block/mmcblk0p1 /firmware ro shortname=lower

3. delete in /vendor/pantech/presto/proprietary/lib/egl/egl.cfg

0 1 adreno200

this is needed for software rendering, because hardware is not workin, i dont now why...

4 for debugging

in init.rc -> loglevel 8

and for service add /system/bin/logwrapper

for example:

service zygote /system/bin/logwrapper /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
class main
socket zygote stream 660 root system
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart media
onrestart restart netd

ps on a weekends i will try to upgrade java.