yashsingh1/xdaforums huggingface dataset:
[Gen9 Android Development] Quallenauge:
Hi Quinny!

Good news on this here: I managed to get HD videos working! At least 5 videos where playing without problems.

Since the new init, ducati-m3.bin has to be placed on /etc/firmware/ducati-m3.bin. Please check if the following thing is on bootlog:

I/cat ( 620): <6>[ 4.109191] omap-rproc omap-rproc.1: Loaded BIOS image ducati-m3.bin, size 5872032
I/cat ( 620): <6>[ 4.109619] omap-rproc omap-rproc.1: BIOS image version is 2
I/cat ( 620): <6>[ 4.150634] cypress-tma340 4-0024: cypress_tma340_power on
I/cat ( 620): <4>[ 4.152709] omap_hwmod: ipu: failed to hardreset
I/cat ( 620): <6>[ 4.152832] omap-iommu omap-iommu.0: ducati: version 2.1
I/cat ( 620): <6>[ 4.156433] omap-rproc omap-rproc.1: remote processor ipu is now up

Then I used the wrong media_codecs.xml and media_profiles.xml. I pushed them from a G10 firmware and it seems to work.

Also I used a wrapper script (/usr/bin/start_avos) for avos (Archos MediaPlayer Framework?!) and audiomixer (/usr/sbin/start_audiomixer) with the correct umask (000).

It creates some sockets which are not accessible from non-roots applications.

Edit: Link to current image: 0.0.4 Kernel and initramfs are from 0.0.3. No need to upgrade.
[Gen9 Android Development] trevd:
Finally got build done...... Too many coding projects going on at the minute!!! and too many devices to hack on!! but archos and they crazy ways just keep calling me back.... :D

Anyways I dropped the archos hardware directory for wlan and bluetooth/gps I'm going to drop this in http://gitorious.org/archos/archos-gpl-gen9/trees/master/packages/omaplfb_linux which is probably a better match on the graphics front, It also add bltsville support which wasn't on the one I was using previously. I reckon that probably tightly coupled to the bltsville support in the archos kernel.

Also the archos-gpl buildroot/packages tree has some interesting stuff

@Quallenauge I also download the G10 Jellybean firmware... Looking at the rom I think a backport maybe in order at some point, also any chance of pushing your changes to github :D
[Gen9 Android Development] Quinny899:
Just looking at bools.xml in the framework, what would setting:

<bool name="config_voice_capable">false</bool>

<bool name="config_sms_capable">false</bool>

and

<bool name="config_sip_wifi_only">true</bool>

<bool name="config_built_in_sip_phone">false</bool>

do do you think?

I tried with apktool but it doesn't like the new apk, bootloops with permission issues.
[Gen9 Android Development] Quinny899:
Bad post, ignore please :S
[Gen9 Android Development] stevemp:
sdcard

Jelly Bean 4.2.1 lacks support for external sdcard, quote from Google +.

+Robert Mahon This is certainly an issue, we aren't supporting multi-user with the old school FAT partition for external storage (whether that is on an SD card like the original G1 or a separate internal partition like the Nexus S).

+Stewart Gateley SD cards must be formatted with FAT (to inter-operate with desktop computers), which doesn't support file permissions. Not to mention that all you are going to end up with is a mess if you try to set file system permissions (based on uids) on an SD card and then move that to another device.﻿
[Gen9 Android Development] trevd:
Hmmm .... I wonder whether Linaro , Codeaurora or the like have patched it ..... I've also pulled CM10.1 for the Motorola xoom....... there's one lying about somewhere and that has an external sdcard ... I was ( still am ) going to compare what been configured for that.

Along similar lines, I've been looking at the paid apps installation issue. Obviously because we have a persistent root directory so we don't have the benefit on the fly permission updates for directories such as /mnt and /storage. so after deleting /mnt /storage /sdcard and refreshing my data directory ( which create app-private and app-sec with the correct permissions ) we are good to go..... Not quiet however.

