yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
A few things, such as:

Adding drivers that are built as modules in stock (Sony builds them outside the kernel source), such as WiFi, FP scanner, simdetect, etc - the sources are in vendor/semc in the kernel source package iirc

Adding defconfigs

Allowing reboot to recovery

Adding sdfat driver

...

You can see the commits here: https://github.com/derfelot/android_kernel_sony_msm8998/commits/lineage-16.0-LA.UM.7.4.r1

You can ignore the reverts. As you can see, I reverted them again later because they wouldn't allow the kernel to boot on stock - likely due to incompatibilities with the prebuilt kernel modules in /vendor. Personally, I don't agree with with putting modules in /vendor, I think they should go into ramdisk instead so they get updated with a new boot.img as well. But over-trebelizing is what google wants I think.

edit: We are not building modules anymore now on los16.0. The qcom wifi driver is so big, that it was necessary at first, but we now build with clang and some defconfig optimizations so that we don't go over the size limit anymore.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
Thank you, [MENTION=4063475]derf elot[/MENTION], for the overview.

I am wondering if it could be possible to run LOS with stock kernel, i.e. like tailoring a LOS build to be compatible with stock kernel binary?

The reason I ask: I've managed to extend my temproot exploit so that I can 'stop' stock android on still locked xz1c.

I think that it might be possible to do some mount magic to bring a LOS rootfs up on a still locked phone;)

So should a integration of compatible modules versions in a LOS tree together with stock kernel source with generated stock defconfigs be enough?

Or is there anything special that LOS needs in the kernel?

Is somewhere the toochain to be used selectable?

I guess I would need to use the same toolchain that has been used to build stock kernel and that most likely had not been clang.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
There is nothing special the los kernel needs, at least not for basic functionality (putting aside things like reboot to recovery for example). As for the toolchain, stock uses gcc 4.9 iirc. this should also be the default in los, so I think you are fine there. How are you planning to overcome things like dmverity?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=4063475]derf elot[/MENTION], obviously I cannot do anything with dm-verity while having bootloader locked.

The idea is to boot not modified stock fw, run the exploit to get temproot, stop sony android, mount customized los system and vendor images over stock mount points and try to bring android (los) up...

Yes, I know, that it would need to be repeated after each reboot. I guess it can be scripted, the most annoying part would be the exploit as it's success rate is quite random.

Nonetheless I am already running stock fw that way as I have managed to start up magisk from temp root allowing use of root requiring apps like afwall+ for example.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
persist.usb.eng property

guys, I am wondering, if anybody knows anything about the persist.usb.eng property - it seems to change usb gadget configuration of the phone (on stock fw) - if the property is set, most likely enabling some "engineering" development functions.

If I use this:

G8441:/ # setprop persist.usb.eng 1

and then toggle between usb options (like between file transfer and charge mode), additional usb functions get enabled:

from normal state like this

lsusb -d 0fce:51f4 -v
Bus 002 Device 025: ID 0fce:51f4 Sony Ericsson Mobile Communications AB
...
iConfiguration 4 mtp_adb

into this

lsusb -d 0fce:5146 -v
Bus 002 Device 024: ID 0fce:5146 Sony Ericsson Mobile Communications AB
...
iConfiguration 4 mtp,adb,serial,diag,rmnet
...
iInterface 5 MTP
iInterface 6 ADB Interface
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 06 00 00
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 06 00 00
iInterface 0
iInterface 8 RmNet

I guess there have been enabled "serial" and "diag" usb interfaces ("rmnet" might possibly be enabled via other /normal/ way too?).

Do you happen to know how to use them / if they may be somehow useful, like for example serial console or some diag status?

Posting it here thinking you might have used something like that while debugging early init of LOS bringup to xz1c? Sorry for offtopic otherwise.

