yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] $$pasquale:
deodex vendor apk

Hi friends

there are news.

I used apktool and baksmali to deodexing VideoPlayer and HdmiSwitch from my custom ICS to CM9. Unfortunately, only HdmiSwitch works (for cm9 works also the version of gingerbread). So I decided to build VideoPlayer from sources but required some changes. I don't know if I can...

As for the camera I only added camera.amlogic.so into system/lib/hw and works but not fine. In photo-mode the output is rotated (peculiarity of amlogic), in video-mode it crashed but panorama-mode seems works fine :confused:

I attach the files.

bye

EDIT

I also tried to use VideoPlayer from cm7/gb with ics/gb libraries, don't work..

EDIT2

fun_

there are new modules and libraries from C91. You can take from here
[Miscellaneous Android Development] fun_:
thanks. I already made new image with it & just tested. new image will be uploaded soon...(if I have enough time today)

----

does anyone know well updated & summarized page/thread about iRobot A907?

I have this kernel for A907

Linux version 2.6.34 (aoker@Aoker-ubuntu) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #465 Mon Apr 25 10:52:43 CST 2011

I want to know new kernel(ROM) is available or not.
[Miscellaneous Android Development] fun_:
interesting... I'll try too.
[Miscellaneous Android Development] fun_:
20120314 is uploaded. my site & post#1-3 on here are also updated.

test CM9/CWM5 for iRobot A907

test CM9/CWM5 for WayteQ xPAD-70

changes

- in addition to SD card, internal NAND flash is also exported(can mount from PC) on UMS mode on CWM.

- remove cpufreq tweaks. please set what you want by Settings -> Performance, SetCPU and/or other apps

- use latest proprietary files from C91 ROM. some problem e.g. glitches on rotation, crash on Market/Play Store and YouTube app seem to be fixed.

- internal NAND flash can be used as /sdcard by Settings -> Storage -> (menu)Storage configuration -> Use internal storage

- fix/enable remote controller on NOVO8 Advanced
[Miscellaneous Android Development] $$pasquale:
hi fun_

only a little questions on audio lib, why is better to use prebuilt library?

I tried dsp with cm9 libraries and works fine (previously I had removed the old files, as in w6hd..)
[Miscellaneous Android Development] fun_:
I don't say prebuilt is better. that change was just a cleanup. that lines were for prop files from old W6HD ROM and for prop files from N8 GB ROM.

in previous my CM9, I only changed prop files related to Mali and now I changed almost all prop files. no reason to keep lines for old files.

currently I never tried another way. I have no time. prebuilt is working to some degree, it's better than nothing. but I don't say I never change it in future.

probably I'll not touch audio files for a while. it should be better to use my time for non-working functions.

if you can do somethinge better, please do it.

if you can share your experience, I may refer your change.

anyway, everything is ongoing. even for comparing something, I need to do something even if it's "worse". and I just push everything in my tree, it may be better, it may be worse.
[Miscellaneous Android Development] $$pasquale:
I made some mods to VideoPlayer (deodexed ZT280_H1_3a_C91_Android4.0_0306_V1.13).

Now appear on apps list but crash when play a video.

attach player and log

I tried to change these libraries (with ZT280_H1_3a_C91_Android4.0_0306_V1.13)

libamplayer.so
libmedia_jni.so
libstagefright_foundation.so
libstagefright_soft_vorbisdec.so
libaudioflinger.so
libmediaplayerservice.so
libstagefright_omx.so
libstagefright_soft_vpxdec.so
invoke_mock_media_player.so
libavcodec.so libmedia.so
libstagefright.so
libstagefright_yuv.so
liba2dp.so
libavformat.so
libOpenMAXAL.so
libstagefright_soft_aacdec.so
libsubjni.so
libamadec.so
libavutil.so
libOpenSLES.so
libstagefright_soft_amrdec.so
libswscale.so libamavjni.so
libcamera_client.so
liboutputswitchjni.so
libstagefright_soft_g711dec.so
libvorbisidec.so
libamavutils.so
libcameraservice.so
libstagefright_amrnb_common.so
libstagefright_soft_h264dec.so
libwebrtc_audio_preprocessing.so
libamcodec.so
libGLESv1_CM_ORG_CF3D.so
libstagefright_avc_common.so
libstagefright_soft_mp3dec.so
libamplayerjni.so
libGLESv2_ORG_CF3D.so
libstagefright_enc_common.so
libstagefright_soft_mpeg4dec.so

