-
Clone or download rootAVD from the official repository:
git clone https://gitlab.com/newbit/rootAVD.git cd rootAVD -
With your emulator running, find your specific image path:
This project provides a solution to fix the DS18B20 temperature sensor simulation issue in Proteus, where incorrect readings (e.g., -127.00°C) were observed despite the code and circuit working on real hardware.
The DS18B20 sensor in Proteus simulation returned alternating readings of -127.00°C (indicating a communication failure) and 27.00°C (likely the default simulated temperature). This issue is simulation-specific and does not occur on real hardware due to timing mismatches in the OneWire protocol.
The fix involves adjusting the DS18B20 component properties in Proteus to align with the OneWire timing requirements. Follow these steps:
- Plug in your Hackintosh USB installer.
- At the OpenCore/Clover boot picker, choose “Install macOS …” (the installer).
- Wait until you reach the macOS Utilities screen.
- In the top menu bar, click Utilities → Terminal.
(This gives you a terminal even if your system disk can’t boot.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Docs: https://developer.android.com/ndk/guides/cmake#android_native_api_level | |
| ANDROID_NATIVE_API_LEVEL = int(os.environ.get('ANDROID_NATIVE_API_LEVEL', 21)) | |
| cmake_common_vars = { | |
| # Docs: https://source.android.com/docs/setup/about/build-numbers | |
| # Docs: https://developer.android.com/studio/publish/versioning | |
| 'ANDROID_COMPILE_SDK_VERSION': os.environ.get('ANDROID_COMPILE_SDK_VERSION', 36), | |
| 'ANDROID_TARGET_SDK_VERSION': os.environ.get('ANDROID_TARGET_SDK_VERSION', 36), | |
| 'ANDROID_MIN_SDK_VERSION': os.environ.get('ANDROID_MIN_SDK_VERSION', ANDROID_NATIVE_API_LEVEL), | |
| # Docs: https://developer.android.com/studio/releases/gradle-plugin | |
| 'ANDROID_GRADLE_PLUGIN_VERSION': '8.9.3', # AGP version 8.5.1 or higher |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OPENCV_SRC=$PWD/opencv | |
| OPENCV_CONTRIB=$PWD/opencv_contrib | |
| OPENCV_BUILD=$PWD/opencv-android-build # output folder | |
| ANDROID_SDK=$HOME/Library/Android/sdk | |
| ANDROID_NDK=$ANDROID_SDK/ndk/27.2.12479018 # change to your ndk folder | |
| CONFIG_FILE=$PWD/ndk-27.config.py # adjust to match your NDK version | |
| mkdir -p $OPENCV_BUILD | |
| cd $OPENCV_BUILD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| progname="${0##*/}" | |
| progname="${progname%.sh}" | |
| # usage: check_elf_alignment.sh [path to *.so files|path to *.apk] | |
| cleanup_trap() { | |
| if [ -n "${tmp}" -a -d "${tmp}" ]; then | |
| rm -rf ${tmp} | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def nec_generate(command_hex: str): | |
| HEADER = ["0158", "00B0"] # 9ms + 4.5ms | |
| BIT_0 = ["0017", "0017"] | |
| BIT_1 = ["0017", "0041"] | |
| STOP = ["0017"] | |
| TAIL = ["05A5", "0158", "0056", "0017", "0E5B"] | |
| # Pronto preamble | |
| pronto = ["0000", "006C", "0022", "0002"] | |
| pronto.extend(HEADER) |
NewerOlder