- Download these 2 files
- Compile AOSP without fcm from stock and wait for check_vintf to error out
- Delete Python prefix from all lines (e.g.
checkvintf E 06-24 00:30:22 49120 49120 check_vintf.cpp:554]) - Paste the result in fqnames.txt
- Launch the script
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 | |
| SOURCE=$1 | |
| PRODUCT_MANUFACTURER=$(cat $SOURCE/system/system/build.prop | grep ro.product.system.manufacturer= | cut -c 32-) | |
| SYSTEM_NAME=$(cat $SOURCE/system/system/build.prop | grep ro.product.system.name= | cut -c 24-) | |
| SYSTEM_DEVICE=$(cat $SOURCE/system/system/build.prop | grep ro.product.system.device= | cut -c 26-) | |
| VERSION_RELEASE=$(cat $SOURCE/system/system/build.prop | grep ro.system.build.version.release= | cut -c 33-) | |
| VENDOR_BUILD_ID=$(cat $SOURCE/vendor/build.prop | grep ro.vendor.build.id= | cut -c 20-) | |
| VENDOR_VERSION_INCREMENTAL=$(cat $SOURCE/vendor/build.prop | grep ro.vendor.build.version.incremental= | cut -c 37-) |
This file has been truncated, but you can view the full file.
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
| --------- beginning of main | |
| 10-12 04:54:12.448 611 611 I lowmemorykiller: Using in-kernel low memory killer interface | |
| 10-12 04:54:12.450 611 611 I lowmemorykiller: Process polling is not supported | |
| 10-12 04:54:12.451 611 611 I lowmemorykiller: Process reaping is not supported | |
| 10-12 04:54:12.480 614 614 I SELinux : SELinux: Loaded service_contexts from: | |
| 10-12 04:54:12.480 614 614 I SELinux : /vendor/etc/selinux/vndservice_contexts | |
| 10-12 04:54:12.483 612 612 I SELinux : SELinux: Loaded service_contexts from: | |
| 10-12 04:54:12.483 612 612 I SELinux : /system/etc/selinux/plat_service_contexts | |
| 10-12 04:54:12.483 612 612 I SELinux : /system_ext/etc/selinux/system_ext_service_contexts | |
| 10-12 04:54:12.483 612 612 I SELinux : /product/etc/selinux/product_service_contexts |
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
| Make sure the device's and/or commonized device proprietary-files are updated with the same blobs that you want in your proprietary vendor repo. | |
| Next, to use the kang and section mode we need the switches "-k -s". -k tells extract-files to only kang/pull updated blobs without deleting any blobs. -s tells it to only update ones from a commented section of your proprietary-files. | |
| for example, if i have this in my proprietary-files | |
| # ADSP - from oneplus3t - OnePlus/OnePlus3/OnePlus3T:9/PKQ1.181203.001/1911042108 - OOS 9.0.6 | |
| vendor/lib/libadsp_hvx_callback_skel.so | |
| vendor/lib/libadsp_hvx_stub.so |
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
| First go here: | |
| https://wiki.codeaurora.org/xwiki/bin/QAEP/release | |
| This site gives information about all msm soc release details with tag + android version | |
| Search your msm here.. Check the latest one and look for correct android version and mark that tag. | |
| Now open one of the following links (dependent on your linux kernel version) |
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
| # Goto android source code root and then execute following commands | |
| # Keep the logcat.log in the root | |
| export ANDROID_BUILD_TOP=$(pwd) | |
| ./external/selinux/prebuilts/bin/audit2allow -p out/target/product/{devicename}/root/sepolicy < logcat.log | |
| # Copy the generated rules in respective files in the device tree |