Status Update
Comments
xr...@gmail.com <xr...@gmail.com> #2
ga...@gmail.com <ga...@gmail.com> #3
@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());
}
}
so...@google.com <so...@google.com>
so...@google.com <so...@google.com> #4
dr...@gmail.com <dr...@gmail.com> #5
Device is a Motorola Xoom 3G from Verizon, Android 3.1, HMJ37, rooted. I'm not sure what other device info you need, so let me know if you need more.
I can also post the source and results of my tests on stock HMJ37 Xooms - both 3G and WiFi only - but it will take a couple days to get my hands on those devices again since I only own the rooted Xoom.
ar...@gmail.com <ar...@gmail.com> #6
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();
xr...@gmail.com <xr...@gmail.com> #7
public void testSetLastModified() throws IOException {
long time = 1316137362000L;
File file = new File("/mnt/sdcard/foo");
file.createNewFile();
file.setLastModified(time);
assertEquals(time, file.lastModified());
}
xr...@gmail.com <xr...@gmail.com> #8
tr...@gmail.com <tr...@gmail.com> #9
tr...@gmail.com <tr...@gmail.com> #10
tr...@gmail.com <tr...@gmail.com> #11
tr...@gmail.com <tr...@gmail.com> #12
gu...@google.com <gu...@google.com> #13
Unfortunately Jesse, your workaround doesn't help me. I need to set times other than current.
xr...@gmail.com <xr...@gmail.com> #14
xr...@gmail.com <xr...@gmail.com> #15
a....@gmail.com <a....@gmail.com> #16
This seems to be an issue with the fuse filesystem.
Test code attached.
a....@gmail.com <a....@gmail.com> #17
j5...@gmail.com <j5...@gmail.com> #18
j5...@gmail.com <j5...@gmail.com> #19
asus transformer prime
ICS
both utime/utimes (C++) and File.setLastModified (C++ JNI)
fails on modifying time of any kind of file on SD card.
cu...@gmail.com <cu...@gmail.com> #20
cu...@gmail.com <cu...@gmail.com> #21
Fuse seems to be ok, but the mount is missing allow_utime. So seems like a permission error. Google can you atleast confirm if it's a feature or bug?
ti...@gmail.com <ti...@gmail.com> #22
ti...@gmail.com <ti...@gmail.com> #23
Workaround mentionned in
an...@gmail.com <an...@gmail.com> #24
there is a solution?
an...@gmail.com <an...@gmail.com> #25
Here are the specs on both devices:
Galaxy Note:
Model number: GT-N8013
Android version: 4.0.4 (stock ROM)
Kernel version: 3.0.15-1015435-user se.infra@SEP-120 #1 SMP PREEMPT Mon Aug 13 22:17:27 KST 2012
Build number: IMM76D.N8013UEALH2
Samsung Galaxy SII:
Model number: SAMSUNG-SGH-I727
Android version: 4.0.4 (custom ROM)
Kernel version: 3.0.8-perf-I727UCLE2-CL526987 se.infra@SEP-98 #1 SMP PREEMPT Tue May 8 22:27:38 KST 2012
Build number: SkY ICS 4.2E-7
er...@gmail.com <er...@gmail.com> #26
er...@gmail.com <er...@gmail.com> #27
in platform/system/core/sdcard/sdcard.c:
> /* all files owned by root.sdcard */
> attr->uid = 0;
> attr->gid = AID_SDCARD_RW;
From utimensat()'s syscall man page:
Old FAT allows offers an override of the iattr->valid flag via a mount option to allow changing timestamps to anyone, FUSE+Android's sdcard-FUSE don't do this at the moment (so the 'inode_change_ok() call fails) and the attempt gets rejected with -EPERM. Here's FAT's ./fs/fat/file.c:
xr...@gmail.com <xr...@gmail.com> #29
xr...@gmail.com <xr...@gmail.com> #30
be...@gmail.com <be...@gmail.com> #31
be...@gmail.com <be...@gmail.com> #32
xr...@gmail.com <xr...@gmail.com> #33
xr...@gmail.com <xr...@gmail.com> #34
rl...@gmail.com <rl...@gmail.com> #35
I coul'd not find any sync&backup tool/app which does not need preserving timestamp.
sa...@gmail.com <sa...@gmail.com> #36
What
More information
Whe I using Google files it closes the app and won't open the pdf
Where
Build and device data
- Build Number: google/bluejay_beta/bluejay:Baklava/BP22.250103.008/12932282:user/release-keys
(Note: It is the build when sending this report. For exact build reference, please see the attached bugreport.)
Debugging information
Google Play services
com.google.android.gms
Version 250335035 (25.03.35 (260400-720971461))
System App (Updated)
Android System WebView
com.google.android.webview
Version 683416333 (132.0.6834.163)
System App (Updated)
Network operator: Home
SIM operator: TFW
Filed by Android Beta Feedback. Version (Updated): 2.46-betterbug.external_20241023_RC01 (DOGFOOD)
To learn more about our feedback process, please visit
wa...@gmail.com <wa...@gmail.com> #37
mi...@gmail.com <mi...@gmail.com> #38
an...@google.com <an...@google.com> #39
da...@gmail.com <da...@gmail.com> #40
md...@gmail.com <md...@gmail.com> #41
Google you are making us use MTP instead of Mass Storage because according to you "it was better". Now the files timestamp are messed up.
After transfering all my photos from my Nexus S to my Nexus 4, all the pictures have the same timestamp!! What the hell? The photos order are messed up! PLEASE fix this!!!
ve...@gmail.com <ve...@gmail.com> #42
That includes the following Nexus devices:
Nexus 7 (2012), Nexus 7 (2013), Galaxy Nexus, Nexus 4 and Nexus 5.
FIX IT AS SOON AS POSSIBLE PLEASE!!!
ve...@gmail.com <ve...@gmail.com> #43
Forget it guys, google will never fix nerd issues. I bed they not even look at the bug tracker.
We all should be lucky that android still keeps the filename. I see it coming, in the future android will change the filename like this foto.jpg > a1f687f1a851efc2.jpg ;D
But seriously, it is crucial for almost all file sync utilities, and as you may have notices, it's cloud age!
+1 for FIX IT AS SOON AS POSSIBLE PLEASE!!!
ma...@gmail.com <ma...@gmail.com> #44
ma...@gmail.com <ma...@gmail.com> #45
Whatever the reason that Google and other OS developers choose to ignore this flaw, they might consider that it is a sufficient reason to change platforms and unmitigated by the scores of other useless features.
If I can't rely on a file's date, why have one?
Description
What
User experience
What type of issue is this?
Crash
What steps would let us observe this issue?
What did you expect to happen?
Open file
What actually happened?
Crashes
What was the effect of this issue on your device usage, such as lost time or work?
None - device worked normally
When
Time and frequency
Time when bug report was triggered: Jan 23, 2025 9:11 PM GMT-06:00
How often has this happened?
Every time
Where
Component
Suggested component: <not visible> (1684638)
Build and device data
- Build Number: google/cheetah_beta/cheetah:Baklava/BP22.250103.008/12932282:user/release-keys
(Note: It is the build when sending this report. For exact build reference, please see the attached bugreport.)
Related apps
Files by Google
com.google.android.apps.nbu.files
Version 1184643 (1.6131.717750442.1-release)
System App (Updated)
Debugging information
Google Play services
com.google.android.gms
Version 250261035 (25.02.61 (260400-717007275))
System App (Updated)
Android System WebView
com.google.android.webview
Version 677826233 (131.0.6778.262)
System App (Updated)
Network operator: Google Fi
SIM operator: Google Fi
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