Re: [android-building] PRODUCT_BOOT_JARS jars not updating(Android 9)

2020-09-22 Thread shankar kumar yellapu
Try removing your jar's intermediates and rebuild your jar again. I hope
you're not integrating your jar into framework-res.jar.

Regards,
Shankar

On Mon, Sep 21, 2020 at 8:10 PM chari.do...@gmail.com <
chari.dodetipa...@gmail.com> wrote:

> Hello Team,
>
> I have added a jar(say xyz.jar) to PRODUCT_BOOT_JARS. On flashing the
> device everything is working but later I modified something in xyz.jar(as a
> part of my development) and pushed the latest jar to /syste/framework and
> rebooted. But after reboot, whatever the latest changes I added are not
> reflecting.
>
> Do I need to change anything to make changes reflect?
>
>
>
> Thanks,
> ChariD
>
> --
> --
> 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/503bf810-1ab7-4321-91ad-bec65d4e0ed2n%40googlegroups.com
> 
> .
>

-- 
-- 
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/CAN579Myh6Gv5AzTrKpLCPkNru0G2w%2BddQxFiTanS3bwvqJC2ZQ%40mail.gmail.com.


[android-building] Unable to bring up Cuttlefish VM on my x86_64 ubuntu 18.10

2020-03-11 Thread shankar kumar yellapu
Hi All,

>From past couple of days I'm trying to bring up cuttlefish VM 
(aosp_cf_x86_64_phone) on my ubuntu 18.10 X86 PC. I am seeing following 
error in log and nothing shows when I run tight VNC viewer. I followed 
every step mentioned in 
https://android.googlesource.com/device/google/cuttlefish/. Am I missing 
anything?  Please help.

*[ERROR:src/main.rs:1248] The architecture failed to build the vm: error 
creating devices: failed to create virtual disk: failure in qcow: backing 
file io error: No such file or directory (os error 2)*

*run_cvd I 03-11 13:14:54 17936 17944 process_monitor.cc:139] Detected exit 
of monitored subprocessrun_cvd I 03-11 13:14:54 17936 17944 
process_monitor.cc:147] Subprocess /home/SKY/cf/bin/crosvm (26659) has 
exited with exit code 1*
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:286] Started (pid: 
26667): /home/SKY/cf/bin/crosvm
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] run
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] 
--initrd=/home/SKY/cf/cuttlefish_assembly/ramdisk.img.concat
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] --null-audio
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] --mem=2048
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] --cpus=2
run_cvd I 03-11 13:14:54 17936 17944 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=2907933463 androidboot.tombstone_transmit=1 
androidboot.vsock_tombstone_port=2907933462 
androidboot.cuttlefish_config_server_port=2907933461 
androidboot.vsock_logcat_port=2907933460
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] 
--rwdisk=/home/SKY/cf/cuttlefish_runtime.1/overlay.img
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] 
--socket=/home/SKY/cf/cuttlefish_runtime.1/internal/crosvm_control.sock
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] 
--single-touch=/home/SKY/cf/cuttlefish_runtime.1/internal/touch.sock:720:1280
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] 
--keyboard=/home/SKY/cf/cuttlefish_runtime.1/internal/keyboard.sock
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] --tap-fd=35
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] --tap-fd=37
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] 
--rw-pmem-device=/home/SKY/cf/cuttlefish_runtime.1/access-kregistry
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] --disable-sandbox
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] --cid=3
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] 
--serial=num=1,type=file,path=/home/SKY/cf/cuttlefish_runtime.1/internal/kernel-log-pipe,console=true
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] 
--serial=num=2,type=file,path=/home/SKY/cf/cuttlefish_runtime.1/internal/console-pipe,stdin=true
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] 
/home/SKY/cf/cuttlefish_assembly/kernel
[ERROR:src/main.rs:1248] The architecture failed to build the vm: error 
creating devices: failed to create virtual disk: failure in qcow: backing 
file io error: No such file or directory (os error 2)
run_cvd I 03-11 13:14:54 17936 17944 process_monitor.cc:139] Detected exit 
of monitored subprocess
run_cvd I 03-11 13:14:54 17936 17944 process_monitor.cc:147] Subprocess 
/home/SKY/cf/bin/crosvm (26667) has exited with exit code 1
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:286] Started (pid: 
26675): /home/SKY/cf/bin/crosvm
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] run
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] 
--initrd=/home/SKY/cf/cuttlefish_assembly/ramdisk.img.concat
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] --null-audio
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] --mem=2048
run_cvd I 03-11 13:14:54 17936 17944 subprocess.cpp:289] --cpus=2
run_cvd I 03-11 13:14:54 17936 17944 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 

