[ROM][9.0][MODS][OFFICIAL] OmniROM

vache

Recognized Developer
Jun 12, 2009
1,131
3,659
153
Paris
I repeated now the install just to make sure:
Formating 2 different sd cards as external storage worked perfectly.
As soon I format the 2 different SD cards (that both work with Lineage) as INTERNAL STORAGE, the format goes to 40 % and then aborts.
Then, I installed Lineage OS again on the phone and the 2 SD cards were not usable anymore on Lineage as well (before, both cards worked on Lineage)
First, I thought the SD cards are ruinedby Omnirom but checking them with the disk management tool of windows 7 I saw, that both Samsung and Sandisk had 2 partitions, a 15 mb one and 113 MB
I removed the partitions on the sd cards and both cards are working again with Lineage OS
So, I think here is s. th. seriously wrong with formatting them as internal storage, maybe, it has to do with the encryption...
Luckily I have a 2 extra Moto z for testing this, so i did not have to mess around with my productive one.

---------- Post added at 02:00 PM ---------- Previous post was at 02:00 PM ----------

I repeated now the install just to make sure:
Formating 2 different sd cards as external storage worked perfectly.
As soon I format the 2 different SD cards (that both work with Lineage) as INTERNAL STORAGE, the format goes to 40 % and then aborts.
Then, I installed Lineage OS again on the phone and the 2 SD cards were not usable anymore on Lineage as well (before, both cards worked on Lineage)
First, I thought the SD cards are ruinedby Omnirom but checking them with the disk management tool of windows 7 I saw, that both Samsung and Sandisk had 2 partitions, a 15 mb one and 113 MB
I removed the partitions on the sd cards and both cards are working again with Lineage OS
So, I think here is s. th. seriously wrong with formatting them as internal storage, maybe, it has to do with the encryption...
Luckily I have a 2 extra Moto z for testing this, so i did not have to mess around with my productive one.
I still don't see any logs in your bug report. How am i supposed to help you ?
 
  • Like
Reactions: s1ck-IT

ischninet

Senior Member
May 1, 2016
66
8
0
Problems with sd card and setting it to internal memory

I still don't see any logs in your bug report. How am i supposed to help you ?
O.k I see the point. Once I have my third Moto Z back (I gave it to a friend), I will check for bugs systematically. I should be able to do this because I am a scientist ;).
What I need to know is :
- How do I switch on logging?
- Where are the logs stored?
- Which log file do you need?
I hope, we can then find the reason for that strange sd card behavior. My only question is, if I am the only one that is using encryption and an sd card as internal memory?
Thanks amnd kind regards,
Rainer
 

vache

Recognized Developer
Jun 12, 2009
1,131
3,659
153
Paris
But for V4A root is required.

@vache
Maybe it's possible to increase the volumes with one of the next updates.
I'll have a look.

O.k I see the point. Once I have my third Moto Z back (I gave it to a friend), I will check for bugs systematically. I should be able to do this because I am a scientist ;).
What I need to know is :
- How do I switch on logging?
- Where are the logs stored?
- Which log file do you need?
I hope, we can then find the reason for that strange sd card behavior. My only question is, if I am the only one that is using encryption and an sd card as internal memory?
Thanks amnd kind regards,
Rainer
Easy way, open incuded MatLog app, click on three dot menu -> save zip. This will generate all the logs i need.
 

ischninet

Senior Member
May 1, 2016
66
8
0
I'll have a look.



Easy way, open incuded MatLog app, click on three dot menu -> save zip. This will generate all the logs i need.
I installed it on my third Moto Z with a 128 Sandisk sd-card, as I told you before, behavior is the same on the other Moto Z and wth 2 different 128 gb sd-cards (Samsung EVO and Sandisk)

Here you go (log attached):
-Installed TWRP
-Installes Omnirom
-First boot, stuck at boot logo, solution: repeated steps above bit did not install TWRP as system app!
- Omnirom boots up fine
- formatted the sd as internal memory, aborts at 40%.
- SD card not readable, even if I go to "storage" it quits
- Under windows I see that there is a 15MB and113MB partition. On the to other phones deleting those 2 partitions under windows, makes it usable again
-As I founf out with the Moto Zs before, format it as external storage is not a problem.

If I have to be more specific, no problem, tell me and I will be ;)
Thank you very much for your help !:)
Rainer
 

Attachments

ischninet

Senior Member
May 1, 2016
66
8
0
more specific information and a attachments

I installed it on my third Moto Z with a 128 Sandisk sd-card, as I told you before, behavior is the same on the other Moto Z and wth 2 different 128 gb sd-cards (Samsung EVO and Sandisk)

Here you go (log attached):
-Installed TWRP
-Installes Omnirom
-First boot, stuck at boot logo, solution: repeated steps above bit did not install TWRP as system app!
- Omnirom boots up fine
- formatted the sd as internal memory, aborts at 40%.
- SD card not readable, even if I go to "storage" it quits
- Under windows I see that there is a 15MB and113MB partition. On the to other phones deleting those 2 partitions under windows, makes it usable again
-As I founf out with the Moto Zs before, format it as external storage is not a problem.

