yashsingh1/xdaforums huggingface dataset:
[Realme GT 2 Pro] Stano36:
Hello, how do you turn on Safe Mode?

The classic method does not work.

Edit 23.10.2022

Solved

Turn off the device

Turn on the device and when the yellow inscription realme appears, press and hold the volume down button.
[Introductions] roro70:
Buen y excelente dia para tod@s, espero se encuentren bien, gracias por aceptarme en este grupo, tengo problema con un xiaomi mi1a, se pierde la señal del gps, espero alguien de este distinguido grupo me pueda apoyat, ya que el celular lo utilizo para trabajar en las plataformas didgitales de transporte, saludos.
[Introductions] orb3000:
Hi and welcome to XDA,

English is the preferred language in the forums but you can always use an online translator.
[Introductions] ipdev:
Google Translate:

If you have not found it yet, the forum for Mi A1..

Xiaomi Mi A1 - Link

Xiaomi Mi A1 Questions & Answers - Link

Cheers. :cowboy:
[Xperia Z5 Compact Android Development] arpias:
Hello! Can you made this rom for z5 premium?
[Xperia Z5 Compact Android Development] Berni-0815:
No! There is a maintainer for z5p, please ask him.
[Xperia Z5 Compact Android Development] arpias:
Okay, thx!
[Xperia Z5 Compact Android Development] Delfinololo:
Awesome, thanks for the constant support to z5c!
[Xperia Z5 Compact Android Development] Berni-0815:
New version (Halloween edition!) out; see 1st post.

No crashes any more; therefore I've bumped this version to BETA state

Bluetooth crashes no longer. A connection can be established, but it disconnects again immediately after connection; dunno why!

FM-Radio removed; it caused crashes of bluetooth

GApps are working! I've tested MindTheGApps
[Xperia Z5 Compact Android Development] Berni-0815:
Oh! I've forgotten: Signature spoofing is now working!
[Xperia Z5 Compact Android Development] casouzaj:
Haven`t tested your new release on my old Xperia Z5C yet, but I installed unofficial LOS 20.0 in my Xperia XZ2, by @dtrunk90, and with his ROM, bluetooth A2DP/AVRCP profiles work pretty fine. Don`t know if the kernel plays a critical part on this matter. For Z5C it`s still in version 3.10, whereas for the Tama platform, it`s 4.9. Maybe you guys could chat a little about it. Thanks for giving our old little beast a new life, anyway!
[Xperia Z5 Compact Android Development] dtrunk90:
Not sure if this helps but check the comments in https://review.lineageos.org/c/LineageOS/android_device_sony_tama-common/+/339303

For some reason switching BtAudio to AIDL breaks a2dp offload for some devices.
[Xperia Z5 Compact Android Development] Berni-0815:
I've tried to reactivate a2dp. Unsuccessfully. It's now realized as a module and that's not the same as before.

Feel free to port the kernel to 4.9 or anything else. We won't, because this really is a pain in the ass and could end in total frustration...
[Xperia Z5 Compact Android Development] Berni-0815:
Los20 with MindTheGApps shows unreproducible random crashes. Until now I dunno why and I'm working on it.

But I think, it's not at my side and has to do with the (so my idea) early beta build of MindTheGApps...
[Xperia Z5 Compact Android Development] Gadoin:
I've tested on my Z5c with "NikGapps-go" yedterday and it work very well (store, mail, galery, map) without any crash.

MMS working after manual configuration of the APN (SFR).

The ROM is very smooth, more faster than lineage 19. Nice job!
[Xperia Z5 Compact Android Development] Berni-0815:
I've seen a lot of java illegal exception error messages; so, yes, its a problem at MindTheGApps' side.
[Xperia Z5 Compact Android Development] Berni-0815:
What are the differences between "core" and "go"? What does "go" exactly mean?
[Xperia Z5 Compact Android Development] Gadoin:
"go" apps are for low-end devices.

Apps run into navigator.
[Xperia Z5 Compact Android Development] Berni-0815:
Navigator? Is that a kind of browser?
[Xperia Z5 Compact Android Development] Gadoin:
Oops i'm sorry for my english, i mean browser.

"go" apps runs into default browser.
[Xperia Z5 Compact Android Development] 1ggn3:
Hm, our Z5C is now rather low-end, compared to today's flagships :)