[android-building] Re: How to install prebuilt_apps?

2019-10-22 Thread shankar kumar yellapu


androidmk Android.mk > Android.bp

Run the above command from your android build tree after doing source 
build/envsetup.sh

https://android.googlesource.com/platform/build/soong/

Regards,
Shankar


On Sunday, October 20, 2019 at 10:09:55 PM UTC+5:30, seeker wrote:
>
> Hello, Im trying to convert .mk to .bp files. I am struck how to convert 
> below module class!!
>
> include $(CLEAR_VARS)
> LOCAL_MODULE:= x
> LOCAL_MODULE_CLASS  := APPS
> LOCAL_SRC_FILES := --
> LOCAL_MODULE_PATH   := -
> include $(BUILD_PREBUILT)
>
> How to install prebuilt_apps for Android.bp?
> Thanks in advance
>

-- 
-- 
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/368b0077-b371-464e-97ac-d10c2f100033%40googlegroups.com.


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

2018-09-26 Thread shankar kumar yellapu
Hi Dan, 

I've given a fresh build, now I'm getting new error as follows:

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.

Is there anything I'm missing??

-Shankar

On Wednesday, September 26, 2018 at 4:37:14 AM UTC+5:30, Dan Willemsen 
wrote:
>
> To compile that 
> frameworks/base/services/core/java/com/example/sevice/myservice.java file, 
> you'd need to add your lib to the libs section of services.core.unboosted 
> in frameworks/base/services/core/Android.bp.
>
> - Dan
>
> On Tue, Sep 25, 2018 at 10:23 AM shankar kumar yellapu <
> shankarku...@gmail.com > wrote:
>
>> Hi Dan, 
>> Thanks for quick reply, But my actual import from 
>> frameworks/base/services/core/java/com/example/sevice/myservice.java is 
>> saying error: package com.my.service.addon does not exist.
>>
>> If I give mm in frameworks/base/services/myservices/ says build 
>> successful.
>>
>> My Android.bp under /frameworks/base/services/ is as following:
>>
>> // merge all required services into one jar
>> // 
>> java_library {
>> name: "services",
>>
>> dex_preopt: {
>> app_image: true,
>> profile: "art-profile",
>> },
>>
>> srcs: [
>> "java/**/*.java",
>> ],
>>
>> // The convention is to name each service module 
>> 'services.$(module_name)'
>> static_libs: [
>> "services.core",
>> "services.accessibility",
>> "services.appwidget",
>> "services.autofill",
>> "services.backup",
>> "services.companion",
>> "services.coverage",
>> "services.devicepolicy",
>> "services.midi",
>> "services.net",
>> "services.print",
>> "services.restrictions",
>> "services.usage",
>> "services.usb",
>> "services.voiceinteraction",
>> "android.hidl.base-V1.0-java",
>> ],
>>
>> libs: [
>> "android.hidl.manager-V1.0-java",
>> "my-services",
>> ],
>>
>> // Uncomment to enable output of certain warnings (deprecated, 
>> unchecked)
>> //javacflags: ["-Xlint"],
>>
>> }
>>
>> // native library
>> // =
>>
>> cc_library_shared {
>>     name: "libandroid_servers",
>> defaults: ["libservices.core-libs"],
>> whole_static_libs: ["libservices.core"],
>> }
>>
>> am I missing anything here???
>>
>> Thanks,
>> Shankar
>>
>> On Tuesday, September 25, 2018 at 2:35:38 AM UTC+5:30, Dan Willemsen 
>> wrote:
>>>
>>> You'll need to define your prebuilt using java_import:
>>>
>>>   java_import {
>>>   name: "my-services",
>>>   jars: ["my-services-prebuilt.jar"],
>>>   }
>>>
>>> You shouldn't need the my-services vs my-services-prebuilt 
>>> differentiation like you did with make.
>>>
>>> - Dan
>>>
>>> On Mon, Sep 24, 2018 at 8:11 AM shankar kumar yellapu <
>>> shankarku...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm trying to include a jar in /frameworks/base/services/myservice 
>>>> using bp . My bp file looks like this:
>>>>
>>>> java_library_static {
>>>> name: "my-service",
>>>> static_libs: ["my-services-prebuilt"],
>>>> }
>>>>
>>>> I've copied my prebuilt jar in the same location with the name 
>>>> my-services-prebuilt. I'm getting the following error:
>>>>
>>>> error: 
>>>> frameworks/base/services/my-services/Android.bp:29:1:"my-services" depends 
>>>> on undefined module ",my-services-prebuilt"
>>>>
>>>> FYR: my make file in Android O
>>>>
>>>> LOCAL_PATH:= $(call my-dir)
>>

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