./hw:
acoustics.default.so
alsa.default.so
audio_policy.default.so
audio.primary.amlogic.so
camera.amlogic.so
camera.goldfish.so
[Miscellaneous Android Development] ifynk:
Thank you very much. I be testing today at iRobot A907.
[Miscellaneous Android Development] ifynk:
fun_, can you remove phone module from firmware for iRobot A907?
[Miscellaneous Android Development] ifynk:
Log of CM9 loading
[Miscellaneous Android Development] fun_:
thank you for your cooperation.

well, what's the problem? can you explain what happen?
[Miscellaneous Android Development] carrotts:
Hi,

I've just tried the wayteq xpad-70 version It boots up, but the touchscreen is totally out of calibration, and behaves very strangely It's hard to explain, also you need to press with two fingers to activate anything The wi-fi driver does not seem to work either.

On the plus side, it's obviously very close

Is there anything I can do to help?

Cheers

Carrotts
[Miscellaneous Android Development] fun_:
thank you for your report!

please give me following commands output

dmesg

getevent -p
[Miscellaneous Android Development] carrotts:
I can run that command in a terminal on the device, but I can't easily get the info off I can't connect through ADB, is there another way?

Cheers

Carrotts
[Miscellaneous Android Development] fun_:
please insert SD card, then, on terminal,

su
dmesg > /mnt/sdcard/dmesg.txt
getevent -p > /mnt/sdcard/getevent.txt

if you don't have SD card, please specify /mnt/nand instead of /mnt/sdcard.

"mount from PC" doesn't work on CM9 but it should work on CWM. (mount -> USB in menu)

EDIT:

about "can't connect ADB", only on CM9? how about on CWM? and on stock rom?
[Miscellaneous Android Development] carrotts:
Hi fun_

Sorry had to put old rom on to use tablet. Ill reflash it over the weekend and send the info. Can i run dmesg from the stock rom its rooted. Dont know what getevent does.

Cheers

Carrotts
[Miscellaneous Android Development] fun_:
it's ok to run dmesg and getevent on stock rom.
[Miscellaneous Android Development] carrotts:
Hi fun_ here are the files. Are you looking for anything in particular.

Cheers carrotts
[Miscellaneous Android Development] fun_:
(updated file is removed)

EDIT:

you have xPAD-70, and your tablet can run fine with latest official firmware wtq_xpad70_2.3.4_v1-20111021.zip from http://www.wayteq.eu/en/sw-update-xpad70-gingerbread-v1, right?

please rerun dmesg just after reboot. I think you are using different kernel.
[Miscellaneous Android Development] carrotts:
Hi fun_

It does run fine with the updated firmware the version im using is fron a hungarian forum and makes a few tweaks including root. Im replying fron it now.

Ill try the new image thanks very much.

Cheers

Carrotts
[Miscellaneous Android Development] fun_:
http://itcafe.hu/tema/re_wayteq_xpad-70_vetek_lenne_kihagyni/friss.html

this one?

please tell me how wifi works if you already installed official rom I mentioned.

if wifi didn't work with official rom, your tablet is different one. I don't know how many variants exist.

if your tablet is different one, then no need to try updated CM9. it's not for your tablet.

EDIT:

hmm... is there xPAD-70 v2? I can't find any information about it :(

and I can't download custom rom for xPAD-70 v2 from that forum :(

EDIT2:

http://xdaforums.com/showpost.php?p=19025594&postcount=15 found it

EDIT3:

it's basically same as official rom. I understand there is no "v2".
[Miscellaneous Android Development] carrotts:
Can i flash the cwm recovery permanently. At the minute if i leave the files on the sd card the tablet boots into recovery on power up.

Cheers

