yashsingh1/xdaforums huggingface dataset:
[One (M8) Original Android Development] Pourrito:
External SDcard

Hi there,

I have the well known problem with my SDCard: I can seen it, but I can't write to it, well, actually can't delete files or folders: It looks like it's "working on it" but never finishes (Pic 1).

Titanium Backup, for example, does not "see" the external storage… (pics 2 & 3) even though I have manually copied (via Ubuntu) my backup to SD card… (pic 4)

What's really strange is that I have full write access from my Linux box, over MTP. I did try to add ro.sys.sdcardfs=false to build.prop, then reboot, but to no avail.

From what I understand, there are 2 different ways to use said SDcard: either as external storage, or as internal, in which latter case the SD Card will be formatted and will only work in the device that formatted it.

So, here is my twofold question:

1. What should I do (and how) to get full access to the SD card from within?

2. If I format my SD card as internal in L-OS, and then move to a new rom (let's say RR…) will my card be recognised? In other words, is it Rom-dependant, or device-dependant?

Thanks for all help you could provide me with.
[One (M8) Original Android Development] CutGlass:
Hi, could you confirm a couple of things.

How was the SD card formatted?

How large is the backup file?

How big is the SD card?
[One (M8) Original Android Development] Pourrito:
Thanks for answering so quickly

I don't really remember which attempt succeeded : either sudo mkfs.exfat /dev/sdd (or with gparted)… Can't even remember if I chose ext2/4 or Fat :crying: :(

[Edit] It's Fat32

Been flashing /playing with quite a lot of things recently (see my sig)

The card is 16Gb and the backup file is not even 1 Gb (I only made a try with partial backup)

Which way of formatting would you advise ? from within phone, from Sd reader on PC? Which file system?
[One (M8) Original Android Development] CutGlass:
If you are going to be transferring this backup between phone and pc then I suggest that you format the card as portable.

But,

If the back up is going to be over 4Gb then it will never work on FAT32 as that is the file size limit.

Currently I am investigating the problems with SD cards, and will shortly be running a series of tests to see what Android will find "acceptable" as a filesystem e.g. vFat, ext4 and the kinds of partition tables like MBR and guid. There will be a new thread with SD cards that have been found to work and M8 versions because it does appear to be a device problem rather than just a ROM issue. (e.g. I have an identical card to another forum member and yet my card can be used in any manner, he cannot transfer a file of ~500 Mb, mine was proved to work with 1.6 Gb files).

It may be a file permission problem caused by selinux, I seem to remember someone using titanium and not having the addon_su package installed so then they could not give it root to run, but I also remember in the last two weeks - backup not asking for root and it may need to be granted permissions.

In answer to your question about ROMS and f2fs, hmm, it should not work because a new rom is not going to look for the data on the sdcard for apps where f2fs saves things, however recently in an f2fs test strangely after a dirty flash the card was remembered as having been removed (even though it was not in fstab). Portable would be better, I have a lineage "system" for daily use with f2fs and test out after making full TWRP backups which I find very reliable, the only thing I use is SMS Backup + which backs up my text messages to gmail's servers, otherwise my email is IMAP and all the photos are cloud stored, so I don't feel a real need for titanium or any other solution. (though seeing as I flash ROM's a lot, I probably take more full TWRP backups than most).
[One (M8) Original Android Development] Pourrito:
I will perform tests as well… Because, as you might have seen in the pics I uploaded in my first post, TWRP can write to the SD Card. That's the reason that led me to think it may have been a rom issue… Anyway, I knew about the fat file size limitations, and double-checked that wasn't of any concern.

Since I am quite new to flashing roms, I tend to be double-paranoïd (Better safe than sorry) and have multiple types of backups, which would rapidly clog my internal storage. And since, on the other hand, I basically am an anti-google activist, I use as few services as I can, and especially no backups of whatever on their servers… I have a Nextcloud instance and a NAS to deal with all my data, sms, contacts, calendar… Since I am also some kind of old fashioned bloke, I don't use streaming services for my music, and prefer to have a decent selection of my fav on my SDcard… thus my need for a fully functional and readable one.

Well' thanks for your advice. I will do my tests (and hope I don't cook the card, as already happened once when on stock rom) and possibly report my findings, here or in whatever thread I can find on that subject.

Subsidiary question: what exactly does f2fs refer to?
[One (M8) Original Android Development] Pourrito:
Weird…

I formatted (ext4) the SD card in gparted. Devices sees it, mounts it but won't display (in ES explorer) it until the phone re-formatted itself (in fat).

Gets even weirder: ES Explorer still won't write to it, nor will Titanium find it (yes both have root privilege), but… Lineage file manager gets full access to it, display, read, write…

This is what ES explorer shows when trying to copy a file to ext SDcard (pic attached) basically, it says "Choose root folder for Sd card so that ES can operate"… which I do… but then, nothing… no copy, no error message, just as if I had done nothing.

I'm getting lost…
[One (M8) Original Android Development] CutGlass:
It is the internal storage filesystem used by android for storing apps etc... and how the microSD card is formatted if you choose not to use it as portable storage. Apparently Ubuntu machines can read it but I have not looked into that as my card is always encrypted.
[One (M8) Original Android Development] kfasheldon:
Well I was wondering same as it won't auto reboot and install , leaving the file inplace wasting space.

So downloaded from web and installed manually all good, so try to delete these waited files and access is denied, not ever a root request , crazy.
[One (M8) Original Android Development] CutGlass:
There is an undocumented feature of the updater, hold your finger down on the file you want to delete and it will give you a confirmation box to remove the file.

This "system" of putting the downloads under the app_updates, seems to be part of a new security policy where selinux enforces that the app that put the file there only has access, to stop malicious software being downloaded or another app putting a file into the updater like a malware infected ROM that "john doe" would then install without question.

I did ask for confirmation from the developers and whether they could put a symbolic link from /cm_updates to that folder to make a little easier, but the request was closed as they are still working on regression and removal of CM items.
[One (M8) Original Android Development] alwin006:
Is AGPS being worked on ? Even with GPS Assist it can take a long time to lock. And that's the only thing I hate about this ROM as I use waze every single day.

Any tips to make it work better ?
[One (M8) Original Android Development] 1aladdin1:
I agree - missing AGPS is a real issue
[One (M8) Original Android Development] DROITURK182:
Plus not having NFC working also..
[One (M8) Original Android Development] CutGlass:
Hi, I'm in the UK, now how do you know it is not working because these screenshots show my GPS as high accuracy using bluetooth, wireless, and GPS and I get a lock on almost immediately and never lose it (I had a motorola G using CM13 and that would yo-yo). So what looks different on yours?

Thcx.
[One (M8) Original Android Development] CutGlass:
Now that is an oddity, NFC is working but there's not an icon and Android Pay doesn't accept it, it can be turned on and I did "beam" a file to another device though I haven't tried that since converting from unofficial to nightly, and I do check Android Pay every so often. (just checked again, it knows there a chip in there but states you cannot use it).

Also the bad news,

bug reporting is still not available

for lineageOS at https://jira.lineageos.org/ (worth putting the link in though and excuse the underlining but else someone is going to click and try before reading on), if you cannot put a bug into weekly/ nightly, then it will be closed as I learned on various updater bugs, they are still working through bugs but appear to be either doing "regression" i.e. removing all the cyanogenmod things, or bugs they find themselves. You can still see that they are working actively on various things at least :)

---------- Post added at 09:00 AM ---------- Previous post was at 08:56 AM ----------

Using the App Credit Card Reader NFC (EMV) from the play store, I just used my phone to read a credit card (will post screenshot later once image is blurred), so the issue appears to be in sending data not reading it.

Edit: It would be interesting if other were to test this out too so when the jira opens, we can report the issues.
[One (M8) Original Android Development] CutGlass:
I found a better app that reads NFC tags and obscures the number, Credit Card Reader on the play store. Attached is a screenshot that shows that the latest nightly does indeed read NFC data even though the icon is missing and tap to pay functionality is still missing.
[One (M8) Original Android Development] Eurofighter_ty:
The AGPS problem can't be fixed at all. At least we have no ideas at this time. So you need to live with that.
[One (M8) Original Android Development] mihran_thalhath:
NFC issue is not only on our end but is reported on various devices. Its something on los side, i think.
[One (M8) Original Android Development] CutGlass:
But it can it be diagnosed? Mine seems fine :confused:
[One (M8) Original Android Development] djlukas1983:
It's related to closed source of HCE driver. It doesn't work on CM12 neither.
[One (M8) Original Android Development] Eurofighter_ty:
You're not fine. system/etc/ gps.conf and there you can see that the servers are commented. AGPS helps the GPS to get the fix faster. It's not related to location using Wi-Fi or Bluetooth. If we uncomment those servers then your M8 will get into a bootloop.
[One (M8) Original Android Development] elmz123:
SD Solution

As for the SD card unable to detect properly... Here's what I did..

Install Terminal App (or) Enanle built in Terminal in dev.option

Type the following in order...

SU

SM SET-FORCE-ADOPTABLE TRUE

Wait for atleast 5min..and reboot...

(Note) sometimes you have to repeat the whole process if it fail in the first try... Hope it helps...
[One (M8) Original Android Development] CutGlass:
What size card? And I'm guessing it's not in uppercase? Afterwards is the card portable? I'm guessing that as it resets on not it can't be used as internal storage.

I have a persistent boot script somewhere which I will modify for you to test :fingers-crossed:
[One (M8) Original Android Development] :
Thank you for making my M8 breath new life :)

I was running stock sense since marshmallow came. Kept coming to forum and reading patiently, and I must say my patience has rewarded me with LineageOS 14.1 20170214 weekly.

My phone seems so fast and the nougat is much much better. Awesome Developers did an awesome job. :good:

One thing I did change is that I flashed Stock OpenGAPPS package instead of a smaller package and to my surprise I got everything Stock Pixel (it replaced browser, launcher, email, messenger etc everything to stock pixel even the Google Assistant :) ). My M8 is the KING again thanks to LineageOS team.
[One (M8) Original Android Development] :
I don't mind the AGPS bug. I used google maps GPS navigation yesterday with no problem whatsoever in upstate New York.
[One (M8) Original Android Development] CutGlass:
Is there any indication on device that AGPS is not functional? And I've looked at the conf file, is there anything that stops the boot loop, like starting with location services off ? As for my comment that I am fine, I meant no disrespect but in the UK there's no searching for any satellites in a few thousand miles of driving and also google probably has documented bluetooth and wireless a lot better so maps is just instantaneous which reflects the gentleman's POV in New York, I'd like to help debug this and have a couple of free days coming up.
[One (M8) Original Android Development] Eurofighter_ty:
The thing is that you can use GPS Toolbox but that says the AGPS data is downloaded but it's not. We can't really debug this. We tried 1000 times but nothing.
[One (M8) Original Android Development] pclewis:
OTA