It's still failing on the installation but I think we're pretty close.

It appears paid-for apps are stored in individual partitions ( dm-0 ) in the list below,

D/VoldCmdListener( 486): asec create smdl2tmp1 7 ext4 {} 10030 0
I/PackageHelper( 1955): Size of container 7 MB
D/dalvikvm( 1955): GC_CONCURRENT freed 460K, 19% free 2967K/3652K, paused 1ms+3ms, total 23ms
I//system/bin/make_ext4fs( 486): Creating filesystem with parameters:
I//system/bin/make_ext4fs( 486): Size: 7483392
I//system/bin/make_ext4fs( 486): Block size: 4096
I//system/bin/make_ext4fs( 486): Blocks per group: 32768
I//system/bin/make_ext4fs( 486): Inodes per group: 464
I//system/bin/make_ext4fs( 486): Inode size: 256
I//system/bin/make_ext4fs( 486): Journal blocks: 0
I//system/bin/make_ext4fs( 486): Label:
I//system/bin/make_ext4fs( 486): Blocks: 1827
I//system/bin/make_ext4fs( 486): Block groups: 1
I//system/bin/make_ext4fs( 486): Reserved block group size: 7
I//system/bin/make_ext4fs( 486): Created filesystem with 11/464 inodes and 43/1827 blocks
I/Vold ( 486): Filesystem (ext4) formatted OK
D/VoldCmdListener( 486): asec path smdl2tmp1
I/DefContainer( 1955): Created container for smdl2tmp1 at path : /mnt/asec/smdl2tmp1
[B]E/DefContainer( 1955): Failed to copy /data/app-private/vmdl-1428925820.tmp to /mnt/asec/smdl2tmp1/pkg.apk[/B]
I/cat ( 489): <6>[ 2049.712158] EXT4-fs (dm-0): mounted filesystem without journal. Opts: (null)
I/PackageHelper( 1955): Created secure container smdl2tmp1 at /mnt/asec/smdl2tmp1
I/PackageHelper( 1955): Forcibly destroying container smdl2tmp1
D/VoldCmdListener( 486): asec destroy smdl2tmp1 force

The Error and the cat-line below is the problem, Unfortunately the Code for DefaultContainerService isn't giving alot away as to why it can't copy.... it just can't copy.

I'm not 100% sure this is the solution but I think we are missing "Ext4 POSIX Access Control List" in our kernel configuration. @Quallenauge Any chance of a quick kernel to test that out

Thanks
[Gen9 Android Development] stevemp:
The Nook Color (encore) has an external sdcard also, most just mount external sdcard as primary.

<StorageList xmlns:android="http://schemas.android.com/apk/res/android">

<storage android:mountPoint="/storage/sdcard1"
android:storageDescription="@string/storage_sd_card"
android:primary="true"
android:removable="true"
android:allowMassStorage="true" />

</StorageList>

The i9100 has an external sdcard also.

<storage android:mountPoint="/storage/sdcard1"
android:storageDescription="@string/storage_sd_card"
android:primary="false"
android:removable="true"
android:allowMassStorage="true" />

Maybe allowMassStorage is the secret cure? Guess I could compile a test build tonight.
[Gen9 Android Development] freezenook:
You can use internal storage by path data/media! Please add it information in first post.
[Gen9 Android Development] Quinny899:
We have this already, and it's fixed now, but it breaks stuff like camera and voice search. I'll add a poll to see if people want a release with these bugs present or wait until I can get them fixed
[Gen9 Android Development] freezenook:
Sure yes, but camera doesn't working and now

It's so crazy idea, but we can remount internal storage as data/media!
[Gen9 Android Development] Quinny899:
Unfortunately it isn't as simple as that. As the last few pages show, a lot of work and rewriting went into getting it working
[Gen9 Android Development] freezenook:
Ok!

You can upload rom with fixed storage bud and leave bugged rom. And everyone change necessary rom.
[Gen9 Android Development] y2grae:
sd >>>> camera and voice

