Commit Graph

25865 Commits

Author SHA1 Message Date
Logan Chien
8b3da0e8b8 Merge "header-abi-linker: Support solib and version script" 2019-01-30 06:04:12 +00:00
Logan Chien
eb308b6bb5 header-abi-linker: Support solib and version script
This commit allows user to specify both `-so` (for a shared object file)
and `-v` (for a version script).  If both of them are specified, the
generated output will only include the symbols that are marked as
exported in both cases.

This commit also rewritten the version script parser so that it can
work with real version script cases.  This includes how the parser
skips a comment line.

Furthermore, the version script parser accepts a list of excluded symbol
versions and symbol tags that should not be included in the generated
output.  To customize the behavior, pass `--exclude-symbol-version`
and/or `--exclude-symbol-tag` to `header-abi-linker`.

Bug: 122845490
Test: ./tests/test.py
Test: atest  # under development/vndk/tools/header-checker
Change-Id: Ibf048bba6ccd5ac44f265d1fe767c2ded3d13a8d
2019-01-30 11:27:33 +08:00
Irina Dumitrescu
4674a9c434 Merge "Showcase HTTP proxy usage in ToyVPN."
am: 0278c48f47

Change-Id: I885dd91f811dfde65fcdd18dc1d9df08a30d921b
2019-01-25 05:49:44 -08:00
Treehugger Robot
0278c48f47 Merge "Showcase HTTP proxy usage in ToyVPN." 2019-01-25 13:41:00 +00:00
Irina Dumitrescu
55af6b593b Showcase HTTP proxy usage in ToyVPN.
Test: manual.
Bug: 76001058
Change-Id: I08efa2ba8379114b88aa4e10c6fa733670df6995
2019-01-25 12:07:34 +00:00
Justin Yun
1e96a1ef6c Merge "vndk-snapshot: add version suffix for v27 files"
am: 1e287fa6d5

Change-Id: I7dbc3d03e1fe5e7d9fa02e7f532a49a9a0968ed0
2019-01-23 18:56:23 -08:00
Treehugger Robot
1e287fa6d5 Merge "vndk-snapshot: add version suffix for v27 files" 2019-01-24 02:47:06 +00:00
Justin Yun
b59da8f618 vndk-snapshot: add version suffix for v27 files
To use ld.config.txt template, change the file names of v27 config
files to include version suffix.

Bug: 74658756
Bug: 123209911
Test: PRODUCT_EXTRA_VNDK_VERSIONS=27 m -j vndk_snapshot_package
Change-Id: Icc9f9970cf95fb4e888555ec0b080c44c81a0622
2019-01-23 19:25:05 +09:00
Justin Yun
4ef90e79b8 Merge "vndk-snapshot: Make the remote name settable"
am: 06c57d0ecf

Change-Id: I31e8a546856c21c124932f53ce016eb69e3ed165
2019-01-21 21:25:50 -08:00
Treehugger Robot
06c57d0ecf Merge "vndk-snapshot: Make the remote name settable" 2019-01-22 05:15:07 +00:00
Justin Yun
5ff8cc25ce vndk-snapshot: Make the remote name settable
To check license, we need to fetch revision from parent git
repository. Using '--remote' option we may manually set the remote
name. Default value is 'aosp'.

Test: run update.py to fetch vndk snapshot files.
Change-Id: I1456eb4306950da3d25ec2b4d9fc4efc4b5bcd81
2019-01-22 11:00:37 +09:00
Alex Light
c34956f0cc Merge "gdbclient.py alternative frontend support"
am: 24dc4630c7

Change-Id: I73549910f838361b969eb0151f7d0d9ed5ff0bbd
2019-01-18 16:45:22 -08:00
Alex Light
24dc4630c7 Merge "gdbclient.py alternative frontend support" 2019-01-18 23:53:07 +00:00
Alex Light
92476657e3 gdbclient.py alternative frontend support
This adds a new --setup-forwarding {gdb|vscode} flag that will make
gdbclient.py (1) setup the port forwarding needed to connect to a
remote process and (2) print the commands/configuration needed to use
the frontend of your choice to run the debugger. Currently it supports
gdb and visual-studio code. In order to avoid using up all the ports
the gdbclient.py program will not exit until directed by user input,
holding the ports open until this occurs.

