[android-porting] Enable Treble

2020-08-29 Thread Akshay Mhaske
Hi,

I am trying to enable Treble in my source code.
As per my understanding we have to use Generic System Image (GSI) to work 
with framework only update. But I am using latest mesa source downloaded 
from free desktop and removed original mesa which we get with AOSP source.
So one thing I am clear updated mesa should go into vendor images.

1) Do we need to add vndk support in mesa dependent libraries ?
2) Can we use both mesa means system modules will use mesa which comes with 
GSI image and vendor modules will use updated mesa from free desktop ?

Thanks & Regards,
Akshay

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-porting/2da5b975-934d-4c2e-bbfe-2ce049306e91n%40googlegroups.com.


[android-porting] Re: Enforcing mode is not working

2018-08-30 Thread Akshay Mhaske
Hi all,

I have attached the avc denied log in permissive mode.
hope this will help.

On Tuesday, 28 August 2018 23:17:00 UTC+5:30, Akshay Mhaske wrote:
>
> Hi,
>
> I am trying to port the aosp project to x86 based platform.
> With permissive mode everything is working fine. but I am not able to boot 
> with enforcing mode.
>
> I am compiling the aosp source with user build variant. Compilation is 
> successful.
>
> But while booting. I am getting following log.
>
> Detecting Android-x86 found at /dev/sda1
> [   2.125466] sysrq: Sysrq : Emergency Remount R/O
>
> After that its restarting again.
>
>
> Can anyone please help me ?
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
raven:/ # dmesg | grep "denied"
[   95.455428] type=1400 audit(1534855885.485:587): avc: denied { ioctl } for 
pid=3001 comm="Binder:3001_6" path="/dev/dri/card0" dev="tmpfs" ino=11673 
ioctlcmd=0x640b scontext=u:r:system_server:s0 tcontext=u:object_r:device:s0 
tclass=chr_file permissive=1
[   95.464886] type=1400 audit(1534855885.494:588): avc: denied { map } for 
pid=3001 comm="Binder:3001_6" path="/dev/dri/card0" dev="tmpfs" ino=11673 
scontext=u:r:system_server:s0 tcontext=u:object_r:device:s0 tclass=chr_file 
permissive=1
[   95.464943] type=1400 audit(1534855885.494:589): avc: denied { read write } 
for pid=3001 comm="Binder:3001_6" path="/dev/dri/card0" dev="tmpfs" ino=11673 
scontext=u:r:system_server:s0 tcontext=u:object_r:device:s0 tclass=chr_file 
permissive=1
[  104.694713] type=1400 audit(1534855894.724:590): avc: denied { map } for 
pid=3386 comm="HeapTaskDaemon" path="/dev/ashmem" dev="tmpfs" ino=13211 
scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:ashmem_device:s0 
tclass=chr_file permissive=1
[  105.533161] type=1400 audit(1534855895.563:591): avc: denied { wake_alarm } 
for pid=3001 comm="Binder:3001_8" capability=35 scontext=u:r:system_server:s0 
tcontext=u:r:system_server:s0 tclass=capability2 permissive=1
[  108.764349] type=1400 audit(1534855898.794:592): avc: denied { map } for 
pid=2722 comm="adbd" 
path="/dev/__properties__/u:object_r:device_logging_prop:s0" dev="tmpfs" 
ino=1478 scontext=u:r:adbd:s0 tcontext=u:object_r:device_logging_prop:s0 
tclass=file permissive=1
[  108.764746] type=1400 audit(1534855898.794:593): avc: denied { map } for 
pid=3931 comm="sh" path="/system/bin/sh" dev="loop1" ino=427 
scontext=u:r:shell:s0 tcontext=u:object_r:shell_exec:s0 tclass=file permissive=1
[  108.764854] type=1400 audit(1534855898.794:594): avc: denied { map } for 
pid=3931 comm="sh" path="/system/bin/linker64" dev="loop1" ino=332 
scontext=u:r:shell:s0 tcontext=u:object_r:system_file:s0 tclass=file 
permissive=1
[  108.765244] type=1400 audit(1534855898.795:595): avc: denied { map } for 
pid=3931 comm="sh" path="/dev/__properties__/properties_serial" dev="tmpfs" 
ino=1499 scontext=u:r:shell:s0 tcontext=u:object_r:properties_serial:s0 
tclass=file permissive=1
[  108.766872] type=1400 audit(1534855898.796:596): avc: denied { map } for 
pid=3931 comm="sh" path="/dev/__properties__/u:object_r:default_prop:s0" 
dev="tmpfs" ino=1472 scontext=u:r:shell:s0 tcontext=u:object_r:default_prop:s0 
tclass=file permissive=1
[  108.767221] type=1400 audit(1534855898.797:597): avc: denied { getattr } for 
pid=3931 comm="sh" path="/system/xbin/su" dev="loop1" ino=4820 
scontext=u:r:shell:s0 tcontext=u:object_r:su_exec:s0 tclass=file permissive=1
[  108.767239] type=1400 audit(1534855898.797:598): avc: denied { execute } for 
pid=3931 comm="sh" name="su" dev="loop1" ino=4820 scontext=u:r:shell:s0 
tcontext=u:object_r:su_exec:s0 tclass=file permissive=1
[  108.767253] type=1400 audit(1534855898.797:599): avc: denied { read open } 
for pid=3931 comm="sh" path="/system/xbin/su" dev="loop1" ino=4820 
scontext=u:r:shell:s0 tcontext=u:object_r:su_exec:s0 tclass=file permissive=1
[  110.534175] type=1400 audit(1534855900.564:603): avc: denied { map } for 
pid=3639 comm="viders.calendar" path="/dev/ashmem" dev="tmpfs" ino=13211 
scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:ashmem_device:s0 
tclass=chr_file permissive=1
[  128.742190] type=1400 audit(1534855918.772:604): avc: 

