Suresh Pachiyappan | 12 Dec 15:15 2013
Picon

Android Porting -- Encryption Problem-- Jellybean Android-4.1.1_r6


Hi Team,

I have issues in Android Encryption while porting Jellybean4.1.1_r6.

First i have bring the UI side.Then started the Encryption from UI side. In adb logcat shows encryption in progress as well as getprop shows in progress with percentage.after reached 100%. device is rebooted. Its check for crypto completed and getprop state show encrypted.

After that device trying to decrypt the encryped /data partition and ask password .

I have typed correct password and its shows failed mount tmp mount point

Error temp mounting decrypted block device

Please look into Logs for more info

Adb Logcat
---------
...
 V/CryptKeeper( 1632): Encryption progress: 100
...
D/CryptKeeper(  299): Validating encryption state.
D/VoldCmdListener(  101): cryptfs cryptocomplete
...

D/CryptKeeper(  483): Attempting to send command to decrypt
D/VoldCmdListener(  101): cryptfs checkpw {}
E/Cryptfs (  101): return value /fstab.omap4blazeboard
E/Cryptfs (  101): return value /fstab.omap4blazeboard
D/Cryptfs (  101): crypt_ftr->fs_size = 120717312
E/Cryptfs (  101): /data/tmp_mnt
E/Cryptfs (  101):  crypto_blkdev/dev/block/dm-0
E/Cryptfs (  101): Data mount point /data
E/Cryptfs (  101): tmp mount point /data/tmp_mnt
E/Cryptfs (  101): Real Blkdev /dev/block/platform/omap/omap_hsmmc.1/by-name/userdata
E/Cryptfs (  101): return value /fstab.omap4blazeboard
E/Cryptfs (  101): Error temp mounting decrypted block device
E/Cryptfs (  101): ERROR REPORT Invalid argument
E/Cryptfs (  101): return value /fstab.omap4blazeboard

..

fstab.device name
------------------
/dev/block/platform/omap/omap_hsmmc.1/by-name/system       /system             ext4      ro                                                    wait
/dev/block/platform/omap/omap_hsmmc.1/by-name/cache      /cache              ext4      noatime,nosuid,nodev,barrier=1,data=ordered                     wait,check
/dev/block/platform/omap/omap_hsmmc.1/by-name/userdata      /data               ext4      noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc     wait,check,encryptable=/dev/block/platform/omap/omap_hsmmc.1/by-name/userdata


init..rc
--------
  mount_all /fstab.omap4blazeboard
  setprop ro.crypto.fuse_sdcard true



Please let me know where i am going wrong.

Thank in advance
Suresh

--
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
kshongmo | 12 Dec 12:14 2013
Picon

Question on USB driver. How many uevents will be sent when device plugged in

We are currently working on a portable device based on OMAP4460.
When plugged into PC, there will be multiple uevents sent, even ADB is turned off. Is it normal?
I'm not so familiar with USB driver. Could anybody help explain it for me?
Thanks in advance.

The log is as below:
  651.111175] PC detected
[  651.345611] android_work: sent uevent USB_STATE=CONNECTED
[  651.352996] android_work: sent uevent USB_STATE=DISCONNECTED
[  651.429107] android_work: sent uevent USB_STATE=CONNECTED
[  651.455627] android_usb gadget: high speed config #1: android
[  651.464385] android_work: sent uevent USB_STATE=CONFIGURED
[  655.198364] omap_hdq omap_hdq.0: TX wait elapsed
[  655.331176] omap_hdq omap_hdq.0: TX wait elapsed
[  655.463165] omap_hdq omap_hdq.0: TX wait elapsed
[  655.596038] omap_hdq omap_hdq.0: TX wait elapsed
[  655.729553] omap_hdq omap_hdq.0: TX wait elapsed
[  655.862335] omap_hdq omap_hdq.0: TX wait elapsed
[  655.995208] omap_hdq omap_hdq.0: TX wait elapsed
[  656.128143] omap_hdq omap_hdq.0: TX wait elapsed
[  656.215637] android_work: sent uevent USB_STATE=DISCONNECTED
[  656.275207] android_work: sent uevent USB_STATE=CONNECTED
[  656.283355] android_work: sent uevent USB_STATE=DISCONNECTED
[  656.356811] android_work: sent uevent USB_STATE=CONNECTED
[  656.825592] android_usb gadget: high speed config #1: android
[  656.832855] android_work: sent uevent USB_STATE=CONFIGURED

--
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Subodh Nijsure | 11 Dec 17:20 2013

AOSP porting and maintaining local changes

Hi,

Not specifically code "porting" question but more question of managing
local changes to AOSP repo for specific hardware platforms.

We are porting AOSP to our custom hardware and we need to maintain our
changes in our local repository. Our baseline code comes from
code-aurora project for Qualcomm chips. Unfortunately our changes are
hardware specific and folks maintaining code-aurora will see no value
in allowing us to push those changes upstream.

Is there a good document that describes, recommends workflow for
cloning the AOSP  repo,  local commit  & push so changes can be shared
across a team of engineers?

Or if you follow some kind of process in your team environment for
maintaining local changes to AOSP tree please send it my way, would
much appreciate it.

-Subodh

-- 
--

-- 
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/groups/opt_out.

Kamil Nawrot | 11 Dec 15:57 2013

Documentation for init.rc