After OTA of Lineage OS update, cannot enter recovery. I am using TWRP 3.0.2. So, I download the LineageOS and manually copy the update to root directory. This of course works. What is blocking the OTA install? Is it looking for stock recovery?

Otherwise, Lineage OS looks very nice.

Phil
[One (M8) Original Android Development] manuel15l:
I have the same problem.
[One (M8) Original Android Development] CutGlass:
I have a list of comments on the Updater rather than bugs and suggestions, which I will submit to the lineageOS team when they open the bug reporting system to the public, it was submitted already but closed while they focus on "regression" and removing CM things and any bugs which they find while going along. Still closed to the public as of this morning. :crying:

Having examined the zip, there is code in there to create a recovery but it will only replace a compatible one, a more experienced member than me was able to compile this and it apparently is pretty much the same as the original CM recovery, so one of the "suggestions" was to make the updater TWRP compatible as in developer options there is a new feature to "update recovery" (basically replace), so then most options are covered, e.g. updater works with TWRP or person can choose to go with a more base recovery system.

---------- Post added at 10:22 AM ---------- Previous post was at 10:19 AM ----------

Thank you for the information on the toolbox, a fresh pair of eyes may help, my experience is linux debugging and trouble shooting so even if I cannot solve the issue, it may be helpful to be able to discount a variety of options to help the developers narrow down the search.
[One (M8) Original Android Development] Eurofighter_ty:
If you have experience then it's great ! I don't have any experience regarding Linux just basic stuff about system layout, partitons some commands and tha'ts it !!!

