How to get App crashed log.

Here are the ways to get APP crash log both on iOS and aOS devices, please have a view:

iOS:

The crash log is auto-catched on iOS device:

阅读全文

Install apk build on Android Wear OS watch.

Please follow below steps to install the NRC-Wear build on Huawei watch 2. Please let me know if you have any questions.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Steps:

1.       Pair your Huawei watch 2 to any of your android phone (You can install Android Wear app to pair it )

2.       Be in the Chinese locale on your Phone and watch

3.       Go to watch settings and select about

4.       In about, Tap 7 times on the build number (Developer options will be enabled)

5.       Now go to Developer options in the settings on Watch and turn on options for ADB debugging , Debug over Bluetooth

6.       Open Android Wear app on your phone and select settings gear icon on upper right hand corner.

7.       Scroll through the menu until you get to “Device over Bluetooth” section.

8.       If you have multiple devices paired to same phone, select the wearable to connect to “Device to Debug.”"

9.       Enable Debugging over Bluetooth.

10.   You should see “Host:disconnected, Target: connected” text.

11.   Now on your terminal type following commands:

./adb forward tcp:4444 localabstract:/adb-hub

./adb connect localhost:4444

./adb devices

12.   The text on the phone should change to “Host: connected, Target: connected.”"

13.   When you run the adb devices command, two devices should appear in the list."

14.   Now install apk file using the below command

adb -s localhost:4444 install {path of apk}

15.   It will take 5-10mins after you enter step 14 command and it will success if you are able install the build successfully



In step 11: we should type cmd commands:

adb forward tcp:4444 localabstract:/adb-hub
adb connect 127.0.0.1:4444
adb devices

In step 14: the commandsshould be:

adb -s 127.0.0.1:4444 install D:\Nike\NRC\NRCWear\NRC-Wear-1801000400-172-RC-Signed.apk

If we occurred to some error, please try below methods:

adb kill-server
adb start-server

阅读全文

Delete the banding relationship with social accounts.

1. 登录获取以下信息(绑定登录app时,使用Charles抓取以下信息)

1
2
3
4
5
6
7
8
9
10

{

         "user_id": "78388364-eb6c-4a6b-bb69-fff6842077ed",
         "access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6ImU3O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iOiJyMFBEc1V4VmlyQXBIQXZQYWl3WUtYQTBSc1U3SU9zZiIsIm9yZyI6InByb2QiLCJzdWIiOiI3ODM4ODM2NC1lYjZjLTRhNmItYmI2OS1mZmY2ODQyMDc3ZWQiLCJzYnQiOiJuaWtlOnBsdXMifQ.Ma1OB9SoV6w3PUSnBeaKt6vP_19bKlG-NUVBnJw5Hk4tmW8nEb4Iloq_nXSXJhAV7S_9b7hJ9kADHjitTNaCu4XTof-vrcPrkPFlITcxz-VlTQp6yAoIc1QwCs9xvJjDAYQCEnN6YZsvFSZ9ECs6Zz5ms08LXqH0P8SQPxXetKfAQNrjZnzWGdSULLxVnT9V0EMN0iSryn9eJwqqLkt7gR_tR1KhyURb6x8oeAmeaBmNidBiKJ0vRlLFqv8xDYsgwZU4xAlcjdePl1KTDWjlAH954DXBwz3J_V7-bZQQdswIUzWaMCxVff9VocfRqJM9ArmKmbXrmSQ3VxXzfprtoA",
         "expires_in": "3600",
         "token_type": "bearer"

}

阅读全文

Git 常用命令

1
2
3
4
5
6
7
8
9
10
11
12
13
git init //在当前目录新建一个Git代码库

git add . // 添加改动文件到暂存区

git rm --cached [file] //停止追踪指定文件,但该文件会保留在工作区(如果添加ignorance文件无效的话)

git commit -m [message] //提交暂存区到仓库区

git checkout . // 恢复暂存区的所有文件到工作区

// 暂时将未提交的变化移除,稍后再移入
git stash
git stash pop

阅读全文

HEXO使用介绍

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

阅读全文