So the Go version might be just the right thing. Sadly, I didn't get it to work on 19, and I'm still a bit afraid to switch to 20
[Xperia Z5 Compact Android Development] Berni-0815:
NikGApps (I've installed the "core" flavour!) are working flawlessly indeed. Much better than MindTheGApps! (y)
[Xperia Z5 Compact Android Development] wadderlou:
Hello, This is off topic,

Is there a way to support the work you do - Berni ?

Or at least to show some gratitude ?

I'm thinking of gifting 10-20 Euro, to be clear.
[Xperia Z5 Compact Android Development] Berni-0815:
Thank you very much for your reply. But doesn't need to be any gifts currently except "thank you". That's gift enough... ;)
[Xperia Z5 Compact Android Development] Gadoin:
I didn't taste it, i actually use rooted version of the previous version of your rom (Magisk + NikGapps core) and it work great

(only one thing : mms service work randomly but i don't know why)

I plan to taste the microG version next week-end
[Xperia Z5 Compact Android Development] Berni-0815:
Please keep in mind, that GApps and microG CAN'T coexist!
[Xperia Z5 Compact Android Development] Gadoin:
After few days of use (lineage-20.0-20221115 with NikGapps + Root) I have encoutered weird thing :

After boot (<1 minute) the phone just reboot, again and again (Another member have the same issue on lineage 19)

setenforce 0 solve definitively the problem, after that I can boot without using that command again.
[Xperia Z5 Compact Android Development] username one:
No, I haven't tried it yet, but I liked your post because I use MicroG on an older tablet which made it run smoother. The Z5 is the only phone I have, so I'm a bit hesitant to try the beta. But I think MicroG is the right way forward to keep the Z5 run smooth.
[Xperia Z5 Compact Android Development] Gadoin:
Tested during seven hour yesterday, the ROM work great !

I can't sync with google without google app, for example : i have to use google agenda to sync the calendar.

I didn't try microG in the past so, It is normal ?
[Xperia Z5 Compact Android Development] Berni-0815:
That points to a SELinux issue. But I can't fix it without any hint where to search for. A LOG would have helped before you solved the problem for you.
[Xperia Z5 Compact Android Development] Berni-0815:
Yes. microG ≢ Google!
[Xperia Z5 Compact Android Development] Berni-0815:
I for myself have seen a weird behaviour: From time to time the battery drains extremely fast and the device gets quite warm in this time. After a reboot this is gone.

I can't find any reason for it.

That's the reason why I asked if the ROM works for you.
[Xperia Z5 Compact Android Development] 1ggn3:
If you refer to my little issue, I ultimately fixed it by formatting /system and re-flashing it. I might have done that a couple of times, so no idea what actually solved it. But now it works nicely again :)
[Xperia Z5 Compact Android Development] 1ggn3:
Weird.. I probably don't have to tell you, but I found that "htop" in a root shell (adb or onboard) is quite helpful to check what actually uses the Cpu
[Xperia Z5 Compact Android Development] Berni-0815:
This is due to a mistake I made while playing around with microG.

After deleting the cache and memory microG uses, this error is gone.
[Xperia Z5 Compact Android Development] username one:
I tried the beta with MicroG today without luck. The camera app kept crashing. I then tried 19 with MicroG and now the Z5 runs very smooth again! Maybe even smoother than when it was new? Many thanks Berni!! (y)
[Xperia Z5 Compact Android Development] Berni-0815:
What do you want to say with the words "without luck"? Is the ROM booting and working?

Then everything is as it should be.

Otherwise please tell me what's going on.

Ironic mode ON:

Whoops! That's completely new to me! How comes that?

Ironic mode OFF!

Have you seen my 1st post? There you can read under the part "These things are NOT working (or badly working):"

Camera
[Xperia Z5 Compact Android Development] username one:
"These things are NOT working (or badly working):"

Camera

Exactly that, I was not lucky enough to get the camera to work, at all. The camera is needed for my ID app. Otherwise, everything else seemed fine. (y)
[Xperia Z5 Compact Android Development] Berni-0815:
That has nothing to do with luck!

The camera-sources we're using for los19.1 aren't compilable anymore for los20.0. We don't know why and we have currently no idea how to fix that!

The same with Bluetooth! It basically starts and works, but any attempt to connect results in an instant disconnect. This is so frustrating.
[Xperia Z5 Compact Android Development] Berni-0815:
We indeed need any help we can get to fix those issues.

So, please, flash this ROM, grab LOGs, analyse them and give us hints where to search for.
[Xperia Z5 Compact Android Development] Berni-0815:
Normally I publish the latest version with december security updates at this place.

But unfortunately this version is so sluggish that it is nearly unusable. Every tap on the screen leads to some seconds of freeze of the whole system!

I have to dig deeper to fix this.

Please be patient!
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 December 2022

As I've written above, this ROM is quite sluggish, but usable. Unfortunately I haven't found the culprit.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Much better performance; no sluggish behaviour anymore!