Here is the stuff:

logs and text by jeffgao

I used adb logcat to capture some logs for different scenarios with my M8 with CypherOS 3.5.1 installed. The logs contain 4 files:

log1.txt is the log for the phone to boot without a SIM card.

log2.txt is when the phone has a Rogers SIM card inserted and location service enabled. It simply keep rebooting.

log3.txt is for the phone to boot with a Rogers SIM card inserted and location service disabled. Then I enabled location service after it is fully booted. After enabling location service, I immediately opened Google Map, and the phone rebooted.

log4.txt phone booted without SIM card, location service disabled, then insert SIM card. I enabled location service and waited long enough. Then opened Google Map, no crash occurred. Then I entered airplane mode, and disable it again. I repeated this a few times and eventually got a crash. But interestingly on the reboot, the phone successfully booted without crash, even with location service still enabled and SIM card still inserted. (It eventually crashed more than 10 minutes later, but I have already stopped logcat.)

logs: https://drive.google.com/open?id=0B4c9tlTAV_M0QWNZUVNhbGxIRDQ

Do you have hangouts/whatsapp ? if yes send me a PM.
[One (M8) Original Android Development] MightyChris:
Have a little problem. When i Use my m8 normal, screen freezing and it reboot it self. I thought it just happend when surfing in the net With chrome. But this morning it happend in xda labs.

