Coder Social home page Coder Social logo

janengelmohr / android_device_mt6753_common Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 16.0 2.21 MB

Common Hardware Configuration for Mediatek MT6753 SoC

License: GNU General Public License v2.0

Makefile 2.26% Java 21.98% C++ 55.35% C 20.29% Shell 0.12%

android_device_mt6753_common's Introduction

Common Part for Mediatek MT6753 SoC

This repository contains hardware configurations commonly needed for building Android for MT6753 SoCs. This also includes MT6735 and its variants (MT6735p and m).

Just include all makefiles and your device is mostly set up already :)

android_device_mt6753_common's People

Contributors

janengelmohr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

android_device_mt6753_common's Issues

SELinux broke Bluetooth ? More like Salty linux, huehuehuehue

Well it's a good thing I'm following borring classes cuz the best I have to do is ssh back home to find some joy.
I'm implementing a few (secret for now) stuff and, huh, let's put that in easy to understand words, SELinux made me salty af.
But ! There's so many shizzle going on, this might be the reason why Bluetooth is not properly working (

W/bt_hc_worker( 2572): type=1400 audit(0.0:11): avc: denied { search } for name="block" dev="tmpfs" ino=7274 scontext=u:r:bluetooth:s0 tcontext=u:object_r:block_device:s0 tclass=dir permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:12): avc: denied { search } for name="block" dev="tmpfs" ino=7274 scontext=u:r:bluetooth:s0 tcontext=u:object_r:block_device:s0 tclass=dir permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:13): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:14): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:15): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:16): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:17): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:18): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:19): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:20): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:21): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:22): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:23): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:24): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:25): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0
W/bt_hc_worker( 2572): type=1400 audit(0.0:26): avc: denied { read } for name="nvram" dev="mmcblk0p25" ino=4401 scontext=u:r:bluetooth:s0 tcontext=u:object_r:nvram_data_file:s0 tclass=lnk_file permissive=0

I'll make this huge and boring issue a "101 sepolicy ok fuk awf and work" :

apt install policycoreutils

$ adb shell su root dmesg | grep avc
$ adb shell su root dmesg | audit2allow -p out/target/product/-DEVICE-/root/sepolicy

This will output a "fix" as follow :

============= system_app ==============

allow system_app sysfs_keypad_file:file open;

But it's usually a good practice to read the output and "fix" it, as in, some files simply don't have a context, and allowing an app to read/write/open/ioctl all unlabeled_files is as good as disabling selinux (sort of)
(ps: you can feel the distress from the dev who made audit2WHY and audit2ALLOW, coming upgrade will introduce audit2PLEASE)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.