Unfortunately no progress regarding bluetooth and camera; they are simply not working...
[Xperia Z5 Compact Android Development] Berni-0815:
...and unfortunately the device gets quite warm and the battery drains quite fast...

At this state the ROM is not usable as daily driver. I'm sorry... :confused:

I have to correct myself! Something must have been messed up at my running los20.0 system! A clean install works smooth as expected and keeps cool! The battery drains very slow as it should be.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Platform version bumped from android-13.0.0_r16 to android-13.0.0_r20

Android security patch level: 5 January 2023
[Xperia Z5 Compact Android Development] 1ggn3:
So, small update on my issue: I finally gave in and bought a new battery (the Polarcell one), and all my crashes and reboots are gone. It has been running fine for three days now (on LOS 19). Before, it would crash more and more, even when on a charger.

I don't know if SELinux was just an early "canary bird", or if the time spent charging while doing stuff in TWRP helped, but for me it's clear that my issues were just a dying battery.

Maybe your issue is different, who knows. But if I were you, I would at least consider the age/history of the battery.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 February 2023

Platform-Update: android-13.0.0_r20 -> android-13.0.0_r30

Unfortunately no progress regarding bluetooth and camera.
[Xperia Z5 Compact Android Development] Berni-0815:
The latest Android security patch level updates dated 5 March 2023 causes some issues and I'm currently trying to fix them.

Please be patient.
[Xperia Z5 Compact Android Development] Berni-0815:
If someone is willing and able to help; here's the current problem: Klick
[Xperia Z5 Compact Android Development] Berni-0815:
The problem was solved without my intervention. ;)

New version out; see 1st post.

Android security patch level: 5 March 2023
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Bumped platform version from android-13.0.0_r35 to android-13.0.0_r41

Android security patch level: 5 April 2023
[Xperia Z5 Compact Android Development] arpias:
I wish to try this version on my xz premium!
[Xperia Z5 Compact Android Development] Berni-0815:
Don't try to flash this ROM to another device than Sony XPeria Z5 compact (E5803, E5823)!!!!!!!!!!
[Xperia Z5 Compact Android Development] petefoth:
I am trying to make a build of IodéOS4 (based on lineage-20.0) for this device, using @Berni-0815's source, init-scripts and manifests. I've had to pick and choose from the files because

I don't need most of the stuff in `init-los20.sh`: the signature spoofing patches, and F-Droid and MicroG are already included in the IodéOS sources. So I'm only picking up the patch from `android_hardware_qcom_audio` from that file

Some of the repos removed or changed in the manifests are not present in the IodéOS sources. I have combined the manifests into the attached manifest, which I think has everything I need. But I must be missing something as I am getting a the following errors when building `out/soong/build.ninja`:

error: device/sony/kitakami-common/camera/libcameraservice/Android.bp:38:1: "libcameraservice_kitakami" depends on undefined module "no_cameraserver_defaults"
error: device/sony/kitakami-common/camera/libcameraservice/Android.bp:38:1: "libcameraservice_kitakami" depends on undefined module "needs_camera_boottime_defaults"

Any ideas where I should be picking up the missing "no_cameraserver_defaults" and "needs_camera_boottime_defaults" modules?

Thanks

EDIT:

nvm. They are in the `build/soong/Android.bp` from the LineageOS-UL/android_vendor_lineage repo. I need to check if there is anything much else from LineageOS-UL that I need that isn't in Iodé's version of that repo
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 July 2023

Unfortunately still no progress regarding Bluetooth and Camera.
[Xperia Z5 Compact Android Development] steve8x8:
Somehow the Changelog link didn't get updated for 20.0 ;)
[Xperia Z5 Compact Android Development] Berni-0815:
Crap! Changed it; I should not sit so long in front of my monitor...
[Xperia Z5 Compact Android Development] Maledict_YT:
Hi, is the OTA updater working on this ROM ?
[Xperia Z5 Compact Android Development] Berni-0815:
No, because there is no update server.
[Xperia Z5 Compact Android Development] Bergfex2:
I'm currently considering whether to buy a Sony Xperia z5 compact (or compact X) again. Do you think the FM radio will work in the future? Danke für die Antwort.
[Xperia Z5 Compact Android Development] Berni-0815:
The FM radio has been removed due to crashes of bluetooth. The answer is NO.

If you need FM radio try my los19.1 ROM.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

AOSP version bumped from android-13.0.0_r67 to android-13.0.0_r75
[Xperia Z5 Compact Android Development] jwalesch:
Hi,