To use:

```
% ./development/scripts/gdbclient.py -n com.android.contacts --setup-forwarding vscode
Redirecting gdbserver output to /tmp/gdbclient.log

{
    "miDebuggerPath": "/fast-2/allight/aosp/prebuilts/gdb/linux-x86/bin/gdb",
    "program": "/fast-2/allight/aosp/out/target/product/walleye/symbols/system/bin/app_process64",
    "setupCommands": [
        {
            "text": "-enable-pretty-printing",
            "description": "Enable pretty-printing for gdb",
            "ignoreFailures": true
        },
        {
            "text": "-environment-directory /fast-2/allight/aosp",
            "description": "gdb command: dir",
            "ignoreFailures": false
        },
        {
            "text": "-gdb-set solib-search-path /fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/:/fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/hw:/fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/ssl/engines:/fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/drm:/fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/egl:/fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/soundfx:/fast-2/allight/aosp/out/target/product/walleye/symbols/vendor/lib64/:/fast-2/allight/aosp/out/target/product/walleye/symbols/vendor/lib64/hw:/fast-2/allight/aosp/out/target/product/walleye/symbols/vendor/lib64/egl",
            "description": "gdb command: set solib-search-path",
            "ignoreFailures": false
        },
        {
            "text": "-gdb-set solib-absolute-prefix /fast-2/allight/aosp/out/target/product/walleye/symbols",
            "description": "gdb command: set solib-absolute-prefix",
            "ignoreFailures": false
        },
        {
            "text": "-interpreter-exec console \"source /fast-2/allight/aosp/development/scripts/gdb/dalvik.gdb\"",
            "description": "gdb command: source art commands",
            "ignoreFailures": false
        }
    ],
    "name": "(gdbclient.py) Attach app_process64 (port: 5039)",
    "miDebuggerServerAddress": "localhost:5039",
    "request": "launch",
    "type": "cppdbg",
    "cwd": "/fast-2/allight/aosp",
    "MIMode": "gdb"
}

Paste the above json into .vscode/launch.json and start the debugger as
normal. Press enter in this terminal once debugging is finished to shutdown
the gdbserver and close all the ports.

Press enter to shutdown gdbserver
```

Or for gdb:

```
% ./development/scripts/gdbclient.py -n com.android.contacts --setup-forwarding gdb
Redirecting gdbserver output to /tmp/gdbclient.log

file '/fast-2/allight/aosp/out/target/product/walleye/symbols/system/bin/app_process64'
directory '/fast-2/allight/aosp'
set solib-absolute-prefix /fast-2/allight/aosp/out/target/product/walleye/symbols
set solib-search-path /fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/:/fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/hw:/fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/ssl/engines:/fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/drm:/fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/egl:/fast-2/allight/aosp/out/target/product/walleye/symbols/system/lib64/soundfx:/fast-2/allight/aosp/out/target/product/walleye/symbols/vendor/lib64/:/fast-2/allight/aosp/out/target/product/walleye/symbols/vendor/lib64/hw:/fast-2/allight/aosp/out/target/product/walleye/symbols/vendor/lib64/egl
source /fast-2/allight/aosp/development/scripts/gdb/dalvik.gdb

python

def target_remote_with_retry(target, timeout_seconds):
  import time
  end_time = time.time() + timeout_seconds
  while True:
    try:
      gdb.execute("target extended-remote " + target)
      return True
    except gdb.error as e:
      time_left = end_time - time.time()
      if time_left < 0 or time_left > timeout_seconds:
        print("Error: unable to connect to device.")
        print(e)
        return False
      time.sleep(min(0.25, time_left))

target_remote_with_retry(':5039', 5)

end

Paste the above gdb commands into the gdb frontend to setup the gdbserver
connection. Press enter in this terminal once debugging is finished to
shutdown the gdbserver and close all the ports.

Press enter to shutdown gdbserver
```

Test: ./development/scripts/gdbclient.py -n com.android.contacts --setup-forwarding vscode
      Perform debugging.

Change-Id: Ifa105cfbb100c4ba872b85c1c609d49a4f194d8b
2019-01-18 11:03:03 -08:00
Justin Yun
fe018dbacd Merge "Change OWNER for vndk snapshot tools."
am: d4193fefd4

