dannybuntu

com.greenaddress.greenbits_android_wallet_2024-05-17-17-43

May 17th, 2024
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 156.87 KB | None | 0 0
  1. danny@lw10:~/work/walletScrutinyCom$ ./test.sh --apk /home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk
  2. +++ dirname ./test.sh
  3. ++ cd .
  4. ++ pwd
  5. + SCRIPT_DIR=/home/danny/work/walletScrutinyCom/scripts
  6. + TEST_ANDROID_DIR=/home/danny/work/walletScrutinyCom/scripts/test/android
  7. + wsContainer=docker.io/walletscrutiny/android:5
  8. + takeUserActionCommand='echo "CTRL-D to continue";
  9.  bash'
  10. + shouldCleanup=false
  11. + [[ 2 -gt 0 ]]
  12. + case $1 in
  13. + downloadedApk=/home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk
  14. + shift
  15. + shift
  16. + [[ 0 -gt 0 ]]
  17. + [[ /home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk =~ ^/.* ]]
  18. + '[' '!' -f /home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk ']'
  19. ++ sha256sum /home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk
  20. ++ awk '{print $1;}'
  21. + appHash=810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b
  22. + fromPlayFolder=/tmp/fromPlay810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b
  23. + rm -rf /tmp/fromPlay810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b
  24. ++ getSigner /home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk
  25. +++ dirname /home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk
  26. ++ DIR=/home/danny/work/apk
  27. +++ basename /home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk
  28. ++ BASE=com.greenaddress.greenbits_android_wallet_v22000428.apk
  29. +++ podman run --rm --volume /home/danny/work/apk:/mnt:ro --workdir /mnt docker.io/walletscrutiny/android:5 apksigner verify --print-certs com.greenaddress.greenbits_android_wallet_v22000428.apk
  30. +++ grep 'Signer #1 certificate SHA-256'
  31. +++ awk '{print $6}'
  32. ++ s=32f9cc00b13fbeace51e2fb51df482044e42ad34a9bd912f179fedb16a42970e
  33. ++ echo 32f9cc00b13fbeace51e2fb51df482044e42ad34a9bd912f179fedb16a42970e
  34. + signer=32f9cc00b13fbeace51e2fb51df482044e42ad34a9bd912f179fedb16a42970e
  35. + echo 'Extracting APK content ...'
  36. Extracting APK content ...
  37. + containerApktool /tmp/fromPlay810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b /home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk
  38. + targetFolder=/tmp/fromPlay810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b
  39. + app=/home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk
  40. ++ dirname /tmp/fromPlay810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b
  41. + targetFolderParent=/tmp
  42. ++ basename /tmp/fromPlay810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b
  43. + targetFolderBase=fromPlay810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b
  44. ++ dirname /home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk
  45. + appFolder=/home/danny/work/apk
  46. ++ basename /home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk
  47. + appFile=com.greenaddress.greenbits_android_wallet_v22000428.apk
  48. + podman run --rm --volume /tmp:/tfp --volume /home/danny/work/apk:/af:ro docker.io/walletscrutiny/android:5 sh -c 'apktool d -o "/tfp/fromPlay810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b" "/af/com.greenaddress.greenbits_android_wallet_v22000428.apk"'
  49. I: Using Apktool 2.4.1 on com.greenaddress.greenbits_android_wallet_v22000428.apk
  50. I: Loading resource table...
  51. I: Decoding AndroidManifest.xml with resources...
  52. I: Loading resource table from file: /root/.local/share/apktool/framework/1.apk
  53. I: Regular manifest package...
  54. I: Decoding file-resources...
  55. I: Decoding values */* XMLs...
  56. I: Baksmaling classes.dex...
  57. I: Baksmaling classes2.dex...
  58. I: Baksmaling classes3.dex...
  59. I: Baksmaling classes4.dex...
  60. I: Copying assets and libs...
  61. I: Copying unknown files...
  62. I: Copying original files...
  63. I: Copying META-INF/services directory
  64. + return 0
  65. ++ cat /tmp/fromPlay810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b/AndroidManifest.xml
  66. ++ head -n 1
  67. ++ sed 's/.*package=\"//g'
  68. ++ sed 's/\".*//g'
  69. + appId=com.greenaddress.greenbits_android_wallet
  70. ++ cat /tmp/fromPlay810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b/apktool.yml
  71. ++ grep versionName
  72. ++ sed 's/.*\: //g'
  73. ++ sed 's/'\''//g'
  74. + versionName=4.0.28
  75. ++ cat /tmp/fromPlay810f2008edef117d0cf144874d7433636590f54af1e0689540cd69a47d42e24b/apktool.yml
  76. ++ grep versionCode
  77. ++ sed 's/.*\: //g'
  78. ++ sed 's/'\''//g'
  79. + versionCode=22000428
  80. + workDir=/tmp/test_com.greenaddress.greenbits_android_wallet
  81. + '[' -z com.greenaddress.greenbits_android_wallet ']'
  82. + '[' -z 4.0.28 ']'
  83. + '[' -z 22000428 ']'
  84. + echo
  85.  
  86. + echo 'Testing "/home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk" (com.greenaddress.greenbits_android_wallet version 4.0.28)'
  87. Testing "/home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk" (com.greenaddress.greenbits_android_wallet version 4.0.28)
  88. + echo
  89.  
  90. + testScript=/home/danny/work/walletScrutinyCom/scripts/test/android/com.greenaddress.greenbits_android_wallet.sh
  91. + '[' '!' -f /home/danny/work/walletScrutinyCom/scripts/test/android/com.greenaddress.greenbits_android_wallet.sh ']'
  92. + source /home/danny/work/walletScrutinyCom/scripts/test/android/com.greenaddress.greenbits_android_wallet.sh
  93. ++ repo=https://github.com/Blockstream/green_android/
  94. ++ tag=release_4.0.28
  95. ++ builtApk=/tmp/test_com.greenaddress.greenbits_android_wallet/app/green/build/outputs/apk/productionGoogle/release/BlockstreamGreen-v4.0.28-productionGoogle-release-unsigned.apk
  96. + prepare
  97. + echo 'Testing com.greenaddress.greenbits_android_wallet from https://github.com/Blockstream/green_android/ revision release_4.0.28 (revisionOverride: '\'''\'')...'
  98. Testing com.greenaddress.greenbits_android_wallet from https://github.com/Blockstream/green_android/ revision release_4.0.28 (revisionOverride: '')...
  99. + rm -rf /tmp/test_com.greenaddress.greenbits_android_wallet
  100. + mkdir -p /tmp/test_com.greenaddress.greenbits_android_wallet
  101. + cd /tmp/test_com.greenaddress.greenbits_android_wallet
  102. + echo 'Trying to clone …'
  103. Trying to clone …
  104. + '[' -n '' ']'
  105. + git clone --quiet --branch release_4.0.28 --depth 1 https://github.com/Blockstream/green_android/ app
  106. Note: switching to 'a14807e77150f00764f5579ccbe6c469d4257dd5'.
  107.  
  108. You are in 'detached HEAD' state. You can look around, make experimental
  109. changes and commit them, and you can discard any commits you make in this
  110. state without impacting any branches by switching back to a branch.
  111.  
  112. If you want to create a new branch to retain commits you create, you may
  113. do so (now or later) by using -c with the switch command. Example:
  114.  
  115.   git switch -c <new-branch-name>
  116.  
  117. Or undo this operation with:
  118.  
  119.   git switch -
  120.  
  121. Turn off this advice by setting config variable advice.detachedHead to false
  122.  
  123. + cd app
  124. ++ git log -n 1 --pretty=oneline
  125. ++ sed 's/ .*//g'
  126. + commit=a14807e77150f00764f5579ccbe6c469d4257dd5
  127. + test
  128. + podman run -it --volume /tmp/test_com.greenaddress.greenbits_android_wallet/app:/mnt --rm docker.io/walletscrutiny/android:5 bash -x -c 'chmod 777 /tmp/;
  129.      cd /mnt;
  130.      apt update;
  131.      DEBIAN_FRONTEND=noninteractive apt install -y curl jq openjdk-11-jdk;
  132.      update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java;
  133.      update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-amd64/bin/javac;
  134.      yes | /opt/android-sdk/tools/bin/sdkmanager "build-tools;34.0.0";
  135.      if [ ! -f ./gradlew ]; then
  136.        echo '\''gradlew script not found in project directory'\'';
  137.        exit 1;
  138.      fi
  139.      ./gradlew useBlockstreamKeys --info | tee gradle-useBlockstreamKeys.log;
  140.      ./gradlew -x test clean assembleProductionGoogleRelease --info | tee gradle-assembleProductionGoogleRelease.log;
  141.      echo "CTRL-D to continue";
  142.  bash'
  143. + chmod 777 /tmp/
  144. + cd /mnt
  145. + apt update
  146. Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
  147. Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]                    
  148. Get:3 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [3608 kB]
  149. Get:4 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [3669 kB]
  150. Get:5 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [29.8 kB]
  151. Get:6 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1205 kB]    
  152. Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                  
  153. Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
  154. Get:9 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
  155. Get:10 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
  156. Get:11 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
  157. Get:12 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
  158. Get:13 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [32.5 kB]
  159. Get:14 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1502 kB]
  160. Get:15 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [3758 kB]
  161. Get:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [4143 kB]
  162. Get:17 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
  163. Get:18 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
  164. Fetched 31.5 MB in 3s (10.3 MB/s)                            
  165. Reading package lists... Done
  166. Building dependency tree      
  167. Reading state information... Done
  168. 111 packages can be upgraded. Run 'apt list --upgradable''Etc/UTC'
  169. Local time is now:      Fri May 17 09:40:59 UTC 2024.
  170. Universal Time is now:  Fri May 17 09:40:59 UTC 2024.
  171. Run 'dpkg-reconfigure tzdata' if you wish to change it.
  172.  
  173. Setting up libxcb-present0:amd64 (1.14-2) ...
  174. Setting up libasound2-data (1.2.2-2.1ubuntu2.5) ...
  175. Setting up xtrans-dev (1.4.0-1) ...
  176. Setting up libfontenc1:amd64 (1:1.1.4-0ubuntu1) ...
  177. Setting up libglib2.0-data (2.64.6-1~ubuntu20.04.7) ...
  178. Setting up libxcb-sync1:amd64 (1.14-2) ...
  179. Setting up libllvm12:amd64 (1:12.0.0-3ubuntu1~20.04.5) ...
  180. Setting up libsensors5:amd64 (1:3.6.0-2ubuntu1.1) ...
  181. Setting up libglapi-mesa:amd64 (21.2.6-0ubuntu0.1~20.04.2) ...
  182. Setting up libvulkan1:amd64 (1.2.131.2-1) ...
  183. Setting up libxcb-dri2-0:amd64 (1.14-2) ...
  184. Setting up libgif7:amd64 (5.1.9-1) ...
  185. Setting up libatk1.0-data (2.35.1-1ubuntu2) ...
  186. Setting up fonts-dejavu-extra (2.37-1) ...
  187. Setting up alsa-topology-conf (1.2.2-1) ...
  188. Setting up libxshmfence1:amd64 (1.3-1) ...
  189. Setting up libxcb-randr0:amd64 (1.14-2) ...
  190. Setting up libasound2:amd64 (1.2.2-2.1ubuntu2.5) ...
  191. Setting up libcurl4:amd64 (7.68.0-1ubuntu2.22) ...
  192. Setting up libx11-6:amd64 (2:1.6.9-2ubuntu1.6) ...
  193. Setting up libharfbuzz0b:amd64 (2.6.4-1ubuntu4.2) ...
  194. Setting up xorg-sgml-doctools (1:1.11-1) ...
  195. Setting up libatk1.0-0:amd64 (2.35.1-1ubuntu2) ...
  196. Setting up curl (7.68.0-1ubuntu2.22) ...
  197. Setting up libxkbfile1:amd64 (1:1.1.0-1) ...
  198. Setting up libdrm-common (2.4.107-8ubuntu1~20.04.2) ...
  199. Setting up libelf1:amd64 (0.176-1.1ubuntu0.1) ...
  200. Setting up libxcomposite1:amd64 (1:0.4.5-1) ...
  201. Setting up libsm6:amd64 (2:1.2.3-1) ...
  202. Setting up libonig5:amd64 (6.9.4-1) ...
  203. Setting up libwayland-client0:amd64 (1.18.0-1ubuntu0.1) ...
  204. Setting up x11proto-dev (2019.2-1ubuntu1) ...
  205. Setting up libxft2:amd64 (2.3.3-0ubuntu1) ...
  206. Setting up libxau-dev:amd64 (1:1.0.9-0ubuntu1) ...
  207. Setting up libxpm4:amd64 (1:3.5.12-1ubuntu0.20.04.2) ...
  208. Setting up libice-dev:amd64 (2:1.0.10-0ubuntu1) ...
  209. Setting up libsm-dev:amd64 (2:1.2.3-1) ...
  210. Setting up libjq1:amd64 (1.6-1ubuntu0.20.04.1) ...
  211. Setting up libicu66:amd64 (66.1-2ubuntu2.1) ...
  212. Setting up openjdk-11-jre-headless:amd64 (11.0.22+7-0ubuntu2~20.04.1) ...
  213. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/java to provide /usr/bin/java (java) in auto mode
  214. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
  215. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
  216. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
  217. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
  218. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
  219. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
  220. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
  221. Setting up libxxf86dga1:amd64 (2:1.1.5-0ubuntu1) ...
  222. Setting up openjdk-11-jdk-headless:amd64 (11.0.22+7-0ubuntu2~20.04.1) ...
  223. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jar to provide /usr/bin/jar (jar) in auto mode
  224. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
  225. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in auto mode
  226. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
  227. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/javap to provide /usr/bin/javap (javap) in auto mode
  228. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
  229. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
  230. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jdeprscan to provide /usr/bin/jdeprscan (jdeprscan) in auto mode
  231. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
  232. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jfr to provide /usr/bin/jfr (jfr) in auto mode
  233. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jimage to provide /usr/bin/jimage (jimage) in auto mode
  234. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
  235. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jlink to provide /usr/bin/jlink (jlink) in auto mode
  236. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
  237. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jmod to provide /usr/bin/jmod (jmod) in auto mode
  238. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jps to provide /usr/bin/jps (jps) in auto mode
  239. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
  240. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jshell to provide /usr/bin/jshell (jshell) in auto mode
  241. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
  242. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
  243. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
  244. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
  245. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
  246. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jaotc to provide /usr/bin/jaotc (jaotc) in auto mode
  247. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jhsdb to provide /usr/bin/jhsdb (jhsdb) in auto mode
  248. Setting up libatspi2.0-0:amd64 (2.36.0-2) ...
  249. Setting up libxxf86vm1:amd64 (1:1.1.4-1build1) ...
  250. Setting up libatk-bridge2.0-0:amd64 (2.34.2-0ubuntu2~20.04.1) ...
  251. Setting up libxdmcp-dev:amd64 (1:1.1.3-0ubuntu1) ...
  252. Setting up libxfixes3:amd64 (1:5.0.3-2) ...
  253. Setting up x11proto-core-dev (2019.2-1ubuntu1) ...
  254. Setting up libxinerama1:amd64 (2:1.1.4-2) ...
  255. Setting up libxv1:amd64 (2:1.0.11-1) ...
  256. Setting up libxrandr2:amd64 (2:1.5.2-0ubuntu1) ...
  257. Setting up libxt6:amd64 (1:1.1.5-1) ...
  258. Setting up libdrm2:amd64 (2.4.107-8ubuntu1~20.04.2) ...
  259. Setting up at-spi2-core (2.36.0-2) ...
  260. Setting up jq (1.6-1ubuntu0.20.04.1) ...
  261. Setting up libxml2:amd64 (2.9.10+dfsg-5ubuntu0.20.04.7) ...
  262. Setting up libdrm-amdgpu1:amd64 (2.4.107-8ubuntu1~20.04.2) ...
  263. Setting up mesa-vulkan-drivers:amd64 (21.2.6-0ubuntu0.1~20.04.2) ...
  264. Setting up libxmu6:amd64 (2:1.1.3-0ubuntu1) ...
  265. Setting up libdrm-nouveau2:amd64 (2.4.107-8ubuntu1~20.04.2) ...
  266. Setting up libxcb1-dev:amd64 (1.14-2) ...
  267. Setting up libdrm-radeon1:amd64 (2.4.107-8ubuntu1~20.04.2) ...
  268. Setting up libdrm-intel1:amd64 (2.4.107-8ubuntu1~20.04.2) ...
  269. Setting up libgl1-mesa-dri:amd64 (21.2.6-0ubuntu0.1~20.04.2) ...
  270. Setting up libx11-dev:amd64 (2:1.6.9-2ubuntu1.6) ...
  271. Setting up libxaw7:amd64 (2:1.0.13-1) ...
  272. Setting up libxt-dev:amd64 (1:1.1.5-1) ...
  273. Setting up shared-mime-info (1.15-1) ...
  274. Setting up libglx-mesa0:amd64 (21.2.6-0ubuntu0.1~20.04.2) ...
  275. Setting up libglx0:amd64 (1.3.2-1~ubuntu0.20.04.2) ...
  276. Setting up libgl1:amd64 (1.3.2-1~ubuntu0.20.04.2) ...
  277. Setting up x11-utils (7.7+5) ...
  278. Setting up libatk-wrapper-java (0.37.1-1) ...
  279. Setting up openjdk-11-jre:amd64 (11.0.22+7-0ubuntu2~20.04.1) ...
  280. Setting up libatk-wrapper-java-jni:amd64 (0.37.1-1) ...
  281. Setting up openjdk-11-jdk:amd64 (11.0.22+7-0ubuntu2~20.04.1) ...
  282. update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
  283. Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
  284. + update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
  285. + update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-amd64/bin/javac
  286. + yes
  287. + /opt/android-sdk/tools/bin/sdkmanager 'build-tools;34.0.0'
  288. Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
  289.     at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
  290.     at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
  291.     at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
  292.     at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
  293.     at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
  294. Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
  295.     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
  296.     at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
  297.     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)
  298.     ... 5 more
  299. + '[' '!' -f ./gradlew ']'
  300. + ./gradlew useBlockstreamKeys --info
  301. + tee gradle-useBlockstreamKeys.log
  302. Downloading https://services.gradle.org/distributions/gradle-8.7-bin.zip
  303. ............10%.............20%.............30%.............40%............50%.............60%.............70%.............80%.............90%............100%
  304. Initialized native services in: /root/.gradle/native
  305. Initialized jansi services in: /root/.gradle/native
  306.  
  307. Welcome to Gradle 8.7!
  308.  
  309. Here are the highlights of this release:
  310.  - Compiling and testing with Java 22
  311.  - Cacheable Groovy script compilation
  312.  - New methods in lazy collection properties
  313.  
  314. For more details see https://docs.gradle.org/8.7/release-notes.html
  315.  
  316. Received JVM installation metadata from '/usr/lib/jvm/java-11-openjdk-amd64': {JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64, JAVA_VERSION=11.0.22, JAVA_VENDOR=Ubuntu, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=11.0.22+7-post-Ubuntu-0ubuntu220.04.1, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=11.0.22+7-post-Ubuntu-0ubuntu220.04.1, VM_VENDOR=Ubuntu, OS_ARCH=amd64}
  317. Removing 0 daemon stop events from registry
  318. Starting a Gradle Daemon (subsequent builds will be faster)
  319. Starting process 'Gradle build daemon'. Working directory: /root/.gradle/daemon/8.7 Command: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -XX:+HeapDumpOnOutOfMemoryError --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx8g -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /root/.gradle/wrapper/dists/gradle-8.7-bin/bhs2wmbdwecv87pi65oeuq5iu/gradle-8.7/lib/gradle-launcher-8.7.jar -javaagent:/root/.gradle/wrapper/dists/gradle-8.7-bin/bhs2wmbdwecv87pi65oeuq5iu/gradle-8.7/lib/agents/gradle-instrumentation-agent-8.7.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.7
  320. Successfully started process 'Gradle build daemon'
  321. An attempt to start the daemon took 1.472 secs.
  322. The client will now receive all logging from the daemon (pid: 1268). The daemon log file: /root/.gradle/daemon/8.7/daemon-1268.out.log
  323. Starting build in new daemon [memory: 8 GiB]
  324. Using 4 worker leases.
  325. Received JVM installation metadata from '/usr/lib/jvm/java-11-openjdk-amd64': {JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64, JAVA_VERSION=11.0.22, JAVA_VENDOR=Ubuntu, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=11.0.22+7-post-Ubuntu-0ubuntu220.04.1, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=11.0.22+7-post-Ubuntu-0ubuntu220.04.1, VM_VENDOR=Ubuntu, OS_ARCH=amd64}
  326. Watching the file system is configured to be enabled if available
  327. Not watching /mnt since the file system is not supported
  328. File system watching is active
  329. Starting Build
  330. Generating /root/.gradle/caches/8.7/generated-gradle-jars/gradle-api-8.7.jar
  331. Cannot use Kotlin build script compile avoidance with /root/.gradle/caches/8.7/generated-gradle-jars/gradle-api-8.7.jar: class org/gradle/configurationcache/extensions/AutoCloseableExtensionsKt: inline fun useToRun(): compile avoidance is not supported with public inline functions
  332. Cannot use Kotlin build script compile avoidance with /root/.gradle/wrapper/dists/gradle-8.7-bin/bhs2wmbdwecv87pi65oeuq5iu/gradle-8.7/lib/gradle-kotlin-dsl-extensions-8.7.jar: class org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions_1cbh1oqkvm762j10e96dawuh5Kt: inline fun domainObjectContainer(): compile avoidance is not supported with public inline functions
  333. Cannot use Kotlin build script compile avoidance with /root/.gradle/wrapper/dists/gradle-8.7-bin/bhs2wmbdwecv87pi65oeuq5iu/gradle-8.7/lib/gradle-kotlin-dsl-8.7.jar: class org/gradle/kotlin/dsl/ArtifactHandlerScope: inline fun invoke(): compile avoidance is not supported with public inline functions
  334. Caching disabled for Kotlin DSL script compilation (Settings/TopLevel/stage1) because:
  335.   Build cache is disabled
  336. Caching disabled for Kotlin DSL script compilation (Settings/TopLevel/stage2) because:
  337.   Build cache is disabled
  338. Settings evaluated using settings file '/mnt/settings.gradle.kts'.
  339. Caching disabled for generation of dependency accessors for libs because:
  340.   Build cache is disabled
  341. Type-safe project accessors is an incubating feature.
  342. Caching disabled for generation of project accessors because:
  343.   Build cache is disabled
  344. Projects loaded. Root project using build file '/mnt/build.gradle.kts'.
  345. Included projects: [root project 'Blockstream_Green', project ':base', project ':common', project ':compose', project ':gdk', project ':gms', project ':green', project ':hardware', project ':jade', project ':no-gms']
  346.  
  347. > Configure project :
  348. Evaluating root project 'Blockstream_Green' using build file '/mnt/build.gradle.kts'.
  349. Caching disabled for Kotlin DSL version catalog plugin accessors for classpath '4472935700f39495cde05cda36dc7fe0' because:
  350.   Build cache is disabled
  351. Caching disabled for Kotlin DSL plugin specs accessors for classpath '4472935700f39495cde05cda36dc7fe0''t support watching. The relevant state was discarded to ensure changes to these locations are properly detected. You can override this by explicitly enabling file system watching.
  352.  
  353. FAILURE: Build failed with an exception.
  354.  
  355. * What went wrong:
  356. A problem occurred configuring root project 'Blockstream_Green'.
  357. > Could not resolve all artifacts for configuration ':classpath'.
  358.   > Could not resolve androidx.navigation:navigation-safe-args-gradle-plugin:2.7.7.
  359.     Required by:
  360.         project :
  361.      > No matching variant of androidx.navigation:navigation-safe-args-gradle-plugin:2.7.7 was found. The consumer was configured to find a library for use during runtime, compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.7' but:
  362.          - Variant 'apiElements' declares a library, packaged as a jar, and its dependencies declared externally:
  363.              - Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 11
  364.              - Other compatible attribute:
  365.                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.7')
  366.           - Variant 'runtimeElements' declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
  367.               - Incompatible because this component declares a component, compatible with Java 17 and the consumer needed a component, compatible with Java 11
  368.               - Other compatible attribute:
  369.                   - Doesn't say anything about org.gradle.plugin.api-version (required '8.7')
  370.          - Variant 'sourcesElements' declares a component for use during runtime, and its dependencies declared externally:
  371.              - Incompatible because this component declares documentation and the consumer needed a library
  372.              - Other compatible attributes:
  373.                  - Doesn't say anything about its elements (required them packaged as a jar)
  374.                   - Doesn't say anything about its target Java version (required compatibility with Java 11)
  375.                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.7')
  376.  
  377. * Try:
  378. > Review the variant matching algorithm at https://docs.gradle.org/8.7/userguide/variant_attributes.html#sec:abm_algorithm.
  379. > No matching variant errors are explained in more detail at https://docs.gradle.org/8.7/userguide/variant_model.html#sub:variant-no-match.
  380. > Run with --stacktrace option to get the stack trace.
  381. > Run with --debug option to get more log output.
  382. > Run with --scan to get full insights.
  383. > Get more help at https://help.gradle.org.
  384.  
  385. BUILD FAILED in 48s
  386. + ./gradlew -x test clean assembleProductionGoogleRelease --info
  387. + tee gradle-assembleProductionGoogleRelease.log
  388. Initialized native services in: /root/.gradle/native
  389. Initialized jansi services in: /root/.gradle/native
  390. Received JVM installation metadata from '/usr/lib/jvm/java-11-openjdk-amd64': {JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64, JAVA_VERSION=11.0.22, JAVA_VENDOR=Ubuntu, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=11.0.22+7-post-Ubuntu-0ubuntu220.04.1, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=11.0.22+7-post-Ubuntu-0ubuntu220.04.1, VM_VENDOR=Ubuntu, OS_ARCH=amd64}
  391. The client will now receive all logging from the daemon (pid: 1268). The daemon log file: /root/.gradle/daemon/8.7/daemon-1268.out.log
  392. Starting 2nd build in daemon [uptime: 43.877 secs, performance: 99%, GC rate: 0.00/s, heap usage: 0% of 8 GiB]
  393. Using 4 worker leases.
  394. Not watching /mnt since the file system is not supported
  395. Watching the file system is configured to be enabled if available
  396. File system watching is active
  397. Starting Build
  398. Settings evaluated using settings file '/mnt/settings.gradle.kts'.
  399. Type-safe project accessors is an incubating feature.
  400. Projects loaded. Root project using build file '/mnt/build.gradle.kts'.
  401. Included projects: [root project 'Blockstream_Green', project ':base', project ':common', project ':compose', project ':gdk', project ':gms', project ':green', project ':hardware', project ':jade', project ':no-gms']
  402.  
  403. > Configure project :
  404. Evaluating root project 'Blockstream_Green' using build file '/mnt/build.gradle.kts'.
  405. Some of the file system contents retained in the virtual file system are on file systems that Gradle doesn't support watching. The relevant state was discarded to ensure changes to these locations are properly detected. You can override this by explicitly enabling file system watching.
  406.  
  407. FAILURE: Build failed with an exception.
  408.  
  409. * What went wrong:
  410. A problem occurred configuring root project 'Blockstream_Green'.
  411. > Could not resolve all artifacts for configuration ':classpath'.
  412.   > Could not resolve androidx.navigation:navigation-safe-args-gradle-plugin:2.7.7.
  413.     Required by:
  414.         project :
  415.      > No matching variant of androidx.navigation:navigation-safe-args-gradle-plugin:2.7.7 was found. The consumer was configured to find a library for use during runtime, compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.7' but:
  416.          - Variant 'apiElements' declares a library, packaged as a jar, and its dependencies declared externally:
  417.              - Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 11
  418.              - Other compatible attribute:
  419.                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.7')
  420.           - Variant 'runtimeElements' declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
  421.               - Incompatible because this component declares a component, compatible with Java 17 and the consumer needed a component, compatible with Java 11
  422.               - Other compatible attribute:
  423.                   - Doesn't say anything about org.gradle.plugin.api-version (required '8.7')
  424.          - Variant 'sourcesElements' declares a component for use during runtime, and its dependencies declared externally:
  425.              - Incompatible because this component declares documentation and the consumer needed a library
  426.              - Other compatible attributes:
  427.                  - Doesn't say anything about its elements (required them packaged as a jar)
  428.                   - Doesn't say anything about its target Java version (required compatibility with Java 11)
  429.                  - Doesn't say anything about org.gradle.plugin.api-version (required '8.7')
  430.  
  431. * Try:
  432. > Review the variant matching algorithm at https://docs.gradle.org/8.7/userguide/variant_attributes.html#sec:abm_algorithm.
  433. > No matching variant errors are explained in more detail at https://docs.gradle.org/8.7/userguide/variant_model.html#sub:variant-no-match.
  434. > Run with --stacktrace option to get the stack trace.
  435. > Run with --debug option to get more log output.
  436. > Run with --scan to get full insights.
  437. > Get more help at https://help.gradle.org.
  438.  
  439. BUILD FAILED in 1s
  440. + echo 'CTRL-D to continue'
  441. CTRL-D to continue
  442. + bash
  443. root@9aa12d98d6af:/mnt# exit
  444. + result
  445. + fromPlayUnzipped=/tmp/fromPlay_com.greenaddress.greenbits_android_wallet_22000428
  446. + fromBuildUnzipped=/tmp/fromBuild_com.greenaddress.greenbits_android_wallet_22000428
  447. + rm -rf /tmp/fromBuild_com.greenaddress.greenbits_android_wallet_22000428 /tmp/fromPlay_com.greenaddress.greenbits_android_wallet_22000428
  448. + unzip -d /tmp/fromPlay_com.greenaddress.greenbits_android_wallet_22000428 -qq /home/danny/work/apk/com.greenaddress.greenbits_android_wallet_v22000428.apk
  449. + unzip -d /tmp/fromBuild_com.greenaddress.greenbits_android_wallet_22000428 -qq /tmp/test_com.greenaddress.greenbits_android_wallet/app/green/build/outputs/apk/productionGoogle/release/BlockstreamGreen-v4.0.28-productionGoogle-release-unsigned.apk
  450. unzip:  cannot find or open /tmp/test_com.greenaddress.greenbits_android_wallet/app/green/build/outputs/apk/productionGoogle/release/BlockstreamGreen-v4.0.28-productionGoogle-release-unsigned.apk, /tmp/test_com.greenaddress.greenbits_android_wallet/app/green/build/outputs/apk/productionGoogle/release/BlockstreamGreen-v4.0.28-productionGoogle-release-unsigned.apk.zip or /tmp/test_com.greenaddress.greenbits_android_wallet/app/green/build/outputs/apk/productionGoogle/release/BlockstreamGreen-v4.0.28-productionGoogle-release-unsigned.apk.ZIP.
  451. + exit 1
  452.  
Add Comment
Please, Sign In to add comment