Anand R | 12 Mar 01:16 2014
Picon

External Sd card support in Kitkat 4.4.2

Hi All,

I am facing a issue when i try to mount a external sdcard in a custom device which is running on Kitkat 4.4.2.
Below is the error which i am getting whenever sdcard mount happens.

03-11 23:25:32.229: E/cutils(553): Failed to mkdir(/mnt/shell/emulated/0): Read-only file system
03-11 23:25:32.229: E/dalvikvm(553): cannot mountExternalStorage(): Read-only file system

My init.device.rc is as follows:

# no emmc file systems mounted at this point (system, data, pds, etc.)
# runs after "on early-init" and before "on early-fs"
# runs in charge-only-mode
on init
    export PATH /system/sbin:/system/bin:/system/xbin:/sbin:/vendor/bin

    write /sys/class/graphics/fbcon/cursor_blink 0

    mkdir /mnt/shell 0777 shell shell
    mkdir /mnt/shell/emulated 0700 shell shell

    #mkdir /storage 0550 system sdcard_r
    mkdir /storage/emulated 0555 root root

    mkdir /mnt/media_rw 0777 media_rw media_rw
    mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
    mkdir /storage/sdcard1 0775 root root

    export EXTERNAL_STORAGE /storage/emulated/legacy
    export SECONDARY_STORAGE /storage/sdcard1
    export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
    export EMULATED_STORAGE_TARGET /storage/emulated

    #symlink /storage/emulated/legacy /sdcard
    #symlink /storage/emulated/legacy /mnt/sdcard
    #symlink /storage/emulated/legacy /storage/sdcard0
    #symlink /mnt/shell/emulated/0 /storage/emulated/legacy
    #symlink /storage/sdcard1 /extSdCard
    #symlink /storage/sdcard1 /mnt/extSdCard

fstab.device is as follows

# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/dev/block/system /system ext4 ro,noatime wait
/dev/block/cache /cache ext4 nosuid,nodev,noatime,nodelalloc,barrier=1,data=ordered wait,check
#/dev/block/panic /panic raw defaults wait
/dev/block/userdata /data ext4 nosuid,nodev,noatime,nodelalloc,barrier=1,data=ordered wait,check,encryptable=footer
/dev/block/pds /pds ext4 nosuid,nodev,noatime,nodelalloc,barrier=1,data=ordered wait,check
/devices/pci0000:00/0000:00:04.0/mmc_host/mmc1 auto vfat defaults voldmanaged=sdcard1:auto

Whether i comment or uncomment the creation of symlinks to "/sdcard", "/mnt/sdcard/", the behavior is the same.

When i explicitly mount sdcard from shell prompt using "mount" commnd, it is able to mount.
Please help me to resolve this issue.


Thanks in Advance,
Anand.

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Guennadi Liakhovetski | 11 Mar 09:55 2014
Picon
Picon

x86 goldfish kernel anyone?

Hi all

Is anyone able to run recent kernels with the goldfish emulator for x86? 
I'm not even getting a single line of output from the kernel with the 
"-show-kernel" option, so, it's a problem with the kernel (android 
support) itself or with the emulator ABI... Using the prebuilt compiler 
from the AOSP with the -fno-PIC option - as instructed on an Intel Android 
page.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

-- 
--

-- 
unsubscribe: android-porting+unsubscribe@...
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

mansoor vm | 11 Mar 11:45 2014

Why system.img/system filesystem size is always fixed?

i am trying to build a custom rom, in which system.img size is always 550mb i know we can change that in board config using "BOARD_SYSTEMIMAGE_PARTITION_SIZE := 576716800" but to how much?From some post i read we can see exact size by following command in adb shell

cat proc/mtd

mtd0: 22600000 00008000 "system" 

mtd1: 0c800000 00008000 "userdata" 

mtd2: 04200000 00008000 "cache"

the above output is always same even i removed some packages in successive builds .. Please help

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Android Newbie | 10 Mar 20:29 2014
Picon

USER_BOOTANIMATION_FILE is "/data/local/bootanimation.zip" but user can't write there?

I want my used to be able to override the default boot animation.
based on the code in BootAnimation.cpp: (Android 4.1.2 if it matters)

#define USER_BOOTANIMATION_FILE "/data/local/bootanimation.zip"
#define SYSTEM_BOOTANIMATION_FILE "/system/media/bootanimation.zip"


I would expect the user to place their file in /data/local but it doesn't appear to be reachable/writable by a regular user. (I checked on a Galaxy Nexus running 4.1.2 also and it behaves the same)
Am I misunderstand the meaning of "USER" in the #define name?

What is the "proper" way to make this accessible to my end users? redefine it to something like:
#define USER_BOOTANIMATION_FILE "/data/media/BootAnimation/bootanimation.zip"

is there a "standard" place where the boot animation should be?

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Shanthini Nambiar | 10 Mar 14:45 2014
Picon

separate audio path for touch sounds/ringtone and music playback

Hi All,

I want to separate the audio paths that is used for ringtone/touch sounds  and the music playback. The aim is to get this path separated, so that when mute is applied on the main audio path, ringtone /touch sound is not muted. For eg: when music playback is muted, and skype incoming call comes, the ringtone should be heard.

We are using mastervolume for applying volume on both the paths. I tried setting the ringtone path to AUDIO_OUTPUT_FLAG_DIRECT so that it uses the direct output thread and does not get mixed with the main audio. But this is causing the music playback also to mute.
Is this the right approach? Could you please tell where can I separate the ringtone/ touch sound and music playback in Audioflinger?

