Android 9 Source Code

$ repo sync -d                        

-d The parameter representation is separated from the current branch and switched to the branch defined in manifest

1 Like

If you need update folder only, not all repo, you can use:

$ repo sync -d .

1 Like
hlm@Server:/users/hlm/test$ repo sync -d linux
Fetching project linux
Skipped fetching project linux (already have persistent ref)
Checking out project linux
Checking out files: 100% (61817/61817), done.
Syncing work tree: 100% (1/1), done.

hlm@Server:/users/hlm/test$ repo sync -d u-boot
Fetching project u-boot
Skipped fetching project u-boot (already have persistent ref)
Checking out project u-boot
Syncing work tree: 100% (1/1), done.

hlm@Server:/users/hlm/test$ la
.repo  kernel  u-boot

@goenjoy
May be Can I get you gps library for the test? What is your email?

I don’t have a GPS library.

I can send to your email.

Another example eg.
Someone else downloaded Rockchip SDK .repo folder for you
now you use the .repo folder on your PC but you don’t have access to the remote repositories because they are password protected.
How to extract already downloaded .repo folder?

If I run:
repo sync

… A new repo command ( 1.23) is available.
… You should upgrade soon:

cp /sdk/.repo/repo/repo /usr/bin/repo

git@www.rockchip.com.cn’s password: git@www.rockchip.com.cn’s password:

It asks for Rockchip ssh server password which I don’t have.
Can you skip this check so it uses local .repo folder(which already is the latest version files) and still extract it?

extract from manifest.xml contains:

<?xml version="1.0" encoding="UTF-8"? <manifest <remote name="aosp" fetch="ssh://git@www.rockchip.com.cn/gerrit/"/ <remote name="rk" fetch="ssh://git@www.rockchip.com.cn/gerrit/"/ <default remote="aosp" revision="refs/tags/android-9.0.0_r33" sync-j="4"/ <project name="RKDocs" path="RKDocs/rk3328" remote="rk" revision="rk3328/box/android-9.0"/ <project name="RKTools" remote="rk" revision="rk3328/atv/develop9.0"/ <project path="external/pcba_rockchip" name="rk/platform/external/rk-pcba-test" groups="pdk" remote="rk" revision="rk33/mid/9.0/develop-drm" / <project groups="pdk-cw-fs,pdk" name="device/common"/ <project groups="pdk" name="device/generic/arm64"/ <project groups="pdk" name="device/generic/armv7-a-neon"/

android.hardware.gnss@1.0-service is absent in out/target/product/rk3399/vendor/bin/hw/ folder…

find out/target/product/ -iname "android.hardware.gnss@1.0-service"
out/target/product/rk3399/symbols/vendor/bin/hw/android.hardware.gnss@1.0-service
out/target/product/rk3399/obj/EXECUTABLES/android.hardware.gnss@1.0-service_intermediates/android.hardware.gnss@1.0-service
out/target/product/rk3399/obj/EXECUTABLES/android.hardware.gnss@1.0-service_intermediates/LINKED/android.hardware.gnss@1.0-service
out/target/product/rk3399/obj/EXECUTABLES/android.hardware.gnss@1.0-service_intermediates/PACKED/android.hardware.gnss@1.0-service

after rebuild with installclean out/target/product/rk3399/vendor/bin/hw/ has android.hardware.gnss@1.0-service

image
https://docs.khadas.com/edge/BuildAndroid.html

Yes, I know it. But library does not work.

Remove the previous modifications and make the following modifications:

cd device\rockchip\rk3399

diff --git a/device.mk b/device.mk
index e49f228..883fc6f 100755
--- a/device.mk
+++ b/device.mk
@@ -23,6 +23,11 @@ PRODUCT_PACKAGES += \
     displayd \
     libion
 
+# GPS HAL
+PRODUCT_PACKAGES += \
+    android.hardware.gnss@1.0-impl \
+    android.hardware.gnss@1.0-service
+
 #enable this for support f2fs with data partion
 BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs

--- a/manifest_hdmi.xml
+++ b/manifest_hdmi.xml
@@ -231,6 +231,14 @@
         </interface>
         <fqname>@1.0::IHdmiCec/default</fqname>
     </hal>
-
+    <hal format="hidl">
+       <name>android.hardware.gnss</name>
+       <transport>hwbinder</transport>
+       <version>1.0</version>
+       <interface>
+           <name>IGnss</name>
+           <instance>default</instance>
+       </interface>
+    </hal>
 </manifest>
5 Likes

Thank you, @goenjoy
It’s work!

3 Likes