Giter Club home page Giter Club logo

hal-switch's Introduction

Hal-Swtich

completely https://github.com/TogoFire 's work. I just made repository for easy usage

  1. git clone https://github.com/TheDoop/Hal-Switch device/xiaomi/daisy/XiaomiParts
  2. curl https://raw.githubusercontent.com/TogoFire/dt_xiaomi_daisy/xq/rootdir/etc/init.camera.sh --output device/xiaomi/daisy/rootdir/etc/init.camera.sh
  3. curl https://raw.githubusercontent.com/TogoFire/dt_xiaomi_daisy/xq/rootdir/etc/init.camera.rc --output device/xiaomi/daisy/rootdir/etc/init.camera.rc
  4. mkdir device/xiaomi/daisy/vndk/etc
  5. cp device/xiaomi/daisy/rootdir/etc/init.camera.sh device/xiaomi/daisy/vndk/etc/init.camera.sh && cp device/xiaomi/daisy/rootdir/etc/init.camera.rc device/xiaomi/daisy/vndk/etc/init.camera.rc

add device mk:

# XiaomiParts
PRODUCT_PACKAGES += \
    XiaomiParts

and:

PRODUCT_PACKAGES += \
    init.camera.rc \
    init.camera.sh

Add Android.mk :

include $(CLEAR_VARS)
LOCAL_MODULE       := init.camera.rc
LOCAL_MODULE_TAGS  := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES    := etc/init.camera.rc
LOCAL_MODULE_PATH  := $(TARGET_OUT_VENDOR_ETC)/init/hw
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE       := init.camera.sh
LOCAL_MODULE_TAGS  := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES    := etc/init.camera.sh
LOCAL_MODULE_PATH  := $(TARGET_OUT_VENDOR_EXECUTABLES)
include $(BUILD_PREBUILT)

add device/xiaomi/daisy/rootdir/init.qcom.rc :

import /vendor/etc/init/hw/init.camera.rc

hal-switch's People

Stargazers

 avatar

Watchers

 avatar

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.