This happend once a day normaly. Any suggestions?

Hopefull thanks chris
[One (M8) Original Android Development] Sholawayde:
I think i had similar problem on build 20170207, but haven't encounter such problem on build 20170214
[One (M8) Original Android Development] MightyChris:
Just dirty flash or clean incl wipe cache and DAlvic? May i try it in the evening :)
[One (M8) Original Android Development] Sholawayde:
I did dirty flash
[One (M8) Original Android Development] MightyChris:
Downloaded the actual Version and tried to flash it. Got an error. No MD5 Found..
[One (M8) Original Android Development] dyfk3l:
Maybe download is corrupt. Try re-download ans try it again.
[One (M8) Original Android Development] CutGlass:
How on earth did you get a TWRP screenshot, last time I tried it flat out refused to save the picture? :confused:

(possibly because I have an encrypted filesystem).
[One (M8) Original Android Development] MightyChris:
It just worked to redownload!:)

Just like a normal Screenshot. Then your display just light up once.

Encrypted file System?
[One (M8) Original Android Development] Pourrito:
Screencast

Hi there,

when I first flashed CM14.1 by mid December, I distinctly remember using a preinstalled video screenshot app (screencast, it was called, I think) … And I cannot find it in Lineage latest nightly… Has it been removed, or am I just too tired?? :confused:
[One (M8) Original Android Development] MightyChris:
First clean flash the experimental, than reboot and now you can flash the nightly.

https://download.lineageos.org/m8
[One (M8) Original Android Development] CutGlass:
But where did it save to, or did you use ads to pull it out? When I last tried it, it would not write to the filesystem.
[One (M8) Original Android Development] MightyChris:
Didn't save Anything, just opend it over quickpic - my picture watch Program - There it is in Folter Screenshot. Save path -SD card - pictures - Screenshots. Hope you unterstand my explaining
[One (M8) Original Android Development] CutGlass:
Yes I understand perfectly, a while back there was a problem with encryption, I was trying to screenshot the error messages where the filesystem could not be mounted, probably that why I though it wasn't possible because at that time there was nowhere to place the image. I was hoping there was a clever ADB way of grabbing it, but that's good enough I now know something new :D
[One (M8) Original Android Development] ahmed.ismael:
It will save the screenshot on the last path you were flashing from

Means if you flashed something from external sd card it will save the screenshot to the sd card

If you flashed something from usb otg it will save the screenshot to the usb otg

If you flash from internal it will save to internal

Pictures/screenshots
[One (M8) Original Android Development] CutGlass:
Thank you for the information.

That should have been ADB, at the time I had flashed internally, unfortunately internally was encrypted with the bug that existed prior to 25th Jan so would only read as corrupted. Since the internal filesystem was unreadable, I'm guessing that's why it wouldn't write.
[One (M8) Original Android Development] misterz100:
Any luck getting info from the maker of Beanstalk?
[One (M8) Original Android Development] Eurofighter_ty:
Not yet. I sent him a PM but no response.
[One (M8) Original Android Development] mihran_thalhath:
About the reboot of Canadian users? If yes, i have the solution.
[One (M8) Original Android Development] Pourrito:
Thanks, but that was not my question. I did all this as soon as it was published.

