SC200 R-EM Android 10 Repo Init failed

epo.git --repo-branch=caf-stable
Downloading Repo source from git://
remote: Enumerating objects: 43, done.
remote: Counting objects: 100% (43/43), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 6296 (delta 19), reused 0 (delta 0), pack-reused 6253
repo: error: “git” failed with exit status 1
cwd: /home/aravinth/Project/Quectel/AndroidQ/.repo/repo
cmd: [‘git’, ‘tag’, ‘-v’, ‘v1.12.16’]

object 666d534636d262cbfd971509dd0f0be0cddb2e11
type commit
tag v1.12.16
tagger Conley Owens 1398976458 -0700

repo 1.12.16

gpg: Signature made Friday 02 May 2014 02:04:18 AM IST
gpg: using RSA key 67B7E448692B382C
gpg: Can’t check signature: No public key
fatal: cloning the git-repo repository failed, will remove ‘.repo/repo’

I have fixed the above mentioned issue, After that I’m below error on same repo init.
I’m using Ubuntu 20.4

Traceback (most recent call last):
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/”, line 500, in
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/”, line 476, in _Main
result = repo._Run(argv) or 0
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/”, line 155, in _Run
result = cmd.Execute(copts, cargs)
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/subcmds/”, line 390, in Execute
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/subcmds/”, line 236, in _SyncManifest
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/”, line 2634, in MetaBranchSwitch
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/”, line 1170, in Sync_LocalHalf
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/”, line 2224, in _InitWorkTree
_lwrite(os.path.join(dotgit, HEAD), ‘%s\n’ % self.GetRevisionId())
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/”, line 51, in _lwrite
TypeError: a bytes-like object is required, not ‘str’

have you solved this issue already?

No, I have fixed the first error of

gpg: using RSA key 67B7E448692B382C
gpg: Can’t check signature: No public key

But I haven’t fixed the second error
TypeError: a bytes-like object is required, not ‘str’

While doing repo init.

Can you plz help to fix.

it looks like something wrong with the repo command, could just try the git command?

This is the command I’m using for repo init and I’m getting the error.

repo init -u -b release -m LA.UM.8.6.2.r2-02400-89xx.0.xml --repo-url=git:// --repo-branch=caf-stable

What command should I use to download repo.?
curl > ~/bin/repo

whay u want to download is the source code of SC200 R-EM , right?

Have you connected the local FAE or sales? they will give you the local git account and you could download from that

Yes, I want to download for SC200 R-EM Android 10 code only.
From Quectel team we have received some SDK and documents, In that they mentioned to download from above link.

were you accroding to the user guide inside the documents? there must be the describ of how to get source codes by git command

And we always use git clone to get rather than repo .

do you have git account?

For source code download we just received text document to get the code.

1:Downloader android source code from google
   	   repo init -u -b release -m LA.UM.8.6.2.r2-02400-89xx.0.xml --repo-url=git:// --repo-branch=caf-stable
       repo sync
2:Merge Quectel SDK Code
         tar -zxvf  SC200R_Android10.0_Quectel_SDK_r023_20200731.tar.gz
         cp  -rf  SC200R_Android10.0_Quectel_SDK_r023_20200731/*   <android source code>/ 
3: Build project
     source build/
     lunch msm8937_32-userdebug
		 make -j8

This what its contain.

Yaah, I have git account “

Any update on this.?

I am having the exact same issues. I managed to resolve the first one (no public key gpg) and am also stuck on the

TypeError: a bytes-like object is required, not ‘str’

I am also using Ubuntu 20.04 and am following the Quectel document I received to the point. Like I said the commands I am running are exactly the same.

Hi, sorry for the late reply, I will try today to check it

Today I will try, thank you for your posting.

Hi Job.Bao,
Waiting for your update.

@robertlong-Q could you pls to check the repo command above and give me a hand?

A possible workaround is to use

repo init -u -b release -m LA.UM.6.7.r1-07200-8x09.0.xml

without the --repo-url and --repo-branch flags. The problem there is that you will end up with a huge repository (150+GB) and everything will take forever (e.g. repo sync takes more than 10 hours).

Cheers, Jure

Hi @Job.Bao-Q,
Is this correct method to sync the code.?