Assigned
Status Update
Comments
na...@gmail.com <na...@gmail.com> #2
My SD card's file system supports a last modified timestamp; that is 'adb shell touch /mnt/sdcard/foo' works as expected. I need to check that calling from runtime works as well.
ad...@google.com <ad...@google.com>
ad...@google.com <ad...@google.com> #3
I couldn't reproduce this with a test case.
@hardwick.jim if this test doesn't pass for you, could you paste its output here? As well as your device's full version information. Thanks.
public final class FileTest extends TestCase {
public void testSetLastModified() {
File file = new File("/mnt/sdcard/foo");
assertTrue(file.setLastModified(0));
assertEquals(0, file.lastModified());
}
}
@hardwick.jim if this test doesn't pass for you, could you paste its output here? As well as your device's full version information. Thanks.
public final class FileTest extends TestCase {
public void testSetLastModified() {
File file = new File("/mnt/sdcard/foo");
assertTrue(file.setLastModified(0));
assertEquals(0, file.lastModified());
}
}
na...@gmail.com <na...@gmail.com> #4
[Comment deleted]
ad...@google.com <ad...@google.com> #5 Restricted+
Restricted+
Comment has been deleted.
ad...@google.com <ad...@google.com> #6
Confirmed. When I'm not running as root I can create and delete files, but setLastModified() still fails. That's a bug! It works when running as root.
As a workaround, this ugly hack will set the last modified date to now:
RandomAccessFile raf = new RandomAccessFile(file, "rw");
long length = raf.length();
raf.setLength(length + 1);
raf.setLength(length);
raf.close();
As a workaround, this ugly hack will set the last modified date to now:
RandomAccessFile raf = new RandomAccessFile(file, "rw");
long length = raf.length();
raf.setLength(length + 1);
raf.setLength(length);
raf.close();
na...@gmail.com <na...@gmail.com> #7
It works for me on Xoom 3.2 Built HTJ85B
public void testSetLastModified() throws IOException {
long time = 1316137362000L;
File file = new File("/mnt/sdcard/foo");
file.createNewFile();
file.setLastModified(time);
assertEquals(time, file.lastModified());
}
public void testSetLastModified() throws IOException {
long time = 1316137362000L;
File file = new File("/mnt/sdcard/foo");
file.createNewFile();
file.setLastModified(time);
assertEquals(time, file.lastModified());
}
na...@gmail.com <na...@gmail.com> #8
setLastModified doesn't work on Galaxy 10'1 tab OS 3.1 Help !!!
md...@gmail.com <md...@gmail.com> #9
setLastModified doesn't work on Galaxy 10'1 tab OS 3.1 Help !!!
md...@gmail.com <md...@gmail.com> #10
Bug still exists on unrooted HTJ85B. Hayes, did you run your test code as root?
ja...@gmail.com <ja...@gmail.com> #11
On an Acer Iconia tablet with OS 3.2, it works for /mnt/external_sd (the removable SD card) and /mnt/usb_storage (the removable USB storage), but still NOT for /mnt/sdcard (the internal SD card). The return value is "false".
ja...@gmail.com <ja...@gmail.com> #12
Also happening in ICS 4.01, Galaxy Nexus.
ma...@gmail.com <ma...@gmail.com> #13
Any update on this? I'd like to know if it's ever going to be fixed - my app depends on setLastModified for its basic functionality.
Unfortunately Jesse, your workaround doesn't help me. I need to set times other than current.
Unfortunately Jesse, your workaround doesn't help me. I need to set times other than current.
ma...@gmail.com <ma...@gmail.com> #14
Any update on this? Samsugn Galaxy Tab 10.1 with 3.2 - it doesn't work too.
Description
What
User experience
What type of issue is this?
Display or rendering issue
What steps would let us observe this issue?
What did you expect to happen?
Transparent navigation bar with content being drawn behind it. Applied EdgeToEdge.
What actually happened?
Black opaque navigation bar like in ancient apps.
What was the effect of this issue on your device usage, such as lost time or work?
High
Additional commentshttps://developer.android.com/about/versions/15/behavior-changes-15#edge-to-edge ). But this doesn't work for the YouTube app.
Android 15 meant to fix those EdgeToEdge issues via enforcing EdgeToEdge for apps targeting sdk 35 (
Why does the iOS app have a transparent navigation bar and the Android app does not ?
I reported this 2 years ago, but after all this time you don't care.
When
Time and frequency
Time when bug report was triggered: Dec 5, 2024 1:13 PM GMT+03:00
How often has this happened?
Every time
Where
Component
Suggested component: <not visible> (1684638)
Build and device data
- Build Number: google/husky_beta/husky:Baklava/BP21.241018.009/12628839:user/release-keys
(Note: It is the build when sending this report. For exact build reference, please see the attached bugreport.)
- SoC Revision: Zuma B1
Related apps
YouTube
com.google.android.youtube
Version 1550042560 (19.49.32)
System App (Updated)
Debugging information
Сервисы Google Play
com.google.android.gms
Version 244735036 (24.47.35 (260408-702774332))
System App (Updated)
Android System WebView
com.google.android.webview
Version 677803933 (131.0.6778.39)
System App (Updated)
Network operator: MTS RUS
SIM operator: МТС
Filed by Android Beta Feedback. Version (Updated): 2.46-betterbug.external_20241023_RC01 (DOGFOOD)https://developer.android.com/preview/feedback#feedback-app .
To learn more about our feedback process, please visit