mirror of
https://github.com/feicong/rom-course.git
synced 2025-08-29 02:35:20 +00:00
/home绝对路径改为~/
This commit is contained in:
parent
001a20be0c
commit
dfa7362039
@ -501,7 +501,7 @@ make bootimage
|
||||
adb reboot bootloader
|
||||
|
||||
// 设置刷机包的路径到环境变量
|
||||
export ANDROID_PRODUCT_OUT=/home/king/android_src/mikrom_out/target/product/blueline
|
||||
export ANDROID_PRODUCT_OUT=~/android_src/mikrom_out/target/product/blueline
|
||||
|
||||
// 查询fastboot是否能成功看到设备
|
||||
fastboot devices
|
||||
@ -520,7 +520,7 @@ fastboot flashall -w
|
||||
adb reboot bootloader
|
||||
|
||||
// 进入编译结果的目录
|
||||
cd /home/king/android_src/mikrom_out/target/product/blueline
|
||||
cd ~/android_src/mikrom_out/target/product/blueline
|
||||
|
||||
// 单独刷入内核
|
||||
fastboot flash boot ./boot.img
|
||||
@ -1039,7 +1039,7 @@ LOG_FILE_PATH = os.path.join(ROOT, "push.log")
|
||||
MANIFEST_XML_PATH_NAME_RE = re.compile(r"<project\s+path=\"(?P<path>[^\"]+)\"\s+name=\"(?P<name>[^\"]+)\"\s+",
|
||||
re.DOTALL)
|
||||
# 设置源码路径
|
||||
SOURCE_CODE_ROOT = "/home/king/android_src/android12_r3/"
|
||||
SOURCE_CODE_ROOT = "~/android_src/android12_r3/"
|
||||
# 设置gitlab仓库的根目录分组
|
||||
REMOTE = "git@192.168.2.189:android12_r3/"
|
||||
manifest_xml_project_paths = []
|
||||
|
@ -1603,7 +1603,7 @@ lunch aosp_blueline-userdebug
|
||||
// 多线程编译
|
||||
make -j$(nproc --all)
|
||||
// 设置刷机目录
|
||||
export ANDROID_PRODUCT_OUT=/home/king/android_src/mikrom_out/target/product/blueline
|
||||
export ANDROID_PRODUCT_OUT=~/android_src/mikrom_out/target/product/blueline
|
||||
// 手机重启进入bootloader
|
||||
adb reboot bootloader
|
||||
// 查看手机是否已经进入bootloader了
|
||||
|
@ -773,7 +773,7 @@ fKzQVKiWNTnDew==
|
||||
openssl x509 -inform DER -in chls.cer -text > d37a53cc.0
|
||||
|
||||
// 将证书拷贝到源码的系统证书目录
|
||||
cp d37a53cc.0 /home/king/android_src/mikrom12_gitlab/system/ca-certificates/files
|
||||
cp d37a53cc.0 ~/android_src/mikrom12_gitlab/system/ca-certificates/files
|
||||
```
|
||||
|
||||
除了这种转换方式,还有另一种更加简便的办法,首先将证书作为用户证书安装,直接将Charles导出的证书上传到手机,在手机中找到`Setting->Security->Encryption & credentials-> install a certificate`最后选中证书完成安装,然后来到用户证书目录` /data/misc/user/0/cacerts-added`中,刚刚导入的证书会被转换好作为用户证书放在这里,将其从手机中传出来,放入源码中的系统证书目录即可。如果你不知道哪个证书名对应你刚刚手动安装的证书,可以直接将全部证书都放入系统证书目录。
|
||||
@ -817,7 +817,7 @@ extracting public keys for embedding
|
||||
|
||||
```
|
||||
// 生成release.pk8
|
||||
/home/king/android_src/mikrom12_gitlab/development/tools/make_key releasekey '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com'
|
||||
~/android_src/mikrom12_gitlab/development/tools/make_key releasekey '/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com'
|
||||
|
||||
// 将 DER 格式的 releasekey.pk8 私钥文件转换为 PEM 格式,并输出到 releasekey.pem 文件中
|
||||
openssl pkcs8 -inform DER -nocrypt -in releasekey.pk8 -out releasekey.pem
|
||||
|
@ -681,9 +681,9 @@ allow untrusted_app_25 mikrom_service:service_manager find;
|
||||
这时如果直接编译会出现下面的错误。
|
||||
|
||||
```
|
||||
FAILED: /home/king/android_src/mikrom_out/target/product/blueline/obj/FAKE/sepolicy_freeze_test_intermediates/sepolicy_freeze_test
|
||||
FAILED: ~/android_src/mikrom_out/target/product/blueline/obj/FAKE/sepolicy_freeze_test_intermediates/sepolicy_freeze_test
|
||||
/bin/bash -c "(diff -rq -x bug_map system/sepolicy/prebuilts/api/31.0/public system/sepolicy/public ) && (diff -rq -x bug_map system/sepolicy/prebui
|
||||
lts/api/31.0/private system/sepolicy/private ) && (touch /home/king/android_src/mikrom_out/target/product/blueline/obj/FAKE/sepolicy_freeze_test_int
|
||||
lts/api/31.0/private system/sepolicy/private ) && (touch ~/android_src/mikrom_out/target/product/blueline/obj/FAKE/sepolicy_freeze_test_int
|
||||
ermediates/sepolicy_freeze_test )"
|
||||
```
|
||||
|
||||
|
@ -560,7 +560,7 @@ private void handleBindApplication(AppBindData data) {
|
||||
```cmake
|
||||
cmake_minimum_required(VERSION 3.18.1)
|
||||
// 设置dobby源码的目录
|
||||
set(DobbyHome /home/king/git_src/Dobby)
|
||||
set(DobbyHome ~/git_src/Dobby)
|
||||
enable_language(C ASM)
|
||||
|
||||
include_directories(
|
||||
@ -603,7 +603,7 @@ SET_OPTION(DOBBY_DEBUG ON)
|
||||
SET_OPTION(DOBBY_GENERATE_SHARED ON)
|
||||
SET_OPTION(Plugin.LinkerLoadCallback OFF)
|
||||
|
||||
add_subdirectory(/home/king/git_src/Dobby dobby.build)
|
||||
add_subdirectory(~/git_src/Dobby dobby.build)
|
||||
|
||||
if(${CMAKE_ANDROID_ARCH_ABI} STREQUAL "arm64-v8a")
|
||||
add_definitions(-DCORE_SO_NAME="${LIBRARY_NAME}")
|
||||
|
@ -449,7 +449,7 @@ Java_cn_mik_nativedemo_MainActivity_stringFromJNI(
|
||||
安装该测试样例后,接着将`ndk`中的`gdbserver`传入手机中。命令如下。
|
||||
|
||||
```
|
||||
adb push '/home/king/Android/Sdk/ndk/23.1.7779620/prebuilt/android-arm64/gdbserver/gdbserver' /data/local/tmp/
|
||||
adb push '~/Android/Sdk/ndk/23.1.7779620/prebuilt/android-arm64/gdbserver/gdbserver' /data/local/tmp/
|
||||
|
||||
adb shell
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user