Carrotts
[Miscellaneous Android Development] carrotts:
Yes, thats the forum. I have a slightly newer version of the rom but that one worked fine.

Ive got the new dmesg im having a little bother uploading.

The ts fix works fine. The rom is smooth and looks great. Wifi still wont turn on though.

Can i install market fairly easily so i can add apps.

Cheers

carrotts
[Miscellaneous Android Development] fun_:
I checked WayteQ_xPAD_70_2.3_v2_kelzsoca.zip and I confirmed it's for xPAD-70 v1. it's basically same as official rom from wayteq. both use same kernel.

I also confirmed you are using official kernel from your dmesg. sorry, there is no "different one" "v2".

I found /system/lib/dhd.ko, it's necessary for wifi. I'll add it in next release. if you want to try it, please run "insmod dhd.ko " manually.

EDIT:

sorry, "insmod dhd.ko" will not work. please wait next release.

"flash_image recovery uImage_cwm" will do it.

please see post#1.
[Miscellaneous Android Development] carrotts:
Brilliant thanks.

Sorry didn't see the Google apps. Reading it on Xda app oops.

Gonna wait to permanently flash cwm as my restore didn't work. It trust to boot then hangs.

Ill try and sort adb out on my PC. Everything looks ok but the device isn't shown. That might show why boot of recovery isn't working.

Thanks again.

Cheers carrotts
[Miscellaneous Android Development] ifynk:
I can not do anything. Continuing an error in the Phone module. When I click OK the error appears again.
[Miscellaneous Android Development] fun_:
hmm. wipe doesn't help?

you can't use adb for logcat?

you can remove any apk from zip, but I don't think apk has issue...
[Miscellaneous Android Development] ifynk:
I am deleted PhoneProvider.apk and Phone.apk. But other applications dont work.

After start android i get applications errors. See attachment.
[Miscellaneous Android Development] ifynk:
After even click on error "ok" button i see loop on dmsg log

[ 208.770000] HDMI: aout notify rate 48000
[ 208.770000] Audio Parameters:
[ 208.770000]	sample rate: 48000
[ 208.770000]	channel: 2
[ 208.770000]	sample bits: 16
[ 208.780000]	period size: 1024
[ 208.780000]	periods: 4
[ 212.680000] ***Entered sound/soc/aml/aml_dai.c:aml_dai_shutdown
[ 212.680000] ***Entered sound/soc/aml/aml_dai.c:aml_dai_startup
[ 212.680000] ***Entered sound/soc/aml/aml_m1_mid_wm8900.c:aml_m1_hw_params
[ 212.680000] ***Entered sound/soc/aml/aml_dai.c:aml_dai_set_dai_fmt
[ 212.680000] ***Entered sound/soc/aml/aml_dai.c:aml_dai_hw_params
[ 212.680000] HDMI: aout notify rate 48000
[ 212.680000] Audio Parameters:
[ 212.680000]	sample rate: 48000
[ 212.680000]	channel: 2
[ 212.680000]	sample bits: 16
[ 212.680000]	period size: 1024
[ 212.680000]	periods: 4
[ 259.160000] ***Entered sound/soc/aml/aml_dai.c:aml_dai_shutdown
[ 259.160000] ***Entered sound/soc/aml/aml_dai.c:aml_dai_startup
[ 259.160000] ***Entered sound/soc/aml/aml_m1_mid_wm8900.c:aml_m1_hw_params
[ 259.190000] ***Entered sound/soc/aml/aml_dai.c:aml_dai_set_dai_fmt
[ 259.190000] ***Entered sound/soc/aml/aml_dai.c:aml_dai_hw_params
[ 259.190000] HDMI: aout notify rate 48000
[Miscellaneous Android Development] ifynk:
Wipe doesn't help. First boot is long. On every start "Optimising applications".

Yes, i can use ADB for logcat. See attachment.
[Miscellaneous Android Development] fun_:
I see. then,

1. install unmodified my update.zip on CWM

2. do "wipe data/factory reset" on CWM

3. run "adb shell df" while CWM is running and tell me output

4. reboot to CM9