Thanks.
[MENTION=4063475]derf elot[/MENTION], [MENTION=4297219]modpunk[/MENTION]
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
personally, I haven't used this and can't help you with it. but from what I remember, I think [MENTION=3816568]Myself5[/MENTION] had serial access to one or more of the yoshino devices so he might be more of a help there (though I also seem to remember him saying that nothing was actually in the output anymore on pie - but don't quote me on that).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
Well, I just noticed this in the stock fw, checking about the hidden devices to be enabled via that eng setting, so I wondered if they could be used somehow.

But I've already found something - see here please - there is a driver - "Modified HTC Diag Port Driver" - that is supposed to be used to enable access to diag mode via some software available there too. I did not test that as from what it seems to me the diag mode is not that interesting (device MI_04) or possibly dangerous (changing bands).

But using that "Modified HTC Diag Port Driver" for MI_02 device actually seems to provide serial access to the phone's modem - it responds to AT commands, already in the driver properties (query modem) or directly using putty for serial terminal access too - it might get useful for some diagnostics at least I guess?

I am not sure what the third device (MI_03) there is supposed to be used for - looks very similar to the one where the modem can be reached, but does not respond to AT commands - so I guess this may be interesting too... It would be nice if it contained serial console, but I am afraid we would not be that lucky;)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=4063475]derf elot[/MENTION], I am not sure if using the LOS devel thread for this is not offtopic - just let me know, would move it, but as it started here, just wanted to add one more very interesting info:

[MENTION=5400898]HandyMenny[/MENTION] seems to know more about this diag stuff as can be seen by his PR in a very interesting scat project:

https://github.com/fgsect/scat/pull/12

[MENTION=5400898]HandyMenny[/MENTION], could you please comment?

Thank you.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] HandyMenny:
Hello. I'm glad your temp root is making progress. Unfortunately

I'm not that experienced. I'm just lucky.

I have never used directly the serial port. I can tell you that on xz1 with android 9, Sony has somewhat blocked all diagnostic interfaces, I managed to understand that enabling them during the boot make them usable (this is the purpose of that module). As for the interfaces I can tell you that the "diag" is the one mainly used by qpst/qxdm/scat/NSG software, qxdm can read a lot from this interface. rmnet allows your PC to use the phone as an usb modem and is used by the PDC tool, "serial" or "serial_cdev" replies to the AT commands.

Inviato dal mio G8341 utilizzando Tapatalk
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=5400898]HandyMenny[/MENTION], thank you for the info and your pr in the scat project - just tested it, looks very interesting.

[MENTION=4063475]derf elot[/MENTION], I guess this diag stuff may be quite useful for debugging modem or lte problems in general.

As I got it running in linux now, let me post some info to get it working:

to enable diag (at least in case of oreo) it seems to be sufficient to do

setprop persist.usb.eng 1
setprop sys.usb.config rndis,adb
setprop sys.usb.config mtp,adb

(when sys.usb.config property changes, it takes value of persist.usb.eng property to enable the 'eng' usb interfaces)

to run scat tool with xz1c one can use following command

# in case of mtp,adb:
./scat.py -t qc -u -v 0x0fce -p 0x5146 -i 4
# in case of rndis,adb:
./scat.py -t qc -u -v 0x0fce -p 0xd146 -i 5

it is possible to access the modem from linux - i've patched qcserial kernel driver for it (patch attached) - it seems the serial interface monitors both ways of modem control line as you can sometimes see some AT commands entered by fw or something and their responses, while it allows to enter AT commands and get their responses - use minicom for example with ttyUSB0

ATI

Manufacturer: SONY
Model: G8441
Revision: 1307-7511_47.1.A.8.49
SVN: 19
IMEI: xxx
+GCAP: +CGSM

OK

with the patched qcserial driver, one can also use ttyUSB2 with scat, instead of direct usb interface access:

# this works (with the patched qcserial) regardless mtp vs rndis mode:
./scat.py -t qc -s /dev/ttyUSB2

getting something like this (did not try to capture into pcap and view it yet):

Radio 0: LTE NCell: # cells 3
Radio 0: Neighbor cell 0: PCI 83, RSRP -102.69, RSSI -86.94
Radio 0: Neighbor cell 1: PCI 391, RSRP -113.06, RSSI -87.25
Radio 0: Neighbor cell 2: PCI 76, RSRP -114.62, RSSI -87.69
Radio 0: LTE SCell: EARFCN 1849, PCI 26, Measured RSRP -106.06, Measured RSSI -77.38
scat.qualcommparser (parse_lte_mac_rach_response) WARNING: Unsupported RACH response version 03
scat.qualcommparser (parse_lte_mac_rach_response) WARNING: Unsupported RACH response version 03
Radio 0: LTE SCell: EARFCN 1849, PCI 83, Measured RSRP -104.00, Measured RSSI -71.50
Radio 0: LTE SCell: EARFCN 1849, PCI 83, Measured RSRP -104.69, Measured RSSI -77.00

