- 提示缺少 libncurses.so.5,找到对于的库,建立软链接
find / -name libncurses.so
/usr/lib/x86_64-linux-gnu/libncurses.so
cd /usr/lib/x86_64-linux-gnu/
ls -al libncurses*
sudo ln -s libncurses.so.6.4 libncurses.so.5
sudo ln -s libncurses.so.6.4 libtinfo.so.5find / -name libncurses.so
/usr/lib/x86_64-linux-gnu/libncurses.so
cd /usr/lib/x86_64-linux-gnu/
ls -al libncurses*
sudo ln -s libncurses.so.6.4 libncurses.so.5
sudo ln -s libncurses.so.6.4 libtinfo.so.5| FROM ubuntu:latest | |
| RUN apt update && apt install -y locales && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 | |
| ENV LANG=en_US.utf8 | |
| RUN apt upgrade -y | |
| RUN apt install -y \ | |
| libfontconfig1-dev \ | |
| libfreetype-dev \ | |
| libx11-dev \ | |
| libx11-xcb-dev \ | |
| libxcb-cursor-dev \ |
cfm880@cfm880:~$ adb devices
List of devices attached
93CY18K0U no permissions (missing udev rules? user is in the plugdev group); see [http://developer.android.com/tools/device.html]
cfm880@cfm880:~$ lsusb
Bus 002 Device 002: ID 18d1:4ee7 Google Inc. Nexus/Pixel Device (charging + debug)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0e0f:0008 VMware, Inc. Virtual Bluetooth Adapter
Bus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub| project art/ | |
| diff --git a/runtime/mem_map.cc b/runtime/mem_map.cc | |
| index b9d51c1125..f034a3db4f 100644 | |
| --- a/runtime/mem_map.cc | |
| +++ b/runtime/mem_map.cc | |
| @@ -504,6 +504,11 @@ MemMap* MemMap::MapFileAtAddress(uint8_t* expected_ptr, | |
| DCHECK(ContainedWithinExistingMap(expected_ptr, byte_count, error_msg)) | |
| << ((error_msg != nullptr) ? *error_msg : std::string()); | |
| flags |= MAP_FIXED; |
| project frameworks/base/ | |
| diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java | |
| index db5dcc5c264b..404db6dfaf64 100644 | |
| --- a/core/java/android/app/Activity.java | |
| +++ b/core/java/android/app/Activity.java | |
| @@ -741,6 +741,7 @@ public class Activity extends ContextThemeWrapper | |
| OnCreateContextMenuListener, ComponentCallbacks2, | |
| Window.OnWindowDismissedCallback, | |
| AutofillManager.AutofillClient, ContentCaptureManager.ContentCaptureClient { |
| wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
| #!/bin/bash | |
| function gbk2utf(){ | |
| file="$1" | |
| echo "处理文件 '$file' ..." | |
| iconv -f gb2312 -t UTF-8 -c "$file" > tmp | |
| mv -f tmp "$file" | |
| } | |
| function getdir(){ | |
| for element in `ls $1` |
| #!/usr/bin/env bash | |
| git_hash=kkkk | |
| if [ -z $git_hash ]; | |
| then | |
| echo "$i 是空字符串" | |
| else | |
| git reset --hard ${git_hash} | |
| fi |
| #!/usr/bin/env bash | |
| devices_info=`adb devices` | |
| echo $devices_info | |
| devices_info=`echo ${devices_info} | sed 's/^List of devices attached//'` | |
| devices_info=(${devices_info}) | |
| device_names="" | |
| for(( i=0;i<${#devices_info[@]};i++)); | |
| do | |
| if [ $((i%2)) == 0 ]; then | |
| device_names=${device_names}" "${devices_info[i]} |
| #!/usr/bin/env bash | |
| devices_info=`adb devices` | |
| echo $devices_info | |
| devices_info=`echo ${devices_info} | sed 's/^List of devices attached//'` | |
| devices_info=(${devices_info}) | |
| device_names="" | |
| for(( i=0;i<${#devices_info[@]};i++)); | |
| do | |
| if [ $((i%2)) == 0 ]; then | |
| device_names=${device_names}" "${devices_info[i]} |