2018-09-26 Thread shankar kumar yellapu
Thanks Dan, I did the same It's working fine. Thank you very much.

-Shankar

On Wednesday, September 26, 2018 at 4:37:14 AM UTC+5:30, Dan Willemsen 
wrote:
>
> To compile that 
> frameworks/base/services/core/java/com/example/sevice/myservice.java file, 
> you'd need to add your lib to the libs section of services.core.unboosted 
> in frameworks/base/services/core/Android.bp.
>
> - Dan
>
> On Tue, Sep 25, 2018 at 10:23 AM shankar kumar yellapu <
> shankarku...@gmail.com > wrote:
>
>> Hi Dan, 
>> Thanks for quick reply, But my actual import from 
>> frameworks/base/services/core/java/com/example/sevice/myservice.java is 
>> saying error: package com.my.service.addon does not exist.
>>
>> If I give mm in frameworks/base/services/myservices/ says build 
>> successful.
>>
>> My Android.bp under /frameworks/base/services/ is as following:
>>
>> // merge all required services into one jar
>> // 
>> java_library {
>> name: "services",
>>
>> dex_preopt: {
>> app_image: true,
>> profile: "art-profile",
>> },
>>
>> srcs: [
>> "java/**/*.java",
>> ],
>>
>> // The convention is to name each service module 
>> 'services.$(module_name)'
>> static_libs: [
>> "services.core",
>> "services.accessibility",
>> "services.appwidget",
>> "services.autofill",
>> "services.backup",
>> "services.companion",
>> "services.coverage",
>> "services.devicepolicy",
>> "services.midi",
>> "services.net",
>> "services.print",
>> "services.restrictions",
>> "services.usage",
>> "services.usb",
>> "services.voiceinteraction",
>> "android.hidl.base-V1.0-java",
>> ],
>>
>> libs: [
>> "android.hidl.manager-V1.0-java",
>> "my-services",
>> ],
>>
>> // Uncomment to enable output of certain warnings (deprecated, 
>> unchecked)
>> //javacflags: ["-Xlint"],
>>
>> }
>>
>> // native library
>> // =
>>
>> cc_library_shared {
>>     name: "libandroid_servers",
>> defaults: ["libservices.core-libs"],
>> whole_static_libs: ["libservices.core"],
>> }
>>
>> am I missing anything here???
>>
>> Thanks,
>> Shankar
>>
>> On Tuesday, September 25, 2018 at 2:35:38 AM UTC+5:30, Dan Willemsen 
>> wrote:
>>>
>>> You'll need to define your prebuilt using java_import:
>>>
>>>   java_import {
>>>   name: "my-services",
>>>   jars: ["my-services-prebuilt.jar"],
>>>   }
>>>
>>> You shouldn't need the my-services vs my-services-prebuilt 
>>> differentiation like you did with make.
>>>
>>> - Dan
>>>
>>> On Mon, Sep 24, 2018 at 8:11 AM shankar kumar yellapu <
>>> shankarku...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm trying to include a jar in /frameworks/base/services/myservice 
>>>> using bp . My bp file looks like this:
>>>>
>>>> java_library_static {
>>>> name: "my-service",
>>>> static_libs: ["my-services-prebuilt"],
>>>> }
>>>>
>>>> I've copied my prebuilt jar in the same location with the name 
>>>> my-services-prebuilt. I'm getting the following error:
>>>>
>>>> error: 
>>>> frameworks/base/services/my-services/Android.bp:29:1:"my-services" depends 
>>>> on undefined module ",my-services-prebuilt"
>>>>
>>>> FYR: my make file in Android O
>>>>
>>>> LOCAL_PATH:= $(call my-dir)
>>>>
>>>> # static jar
>>>> # 
>>>> include $(CLEAR_VARS)
>>>> LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := 
>>>> my-services-prebuilt:my-services-prebuilt.jar
>>>> include $(BUILD_MULTI_PREBUILT)
>>>>
>>>> # shared

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