Change-Id: I0e506b191e0c78ad94dec3d16f98abcebc5454f9
2019-01-18 00:05:41 -08:00
Treehugger Robot
d4193fefd4 Merge "Change OWNER for vndk snapshot tools." 2019-01-18 07:53:37 +00:00
Justin Yun
d07d1993e3 Change OWNER for vndk snapshot tools.
Test: n/a
Change-Id: I802e32e79f318b82a9cc543513ab4cd3a6e84795
2019-01-18 15:22:25 +09:00
Jaewoong Jung
640eb216ca Merge "Use Soong to build to etc modules."
am: 91a331e07f

Change-Id: I35bf34314a088eeb1bfb5757cd7bc0954e879a36
2019-01-17 19:18:18 -08:00
Jaewoong Jung
91a331e07f Merge "Use Soong to build to etc modules." 2019-01-18 03:01:41 +00:00
Jaewoong Jung
6a5aaca7bf Use Soong to build to etc modules.
This is the final piece of mk to bp conversion effort for vndk.

Bug: 122332178
Test: Locally ran the test script and built the phony targets.
Change-Id: I9988cc840c0660cc4fb47129ea16cfacb4c0a7ba
2019-01-17 15:46:50 -08:00
Logan Chien
bd324bee47 Merge "header-abi-linker: Code cleanup"
am: 9ed4f798d1

Change-Id: Icf7f57e5c2070df98bf32b6e193e54709560f6db
2019-01-17 02:19:52 -08:00
Logan Chien
9ed4f798d1 Merge "header-abi-linker: Code cleanup" 2019-01-17 09:57:20 +00:00
Logan Chien
e0ef6ce9e7 header-abi-linker: Code cleanup
Test: n/a
Change-Id: I207ea35e8afbd83688c3bdf2bbf442ff0cf48d21
2019-01-16 21:42:57 +08:00
bohu
8199e9d30f Merge "sdk-img: reset revision to 1" am: c6edc0203e
am: a6c64f769e

Change-Id: Iad53d489465f220cdaadd96d8b23fe3408f42ccc
2019-01-15 17:54:02 -08:00
bohu
a6c64f769e Merge "sdk-img: reset revision to 1"
am: c6edc0203e

Change-Id: If9bba954506d4e64232d09e19e14d298fcb57b70
2019-01-15 17:45:57 -08:00
Treehugger Robot
c6edc0203e Merge "sdk-img: reset revision to 1" 2019-01-16 01:34:50 +00:00
bohu
a9bd72defd sdk-img: reset revision to 1
Change-Id: Idbb7374aecdc7eff70210bb0c8d7c357ef2d1dd3
2019-01-15 14:33:01 -08:00
Josh Gao
99b2a99cff Merge "Bump platform-tools version to 28.0.2." am: a1bb63349e
am: 84b770aa7c

Change-Id: Ib187a6dbe8c50cc1df16048d03d0ffc9eb35e388
2019-01-14 22:51:19 -08:00
Josh Gao
84b770aa7c Merge "Bump platform-tools version to 28.0.2."
am: a1bb63349e

Change-Id: I37858fc57f02f2d41694e1f0652e8851b2a20e31
2019-01-14 22:43:19 -08:00
Treehugger Robot
a1bb63349e Merge "Bump platform-tools version to 28.0.2." 2019-01-15 06:34:12 +00:00
Josh Gao
68eee48118 Bump platform-tools version to 28.0.2.
Test: none
Change-Id: I828c5f53bbf42a5d27bb92ecb4f506a08fd950ea
2019-01-14 20:19:31 -08:00
David Srbecky
237a371068 Merge "Fix SDK build as BluetoothHDP is removed" am: e3a587ee82
am: a7017b709c

Change-Id: I38fcd0bda4b1a173a25b15ce3e2f22993ea9770d
2019-01-10 05:49:12 -08:00
David Srbecky
a7017b709c Merge "Fix SDK build as BluetoothHDP is removed"
am: e3a587ee82