5. wait for a while until some error is popped or boot looping

6. run "adb shell df" while CM9 is running and tell me output

I'm thinking /cache has issue but please don't have any prejudice... I need raw information. please don't do any other thing.

thank you for your cooperation.
[Miscellaneous Android Development] fun_:
what happen when you try to boot recovery?

----

btw, can you try following roms?

http://4pda.ru/forum/index.php?showtopic=263448&st=2100#entry11959775

I guess one of them may work on your tablet.

it seems digma idx7 is very similar to xpad-70 and/or xtab-70. (and also QUMO 2Go!) if some of them are same, I want to make a CWM/CM9 for latest one.

I know there are a lot of "very similar but bit different" tablets, so if you feel something wrong about hardware functions like as TS, wifi, etc, please say "no".

(sometimes people say "it works fine" even if something doesn't work. it really confuses me...)
[Miscellaneous Android Development] ifynk:
Done. Logs attached.
[Miscellaneous Android Development] carrotts:
Hi fun_

Ill give that a go as soon as I can.

Cheers carrotts

---------- Post added at 08:21 PM ---------- Previous post was at 07:48 PM ----------

Hi Fun_

ADB is working fine now, don't know what was wrong before i can connect when XPad is running

flash_image gives flash_image not found error, but no great panic

i had a quick look at those links, and I agree it looks identical My XPAD 70 was out before the XTAB 70, so the different versions may coincide with that. I'm downloading the software, so I'll try it soon

Cheers

Carrotts
[Miscellaneous Android Development] carrotts:
Hi fun_

The rom for v1 works fine im sending this message from it.

Cheers

Carrotts
[Miscellaneous Android Development] fun_:
your problem is very clear. /cache is too small :(

http://files.androtab.info/amlogic/cm9/20120319/A907/

please try this one without any modification. dalvik-cache is now on /data instead of /cache.

(it's just a snapshot. it will be removed and final one will be made after you confirmed everything fine)
[Miscellaneous Android Development] fun_:
ah, well, then you need to use cat command, or flash uImage_cwm from u-boot via specially crafted aml_autoscript.

check mtd device number by "cat /proc/mtd", then "cat uImage_cwm > /dev/mtd/mtdN" will do it. (N = number of recovery partition)

----

http://files.androtab.info/amlogic/cm9/20120319/XPAD70/

please try this CM9 too. TS and wifi should work...
[Miscellaneous Android Development] fun_:
this one? iDx7_V0.24_HSD_2.3_20120309.zip

very nice. thank you!
[Miscellaneous Android Development] carrotts:
Thats the one.

It worked fine. I Noticed that the space for system was over 600 mb on the official wayteq rom its 414 mb.

I'll give the new rom a go soon.

Cheers

Carrotts
[Miscellaneous Android Development] fun_:
ah, if you have a time, please tell me "cat /proc/mtd" result on XPAD-70 rom and on iDx7 rom. I will make CM9 with better kernel.

(no need to be hurry.)
[Miscellaneous Android Development] ifynk:
This is better. Thanks. No errors. But i cant use display keyboard and test wi-fi and other. Touch screen not worked too. Music are worked.

---------- Post added at 08:03 AM ---------- Previous post was at 07:54 AM ----------

Sorry, keyboard are worked. Wi-Fi worked fine too.
[Miscellaneous Android Development] carrotts:
Hi fun_

The new from works well.

T's and wifi are fine. Connection speed is very good and connection is solid.

Auto rotate does not work and I think I've tried all the settings.

Flash player works so there must be some hwa. BBC I player loads but plays audio only so I presume video acceleration is not working

Gonna leave it on for today and have a tinker then might go back to stock for I player etc for day to day.

I am impressed mate this is excellent work.

Cheers

Carrots
[Miscellaneous Android Development] fun_:
well... then, everything (you tried) works fine?

"cant use display keyboard" "Touch screen not worked" -> "keyboard are worked" then, touch screen works fine & on screen keyboard works fine too, right?
[Miscellaneous Android Development] fun_:
thank you for your report!

oh I forgot about accelerometer... it must be different to NOVO8 so I need to do something ;)

as far as I know Flash (on Play store) has no relation to hw video accelerator. it just work with ARMv7 CPU and HQ video will be laggy.

currently hw video doesn't work on my CM9.

no problem. I'm sure my CM9 is not perfect so please use stock rom for daily use.

thank you for your cooperation!
[Miscellaneous Android Development] ifynk:
"cant use display keyboard" - was enabled "user hardware keyboard"

"Touch screen not worked" - i cant use touchscreen to play with tablet, and i use mouse for test. How can i do calibration?

Thanks.
[Miscellaneous Android Development] fun_:
"user hardware keyboard" -> USB external keyboard?

please tell me "getevent -p" output.

EDIT:

sorry, I already have getevent output. well, is TS resistive on A907? currently I don't have any code for TS calibration. so resistive TS is not supported on my CM9... really sorry.
[Miscellaneous Android Development] ifynk:
Yes, TS are resistive.

What can I do to add support for resistive TS?
[Miscellaneous Android Development] fun_:
it needs to add necessary codes to do calibration.
[Miscellaneous Android Development] ifynk:
Can i help you with it?
[Miscellaneous Android Development] c.martinez.lozano:
amplayer

Have you a logcat of the crash?
[Miscellaneous Android Development] $$pasquale:
Hi,

today I repack CM9 with some mods. After I can send logcat and update.zip.

bye

EDIT

I think this isn't the best way for solve.

I would like to use gingerbread source to make a new VideoPlayer app completly independant of framework. In this way could work on any future cm version.

EDIT2

however I had sent the log in this post http://xdaforums.com/showpost.php?p=23681773&postcount=461
[Miscellaneous Android Development] carrotts:
I have done a little more digging on the not working recovery. Recovery does work if i back up your ics rom. It doesnt work when i back up the stock rom.

Backing up the ics rom gives a data.yaffs2.img file of 157 mb

Backing up stock gives a file size of 4kb

System.yaffs is 207 mb for ics and 4 kb for stock.

I also tried mounting the partitions in advanced but the results are the same.

Watching the process the ics backup has a streaam of file names across the top, the stick just quickly moves on.

Is this any help.

Cheers

Carrotts
[Miscellaneous Android Development] c.martinez.lozano:
HI,

I had a similar error with gapps and memory of the surface. i use other propietaries(from CT1002) and the key was libhwui.so

I will try it with your videoplayer apk.

On Another Way, i have a functionally kernel(2.6.34) whit network stats, and solved mounting usb from pc issue.

I will upload all my changes this week at github:cml (kernel, propietaries, ramdisks, device..).

Thanks.

Sorry about my bad english i'm spanish.

PDT: I'll try to port GB framework changes(osd cursor, and videoplayer to SuperICS Project). But i think maybe will be hard to implements the connection with amports on ICS.(i don't known i need to try it first)
[Miscellaneous Android Development] fun_:
please read post#2 and #3. my CWM can't be used to install official update.zip and to backup official rom. in other words, ubifs can't be handled on my CWM.

if you convert official zip to use yaffs2, my CWM can work.

priority is not high in my todos, sorry.
[Miscellaneous Android Development] fun_:
oh, do you have kernel source for your tablet?

just FYI, I prepared for "mount from PC" function on my CM9. it can work with stock novo8 kernel(old android gadget interface, not MTP/PTP). I noticed minor issue but I will include it on next release. (actually it's already in test images for other tablets)
[Miscellaneous Android Development] $$pasquale:
test.update.zip

---------- Post added at 02:33 AM ---------- Previous post was at 02:26 AM ----------

There are 2 VideoPlayer app in this rom...
[Miscellaneous Android Development] c.martinez.lozano:
Yes i have the source, it's based con hillbeast, amlogic and gadmei kernel (For T820 o Nvsbl Sirius) b10ref board.

Maybe you will need to change nand drivers(putting from hillbeast) and board source (i don't khnown if Novo8 it's b10ref or other). to adjust for your device(partition offset and sizes, etc).

On my tablet it's necessary to use old nand driver, maybe because uboot ¿?.

I will upload it this week, if i have time today :) uploaded github:CML :)

