Divested-Mobile / DivestOS-Build

Everything needed to build DivestOS, a more private and more secure aftermarket mobile operating system.
https://divestos.org/index.php?page=build
Other
203 stars 29 forks source link

Install Divest OS on GT-N5100 with latest build 6th of May #209

Open TiberiusRegenschein opened 1 year ago

TiberiusRegenschein commented 1 year ago

First of all, I appreciate your efforts to give life to old devices like mine with a ROM targeted on security. There is no technical reason to throw my GT-N5100 into the garbage. It is still responsive and the 2nd battery is going strong. Latest firmware updates from Samsung are from end of 2014 and nothing will be done on that end any more, but this is true for all 3rd party ROMs. I am hoping with your ROM to find a solution to use the device a few more years to com - Thank you.

Here what I have done to install Divest OS on the device:

Preparation

On your computer

Error message: E: failed to find /misc partition

On your phone

Find the log attached Radio_log_Divest_OS.log

SkewedZeppelin commented 1 year ago

looks like the modem is looping restart

can you give logs from:

adb logcat -b all -d | grep -i audit
adb logcat -b all -d | grep FATAL -c20
TiberiusRegenschein commented 1 year ago

Thanks for the quick response. Please find attached the both logs you asked for.

2 Things in addition

  1. Whole device encryption is working as expected
  2. The first time the UI shows up the full error message I am getting is "java.lang.SecurityException: Permission Denial:reading com.android.providers.media/external/file from pid=5489, uid=10050requires android.permission.READ_EXTERNAL_STORAGE, or graptUriPermission()" audit_log_Divest_OS.log FATAL_log_Divest_OS.log
SkewedZeppelin commented 1 year ago

so selinux is the issue here, I'll switch n51xx to -userdebug like I did i9xx series

SkewedZeppelin commented 1 year ago

new builds for n51xx series are up, please test

TiberiusRegenschein commented 1 year ago

Hi, thanks for the fast turn around. I did the test and the situation is unchanged. Please find the audit log attached. The FATAL log remains unchanged 20230511_audit_log_Divest_OS.log

TiberiusRegenschein commented 1 year ago

To be on the save side I installed latest TWRP and sideloaded DOVEST OS ROM. No change.

I also installed XDA ROM from here https://forum.xda-developers.com/t/lineageos-19-1-android-12l-for-gt-n5100-gt-n5110-gt-n5120-beta.4366627/ and removed DIVEST OS and everything is back to normal

SkewedZeppelin commented 1 year ago

only "works" because they disable selinux which throws security out the window and makes the app sandbox useless

Selinux: permissive

TiberiusRegenschein commented 1 year ago

You are absolutely right and security is the reason for me to look since a while, even years, now for an alternative to be able to use the device with up to date apps from f-droid. I like the form-factor of 8" and having a pen to scribble. There are not many alternatives out there. I initiated contact via xmpp:divestos-mobile@conference.konvers.me to keep github, or would you like me to move to gitlab, for issue tracking and solving

SkewedZeppelin commented 10 months ago

are you able to test again?

another user recently reported their n5100 working well

TiberiusRegenschein commented 10 months ago

Hi, thanks for actively pushing. As of the version September 20th many things are improved:

There are some smaller issues still:

Confirmed working is:

and most of the other stuff as far as I could test. Solving the Wifi issue to not rely on the HotSpot of another phone would be great and would make the device as fresh as it can get after nearly 10 years now.

Thanks again :smile:

SkewedZeppelin commented 10 months ago

I can download via OTA a new version, but not install it.

This may be a space issue, that device only has 8GB I think? so like 5GB available to use? The update + extracted size may be too large.

Etar not working is strange though

WPA2 + WPA3

I've found this is unreliable even on other devices like laptops. I personally use and recommend keeping a distinct WPA2 and WPA3 SSID if possible.

TiberiusRegenschein commented 10 months ago

One update regarding Etar: After installing the latest version from F-Droid Etar works as expected. Looking into ETAR Github there were some issues with the latest version.

Tablet has 16GB of which are 6 GB used. Should not be a space issue. I installed TWRP resulting in the same problem. OTA is working with the same TWRP and other ROMs.

WPA2 + WPA3 is unfortunate but seems to be a problem with other lineage os versions too and your described solution to separate both is also named. => Probably something I have to work around

With this the remaining issue is the OTA update. Any log I can help with?