[android-porting] Enforcing mode is not working

2018-08-28 Thread Akshay Mhaske
Hi,

I am trying to port the aosp project to x86 based platform.
With permissive mode everything is working fine. but I am not able to boot 
with enforcing mode.

I am compiling the aosp source with user build variant. Compilation is 
successful.

But while booting. I am getting following log.

Detecting Android-x86 found at /dev/sda1
[   2.125466] sysrq: Sysrq : Emergency Remount R/O

After that its restarting again.


Can anyone please help me ?

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-porting] Re: com.android.phone has stoped

2018-07-25 Thread Akshay Mhaske
Hi Glenn,

I am attaching the logcat and dmesg log files. hope this will help.

Thanks in advance.

On Monday, 23 July 2018 19:07:55 UTC+5:30, Akshay Mhaske wrote:
>
> Hi,
>
> I am porting AOSP android N to x86 based system. I am 
> getting com.android.phone has stoped pop-up continously with live USB.
> But If I install in pendrive or hard-disk I am not geting this pop-up.
>
> Can any one please help with this issue.
>
> Regards,
> Akshay
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[  272.782700] type=1400 audit(1532511107.778:556): avc: denied { execmem } for 
pid=1615 comm="RenderThread" scontext=u:r:system_server:s0 
tcontext=u:r:system_server:s0 tclass=process permissive=1
raven:/ # dmesg
[  272.782700] type=1400 audit(1532511107.778:556): avc: denied { execmem } for 
pid=1615 comm="RenderThread" scontext=u:r:system_server:s0 
tcontext=u:r:system_server:s0 tclass=process permissive=1

amhaske@amhaske:~$ adb shell
raven:/ # 
raven:/ # 
raven:/ # logcat -c
raven:/ # 
raven:/ # 
raven:/ # 
raven:/ # logcat
- beginning of system
07-25 09:30:11.931  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:11.946  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:11.951  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:11.967  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:11.984  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.012  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.028  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.044  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.061  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.078  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.094  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.110  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.125  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.147  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.159  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.174  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.192  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.201  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.218  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.235  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.266  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.269  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.284  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.301  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.317  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.334  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.468  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.484  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.501  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.518  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.534  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.551  1615  1657 D ViewRootImpl[phone]: updatePointerIcon called 
with position out of bounds
07-25 09:30:12.568  1615  1657 D ViewRootImp

[android-porting] com.android.phone has stoped

2018-07-23 Thread Akshay Mhaske
Hi,

I am porting AOSP android N to x86 based system. I am 
getting com.android.phone has stoped pop-up continously with live USB.
But If I install in pendrive or hard-disk I am not geting this pop-up.

Can any one please help with this issue.

Regards,
Akshay

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-porting] su /system/bin/sh: su: can't execute: permission denied

2018-07-16 Thread Akshay Mhaske
I am building AOSP N source code for x86 based system. for superuser 
permision I added koush and cyanogenmod source code from x86 to AOSP. 
but I am getting following error :- 
su /system/bin/sh: su: can't execute: permission denied.


I am also attaching the log file which I captured after running su command 
from terminal.

Can someone please help me.

Thanks,
Akshay

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


su_log
Description: Binary data


[android-porting] Developer option is not working

2018-06-15 Thread Akshay Mhaske
Hi ,

I have compiled AOSP android N source code with 4.16 kernel. With eng build 
Developer option is coming by default. But whenever I click on developer 
option it is hanging and getiing pop up "setting has stopper". 

I am attaching the log file which is captured after clicking on developer 
option.




Can anyone please help me.

Thanks in Advance.

Regards,
Akshay

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
 beginning of system