For USB i'm using the old gadget android gadget interface and work really well. I don't use mtp/ptp. On CT1002 (i have this tablet with oficial ICS ROM) amlogic use old gadget.
[Miscellaneous Android Development] carrotts:
Hi fun_

Sorry misread that as couldn't install original. Think I've got a bit mixed up with someone on the Hungarian forum who is working on clockwork mod as well.

Cheers again.

Carrotts
[Miscellaneous Android Development] $$pasquale:
hi friends

any ideas for mounting multiple USB-disks?
[Miscellaneous Android Development] c.martinez.lozano:
maybe if you define two usb devices on overlay you can mount two usb devices.

maybe but i don't know if usb hub works.
[Miscellaneous Android Development] fun_:
20120323 was uploaded.

sorry, I really have no time. files for xPAD-70 will be uploaded later but it will not have accellerometer support yet :(

I'll update this post later.

EDIT:

changes

- legacy TS support code is enabled now. it's necessary for (at least) driver used in xPAD-70 kernel. it also fixes some TS issue on NOVO8 but now touch size is not reported on NOVO8 :( driver used in NOVO8 kernel is weird!

- dalvik-cache is stored on /data instead of /cache. /cache may be too small on some tablets. I know it's possible to change partition layout, but I decided to use /data.

- USB mass storage mode, "mount from PC" function, is enabled. for now there is small issue, storage device need to be mounted on /sdcard. i.e. SD card need to be inserted, or, internal NAND flash need to be mounted on /sdcard (by Settings -> Storage -> Storage configuration -> Use internal storage).
[Miscellaneous Android Development] stane1983:
Hi. I'd like to help you make independent VideoPlayer app. I even tried to do something like this with gb sources, but not succeeded yet. Perhaps I'm doing it wrong... I used gb sources, compiled VideoPlayer and repacked my apk with libs included... that didn't work. At least, it didn't work on my ICS firmware (4.0.3 - original for my device) for which I don't have sources.

Also, found some bugs in VideoPlayer app regarding subtitle handling... if you're interested, PM me.
[Miscellaneous Android Development] c.martinez.lozano:
HW video player

Hi,

I have accelerated video by HW with AC3 and Youtube HD working!

And video camera recoder working :) (needed to fix rotation).

