yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 3 General] :
[MENTION=4479363]Hazou[/MENTION],

thanks, will look into it, currently managing a java meltdowm.

i recently lost everything on my harddrive and have been putting things back together.

some of my setup has to be changed since that "upgrade" :silly:

always fun !!

m
[Galaxy Tab 3 General] Hazou:
I had a look at android 5 source. It seems very good for us. The Asus fugo is x86_64 / i686 and is officially supported. So if all our vendor blobs work, we should have "no" problem porting our devices to android 5. It even has houdini support build in (sort off). But time will tell. It even has some nice sources we can try (hwcomposer, only the audio is not portable. But we can manage that from github.com/01org for most of the time.

Happy days
[Galaxy Tab 3 General] NeoPreacher:
I really like to support this project as a tester! I also got a virtual machine running xubuntu 14.10, but no skills in development, yet. i'm good at learning ;)

device is p5210
[Galaxy Tab 3 General] Restl3ss:
[MENTION=5864662]moonbutt74[/MENTION]

under hardware/intel, i've got

apache-harmony

clovertrail

hwcomposer

include

intel_media

libsensors

PRIVATE

psb_headers

wrs_omxil_core

and of course README.md but that's not really relevant :p

Some of the things in hardware/intel for me I pulled from android-x86 (the composite source was a failure using android-x86 as a base so I've gone back to cm11 source and pulling some things from android-x86 i think would be useful)

Anything from there you think would be handy let me know, I'll zip it and send you a link

edit: I just realized i should probably mention PowerHAL, make sure the flag is on boardconfig.mk or there won't be one included in the build.

so just add

# Use CM PowerHAL by default

TARGET_POWERHAL_VARIANT := cm

to boardconfig.mk and you're golden.
[Galaxy Tab 3 General] social-design-concepts:
the few branches i've review looks as if most of the missing medfield / clovertrail+ source form android-ia is there you just have to go back in time to find the relevant commits but it also looks like a lot of going through and fixing this :

ifeq ($(TARGET_BOARD_PLATFORM),moorefield)

to ensure needed things are built but Android Auto Merge does seem to of committed all the unreleased Intel MID code from the past 6 years . . .

now if my Dell Venue 7 only had an unlocked bootloader : ( well i know a dirty hack to boot unsigned images so i'm going to give building 5.0.0r2 a go.

---------- Post added at 04:14 PM ---------- Previous post was at 04:11 PM ----------

i would look through the 5.0.0r2 source found lots of intel commits dating back 6 years that came through with Android Auto Merge
[Galaxy Tab 3 General] Hazou:
I did a 'diff' between our hwcomposer source code (JB) and the ones on android.googlesource. It seems way off. But i noticed that the first commit changed the way how hwcomposer source looked like. So maybe the old medfield and cloverfield are supported as what u say. We just need to find out what we do need and what we don't need.
[Galaxy Tab 3 General] Angel_666:
Hi all!. First, want to thank Hazou for very usefull geekphone git links. There are some specific patches, that will help. In second, i deside to completly rebuild all my devtree from scratch. Too many stuff, that break my head. I think we need to build "clean" CM without any intel specific stuff first. We need to boot device and clear with selinux and policies. When device booted, and all blocks and dirs mounted correctly, we need to add stuff one by one, rebuild and see what next. Now rebuilding from scratch CM 4.4.4 with geekphone patches and selinux enabled...
[Galaxy Tab 3 General] :
after gpdroid patches and recommended patch

[MENTION=4479363]Hazou[/MENTION] [MENTION=5378432]Restl3ss[/MENTION] [MENTION=1649190]Angel_666[/MENTION]

hey hey, logcat oh joy !

so i'm gonna clip the houdini_hook stuff from the gpdroid patches and try again as libdvm bites it.

errors for selinux with E/SELinuxMMAC( 2254): at libcore.io.IoBridge.open(IoBridge.java:409)

fatal error

V/Zygote ( 2639): Switching descriptor 35 to /dev/null

V/Zygote ( 2639): Switching descriptor 9 to /dev/null

E/dalvikvm( 2639): Failed to mount /mnt/shell/emulated/0 to /storage/emulated/0: Invalid argument

E/dalvikvm( 2639): cannot mountExternalStorage(): Invalid argument

E/dalvikvm( 2639): VM aborting

F/libc ( 2639): Fatal signal 6 (SIGABRT) at 0x00000a4f (code=-6), thread 2639 (zygote)

and as to the thrid patch you pointed me to i am still getting

E/hwcomposer( 1888): int hwc_eventControl(hwc_composer_device_1*, int, int, int): unsupported event 1

will do the clipping of the houdini_hook thing first and go from there

on network messages i got this,

I/SystemServer( 2254): NetworkManagement Service
I/SystemServer( 2254): NetworkStats Service
I/SystemServer( 2254): NetworkPolicy Service
I/SystemServer( 2254): Wi-Fi P2pService
I/SystemServer( 2254): Wi-Fi Service
I/SystemServer( 2254): Connectivity Service
D/ConnectivityService( 2254): ConnectivityService starting up
D/ConnectivityService( 2254): wifiOnly=true
D/ConnectivityService( 2254): networkAttributes - ignoring mobile as this dev is wifiOnly 0
D/ConnectivityService( 2254): networkAttributes - ignoring mobile as this dev is wifiOnly 2
D/ConnectivityService( 2254): networkAttributes - ignoring mobile as this dev is wifiOnly 3
D/ConnectivityService( 2254): networkAttributes - ignoring mobile as this dev is wifiOnly 4
D/ConnectivityService( 2254): networkAttributes - ignoring mobile as this dev is wifiOnly 5
E/ConnectivityService( 2254): Ignoring protectedNetwork 10
E/ConnectivityService( 2254): Ignoring protectedNetwork 11
E/ConnectivityService( 2254): Ignoring protectedNetwork 12
E/ConnectivityService( 2254): Ignoring protectedNetwork 14
W/ContextImpl( 2254): Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1607 android.bluetooth.BluetoothPan.doBind:148 android.bluetooth.BluetoothPan.<init>:141 android.bluetooth.BluetoothAdapter.getProfileProxy:1378 android.bluetooth.BluetoothTetheringDataTracker.startMonitoring:116
I/WifiService( 2254): WifiService starting up with Wi-Fi disabled
I/SystemServer( 2254): Network Service Discovery Service
D/NsdService( 2254): Network service discovery enabled true
I/SystemServer( 2254): NetworkTimeUpdateService
[Galaxy Tab 3 General] :
A Quick Bit of Humor.

has anyone ever noticed this while watching their build run ?

external/koush/Superuser/Superuser/jni/su/su.c: In function 'fork_zero_****s'

now, i know xda will censor it most likely but, c'mon, that's pretty funny. :laugh:
[Galaxy Tab 3 General] social-design-concepts:
I was looking his source over last week and was laughing my ass off
[Galaxy Tab 3 General] :
[MENTION=4479363]Hazou[/MENTION],

this already exists as of resync in repo.

There is a fix for hwccomposer from 1.0 and under and that is: Undo EVENT_ORIENTATION patch for hwc 1.0

About this one..

Edit:

See this: https://gist.github.com/pawitp/7891444 I will use that fix from now on.[/QUOTE]

is there a specific portion of this that adresses the issue or the entire patchset is needed.

i will roll the dice either way, but my laptop is slow and builds take hours between 3-6 on average. so closer to the kill-shot from go would be

a good thing .

[MENTION=5378432]Restl3ss[/MENTION]

you may need to patch stuff concerning fg-config if you get warnings/stop about LOGI and LOGE --> i changed to ALOGI and ALOGE

the hwc init thing hang resulting in Waiting for service display.intel.mds... is holding me up.

m

note- bootanimation is smooth so i assume egl/surfaceflinger stuff is mostly sorted

with system-core patches https://github.com/HazouPH/smi_cm11_patches/blob/cm-11.0/system/core/patch01.patch

excluding houdini portions

stilll getting selinux mac errors and unrecognized permission for android/java stuff.

edit- seems to have vanished after correcting missing shared libraries for camera

on audio

I/AudioPolicyManagerBase( 1892): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
D/AndroidRuntime( 1890): CheckJNI is OFF
V/audio_hw_primary( 1892): Reading configuration from /system/etc/sound/santos10wifi
E/audio_hw_primary( 1892): Failed to open /system/etc/sound/santos10wifi
E/AudioFlinger( 1892): int android::load_audio_interface(const char*, audio_hw_device_t**) couldn't open audio hw device in audio.primary (Invalid argument)
I/AudioFlinger( 1892): loadHwModule() error -22 loading module primary
W/AudioPolicyManagerBase( 1892): could not open HW module primary
E/AudioFlinger( 1892): int android::load_audio_interface(const char*, audio_hw_device_t**) couldn't load audio hw module audio.r_submix (No such file or directory)

should be looking in /system/lib/hw for audio.primary.[etc].so ? if that is correct, is there an error in overlay ?

/system/etc/sound/santos10wifi <---- does not exist

on device tree and prebuilt/proprietary stuff

D/dalvikvm( 2295): Unable to stat classpath element '/system/framework/sec_edm.jar'
D/dalvikvm( 2295): Unable to stat classpath element '/system/framework/seccamera.jar'
D/dalvikvm( 2295): Unable to stat classpath element '/system/framework/scrollpause.jar'
D/dalvikvm( 2295): Unable to stat classpath element '/system/framework/stayrotation.jar'
D/dalvikvm( 2295): Unable to stat classpath element '/system/framework/smartfaceservice.jar'

guess we still need these ?

now, i know make libc will build/rebuild libc, same with libz [zlib]

does anyone know the command for hardware composer ?
[Galaxy Tab 3 General] Restl3ss:
On hwc, social-design-concepts had a point with hardware/intel. I've been dicking around with the 5.0 source for a couple days and I noticed a couple new things that aren't currently in our source, one of them directly correlated to hwc. I'll zip them and send you a link
[Galaxy Tab 3 General] woopdedoda:
Can i ask why you guys arent using github for this? It seems like it would make everything a lot easier. I was hoping to try building it myself but i don't have a repository to sync.
[Galaxy Tab 3 General] Angel_666:
I already build system for our device on android 5.0 r2. AOSP. All intel stuff (across PSB_Video) build without errors (hw_composer, intel OMX and VA and hw_audioprimary). Now another problem: /system partition won't mount and i don't know why. Logcat not working (as we have not android shell). But in last_kmsg last row is "Jump to kernel 32bit entry ...0x05003c00" and nothing happing. Any ideas?
[Galaxy Tab 3 General] Angel_666:
Thanks for adb daemon, but my problem is that whole /system partition won't mount, and a can't see logcat because it just not working and fully unusable. Maximum that i can do for now - is connect to device by adb and ls root folders.

As for your "E/IMGSRV ( 1889): :0: PVRDRMOpen: TP3, ret" and "Waiting for service display.intel.mds..." - are you successfully boot the device or it's not booting? Because as i said before, that errors are not critical to boot system (my first build has this errors but boot OK).
[Galaxy Tab 3 General] :
angel_666,

i am disregarding the E/imgsrv thing, but there's a wait for service function blocking my way as to display.intel.mds, that's where my hang is.

i currently make it to bootanimation and stay there.

as to /system directory can you manually execute the instructions from init.*rc to create/mount system and go from there, or no dice ?

just to be clear you are working in lollipop ?

m
[Galaxy Tab 3 General] Angel_666:
1. wait fo service intel multidisplay does NOT affect boot process, it's just uncritical service. Turn it off in init.rc and in build.prop and forgot about it. My CM11 build for 5200 have same error but it does not affect to boot device. As for E: imgsrv RET - maximum that you will expect of it - is a randomly screen blinking somtimes, but device must boot anyway. I think your boot problem is for different reasons.

2. As for my problem - i can't execute any mount command from adb manually - errors and fails every time. I think the problem is in init script or in init binary, trying to check this..

3. Yes, i working on LoliPop. :D My goal is to check, how correctly device will work with hardware_intel from 5.0.r2 build. If hwc and other stuff will work correctly - we can just take it to CM build. The building process with including Intel stuff is OK (with some modifications), but now i must figure out why partitions are not mounted (Selinux? or fstab? or inits?). Btw in LoliPop ART is compiled by default instead of Dalvick. Must choose dalvick in BoardConfig.mk till now..

To be more clear: CM11 on Android 4.2.x - building OK, mounts OK, CM11 on Android 4.4.x -building OK, mounts fail, AOSP LoliPop - building OK, mounts fail...
[Galaxy Tab 3 General] :
ahh, okay neat will look through props and rc's, so my next point is possibly dalvik/zygote dying. grrr.

you might try the gpdroid patches for build_ , libcore_, the external_ patches for clang and llvm and system_core.

did you compare the nexus fstabs with ours?

so i'm going to build another step after looking at dalvik patches and libdvm.

i found this while snooping around through github

https://github.com/WinSuk/android_bionic/commit/95489de

looks neat, i wanna see what it does. :silly:

good luck with the pop, i'm still working on gettin recovery to build through it [philz].

m

afterthought- you can customize you boot.img to include mksh in /sbin

also i override cm11 puuting modules in /system/lib and put them back in /lib where they belong.
[Galaxy Tab 3 General] woopdedoda:
What is the output of ls in /mnt/ ? is there a shell directory?
[Galaxy Tab 3 General] :
W,

the output from mount is in the post, second block.

a build later with two different kernels, and edit to storage.xml and some attempts at modifying init.common.rc and

trying to work it out manually through adb, my guess is i need to look in the source [cm11].

the thing is, i'm not sure where. I've been scouring dalvik_ directory searching anything and everything mount but the going is slow.

[MENTION=5378432]Restl3ss[/MENTION] [MENTION=1649190]Angel_666[/MENTION] , if you guys could pull , pack and post your ramdisk's init's [current] and post content of storage.xml [current]

i'd appreciate it. thanks.

m
[Galaxy Tab 3 General] Hazou:
What if u remove that line

symlink /mnt/shell/emulated/0 /storage/emulated/legacy

Here u got for my storage.xml
[Galaxy Tab 3 General] :
hazou,

hey hey, thanks, i modded the line

symlink /mnt/shell/emulated /storage/emulated

the 0 directory seems to auto-create

is it odd for mount and directory creation to be happening in init.common.rc ?

that should be in init.rc itself or init.${ro.hardware}.rc ?

waiting on build ... snore....

m
[Galaxy Tab 3 General] Hazou:
No, as long as it is defined somewhere at the right time it will go fine.

U don't have to build a whole new build, dunno if u do that. But if u remove the module in the obj (e.g. for pixelflinger remove the folders pixelflinger_static in static libraries, libpixelflinger in shared libraries and pixelflinger in executables) folder that u changed it will only rebuild that module and makes new links for others. It significantly decreases build time.

I don't know which one is for the storage, but u can find that out easily by looking at the android.mks.
[Galaxy Tab 3 General] :
hazou,

no worries, i'm not doing a full rebuild.

that would be crazy, and we all know i am completely sane.

yup.

yes indeed..... :silly:

m
[Galaxy Tab 3 General] Angel_666:
Ok. I fix mounts in 5.0 and cm11 4.4.4, now another problem - device start booting and stuck at:

223:19:40.739 Error IMGSRV 1890 :0: PVRSRVConnect: Unable to open connection.
3:19:40.739 Error IMGSRV 1890 :0: OpenServices: drmOpen failed
23:19:40.739 Error IMGSRV 1890 :0: Couldn't connect to services
23:19:40.739 Error IMGSRV 1890 :0: SRV_ServicesInit: need wait service init

Imgsrv can't start. I use latest official KitKat vendor binaries. Any help?

Selinux events log: lot of restrictions
[Galaxy Tab 3 General] :
angel,

refer a few posts back concerining patches , whether or not the dirty-pthread-hack i was talking about was useful i'm not sure

additionally see the stuff concering hardware_intel

contents of vendor/bin/

pvrsrvctl

contents of vendor/firmware/

bcm4334.hcd

bcm4334_murata.hcd

bcm4334_semco.hcd

contents of vendor/lib

libbt-vendor.so
liblvverx_3.21.15.so
liboemcrypto.so
libPVROCL.so
librsccompiler.so
libsrv_um.so
libwvm.so
libglslcompiler.so
liblvvetx_3.21.15.so
libpvr2d.so
libPVRRS.so
librsccore.bc
libusc.so
libWVStreamControlAPI_L1.so
libIMGegl.so
liboclcompiler.so
libpvrANDROID_WSEGL.so
libPVRScopeServices.so
libsrv_init.so
libwvdrm_L1.so

contents of vendor/lib/drm

libdrmwvmplugin.so

contents of vendor/lib/egl

libEGL_POWERVR_SGX544_115.so

libGLESv1_CM_POWERVR_SGX544_115.so

libGLESv2_POWERVR_SGX544_115.so

contents of vendor/lib/hw

gralloc.santos10wifi.so

memtrack.clovertrail.so

this is for 5210 extra phone cell stuff i don't know.

will post list of /system/lib and system/bin later on gotta get kids off bus.

m
[Galaxy Tab 3 General] Angel_666:
:D I know the stuff of proprietary files. The problem is, that some blobs don't work in 5.0. Maybe it's about strong enforcing selinux mode in 5.0 - i dunno yet. My second log is showing, that many things are blocked by selinux, and i need new rules for that.
[Galaxy Tab 3 General] :
ahh, okay, in my dev-tree in boardconifg or device .mk i disable/comment out selinux specific settings, also pull the sepolicy, and context stuff out

of your working boot.img if it's from stock also in external/sepolicy you can likely make the same adjustments you would in kernel sources

which include those files/definitions

also i had started an selinux policy thread in the general section. there are some links to info which may be useful.

http://xdaforums.com/galaxy-tab-3/general/se-linux-policy-information-thread-t2865457

it would be most welcome if you add anything you discover during your effort to that thread. :)

if i find anything more useful i will update.

m

just a thought, kernel and init should be unconfined domain, maybe the same will do for display.

also might be able to get more about policy settings using strings [binary] | grep "something selinuxy"

i don't what function to use for getting info out of libraries.
[Galaxy Tab 3 General] Restl3ss:
[MENTION=1649190]Angel_666[/MENTION]

[MENTION=5864662]moonbutt74[/MENTION]

In my experience, the new selinux implementation in 5.0 is causing absolute hell for porting from kitkat (i'm also working on porting 5.0 to d2lte, having lots of selinux issues) you're gonna have to pretty much rework the entire selinux policy in the device tree. It's significantly stricter, literally everything, (apps, libs, binaries) is now essentially sandboxed with its own policy, and if you dont explicedly declare access to what said thing needs, you run into this.

For d2lte i've decided to just adapt the policy from hammerhead, and so far it's proving to be fruitful (though gradually)
[Galaxy Tab 3 General] Angel_666:
I think i found why opengl not working in 5.0. See my shell commands:
[Galaxy Tab 3 General] :
okay, so this is where i die now that i've sorted the mount issue by stiking the /0 from the preiviously mentioned entry.

[COLOR="Red"]E/ConsumerIrService( 2264): Can't open consumer IR HW Module, error: -2[/COLOR]
I/SystemServer( 2264): Vibrator Service
I/SystemServer( 2264): Consumer IR Service
[COLOR="Red"]E/System ( 2264): ******************************************
E/System ( 2264): ************ Failure starting core service
E/System ( 2264): java.lang.RuntimeException: FEATURE_CONSUMER_IR present, but no IR HAL loaded!
E/System ( 2264): at com.android.server.ConsumerIrService.<init>(ConsumerIrService.java:71)
E/System ( 2264): at com.android.server.ServerThread.initAndLoop(SystemServer.java:328)
E/System ( 2264): at com.android.server.SystemServer.main(SystemServer.java:1386)
E/System ( 2264): at java.lang.reflect.Method.invokeNative(Native Method)
E/System ( 2264): at java.lang.reflect.Method.invoke(Method.java:515)
E/System ( 2264): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
E/System ( 2264): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
E/System ( 2264): at dalvik.system.NativeStart.main(Native Method)[/COLOR]
I/SystemServer( 2264): Input Method Service
I/ServiceManager( 1889): Waiting for service display.intel.mds...
W/InputMethodManagerService( 2264): No IME selected. Choose the most applicable IME.
I/InputMethodManagerService( 2264): No default found, using com.android.inputmethod.latin/.LatinIME
[COLOR="Red"]F/SystemServer( 2264): BOOT FAILURE making display ready
F/SystemServer( 2264): java.lang.NullPointerException
F/SystemServer( 2264): at com.android.server.ServerThread.initAndLoop(SystemServer.java:431)
F/SystemServer( 2264): at com.android.server.SystemServer.main(SystemServer.java:1386)
F/SystemServer( 2264): at java.lang.reflect.Method.invokeNative(Native Method)
F/SystemServer( 2264): at java.lang.reflect.Method.invoke(Method.java:515)
F/SystemServer( 2264): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
F/SystemServer( 2264): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
F/SystemServer( 2264): at dalvik.system.NativeStart.main(Native Method)[/COLOR]
I/PackageManager( 2264): Running dexopt on: com.android.externalstorage
I/SystemServer( 2264): Accessibility Manager
W/SystemServer( 2264): ***********************************************

going to clobber and pull libcore patches and rebuild.

[MENTION=5378432]Restl3ss[/MENTION] [MENTION=1649190]Angel_666[/MENTION]

selinux must be destroyed.

---------- Post added at 05:07 PM ---------- Previous post was at 05:04 PM ----------

on modules

angel, in init.rc's, check insmod's are pointing to /lib/modules or /system/lib/modules ?

m
[Galaxy Tab 3 General] Angel_666:
to /lib/modules. But insmod has not permissions to load modules anymore??
[Galaxy Tab 3 General] :
hmm, just a thought, try busybox lsmod, and/or sh lsmod ?

also try a build with the gpdroid system_core patches, skip the houdini stuff
[Galaxy Tab 3 General] :
[MENTION=1649190]Angel_666[/MENTION],

okay, there are options in kernel source to force selinux disable as boot parameter.

also to instruct selinux to defer to the security requirements of the kernel instead of the system.

set those options rebuild, :fingers-crossed:

additionally i believe adbd is fully static so you may be able to patch from cm11 and use it

interchangeably, as well there are setcon and restcon instructions in various init.*.rc's

you may be able to strike/comment or modify

for a more agreeable busybox download this backup of osm0sis's aik tool and use

the x86 binary contained within, it should be selinux free.

http://d-h.st/tqU

in boardconfig/device config you should be able to use the sepolicy union function to

put in your policy modification kind of like a property override.

some "binaries" can apparently also be untar'd , tar xf /blah

all else failing get your hex editor going and make a mess of things !
[Galaxy Tab 3 General] Hazou:
Is this something to try for selinux?

https://android.googlesource.com/device/asus/fugu/+/80fecd0f5021c6b71434d3858dbb0edbe8b1d9c9%5E%21/#F0
[Galaxy Tab 3 General] Angel_666:
Hi Hazou! This option is the same, that in kernel config (selinux_boot_parameter=0). But i think it not selinux problem. Some folders have read access only when shell is in root mode, and many binaries (houdini or insmod) can't grant access even if we are su in shell. More then this - in dmesg i can see, that pvrsgx.ko is succesfully installed from the init.rc, but with some strange warnings.

and then in logcat:

But anyway, will try to change Kernel cmdline as you post - maybe it change something, who knows..
[Galaxy Tab 3 General] social-design-concepts:
Not sure if it is any help I saw this : https://android.googlesource.com/device/asus/fugu/+/2b2e5750f3c28c08f606b9cd837f96eae78d119b^!/#F0