i dont use either on my tablet :D
[Gen9 Android Development] trevd:
Fun?? No fun! :(

Hi Folks.....

Well it's not ext4 Posix stuff !! I've just had a couple of hours of fun with it... At least I got a compatible kernel built which is useful but it hasn't been fun..... I think maybe refreshing the gapps might be worth doing? Any Idea's on this one? I think I'm going stop ******* about get the big guns out in the form of gdb because it's starting to "do my head in".

:D , Sleep First However!
[Gen9 Android Development] stevemp:
file system update

I noticed some updates on fs yesterday, maybe it's related.

Commit Message Updated	Jan 26, 2013 10:59 PM

init.rc: Create /storage mountpoint so Dalvik can mark as slave in zygotes

Mount a tmpfs as /storage in order to create a mountpoint, so that Dalvik
can later mark /storage as slave in zygotes.
Must mount in early-init as some devices' init.hardware.rc populate
/storage then, which the tmpfs would overwrite if mounted later.
Must use tmpfs as rootfs can't be bind mounted (otherwise "mount rootfs
/storage /storage bind" would work as an alternative).

on early-init

# create mountpoints
mkdir /storage 0050 root sdcard_r
# Create mountpoint so Dalvik can mark as slave in zygotes.
mount tmpfs tmpfs /storage mode=0050,uid=0,gid=1028

on init

# See storage config details at [url]http://source.android.com/tech/storage/[/url]
mkdir /mnt/shell 0700 shell shell
# Ensure permissions are set appropriately after device early-init.
mkdir /storage 0050 root sdcard_r

Some info on Shared Subtrees --> https://raw.github.com/CyanogenMod/...1/Documentation/filesystems/sharedsubtree.txt

Quite a number of updates Sunday, might fix some bugs. --> http://review.cyanogenmod.org/#/q/status:merged,n,z
[Gen9 Android Development] trevd:
Massive *Facepalm*

Hi Folks

So I've been using a nexus 7 as a reference to the new user layout..... I decided to Install CM10.1 instead of AOSP, Compare Apples with Apples and all that. :o

Things are done slightly differently with respect to user stuff compared to true AOSP.

So. I'm an Idiot , I'll get my coat!!! :D
[Gen9 Android Development] Quallenauge:
Hi!

I would like to mention that I uploaded my personal "build system". I really should learn how to do some magic with Android Makefiles, but to reach a fast goal I decided to use some shell scripts.

Make a directory. Then do the following:

git clone git://github.com/Quallenauge/ArchosG9-BuildEnv.git

Download this archive and place it inside this folder:

http://www.4shared.com/file/BpTEWOvA/archos_base_imagetar.html

Create a folder:

mkdir archos_image

Download a archos.ext4.update file and place it into this folder.

Continue:

repo init -u git://github.com/CyanogenMod/android.git -b cm10.1
ln -s local_manifest.xml .repo/local_manifest.xml
repo sync

# Build cyanogenmod
cd cm10.1
. build/envsetup.sh
brunch archos_g9

# Finish image
cd ..
./buildImage

Now you should get an image in archos_image directory that you can apply on the device.

WLAN is now used from the kernel compat-wireless-3.6.8-1.tar.bz2 archive. Seems to work here.

BTW: No news on the external storage issue :(
[Gen9 Android Development] trevd:
Ay, It's about picking your battles so to speak! and Importantly have fun with it! I think google's pulling a lot of neat tricks, and at least they're more readable then classic autotool'd Makefiles. I've started adding my own build system extensions, I plan to keep them seperated but integrated by using a build2 directory that way I can keep sync'd with the main master branches.

On a more archos related build note , I worked out the sweet spot for compiling the omaplfb from the archos gitorious repo. The make files are misconfigured and it doesn't play nice with "make -C", It builds perfect doing a straight make from the source directory. I'll chalk that one down to experience ! :D

So on with the fun.

I shall get the mount table, unfortunately I read this too late tonight and had already left. However I think what you've pointed out here is something that stood out when I finally decided that It wasn't going to work how I WANT it to work and I should read the documentation :rolleyes: to find out how it really works :D

Heres the doc : https://android.googlesource.com/pl...id.com/+/jb-mr1-dev/src/tech/storage/index.md and it's this line

I'm thinking that we are maybe seeing 2 different users mount points especially if you're running a root shell you should be seeing the root storage. I might post the question of the official groups and get a straight answer because I've seen some strange per-app behaviour when you start playing around with the directories managed by this feature and switching permissions

One last thing from the doc

EDIT: Kernel Dox on this : http://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt

so we've got kernel namespaces configured have we get propagating mount events configured it sounds like part of the answer to the purchased apps installation problem.

It's amazing what you can learn when you RTFM! :D
[Gen9 Android Development] stevemp:
Blaze Tablet

TI has released 4.2 for the Blaze Tablet, here is a link if you want to look.

device-ti-blaze_tablet.tar --> http://www.mediafire.com/?n4ooeuhy1zje2hm

Get an error when syncing with local_manifest.xml, error: Cannot fetch Quallenauge/android-system-core
[Gen9 Android Development] stevemp:
User accounts

Explanation of user accounts that helped me to understand some odd behavior.

It seems the paid apps are only available to the user account that purchased them.

Same reason when using adb shell vs terminal, you see all mounts with shell but not terminal. You only see mounts that user has privilege to access.
[Gen9 Android Development] Quallenauge:
With the help of trevd and stevemp I was able to understand how the shared mount system is working.

So we where missing a single remount statement in init.rc. This is showing us, how important it is to use mainline init.rc as base.

(For details look at my repo changes).

So the mount point is inherited by the zygote process. My SDCard is accessible and the storage measurement shows the right values.

Luckily trevd is working on reorganzing the init.rc's so we can use them with no or only minimal modified android init system. Yeah! Once we have that...it would be easier to port new Android versions since the important statements are already there.

I also hacked around and didn't find out, what's the reason why no gpu cooling is found. So I decided to pull the thermal framework from omapzoom kernel. After that the PCB domain was not found. Next stept was to include the pcb-sensor in a makefile (Archos commented it out). I was surprised, that then instead of the gpu cooling not found error, a pcb error was raised repeadly, which says that the temp (3) is out of range. So I decided to set them on a fixed rate. It is not a really good working solution, but in case someone has a better idea, let me know!

For the UMTS device I added some quirks/or bugfixes? to the android init system, which allows us to use dynamically parameters in service calls. It seems that only AID_SYSTEM and AID_ROOT can do that. If someone other would use this features then another codepath is used to verify the permission. Sadly, it can handle dynamically service names such has serviceName: param1 param2.

For details, also see my repo changes.

Okay, in case someone would like to try that out, as usually my personal image: Archos Image 0.0.5

Again, thanks trevd and stevemp. Hope we can streamline the init.rc's and get bluedroid running and .....
[Gen9 Android Development] Quinny899:
I'll make the release that I'm due to make from this. I think it's possibly in Beta now?
[Gen9 Android Development] trevd:
Excellent Stuff there folks... I like this TeamWork.....

ooh , Yeah That's me, Currently I've got the system starting to adb and bootlooping (not installed any drivers yet) That is using only the init cm files ( I.e init.rc init.cm.rc init.usb.rc and init.trace.rc ) the other side is the device specific setup which should not be too difficult to pick out of the archos junk that we don't need and is not processed anymore. :)

I forgot to mention that I'll also throw CWM in with that and the whole dual booting fun :D I've not gone mental with all those different ext4 Image files that I was using previously either. With then work Quallenauge did on the wlan kernel modules ( e.g compiling the android version ) we can remove the embedded linux system which archos have include in the rootfs That pretty much makes it into a real android system with a standard layout ( just like pinocchio, it a "real boy" ( well droid ) ). A Standard layout means building from source ( any source AOKP/CM/AOSP ) should be "Trivial".

@Quallenauge

Which Reminds me, We need "Kernel Hacking/Tracers" adding to the kernel ( stack tracing and function tracing to be exact ) that will stop the trace not found or similar errors you might have noticed on the logcat. Also I think you need to add IPv6 Mangling again to your configuration!

That is interesting , Like I say "sometimes you just gotta tell it" with regards machines. :D I'm sure omapzoom or the processors.ti.com may have some more detailed Information. So does that mean the sensor is working correctly? or is out range because the sensor isn't working and it's reporting a max value for the variable or something like that?

I'll have a look at this when I get your image ( I think we are DDOSing your 4Shared at the minute :D ) Any Chance of Rehosting, I'll upload it to my goo account and devhost when I get chance

EDIT:I see what you mean about AID_SYSTEM and AID_ROOT being the only dynamic properties users, It's going to be a case of tweaking the service calls until there are right..... There a couple of ways to do this and we have options. Basically the tcl-library is calling out to these services from what I remember they are the connection scripts

The Huawei Generic library when I first used it made similar calls out to 3rd Party Helper services, However looking at the code now that dependency has been removed https://github.com/trevd/huaweigeneric-ril/blob/jellybean/huaweigeneric-ril.c#L1967, I'll see if I can get the Archos stick to connect through the Huawei Library, I'm sure I've experimented in this fashion previously, It's only using classic AT Commands, I don't thinkl they've got any crazy vendor specific OEM stuff a'la samsung and HTC ( not seen any fly by on the logcat anyway )

No Problem, I suppose looking and the new blaze tablet build directory is probably our key to bluedroid. or there'll be some bluedroid example setup for our specific hardware model somewhere.....
[Gen9 Android Development] Quinny899:
0.0.5 uploaded to goo. THIS IS NOT A NEW RELEASE!

http://goo.im/devs/Quinny898/archos_g9/dev/0.0.5.zip
[Gen9 Android Development] trevd:
Hi Folks

I can report Paid apps are working fine now as is external SDCard Storage.

3G Working Fine at my end.... I needed to take the rfkill line out of the the rc file to enable it, Text Messaging work as well

With the archos 3G Stick Directly plugged in it works beautifully, :D :good: May as well give those Huawei sticks a blast, they should just work as well.

Here's a couple of pictures for the family album :D

And The Money Shot - 3G Connection with Rom Details.
[Gen9 Android Development] stevemp:
4AJ.2.3

4AJ.2.3 is TI's Jelly Bean 4.2 not the 4AJ.2.2 which is 4.1.2 that I uploaded last time, OOOPS, sorry. :o

http://omappedia.org/wiki/4AJ.2.3_OMAP4_Jelly_Bean_Release_Notes

I built 4AJ.2.3 yesterday and included the root file system and source code for init and bluetooth plus simg2img.

simg2img converts system.img in out directory to 536 MB ext4 image. Keeps the file owner and group that way.

simg2img system.img system.ext4

4AJ.2.3.tar.gz --> http://www.mediafire.com/?xe6uzv1gkphst4z

New build is very nice, good enough for me to use every day. :)
[Gen9 Android Development] trevd:
So what's the current status of this then in relation to the G9's? I grabbed image but had no joy from it, I actually built there sources when you mentioned that it had had a 4.2.1 update... +1 For Peeled Eyes :) because I thought that TI had abandon it in favour of Omap5 , especially when they didn't update the Repo for a while!!