Not needed Videoplayer.apk from amlogic.
[Miscellaneous Android Development] fun_:
sounds nice.

is it possible to do it just using proprietary binaries? or patching frameworks/base is necessary?

EDIT:

I don't want to use any piece of Amlogic's closed Android source code as much as possible. if it can work by replacing libmedia* (and of course adding libam* and any other things necessary for amplayer), it's nice for me :)
[Miscellaneous Android Development] ifynk:
Hi. What about the A907 tablets with resistive ts? Please )))
[Miscellaneous Android Development] c.martinez.lozano:
Sounds nice for you ;)

you only need to replace libmedia* and libam* and set amplayer on build.prop

Needed firmware files of etc and media profiles.

:)

PDT: I'm uploading my propietaries at this moment
[Miscellaneous Android Development] fun_:
I confirmed hw video with props from C91 ROM :)

you saved my time which may be consumed by trying other possible ways :)

really thanks!

EDIT: also confirmed rotated camera :)
[Miscellaneous Android Development] fun_:
TS calibration code is necessary to support resistive TS...
[Miscellaneous Android Development] c.martinez.lozano:
Thanks to you for save my time starting the project :)

There are two things that are not solved by now:

1.- Wifi signal not appearing on notification bar. (appears gray but works).

2.- I have not found a MEMSIC owners with working automatic brightness :(

PDT: Rotated camera may be easy doing the same as in GB amlogic ROM.
[Miscellaneous Android Development] fun_:
oops. I don't have any official ICS device so I misunderstood grayed icon is correct ;)

yup, no signal strength is indicated on CM9 too.

there is no light sensor on NOVO8 (and other tablets I can try) so I have no idea for now.

there is some code to rotate camera in CM7 too(not sure about CM9). I also think it can be fixed.