Hi,
I want to ask somebody about proper documentation of init process and init.rc scripts.
Right now I'm trying to port 4.2.2 Android to some new device and I had faced some problem with init.rc.

Looking to /system/core/init/readme.txt I can be informed that there are few triggers for actions: boot, <name>=<value>, device-added-<path>, device-removed-<path>, service-exited-<name>.
Also I was informed that:
"Actions and Services implicitly declare a new section.  All commands or options belong to the section most recently declared.  Commands or options before the first section are ignored"
For reference: https://android.googlesource.com/platform/system/core/+/android-4.2.2_r1.2/init/readme.txt

Then I looked to example file:
https://android.googlesource.com/platform/system/core/+/android-4.2.2_r1.2/rootdir/init.rc

And I can see some triggers:
init
fs
post-fs
...

Which even doesn't exists in keywords.h or init_parser.c - how those actions are triggered (I know what means post-fs but I wan't to know what kind of action IS the "post-fs" and why?, how to extend those actions?).
More over - "include" section which is in readme.txt described as "commands" is _before_ first action so should be ignored according documentation... (!?!) So why it's at the beginning of example file?

Can somebody point me to real, I mean REAL documentation for init process in Andorid?
Because this what is provided by AOSP is really poorly written. To not say "slovenly".

Thanks
Kamil

--
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Mayank Agarwal | 11 Dec 03:11 2013
Picon

Join android wilhelm project


Hi,

I would like to join android wilhelm project.Any pointers on that.
 
I would like to understand how OpenMax al processes audio/video data before sending it down to hw/soc

Regards,
Mayank

--
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Chris Johnson | 7 Dec 00:35 2013
Picon

Dithering on Android 4.4

I was wondering how I could enable dithering on 4.4 for my 16bit display device (i9100). Without it, I am getting major color banding. Pre 4.4, it could be turned on using glEnable in (surfaceflinger/layer.cpp). How would I turn it on in 4.4?

--
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Shivanand Naik | 6 Dec 15:58 2013
Picon

Removing blank screen between Boot Splash screen and boot animation

Hi,
I am working on NVidia tegra 3 platform  and working on Jelly Bean 4.1.2r1 release of AOSP. I am trying to customize boot splash screen along with boot animation. I want to provide an effect that the splash screen and boot animation are one part. Currently I observed on most of the android devices available in market, that the screen goes blank after splash screen and before starting boot animation. The splash screen is loaded by bootloader and the boot animation is in the form of ZIP file stored in /system partition. The surface flinger loads the animation from zip file.

I browsed the code in surface flinger to locate the place where the screen is cleared out after splash screen. I think if I can avoid clearing of the screen, then the boot animation will be started immediately after splash screen without a blank effect in between.

Any pointers on which part of surface flinger is doing this?

Cheers
Shivanand

--
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Picon

porting android accelerometer - android src 4.1.1_r6

Hello,

I 'm currently trying to modify android accelerometer into android src 4.1.1. as mentioned in the subject.

Well, i know how sensors data is read. Specifically, on the Kernel data is read by the driver (obviously Linux driver) and 
then, HAL driver is responsible for sending the data to the API.

Can anyone guide me on how to start modifying sensors in this version of android 4.1.1_r6?

--
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
manty kuma | 5 Dec 04:41 2013
Picon

Android makefiles(.mk) documentation.

Hi,

I am porting libraries from one architecture to other architecture. I am new to makefiles and am wasting a lot of time by referring to other makefiles to understand how i should change them,

I want to learn about android makefiles. How to write and modify them. Could you please guide me to the official android documentation related to this? Also Other helping resources would be of great help.

Best Regards,
Sandeep Kumar

--
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Maninder Singh | 3 Dec 19:06 2013
Picon

Bootloader Splash Screen

I have a query.When we power on an android phone say a Samsung smartphone running the bootloader sboot , the bootloader image i.e the splash screen displaying the model number like GT-N7100(Galaxy Note 2) is seen.Till now the kernel has not started yet.After that the screen dims a bit and then the kernel starts.This splash screen is nothing but a ".jpg" image which can be found inside the bootloader code i guess.But my question is how this image gets copied to the frame buffer.This image gets copied to the kernel.But how??..Moreover suppose the phone has finished booting up and home screen is displayed,Now if I want that image how can i access it,Suppose i want to display that splash screen image again.How can i access it now from kernel space..

--
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Adil ALPMAN | 29 Nov 04:18 2013
Picon

Newbie Need Help About Driver Compile... :'(

i Everyone;

I have bought a new usb-rj45 adapter for my Samsung Galaxy Tab2 P5110 Only Wifi tablet... (its rooted and busybox pro installed on it)

After i bought, i put it in tablet via its original USB Otg Cable the i do "lsusb" in the terminal emulator but i cant see anything new in its output... 

When i searched usb-rj45 adapte cd and i see linux driver there but the are three files named;

***.c
***.h
Makefile

When i search internet a little bit and i understand that i need to compile drivers with these files to make .ko file as driver...

I bought and installed c4droid and its GCC and SDL Plugin when i try compile it but i get an error that it screenshot is attached to this message... (On the other hand may be i can do this compile for tablet on my pc after i installed Android SDK but i dont know how can i do it unfortunately...)

So please help me how can i use this usb-rj45 adapter on my tablet...

--
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.

Gmane