My question is "is there no screencast app installed by default anymore?"
[One (M8) Original Android Development] CutGlass:
If I tap on my status bar and the pencil for edit, then I find a cast icon which I can put on the second status bar screen. Clicking that when it is in the bar looks for suitable device. I am guessing you would need chrome cast or similar for it to work (I don't though oddly I did notice it used to turn on for bluetooth in my car).
[One (M8) Original Android Development] Jamie_oppo:
Im thinking of buying a htc one m8. do yous recommend it. as i would install the nighly as soon as i get it. Is it stable to use without any major bugs? sorry for posting it here but i didnt know where else to post it?
[One (M8) Original Android Development] CutGlass:
It is a lovely device, NFC is the major bug, Tap to Pay doesn't work and no NFC icon appears at the moment. There are problems with AGPS if you don't have good coverage, and boot loops on some Canadian devices (I think). The M8 should take cards up to 128 Gb which makes storage great, but some people have random problems.

I think before you flash straight away then you should install the latest firmware from HTC using all the tools like HTC sync on a PC just to be sure. If you are talking about the M8s that is for sale new, then none of this is relevant it's an entirely different device and processor.
[One (M8) Original Android Development] Jamie_oppo:
Ok thanks. I'm in australia and would just get the normal international version. Nfc isn't too bug of a deal. So does the gps still work at all? I live in a suburban area with good 4g coverage. Thanks for the response.
[One (M8) Original Android Development] CutGlass:
Yeah, you gotta be careful with the M8 in Australia, it's on their website as the M8s with a different processor as a new model, in the UK they've stopped selling them new (makes a great secondhand phone though). I can honestly say in the UK I have never had a single GPS issue and didn't even know that other people did or that AGPS was disabled (you cannot see this it's in the code), there's a hell of a lot of wifi, bluetooth, and satellites in such a small island.
[One (M8) Original Android Development] Jamie_oppo:
yeah i think its the internation varient. have a look at this one. price might be alot different as yous live in different countries. http://www.ebay.com.au/itm/252774420009?_trksid=p2060353.m1438.l2649&ssPageName=STRK:MEBIDX:IT
[One (M8) Original Android Development] CutGlass:
EMEA is Europe and Arabia but I'd check with the seller, it's good price equal to a secondhand one in the UK (32Gb) which makes me happy as if the price drops probably because of no more OTA's I'd get a second one.
[One (M8) Original Android Development] Jamie_oppo:
What sort of difference would there be in australia if it is EMEA? Is it built different ? Will it still work with the lineage os rom. Thanks sooooo much for helping me!
[One (M8) Original Android Development] CutGlass:
The ROM will work, the phone may not. I don't know enough about bandwidths in Australia compared to the UK but have a look at gsmarena http://www.gsmarena.com/htc_one_(m8)-6074.php they normally list the model's bandwidths. One oddity, my phone which is UK, previously displayed 4G, I still get 4G but the icon now says LTE. Anyway you should be able to find out from your provider or compare with existing phone with those frequencies.
[One (M8) Original Android Development] Jamie_oppo:
yeah the band widths will work im just worried about it not working as a phone with the EMEA version. i contacted the seller and see what he says. thanks alot. i think the lte symbol is the same as 4g.

The AU optus frequences i would use are Optus 700, 1800, 2600 (FDD-LTE) + 2300 MHz (TDD-LTE) the htc has the 1800 and 2600 bands

just saw this. That the EMEA is also the US version

Quad-core 2.3 GHz (US/EMEA)

so the frequences should work. so it should be the same phone and should work?
[One (M8) Original Android Development] CutGlass:
I haven't looked at GSMarena's lists, but basically if that matches you should really just read back this thread to January just to check there are no Aussie specific complaints.
[One (M8) Original Android Development] Pourrito:
When the language barrier gets in the way… :p

What I am looking for is an app that records a plain mp4 video of what I'm doing on the screen, actually, I'm not interested in casting it to another device…

Sorry for the misunderstanding… :eek: