[android-building] Unable to run cuttlefish vm on my x86_64 ubuntu 16.04

2020-03-13 Thread Ajay kumar
Hi All,

I am trying to run cuttlefish vm on my  x86_64 ubuntu 16.04, but it never 
comes up. Following is the log:

run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:286] Started (pid: 
15194): /bin/bash
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] -c
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] egrep -h -e 
"^iff:.*" /proc/*/fdinfo/*
run_cvd E 03-13 13:29:59 15187 15187 users.cpp:48] Group virtaccess does 
not exist
run_cvd I 03-13 13:29:59 15187 15187 main.cc:367] The following files 
contain useful debugging information:
run_cvd I 03-13 13:29:59 15187 15187 main.cc:371]   Android's logcat 
output: /home/symbol/Documents/cf/cuttlefish_runtime.1/logcat
run_cvd I 03-13 13:29:59 15187 15187 main.cc:372]   Kernel log: 
/home/symbol/Documents/cf/cuttlefish_runtime.1/kernel.log
run_cvd I 03-13 13:29:59 15187 15187 main.cc:373]   Instance configuration: 
/home/symbol/Documents/cf/cuttlefish_runtime.1/cuttlefish_config.json
run_cvd I 03-13 13:29:59 15187 15187 main.cc:374]   Instance environment: 
/home/symbol/Documents/cf/.cuttlefish.sh
run_cvd I 03-13 13:29:59 15187 15187 main.cc:375] To access the console 
run: socat file:$(tty),raw,echo=0 
/home/symbol/Documents/cf/cuttlefish_runtime.1/console
run_cvd I 03-13 13:29:59 15187 15195 process_monitor.cc:166] Started 
monitoring subprocesses
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:286] Started (pid: 
15196): /home/symbol/Documents/cf/bin/kernel_log_monitor
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] -log_pipe_fd=10
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] 
-subscriber_fds=13,16
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:286] Started (pid: 
15197): /home/symbol/Documents/cf/bin/logcat_receiver
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] -server_fd=19
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:286] Started (pid: 
15198): /home/symbol/Documents/cf/bin/config_server
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] -server_fd=22
run_cvd I 03-13 13:29:59 15187 15187 launch.cc:222] Setting up 
/home/symbol/Documents/cf/cuttlefish_runtime.1/tombstones
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:286] Started (pid: 
15199): /home/symbol/Documents/cf/bin/tombstone_receiver
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] -server_fd=25
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] 
-tombstone_dir=/home/symbol/Documents/cf/cuttlefish_runtime.1/tombstones
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:286] Started (pid: 
15200): /home/symbol/Documents/cf/bin/vnc_server
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] -port=6444
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] -touch_fd=29
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] -keyboard_fd=30
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] -frame_server_fd=32
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:286] Started (pid: 
15201): /home/symbol/Documents/cf/bin/crosvm
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] run
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] 
--initrd=/home/symbol/Documents/cf/cuttlefish_assembly/ramdisk.img.concat
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] --null-audio
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] --mem=2048
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] --cpus=2
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] --params= 
printk.devkmsg=on firmware_class.path=/vendor/etc/ init=/init 
androidboot.hardware=cutf_cvm security=selinux androidboot.console=ttyS1 
buildvariant=userdebug androidboot.hardware.gralloc=cutf_ashmem 
androidboot.hardware.hwcomposer=cutf_cvm_ashmem 
androidboot.hardware.egl=swiftshader androidboot.hardware.vulkan=pastel 
androidboot.boot_devices=pci:00/:00:01.0 
androidboot.serialno=CUTTLEFISHCVD011 androidboot.lcd_density=160 
androidboot.setupwizard_mode=DISABLED androidboot.slot_suffix=_a 
loop.max_part=7 enforcing=1 audit=1 androidboot.force_normal_boot=1  
androidboot.vsock_frames_port=1393340444 androidboot.tombstone_transmit=1 
androidboot.vsock_tombstone_port=1393340443 
androidboot.cuttlefish_config_server_port=1393340442 
androidboot.vsock_logcat_port=1393340441
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] 
--rwdisk=/home/symbol/Documents/cf/cuttlefish_runtime.1/overlay.img
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] 
--socket=/home/symbol/Documents/cf/cuttlefish_runtime.1/internal/crosvm_control.sock
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] 
--single-touch=/home/symbol/Documents/cf/cuttlefish_runtime.1/internal/touch.sock:720:1280
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] 
--keyboard=/home/symbol/Documents/cf/cuttlefish_runtime.1/internal/keyboard.sock
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] --tap-fd=35
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] --tap-fd=37
run_cvd I 03-13 13:29:59 15187 15187 subprocess.cpp:289] 

[android-building] Logging all events in android

2019-09-09 Thread Ajay Kumar
Hi, I am new to building android from source. In my custom rom (for 
testing), I need to log all events (like an app opened, app closed, new 
notification arrived and all other possible events) in the android phone.

I would like to know where to add the logging code. As far as I know, the 
system server is the place to do so. Please correct me if I am wrong. Also, 
please name the primary file to look at if possible (easier for me to 
change rather than looking at entire code).

Thank you.

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/7dde3c4a-9b94-4278-b6d3-a813eac3477e%40googlegroups.com.


[android-building] How to include prebuilt jars using bp in Android P

2018-11-20 Thread Ajay kumar
Hi 
Added jar file :

this my Android.bp

*java_import {*
*  name: "*my-services*",*
*  jars: ["*my-services*.jar"],*
*  }*


am getting build error :
ninja: error: 
'out/target/common/obj/JAVA_LIBRARIES/my-services_intermediates/javalib.jar', 
needed by 
'out/target/product/mydevice/dex_bootjars/system/framework/arm64/boot.art', 
missing and no known rule to make it

I've added my-services in base.mk under build/make/target/product/ and 
device/google/mydevice.mk to PRODUCT_PACKAGES.


Thanks
Ajay

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

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