Thanks in advance,
Shanthini

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Kathi Rajamahender | 9 Mar 21:09 2014
Picon

how to start new project in pandaboard

hello every one,

iam new to learning for embedded linux development,please give me some clarity to add new controller into panda board environment and suggest me where the mandatory files to be changed,explain how driver code structure filled easy.because iam going to start for touch screen project with panda board of processor omap4460

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Antejovic asdasdasasd | 6 Mar 07:42 2014

USB camera and Android's camera API

Hello,

simple noobie question - is there any possibility to use an usb camera with integrated microphone, which can be accessed/controlled by/with android's camera api?

Thank you very much in advance


Antejovic

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/groups/opt_out.
신우근 | 6 Mar 09:27 2014
Picon

Jellybean bluedroid issue with CSR chipset.

Bluedroid of Jellybean supports only Serial interface for communication between CPU and Bluetooth device. 
In my case, i have to use USB interface between CPU and bluetooth devcie. 
So, i replace some code with USB interface. 
It's working well with USB Bluetooth device. 
But i found that it is working only with USB device which use Broadcom chipset.
It's not working with CSR chipset. First time, i can see CSR chipset information from log. 
It means that Bluedroid communicate with CSR chipset successfully during initial time. 
After some progress,  Bluedroid can't receive HCI command anymore.
I don't understand and can't resolve until now.
I don't know that this issue is my porting issue or fundamental issue of Bluedroid.

If anyboy has similar experience, please share your experience. 

Thanks,

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/groups/opt_out.
AudioLinger | 6 Mar 03:20 2014
Picon

Where in the Android OS is the single sink into which audio gets mixed?

Hi all,

I've been reading through AudioFlinger and audio hardware code looking for the place where all audio from all tracks and sessions comes together. My initial guess was the audio mixer, but there are now two audio mixers (the normal one and the FastMixer). When looking at the ssize_t AudioFlinger::PlaybackThread::threadLoop_write() method inside frameworks/av/services/audioflinger/Threads.cpp, depending on existence of a "normal sink" we either process audio through a mixer or, if I understand it correctly, send it directly to the hardware to take care of. My goal is to be able to process all audio (except phone call and other such special things) that the device outputs. The above mentioned method was my best guess, but even at that point it splits into different mixing strategies.

Any pointers?

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/groups/opt_out.
Balamurugan.A | 5 Mar 08:10 2014
Picon

Strange behavior in tinycompress and Offloaded Audio Path

Hi,

I recently came across a  situation as below, which leads to playback/Video freeze.

The exact scenario is, 

1.    Video is playrd with gallery app, and  the user does seek  to somewhere near 20 seconds to end.
2.    User keeps pressing pause and resume.
3.    At some point in time, while user keeps pausing and resuming, when Audioplayer EOS received from Audio source, it calls PlaybackThread::Track::stop which will make the state to STOPPING_1 as there is a data still in mCblk and under run is not occurred yet.

4.   And thereafter while playing at STOPPING_1, AudioFlinger::PlaybackThread::threadLoop_Write calls out_write and gets 0 as return value since driver buffer is full.
      So, Playback thread waits for mWriteAckSequence to become even number i.e, basically waits for acknowledgement from driver, using poll systemcall in tinycompress.

5.   At this point user presses "Pause" button.
                     
6.   Now, Offload command thread(in HAL) is kept waiting at poll. And, as compress_pause has been triggered the driver to stop rendering. 
      So, driver buffer  will not be freed until compress_resume is called.

7.   Now, when user presses "Resume" button,  and at this stage, there is still data in mCBlk, So, track moves to STOPPING_1 state. In prepareTracks_l, there is no code to call the out_resume to resume the playback. 

8.   So, I added the below patch, which makes the playback to continue further properly.  
      I just want to check, Is this a problem, as poll is not returned or if not, is my patch a valid one, and can be commited?
    
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 498ddb6..14ab3d0 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
<at> <at> -4058,7 +4058,11 <at> <at> AudioFlinger::PlaybackThread::mixer_state AudioFlinger::OffloadThread::prepareTr
                 track->mRetryCount = kMaxTrackRetriesOffload;
                 mActiveTrack = t;
                 mixerStatus = MIXER_TRACKS_READY;
-            }
+            } else if (track->isStopping_1() && track->framesReady() && (mWriteAckSequence & 1) && mHwPaused) {
+                            doHwResume = true;
+                            mHwPaused = false;
+                    }
+
         } else {
             ALOGVV("OffloadThread: track %d s=%08x [NOT READY]", track->name(), cblk->mServer);
             if (track->isStopping_1()) {


Thanks,
Bala

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/groups/opt_out.
Dave McLaughlin | 3 Mar 14:52 2014
Picon

Changing LCD density causes issues with some system views

I've been looking to change the LCD density on my platform so that the 
task bar is a lot more readable as right now, it's very small and because 
of the low quality of the LCD, is not very good.

By changing the density from 120 to 160 the display is much nicer to read.

The lower apparent resolution is not critical for this platform as it is being 
designed for custom applications so I can tailor the apps to the screen size.

The issue though is that the text in the APPS and WIDGETS view is cut 
off and only shows the upper part of the text.

Anyone know how I can change the density system wide? Do I have to 
do a complete clean and rebuild for this to work? I only changed the setting
in the build.prop file at this time without a complete re-build.

--
--
unsubscribe: android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/groups/opt_out.

Gmane