there is a serial interface that I could not get anything out of, with my patch of desktop kernel it is represented as ttyUSB1 (with mtp diag mode it is interface 3, with rndis it is number 4) - it might provide nmea gps stuff under some unknown circumstances as I am guessing from /vendor/bin/init.usbmode.product.sh script (using 'echo "\$GPS_START" > /dev/ttyUSB1' present in the qcserial kernel driver source code does not work, it soft hangs actually)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] derf elot:
Nice info, thanks! :)
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
edited the post#102: strike out a nonsense about monitoring both ways of modem serial interface - that observation about AT commands appearing automatically entered must have been caused by something in desktop linux, possibly some autodetect stuff probing for a modem on new ttyUSBx device
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] foresto:
twrp no longer builds correctly

I wish I could confirm this, but I cannot. I guess something must have changed in the repositories since you guys last had this working, because it doesn't work now.

After several days of experimenting, I finally got a build to complete, using these steps:

EDIT 2020-06-03: I have more refined build instructions now, detailed in this post[url].

However, when I put the phone in fastboot mode and run fastboot boot recovery.img , the phone gets stuck at a white Sony screen. It reminds me of what [MENTION=4418980]j4nn[/MENTION] described [url=https://xdaforums.com/xperia-xz1-compact/development/devonly-lineageos-16-t3859664/post79170831#post79170831]in this post.

[MENTION=4063475]derf elot[/MENTION], or anyone else, can you help, please? I asked for help a few days ago in the TWRP thread, but [MENTION=4297219]modpunk[/MENTION] hasn't responded.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
Just to follow up on post#102 here, diag mode worked as explained there with sony stock oreo firmware even without need for root.

With stock pie fw, you need root to setprop persist.usb.eng 1 in order to enable diag mode.

With LOS you can also enable diag mode, you just need to add /init.usbeng.rc file (attached) and add an import line for it into into /init.rc script:

import /init.usbeng.rc

Then after reboot you can enable diag mode within LOS in following way:

setprop sys.usb.config diag,serial_cdev,rmnet,adb
[Samsung Galaxy J7 (2017) Questions & Answers] DylanYuto:
I want to update Samsung messages to the latest version. New icon New UI

But Package name error occurs each time.

Anyone can Help ?
[Samsung Galaxy J7 (2017) Questions & Answers] danimanz98:
The same happens to me. The app is not compatible with the one that is already installed. The only way to install it is having root access, or waiting to a new version that hopefully would be compatible.
[HTC U11  Questions & Answers] metropical:
is there a way to put a bar like the brightness bar but for sound level in the Notification pull down?

It seems some of the Nav bars settings cannot be edited off the settings. Or am I wrong?

There's no Screen Capture shortcut in the Nav bar settings?

The LG G4 has a sliding bar that is faster than this.

Is there an apk for customizing the Notification bar etc?
[Amazfit] Jackie78:
Hello,

in Germany, last night clocks were adjusted at 3:00am to 2:00am due to dayliht saving. My Android phone switched the time instantly, my Amazfit BIP ignored it, even at 11 am, the time was still faulty, syncing with the Mi Fit app didn't help. The only thing that helped was to unbind and rebind the BIP to the phone :(

This is really a pitty, I wonder how often at all the BIP does syncronize at all, and why the people developing this piece of software are so ignorant not to implement the most obvious use-cases.

Any tips and hints how the time sync behaviour can be improved? Thanks!
[Amazfit] icaka20011:
Turn off and then on the Bluetooth. That's all. Works every time. I travel a lot and that's what I do to sync the time when I change timezones.
[Amazfit] KoltesPunti:
A lot Xiaomi/Amazfit Products (Miband, Bip, Cor etc) has to connect one time to mifit after time change to get the right time again! I use mifit since a few years now and i‘ve never a problem with the time change!
[Amazfit] Jackie78:
I tried reconnecting bluetooth as well as syncing in the MiFit App, both did not help. Only unpairing and repairing solved the issue :( Even if these two did work, it is a shame that things like that do not work automatically out of the box...
[Amazfit] murigny64:
Hello, i have same issue. Just turn off and on your bip and it solve the problem.
[Amazfit] HegdeVilas:
Restart the phone

I had same issue today and restarting the phone connected to my BIP solved the issue instantly. Hope it helps!! :)
[Amazfit] -cbx-:
4 years later and my brand new Amazfit Band 7 ignores daylight saving even after a full shutdown. Disappointing indeed because (almost) all my devices, clocks, watches use either DCF or NTP to avoid this issue in the first place.
[Samsung Galaxy S7 Edge Questions and Answers] Joyjo:
help me i'am losing my imei no backup efs how restore please help me.thanks in advance.
[Shift General] danielherrero:
Anyone has been able to share the 3g connection with other devices using BT (with Personal Area Network) or Wifi adoc network?? I only got it once with wifi adoc but I coudnt repeat again....

I want to connect my Packard Bell to internet using the 3g connection within the shift....
[Shift General] pitt1983:
nice idea, i will try.
[Shift General] Flanimal:
Hello,

yes, I managed to get it working. It took me two days, so I'm glad to share it here to give something back to this great forum.

The setup method is similar to the ICS instructions in Vista Help and on various internet pages, but with an extra step at the end to get it to actually work.

First thing first, you need a network connection between your Shift and your laptop. I used Wifi. You will probably need to tone down your firwall in order to set up this network connection.

Then you need to set up ICS on your shift. Enable the options in your Network and Sharing centre. Read the ICS instuctions in Windows help if you need help with setting these options.

Ok, so it should now work, but doesn't. Now the trick that I found to get it to work:

Each time you wish to share internet on your computers, do the following:

1. Connect to your network from your shift and laptop to open the connection.

2. On you shift, manage network connections and get properties for Local Area Connection. Select the Sharing tab and DISABLE both options.

3. On you shift, get properties for Local Area Connection. Select the Sharing tab and ENABLE both options.

Wait about 30 seconds, then the globe should appear in your network icon on your laptop, and it should have network connection from that point.

Repeat steps 1-3 for every time you wish to use this sharing.

To connect your Shift to a home Broadband internet wifi, do the following steps:

1. On you shift, manage network connections and get properties for Local Area Connection. Select the Sharing tab and DISABLE both options.

2. Connect to the wifi home Broadband internet.

I'm brand new to this, so I might be mising a couple of tricks so any regfinements to my method would be gratefully received.

In particular I'd like my two machines to automatically connect via wifi network when they are near. Anybody know how to do this?
[Shift General] danielherrero:
Thanks¡¡. works correctly but dns server. I ve to setup it in my packardbell manually. Any idea?
[Shift General] Rudegar:
any dns server will do really

so just find the ip of any and use that

dns servers unlike gateways are not something

you have to get from your provider
[Samsung Galaxy S7 Questions and Answers] prashant dulli:
Hello! I was Using Stock Rom Latest Version Then i Flashed TGP Rom and In Aroma Installer i Selected Install latest bootloader and Modem and Now My IMEI is Lost it says "smg930f not supported on ShowIMEI"

However i have a Backup image of EFS

Please help me in Restoring it. Thanks.
[Samsung Galaxy S7 Questions and Answers] snowqwer:
How did you make your backup? If you used twrp, then restore it with twrp etc.
[Samsung Galaxy S7 Questions and Answers] prashant dulli:
There is an Option in Aroma Installer of TGP Rom

"Make EFS Backup"
[Android Head-Units] YahiaSa:
Hi brothers

I have bought an car head unit (uniway ADZ9071 ) and it works just about 5 min.

Next day i start my car and the device stuck in the android logo .

i do not know how to go in recovery mode because it have no power or volume bottom.

please please help me.

I try to install a new freamware but the problem that my computer do not find the device when i connect it with USB port.

with all my respect

:fingers-crossed::fingers-crossed::fingers-crossed:
[Android Head-Units] rigattoni:
You don´t have OTG at your device, so it is no wonder that you are not able to connect it by USB.

First of all, you should use the RST-Button on the right side, may be that is enough to get it working again.

Don´t use other firmware as original. You got an alwinner unit and you may brick it otherwise.
[Android Head-Units] YahiaSa:
I Have try it but it still stuck on Android logo.
[LG G7 ThinQ  Questions & Answers] Akashsahu4:
I have an lg g7+thinq. There is an big issue where one or both IMEI shows null and sim are not detected it shows service disabled. To get back network i have to restart the phone every now and then which is very hectic. This IMEI issue happens several times a day.
[Sony Xperia XZ2 Themes, Apps, and Mods] ionSeven:
I successfully changed the fonts on my rooted H8216.

Download a flashable pack from thread in Android/Themes.

Extract them and copy all the fonts to...

/system/fonts and /system_root/system/fonts

Reboot and it should be done.

!!!REMEMBER TO BACKUP FIRST!!!
[Sony Xperia XZ2 Themes, Apps, and Mods] hary232:
thanks for sharing!
[Sony Xperia XZ2 Themes, Apps, and Mods] Pandemic:
Directory doesn't matter because both are the same bro ;)
[Sony Xperia XZ2 Themes, Apps, and Mods] Alaa | Google Android:
Unfortunately need root

The bad thing is still the same old font style, no more New Android font " Google Product Sans " or at least " supporting font style " like others!
[Sony Xperia XZ2 Themes, Apps, and Mods] Thetega:
does fonts on ifont work?
[Sony Xperia XZ2 Themes, Apps, and Mods] ionSeven:
I don't know, I haven't tried.
[Xiaomi Mi A2 / 6X Questions & Answers] Alocin:
Hello everyone, I was wondering if this method for unlocking Mi A1's bootloader without wiping data would also work on Mi A2.

Is there anybody willing to try and let me know? Thank you! :)
[Xiaomi Mi A2 / 6X Questions & Answers] AlbertoK47:
I have the same question
[Xiaomi Mi A2 / 6X Questions & Answers] prokaryotic cell:
Someone has already tried and posted on that same thread. https://xdaforums.com/showpost.php?p=77645758&postcount=68