Anywho... Couple of CM Related Badgers

@Quallenauge You'll want to add this to your board config. This will enable the power button as select! in CWM

BOARD_HAS_NO_SELECT_BUTTON	:= true

Also Is your kernel building inline? Because I not find it to be the case, Tried Make -j16 , Make -j8 and Make -j4 just I case it was getting confused, I think cm have updated the Toolchain lately I notice it use arm-eabi-4.6 .

I only just grabbed and stashed a cm toolchain for my own devious means the other week and that was a 4.3.3..... That one built my kernel version fine, and I'll still use it on a cheeky make-cm bash alias

alias make-cm='PATH=$TOOLCHAINS_DIR/arm-eabi-4.3.3/bin:$PATH ARCH=arm SUBARCH=arm CROSS_COMPILE=arm-eabi- LOCALVERSION_AUTO=n make -j16'

Don't want to be typing all that sh*t everytime I want to compile for arm.

make-cm

Seems a lot simpler. Going to do those device files now! I'm setup on multiboot with the rootfs on it own ext4 partition! saves have to keep writing to the flash will it in development.

More Soon ( Hopefully ) :good:
[Gen9 Android Development] stevemp:
rc-files

Useless now that release 0.0.5 is out. :rolleyes: I was using meld to compare rc files, removing archos stuff and trying to get external sdcard access.

