google / google/bundletool

Incorrect timestamp when unzipping universal apk

Open
#316 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
4k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When using command `bundletool.jar build-apks` the output zip, containing the apk, will provide an apk with the timestamp set in 1981.

**Bundletool version(s) affected**
Version: All

**Stacktrace**
Copy all of the output of the command, including the stacktrace if visible.

**To Reproduce**
* Run
```
java -jar ./bundletool.jar build-apks --bundle="./resources/example.aab" --output="./bundletool_temp/output.apks" --mode=universal
```
* Extrack the universal apk
* Check timestamp

**Expected behavior**
Expected to have at current date or at least the date the aab was created.

**Known workaround**
You can use `touch` command to update the Modified date.

image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.