2018-09-25 Thread shankar kumar yellapu
Hi Dan, 
Thanks for quick reply, But my actual import from 
frameworks/base/services/core/java/com/example/sevice/myservice.java is 
saying error: package com.my.service.addon does not exist.

If I give mm in frameworks/base/services/myservices/ says build successful.

My Android.bp under /frameworks/base/services/ is as following:

// merge all required services into one jar
// 
java_library {
name: "services",

dex_preopt: {
app_image: true,
profile: "art-profile",
},

srcs: [
"java/**/*.java",
],

// The convention is to name each service module 
'services.$(module_name)'
static_libs: [
"services.core",
"services.accessibility",
"services.appwidget",
"services.autofill",
"services.backup",
"services.companion",
"services.coverage",
"services.devicepolicy",
"services.midi",
"services.net",
"services.print",
"services.restrictions",
"services.usage",
"services.usb",
"services.voiceinteraction",
"android.hidl.base-V1.0-java",
],

libs: [
"android.hidl.manager-V1.0-java",
"my-services",
],

// Uncomment to enable output of certain warnings (deprecated, 
unchecked)
//javacflags: ["-Xlint"],

}

// native library
// =

cc_library_shared {
name: "libandroid_servers",
defaults: ["libservices.core-libs"],
whole_static_libs: ["libservices.core"],
}

am I missing anything here???

Thanks,
Shankar

On Tuesday, September 25, 2018 at 2:35:38 AM UTC+5:30, Dan Willemsen wrote:
>
> You'll need to define your prebuilt using java_import:
>
>   java_import {
>   name: "my-services",
>   jars: ["my-services-prebuilt.jar"],
>   }
>
> You shouldn't need the my-services vs my-services-prebuilt differentiation 
> like you did with make.
>
> - Dan
>
> On Mon, Sep 24, 2018 at 8:11 AM shankar kumar yellapu <
> shankarku...@gmail.com > wrote:
>
>> Hi,
>>
>> I'm trying to include a jar in /frameworks/base/services/myservice using 
>> bp . My bp file looks like this:
>>
>> java_library_static {
>> name: "my-service",
>> static_libs: ["my-services-prebuilt"],
>> }
>>
>> I've copied my prebuilt jar in the same location with the name 
>> my-services-prebuilt. I'm getting the following error:
>>
>> error: frameworks/base/services/my-services/Android.bp:29:1:"my-services" 
>> depends on undefined module ",my-services-prebuilt"
>>
>> FYR: my make file in Android O
>>
>> LOCAL_PATH:= $(call my-dir)
>>
>> # static jar
>> # 
>> include $(CLEAR_VARS)
>> LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := 
>> my-services-prebuilt:my-services-prebuilt.jar
>> include $(BUILD_MULTI_PREBUILT)
>>
>> # shared jar
>> # 
>> include $(CLEAR_VARS)
>> LOCAL_MODULE := my-services
>> LOCAL_MODULE_TAGS := optional
>> LOCAL_STATIC_JAVA_LIBRARIES := my-services-prebuilt
>> include $(BUILD_JAVA_LIBRARY)
>> endif
>>
>>
>> Can anybody tell me what I'm doing wrong?? Please send me proper bp 
>> script.
>>
>> Regards,
>> Shankar
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the "Android 
>> Building" mailing list.
>> To post to this group, send email to android-...@googlegroups.com 
>> 
>> To unsubscribe from this group, send email to
>> android-buildi...@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-buildi...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
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.


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

2018-09-24 Thread shankar kumar yellapu
Hi,

I'm trying to include a jar in /frameworks/base/services/myservice using bp 
. My bp file looks like this:

java_library_static {
name: "my-service",
static_libs: ["my-services-prebuilt"],
}

I've copied my prebuilt jar in the same location with the name 
my-services-prebuilt. I'm getting the following error:

error: frameworks/base/services/my-services/Android.bp:29:1:"my-services" 
depends on undefined module ",my-services-prebuilt"

FYR: my make file in Android O

LOCAL_PATH:= $(call my-dir)

# static jar
# 
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := 
my-services-prebuilt:my-services-prebuilt.jar
include $(BUILD_MULTI_PREBUILT)

# shared jar
# 
include $(CLEAR_VARS)
LOCAL_MODULE := my-services
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := my-services-prebuilt
include $(BUILD_JAVA_LIBRARY)
endif


Can anybody tell me what I'm doing wrong?? Please send me proper bp script.

Regards,
Shankar

-- 
-- 
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.