I use sde menu to export data, cd local, then mount archos.ext4 to temp directory and make changes. Just be sure to remove every thing except local directory, saves flashing image. My tablet overheats and won't reboot if I transfer large files, takes 20 minutes to cool off. :eek:
[Gen9 Android Development] trevd:
It's Alright I've got my own distraction going on, I've split off a boot partition ( like prope roms) I have removed everything. I can get a bootloop with the cm init files only ( because there's no graphics ) but when I start adding stuff like the pvr driver and a getting into the dexopt'ing it sh*ts it's self with stuff like this

W/Zygote ( 1611): Class not found for preloading: undroid.content.AbstractThreadedSyncAdapter$SyncThread
W/Zygote ( 1605): Class not found for preloading: android.bluetooth.BluetoothAudioGateway
W/Zygote ( 1605): Class not found for preloading: android.bluetooth.HeadsetBase
W/Zygote ( 1605): Class not found for preloading: undroid.content.AbstractThreadedSyncAdapter$SyncThread
D/dalvikvm( 1611): GC_EXPLICIT freed 24K, 5% free 614K/644K, paused 1ms+0ms, total 4ms
D/dalvikvm( 1605): GC_EXPLICIT freed 24K, 5% free 614K/644K, paused 1ms+0ms, total 4ms
[B]W/asset ( 1611): Asset path /system/framework/framework-res.apk is neither a directory nor file (type=0).[/B]
W/dalvikvm( 1611): Exception Landroid/content/res/Resources$NotFoundException; thrown while initializing Landroid/database/CursorWindow;
E/Zygote ( 1611): Error preloading android.database.CursorWindow.
E/Zygote ( 1611): java.lang.ExceptionInInitializerError
E/Zygote ( 1611):	at java.lang.Class.classForName(Native Method)
E/Zygote ( 1611):	at java.lang.Class.forName(Class.java:217)
E/Zygote ( 1611):	at java.lang.Class.forName(Class.java:172)
E/Zygote ( 1611):	at com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:287)
E/Zygote ( 1611):	at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:234)
E/Zygote ( 1611):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:531)
E/Zygote ( 1611):	at

That's the second time I've seen the same error and trying two different approaches....It's just going a case a trace it back and bring each service up which is tedious but needed ...and probably attaching that debugger which I keep threatening to do ... I am quite interested to see it in action , The only thing windows had over linux for me is the DevTools.... I miss integrated Debugging. :(

Anyway F**k this i'm off to bed first it's nearly 4 am and I don't sleep enough as it is.

Good Luck :)
[Gen9 Android Development] Quinny899:
I'm gonna have to skip 0.0.5, my device just won't boot it. This error cannot be passed even by pushing old libs :(
[Gen9 Android Development] stevemp:
not booting

Had the same problem, could be two issues. Did you flash the new kernel, if you did do you have a 4460 cpu? Link in system/vendor/hw is to a 4430, not sure which is the problem since I changed both.
[Gen9 Android Development] Quinny899:
I did and I do. I'm actually trying to get ParanoidAndroid working now, as 3.0 was released earlier today. Will try that later if I get it working