It doesn't seem like a good method anyway because the wipe command remains pending and will be executed if you boot into recovery (stock or TWRP). So if you unlock by doing this and some time later decide to go into recovery, you will lose all your data without warning.
[OnePlus 5 Questions & Answers] OsistemX:
Hi everyone, I have a problem on my OnePlus 5, I Flash the 5.1.5 firmware with no rom installed on the lastest Blu_Spark recovery and I decide to reboot to the recovery but OnePlus changed the bootloader by a new one, and now I'm not enable to reboot in it anymore and I'm stuck at the new bootloader. What can I do, I need help please. I try to use fastboot and adb but they don't detect the device. Thank's in advance :) [MENTION=5893314]shadowstep[/MENTION] can you help me ? (I apologize for quoting you but it might be useful because you know lot of things)
[OnePlus 5 Questions & Answers] rehannali:
If you're can't access fastboot or adb then you're device is brick.

Use unbrick tutorial for unbrick your device. https://r.tapatalk.com/shareLink?ur...share_tid=3648169&share_fid=3793&share_type=t

Beware, you all device data will list in this process.
[OnePlus 5 Questions & Answers] shadowstep:
To boot into recovery, completely power off your phone and once that is done, press and hold the volume down button along with the power button and it should boot to recovery/the options menu to boot to recovery. :)