getting back here to try a fresh installation of TWRP 3.7.0_9-0 and afterwards Lineage 18.1 (both downloaded onto my computer) on my Sony Xperia Z5 compact:

I have TWRP 3.2.3-0 installed on the device but cannot access it as I seem to have wiped something wrongly by resetting to factory settings (had planned to sell the phone and wipe it but will give it another chance).

Could you tell me if I can install a new version of TWRP onto the Z5c and, if so, how I should do that?

There is no visible OS to be found on the Z5c.

Obviously the phone has an unlocked bootloader, I have ADB & fastboot on my linux computer but the computer cannot find any devices when doing [./adb devices] in the terminal.

I would appreciate your help greatly!

Thank you!

Jörg
[Xperia Z5 Compact Android Development] jwalesch:
We could also chat in German if you tell me where/how.
[Xperia Z5 Compact Android Development] jwalesch:
That's all my X5C will show when started.

Pressing ON and LOUDNESS+ wont work, just shuts the phone off.
[Xperia Z5 Compact Android Development] petefoth:
You should be able to start the phone in fastboot / bootloader mode:

Power the phone off completly by holding POWER and Volume UP (in the middle, not UPor DOWN ) until

the phone vibrates once- after ~3 seconds,

keep holding both buttons until

the phone vibrates three times- after ~10 seconds,

Start the phone in Bootloader/Fastboot:with phone powered off hold Volume Up and connect the USB cable. The notification light should turn blue.

If the light turns green, then complet putting it into Bootloader by calling `fastboot reboot bootloader`

You should then be able to flash TWRP using `fastboot flash recovery <TWRP image name>.img`
[Xperia Z5 Compact Android Development] Berni-0815:
There is no "middle"! It is a two way button. Up and down. That's all. And "up" (together with "power") works to shut down the phone.

The procedure one should use is described here: Klick
[Xperia Z5 Compact Android Development] petefoth:
Sorry - my mistake. Post edited
[Xperia Z5 Compact Android Development] jwalesch:
Hi guys,

thanks for your help so far.

Today I had another chance to try and mend my old Z5C but I think I have to go from scratch.

This works:

POWER + VOLUME UP turns the phone off

POWER + VOLUME DOWN starts TWRP (what's left of the old installation ie. the start screen of TWRP but I can't get anywhere from there)

VOLUME DOWN + plugging in the USB cable connected to my computer will turn on the blue light

When I run "./adb devices" from the appropriate folder with the platform tools there isn't any device shown.

Obviously I cannot use an old installation of, let's say, LineageOS as that's been busted, so I cannot check the USB debugging mode but I assumed that the phone comes in the debugging mode anyway as it had LineageOS installed on it before.

So, I cannot install the new version of TWRP as the computer doesn't 'see' any device to install it onto.

Any more ideas?

How would I start from scratch?

Thanks for wrecking your brains!
[Xperia Z5 Compact Android Development] petefoth:
That blue light means it is in bootloader mode. At this point it won't respond to `adb` but it will respond to `fastboot`

Yes you can. You install it using `fastboot`

fastboot flash recovery TWRPxxxx.img
[Xperia Z5 Compact Android Development] Berni-0815:
Simply take a look at my post #73. There is a link to everything you should know. Why aren't you follow these steps?
[Xperia Z5 Compact Android Development] jwalesch:
Thank you for trying to help!

fastboot flash recovery TWRPxxxx.img

doesn't work. I believe I am doing it from the correct folder on my computer but as the computer doesn't know of any devices it cannot flash the image.

So I feel stuck.

Any idea?

I don't want to throw my Z5C in the bin.
[Xperia Z5 Compact Android Development] jwalesch:
And I will check again if I have all the needed files as per your post #73 mentioned above. I had checked that before but will do it again later.

Thank you for your help!
[Xperia Z5 Compact Android Development] Berni-0815:
What does

fastboot devices

tell you, if your device is plugged-in in bootloader mode (blue LED ON)?
[Xperia Z5 Compact Android Development] Berni-0815:
If the command above shows no device, try another USB-cable or -port. And don't use an USB-hub or anything like that.
[Xperia Z5 Compact Android Development] Idrisse777:
Hello, everyone😊, having flashed a lot of Samsung With odin samfw… I am not comfortable with Sony I installed on my computer ADB INSTALLER V1.4.3 – DRIVERS do I need platform tools to drag the twrp file in it where do I just need the computer command prompt?
[Xperia Z5 Compact Android Development] Berni-0815:
I don't know how to flash any stuff using Windows. I'm working with Linux!

Every hint I'm giving is for Linux only. But I think the commands are similar in Windows. But I don't know for sure.

