OSDN Git Service

Change warning logic in preopt2cachename
authorAlex Light <allight@google.com>
Tue, 9 Apr 2019 17:19:11 +0000 (10:19 -0700)
committerAlex Light <allight@google.com>
Tue, 9 Apr 2019 17:24:31 +0000 (10:24 -0700)
commit73befcf4495616129ce484e5124e05b85277192e
treec006c9de8b9e80e8b1e9231fb6bb75271985ee77
parent35df8ebb0e6d4f8846367dc23107b05dcbb285a5
Change warning logic in preopt2cachename

We were incorrectly warning when a filename had 8 segments. This is
valid since we can have paths of the form
'/postinstall/product/priv-app/<app>/oat/arm64/<app>.odex' in addition
to those of the form
'/postinstall/priv-app/<app>/oat/arm64/<app>.odex'.

Test: boot, look at logcat
Bug: 123696019
Change-Id: I97c88302a3967e133421244bb132b4e8fd0812a1
preopt2cachename/preopt2cachename.cpp