06-13 10:28:44.405  1742  1753 I ActivityManager: START u0 {flg=0x8000 
cmp=com.android.settings/.Settings$DevelopmentSettingsActivity (has extras)} 
from uid 1000 on display 0
- beginning of main
06-13 10:28:44.416  1742  1802 E SoundPool: error loading 
/system/media/audio/ui/Effect_Tick.ogg
06-13 10:28:44.416  1742  1802 W AudioService: Soundpool could not load file: 
/system/media/audio/ui/Effect_Tick.ogg
06-13 10:28:44.416  1742  1802 E SoundPool: error loading 
/system/media/audio/ui/Effect_Tick.ogg
06-13 10:28:44.416  1742  1802 W AudioService: Soundpool could not load file: 
/system/media/audio/ui/Effect_Tick.ogg
06-13 10:28:44.416  1742  1802 E SoundPool: error loading 
/system/media/audio/ui/Effect_Tick.ogg
06-13 10:28:44.416  1742  1802 W AudioService: Soundpool could not load file: 
/system/media/audio/ui/Effect_Tick.ogg
06-13 10:28:44.416  1742  1802 E SoundPool: error loading 
/system/media/audio/ui/Effect_Tick.ogg
06-13 10:28:44.416  1742  1802 W AudioService: Soundpool could not load file: 
/system/media/audio/ui/Effect_Tick.ogg
06-13 10:28:44.416  1742  1802 E SoundPool: error loading 
/system/media/audio/ui/Effect_Tick.ogg
06-13 10:28:44.416  1742  1802 W AudioService: Soundpool could not load file: 
/system/media/audio/ui/Effect_Tick.ogg
06-13 10:28:44.416  1742  1802 E SoundPool: error loading 
/system/media/audio/ui/KeypressStandard.ogg
06-13 10:28:44.416  1742  1802 W AudioService: Soundpool could not load file: 
/system/media/audio/ui/KeypressStandard.ogg
06-13 10:28:44.416  1742  1802 E SoundPool: error loading 
/system/media/audio/ui/KeypressSpacebar.ogg
06-13 10:28:44.416  1742  1802 W AudioService: Soundpool could not load file: 
/system/media/audio/ui/KeypressSpacebar.ogg
06-13 10:28:44.416  1742  1802 E SoundPool: error loading 
/system/media/audio/ui/KeypressDelete.ogg
06-13 10:28:44.416  1742  1802 W AudioService: Soundpool could not load file: 
/system/media/audio/ui/KeypressDelete.ogg
06-13 10:28:44.416  1742  1802 E SoundPool: error loading 
/system/media/audio/ui/KeypressReturn.ogg
06-13 10:28:44.416  1742  1802 W AudioService: Soundpool could not load file: 
/system/media/audio/ui/KeypressReturn.ogg
06-13 10:28:44.416  1742  1802 E SoundPool: error loading 
/system/media/audio/ui/KeypressInvalid.ogg
06-13 10:28:44.416  1742  1802 W AudioService: Soundpool could not load file: 
/system/media/audio/ui/KeypressInvalid.ogg
06-13 10:28:44.416  1742  1802 W AudioService: onLoadSoundEffects(), Error -1 
while loading samples
06-13 10:28:44.426  1894  1894 I ndroid.settings: type=1400 audit(0.0:514): 
avc: denied { map } for path="/system/priv-app/Settings/Settings.apk" 
dev="loop1" ino=1501 scontext=u:r:system_app:s0 
tcontext=u:object_r:system_file:s0 tclass=file permissive=1
06-13 10:28:44.440  2459  2459 I logcat  : type=1400 audit(0.0:515): avc: 
denied { map } for path="/dev/__properties__/u:object_r:system_prop:s0" 
dev="tmpfs" ino=10288 scontext=u:r:su:s0 tcontext=u:object_r:system_prop:s0 
tclass=file permissive=1
06-13 10:28:44.445  1434  1434 I vold: type=1400 audit(0.0:516): avc: 
denied { map } for path="/dev/__properties__/u:object_r:default_prop:s0" 
dev="tmpfs" ino=10265 scontext=u:r:vold:s0 tcontext=u:object_r:default_prop:s0 
tclass=file permissive=1
06-13 10:28:44.445  1434  1434 I vold: type=1400 audit(0.0:517): avc: 
denied { map } for path="/dev/__properties__/u:object_r:logd_prop:s0" 
dev="tmpfs" ino=10272 scontext=u:r:vold:s0 tcontext=u:object_r:logd_prop:s0 
tclass=file permissive=1
06-13 10:28:44.445  1433  1433 I debuggerd64: type=1400 audit(0.0:518): avc: 
denied { map } for path="/dev/__properties__/u:object_r:debug_prop:s0" 
dev="tmpfs" ino=10281 scontext=u:r:debuggerd:s0 
tcontext=u:object_r:debug_prop:s0 tclass=file permissive=1
06-13 10:28:44.443  1742  1753 E UserRestrictionsUtils: Unknown restriction: 
null
06-13 10:28:44.443  1742  1753 E UserRestrictionsUtils: Unknown restriction: 
null
06-13 10:28:44.446  1742  1753 D CryptdConnector: SND -> {4 cryptfs 
isConvertibleToFBE}
06-13 10:28:44.446  1434  1440 D VoldCryptCmdListener: cryptfs 
isConvertibleToFBE
- beginning of crash
06-13 10:28:44.446  1434  1440 F libc