Change-Id: Ia2c25dd1a2f9a231bdcc8f5847780309906b2fee
2019-01-10 05:31:46 -08:00
David Srbecky
e3a587ee82 Merge "Fix SDK build as BluetoothHDP is removed" 2019-01-10 13:20:23 +00:00
Jack He
595d42ffff Fix SDK build as BluetoothHDP is removed
Bug: 111562841
Test: make
Change-Id: I1b21e8a009634d1b865cf100c4a172435566bdd1
2019-01-09 22:26:41 -08:00
Jack He
708e2f5294 Merge "Remove BluetoothHDP sample" am: 90e8332205
am: bca73d528a

Change-Id: I17f25e451547081ae01cddb6341185bcb31a1eae
2019-01-09 21:00:29 -08:00
Jack He
bca73d528a Merge "Remove BluetoothHDP sample"
am: 90e8332205

Change-Id: Ibf824b0cb6db6458845020912e6014155b5f12d0
2019-01-09 20:51:21 -08:00
Treehugger Robot
90e8332205 Merge "Remove BluetoothHDP sample" 2019-01-10 04:46:21 +00:00
Jack He
b08bc0c4d2 Remove BluetoothHDP sample
* Remove code samples that uses Bluetooth Health Device Profile
* Health Device Profile (HDP) and MCAP protocol has been largely
  replaced by BLE. New applications should use Bluetooth Low Energy
  instead of legacy Bluetooth Health Device Profile

Bug: 111562841
Test: make, unit test, use Bluetooth
Change-Id: I8a7228ab54a669febdbd32cb85a0f744113087e9
2019-01-08 14:39:10 -08:00
Justin Yun
5ffb92d0e2 Merge "Update android-info.txt in dist directory." am: f2aae3b46d
am: 3e73ca3207

Change-Id: I43efa9202c777e661ac363ce6699f695245379d4
2019-01-06 19:15:32 -08:00
Justin Yun
3e73ca3207 Merge "Update android-info.txt in dist directory."
am: f2aae3b46d

Change-Id: Iaaaf419ddcc8e3ce146daaa25d063009f184f8a5
2019-01-06 19:11:24 -08:00
Treehugger Robot
f2aae3b46d Merge "Update android-info.txt in dist directory." 2019-01-07 03:05:33 +00:00
Justin Yun
247e95ad4b Update android-info.txt in dist directory.
We update android-info.txt if we don't need product.img to flash.
In that case the updated one must be provided to dist directory for
flashstation to flash correctly.

Bug: 120578242
Test: Use flashstation to flash the mixed build target
Change-Id: I43b9d5cb3352a8c56221a325197c189c22a3d6f6
2019-01-07 10:36:49 +09:00
Dan Willemsen
4b32732761 Merge "Remove commons-compress-1.0 from the sdk build list" am: 4fcddf16cc
am: e7cec028fd

Change-Id: I4f789deccc55ed8661d30a3ea5a6bc6474b92ee0
2019-01-05 15:00:04 -08:00
Dan Willemsen
e7cec028fd Merge "Remove commons-compress-1.0 from the sdk build list"
am: 4fcddf16cc

Change-Id: I68f2c1b225e0207499f36c14d339b84e3d0d18d3
2019-01-05 14:55:58 -08:00
Dan Willemsen
4fcddf16cc Merge "Remove commons-compress-1.0 from the sdk build list" 2019-01-05 22:43:15 +00:00
Dan Willemsen
c684e5e9ef Remove commons-compress-1.0 from the sdk build list
We don't seem to actually be using or packaging this in any Android.mk
file or atree file.

Bug: 122332391
Test: codesearch, treehugger
Change-Id: Ie2c148aa45fd834683be02228f92f969ad8da8e7
2019-01-04 17:05:20 -08:00
Justin Yun
8a7537ee2b Merge "build_mixed: removed product.img if system_dir does not have one." am: f6bdd28a3f
am: dc2ea79b9d

Change-Id: Ie4d9740351684c1d291f79bc8cdbe6028ff690ae
2019-01-04 08:07:26 -08:00
Justin Yun
dc2ea79b9d Merge "build_mixed: removed product.img if system_dir does not have one."
am: f6bdd28a3f

Change-Id: I4d0bfc85d9c42b9d6efdf2f5c2b4a874fbd7ba18
2019-01-04 00:52:27 -08:00
Treehugger Robot
f6bdd28a3f Merge "build_mixed: removed product.img if system_dir does not have one." 2019-01-04 08:43:55 +00:00