You need fastboot for flashing TWRP. I don't know if fastboot is included in the driver package you've mentioned.
[Xperia Z5 Compact Android Development] Idrisse777:
Thanks bro its compatible E5823?
[Xperia Z5 Compact Android Development] Berni-0815:
From my own device source code:

# Assert
TARGET_OTA_ASSERT_DEVICE := E5803,E5823,suzuran

So, yes, it is.
[Xperia Z5 Compact Android Development] Idrisse777:
last question man if I understood correctly I flash the TWRP then LineageOS 20.0 then micro g remover then mindthegapps to only have the mindthegapps ☺️?
[Xperia Z5 Compact Android Development] Berni-0815:
Almost. After you have flashed TWRP, you start TWRP.

Then you can copy the needed files (ROM, GApps etc.) to the device and install them inside TWRP.

When the device is booted with TWRP, you have full access to the file system, because TWRP works with root privileges.
[Xperia Z5 Compact Android Development] Berni-0815:
But be aware of what's NOT working in this ROM! You should consider to use los18.1 or los19.1 instead...
[Xperia Z5 Compact Android Development] Idrisse777:
Thanks m’y friend I'm going to test lineage 19.1 ☺️ so I flash lineage then microg remover then my gapps package of my choice
[Xperia Z5 Compact Android Development] Berni-0815:
Yes!
[Xperia Z5 Compact Android Development] Idrisse777:
Impossible to flash twrp:/
[Xperia Z5 Compact Android Development] Berni-0815:
1st:

You're trying to flash an outdated version of TWRP as of february the 23th of 2018. Please try this one (TWRP_3.7.0_9-0-recovery_suzuran_2022-12-23)

If you're unsuccessful again, you can't change the bootloader. That may tell you, that it's not allowed. Or that the bootloader is not unlocked!

Please try to flash the latest Sony stock ROM using this flash tool. Klick at the button named "XF", download a matching ROM, flash it, set it up fully and dial *#*#service#*#*. There you can see if you're allowed to unlock the bootloader.

If yes, there is a tutorial to unlock the bootloader. If no, you're at the end now.
[Xperia Z5 Compact Android Development] Idrisse777:
Thanks bro I tried all the versions😅
[Xperia Z5 Compact Android Development] Idrisse777:
Impossible… none work
[Xperia Z5 Compact Android Development] Berni-0815:
Ok. The unlock of the bootloader is allowed! Is it already unlocked?

Is this done?

Go into Settings > About phone and tap seven times on Build number to enable developer options.
From Settings, go into Developer options and enable OEM unlocking.
[Xperia Z5 Compact Android Development] Idrisse777:
Yeahhh oem and usb debug …
[Xperia Z5 Compact Android Development] Berni-0815:
If all requirements are met (bootloader is unlocked and it really is a Sony XPeria Z5 compact [suzuran]), it MUST work!

Otherwise I am completely at a loss!
[Xperia Z5 Compact Android Development] Idrisse777:
Tested ubuntu, kali, Windows 😂😢
[Xperia Z5 Compact Android Development] Berni-0815:
Please try this LineageOS recovery.

But I don't know if and how it works...
[Xperia Z5 Compact Android Development] Idrisse777:
View attachment 6027849Je sais comment ça marche, je l'ai déjà utilisé pour la ligne officielle, mais malheureusement ça ne fonctionne pas aussi bien, merci de toute façon, je te remercie pour les efforts frérot
[Xperia Z5 Compact Android Development] Idrisse777:
I know how it works I have already used it for the official line but unfortunately it does not work as well thank you anyway I thank you for the efforts
[Xperia Z5 Compact Android Development] Berni-0815:
To verify that the fastboot flash does work, can you try to flash this bootimage?

fastboot flash boot <bootimage>
[Xperia Z5 Compact Android Development] Berni-0815:
The next you can try is to grab a LOG from the not fully booting TWRP:

adb pull /tmp/recovery.log

...and send this via PM to me...
[Xperia Z5 Compact Android Development] Idrisse777:
It's always the same, my friend
[Xperia Z5 Compact Android Development] Berni-0815:
There are many guides on the Internet on how to fix this error. Most of them say that the bootloader of your device is NOT unlocked!

f.e.

Or search for this string: "fastboot failed remote: command not allowed" in your preferred language.
[Xperia Z5 Compact Android Development] Idrisse777:
thank you you still have friends the most surprising thing is that when I run the command fastboot boot TWRP_3.7.0_9-0-recovery_suzuran_2022-12-23.img the phone understood correctly. It restarts, then turns off and shows charging. without putting the twrp 😅