Then, once you're in recovery, download and flash this zip file in TWRP which will revert your bootloader to the old one.
[Samsung Galaxy Note 8 Questions and Answers] Blob Blobbed:
idk if I'm the only person whose had this problem. The Note8's Spen is thinner than previous model SPens, and I broke 3 (2 Samsung brand, one AWinner brand) between my fingers during normal use within the first 4 or 5 months of buying my Note 8.

I gave up after the 3rd one, but miss the pen sometimes.

Does anyone know of a sturdier 3rd party offering?

Has anyone else experienced this problem?

thx
[Samsung Galaxy Note 8 Questions and Answers] iceepyon:
I don't see how you can break your S-Pen as I find the S-Pen on the Note 8 to be quite sturdy.
[Samsung Galaxy Note 8 Questions and Answers] OnnoJ:
I think that Spens are sufficiently strong and durable, only tip may ware out (after very intensive use) but those can be replaced...

Replacement S-pens will be cheapest option and the only option to fit in the phone.

There are third party - wacom compatible - pens available, e.g. from Bamboo, that will work with your Note 8 and may be stronger.
[Samsung Galaxy Note 8 Questions and Answers] sandeepkumar0153:
Could we some pics if you don't mind ? Will be helpful as a precaution tip.
[Samsung Galaxy Note 8 Questions and Answers] soyuz4u:
Third party substitue

Staedtler Noris Digital

Get this if u r looking for a sturdier option... Of course you won't be able to keep it inside the phone.... But should be the best option available.....