If I have to be more specific, no problem, tell me and I will be ;)
Thank you very much for your help !:)
Rainer
Formatting sd-card as "internal storage" not possible on Moto Z
-formatting as external storage works
- when formatting it as internal storage, it aborts, after this, you cannot open the "storage app" anymore. On the sd card, there is now a 16 MB and a 119,07 GB partition (see attached image)
- after removing the sd card "storage app can be used again (does not quit anymore when try to open)
- after removing the2 partitions on the sd card, it can be used again in the phose but ONLY AS EXTERNAL storage.
-as soon you try to format it as "internal storage, the same procedure happens again
- I have 3 Moto Z. It happens with all of them
- I have 3 sd cargs (Samsung EVO128, Samsung EVO64, Sandisk Extreme plus, it happens with all of them
- Under Lineage 16 all this is fine on all 3 phones with all 3 sd cards
- so, it is definitely a bug with the Omnirom image for the Moto Z
 

Attachments

ischninet

Senior Member
May 1, 2016
66
8
0
sd card setup as internal memory (adoptable storage)

And here is maybe the reason for the problem with adoptable storage:
full log provided as attachment!

07-07 01:24:05.166 I/make_f2fs(515):
07-07 01:24:05.167 I/make_f2fs(515): F2FS-tools: mkfs.f2fs Ver: 1.10.0 (2018-01-30)
07-07 01:24:05.167 I/make_f2fs(515):
07-07 01:24:05.167 I/make_f2fs(515): Info: Disable heap-based policy
07-07 01:24:05.167 I/make_f2fs(515): Info: Debug level = 1
07-07 01:24:05.167 I/make_f2fs(515): Info: Label =
07-07 01:24:05.167 I/make_f2fs(515): Info: Trim is enabled
07-07 01:24:05.167 I/make_f2fs(515): Info: No support kernel version!
07-07 01:24:05.167 I/make_f2fs(515): Info: Segments per section = 1
07-07 01:24:05.167 I/make_f2fs(515): Info: Sections per zone = 1
07-07 01:24:05.167 I/make_f2fs(515): Info: sector size = 512
07-07 01:24:05.167 I/make_f2fs(515): Info: total sectors = 0 (0 MB)
07-07 01:24:05.167 I/make_f2fs(515): Info: zone aligned segment0 blkaddr: 512
07-07 01:24:05.167 I/make_f2fs(515): Error: Device size is not sufficient for F2FS volume
07-07 01:24:05.167 I/make_f2fs(515): Error: Failed to prepare a super block!!!
07-07 01:24:05.167 I/make_f2fs(515): Error: Could not format the device!!!
07-07 01:24:05.168 I/make_f2fs(515): make_f2fs terminated by exit(255)
07-07 01:24:05.168 E/vold (515): private:179,2 failed to format: Invalid argument
07-07 01:24:05.175 E/Cryptfs (515): Cannot remove dm-crypt device
07-07 01:24:05.179 I/Cryptfs (515): Extra parameters for dm_crypt: (null)
07-07 01:24:05.179 I/Cryptfs (515): target_type = crypt
07-07 01:24:05.179 I/Cryptfs (515): real_blk_name = /dev/block/vold/private:179,2, extra_params = (null)
07-07 01:24:06.371 I//vendor/bin/hw/[email protected]
 

Attachments

Last edited:

Zzoro

Senior Member
Dec 25, 2008
154
26
48
How can I use OmniRom as a vendor for installing GSI+OpenGapps? I flash the zip with the ROM, GSI, Magisk but failed to flash OpenGapps for Android 9 with the error code 20. OpenGapps Installer says that I should download a package for Android 7. I tried the erfanoabdi`s version of TWRP and the latest oficial TWRP with the same result. With LOS as a vendor OpenGaps installs without this problem. What should I do to use OmniRom as a vendor for installing GSI and OpenGapps?
 
Last edited:

ischninet

Senior Member
May 1, 2016
66
8
0
Hi vache,
did you already have time to look into this strange problem with formatting the sd card as internal memory (adoptable storage)? Would a donation help to solve this issue ;) ? Kind regards!
 

ischninet

Senior Member
May 1, 2016
66
8
0
Why does encryption take much longer on Lineage 16 than on Omnirom? With Omnirom, after you press "encrypt phone, the phone restarts and is immediately encrypted. On LOS16, this process takes at least 15 minutes.
What is the reason for this difference?
 

ischninet

Senior Member
May 1, 2016
66
8
0
Is here s.o. who is using adoptable storage (external sd formatted es internal storage)? It would be really nice if s.o. would respond. a simple yes or no would already help me. Thanks a lot!

---------- Post added at 03:36 PM ---------- Previous post was at 03:12 PM ----------

Just installed 2019-07-14. "sd card as adoptable storage" is still not working!
 

ischninet

Senior Member
May 1, 2016
66
8
0
Looks like I am not the only one having that problem with the "formatting sd as internal memory"
https://github.com/omnirom/android_device_motorola_athene/issues/3
So why is no one confirming this issue here. I asked for a while....
I think, that it is a very important thing, that is not working and s..o. should already have discovered it right? Its not s. th. like Emojis are not working
here is what the guy posted:
"Formatting micro sd cards fails #3
Open
odomiel opened this issue on Jan 3 · 0 comments
Comments
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
1 participant @odomiel @odomiel
odomiel commented on Jan 3

If you try to format a micro sd card as an internal memory, the memory app crashes with the following error message:

attempt to invoke virtual
method 'java.lang.String
android.os.storage.VolumeInfo.getID()' on a
null object reference"

This is exactly the same problem I have......
 

ischninet

Senior Member
May 1, 2016
66
8
0
logs with an unencrypted phone, same issue....

Hi Vache, hi Stefan,
here are the logs with a phone that is not encrypted
in short, exactly the same issue. I encrypted the phone again after formatting failed.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone