yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] tanish2k09:
Hi fellow xda members!

I'd like to share with you another upgrade in the world of kernel-level gestures.

Well if the title hasn't already given it away, it's the generic version of Trace2Sleep (for almost all devices)

A bit of an intro what's it about :

Why is this made?

This was made because the existing gesture sleep module (sweep2sleep) sometimes conflicted with gesture made while gaming or navigating.

The screen used to turn off unintentionally while the original intent was to just do a swipe on screen.

Thinking about "Fruit Ninja" will help you visualise better.

Also, sweep2wake module (as was made without edits) cannot be used without disabling sweep2sleep (because it's coded that way)

This module does 4 things :

1) Allow sweep2wake to be fully standalone, and remove sweep2sleep.

2) If the compiler wishes, convert the code of sweep2wake into swipe2wake.

3) Make such a gesture for sleep which makes it difficult to trigger accidentally, but naturally fluid when doing intentionally.

4) Make the gesture accessible from both left and right swipes (considering there are left handed users too).

The name is a bit unclear how it looks like in action?

Here's a video of me using it in my custom kernel :

https://goo.gl/JWhw9k

But what is the difference between sweep2wake and swipe2wake ?

1) You can't use sweep2wake without sweep2sleep being active (in it's unedited form) (kinda annoying). Swipe2wake only is for wakeup and trace2sleep only is for sleep.

2) You can only swipe left to right to wake up screen in sweep2wake. In swipe2wake, you can just swipe in any direction. The distance you must swipe is changeable from a tunable within the .c file. It's called the radius.

3) Swipe2wake is actually a lot smaller in size (code) than sweep2wake. All the more better.

Ok... The module seems promising. What do I need to do to use it?

1) Be experienced enough to be able to read code and tell what it does.

2) Be able to "port"/"edit"/"modify" the code to work with your device while keeping the algorithm same.

3) Have kernel source, of course.

4) Follow the instructions in the git "README"s from source.

5) Be able to read patiently and ask any genuine questions here on this thread.

6) Be able to thank this post and give credit if you include it.

Here is the source for trace2sleep :

(But don't worry, I've also added the instructions to upgrade to v2.0 )

https://github.com/tanish2k09/Trace2Sleep
[Miscellaneous Android Development] tanish2k09:
Credits :

Credits to :

1) Dennis Rassmann (for giving us sweep2wake v1.0) (Without it I would never have known how tracing works)

2) Me of course, for coming up with the idea, the gesture, the algorithm, the calculations and the code.

3) [MENTION=5222551]Maxr1998[/MENTION] for helping in debugging.

4) Linux and git devs :p
[Miscellaneous Android Development] tanish2k09:
In case you thought it was a TLDR for you, watch just this :

Here's a video of me using trace2sleep and swipe2wake in my custom kernel :

https://goo.gl/JWhw9k

( [MENTION=4684315]flar2[/MENTION] you may have a look now, since it's source is officially out)
[Miscellaneous Android Development] tanish2k09:
Added another mode / fixed unintended behaviour and bumped t2s version to V2.0

There was an unintended behaviour in the gesture which was that if you tap on one corner and then tap on other corner while holding previous one, the screen would still sleep because the code only checks for detection trigger at one corner and power trigger at other corner. This commit fixes it and adds it as optional by sysfs.

The value '2' of "t2s_switch" will enable the sleeping of screen even when you touch both corners.

Earlier this was unintended so edited code to make it a separate behaviour.

Default value is '1' which will check whether the finger goes through the middle part of path which will set the checkpoint variable to 1.

When we reach the other corner, it will check value of checkpoint to sleep.

If we don't give input to middle part of arc (as visible from code), t2s will reset and break the detection until next time a corner tap is detected.

Of course the mode 1 can also be cheated with 3 fingers (two at both corners, and one in middle) but that prevents accidental sleep.

Mode '2' is definitely faster so I thought of leaving it up to the user to change it using sysfs.
[OnePlus 5T  Questions & Answers] bat0nas:
Hi,

Is it possible to turn off the dash charge? 5T is charged only overnight cause it can last the whole day anyway.

PS: I can turn off Fash Charge in my Samsung Note. So it saves battery if I charge only overnight and don't need fast charge feature.
[OnePlus 5T  Questions & Answers] Macusercom:
There is no stock option for this. Maybe a custom kernel can support it or a custom kernel that doesn't support it at all would also be a possibility in theory.

I would suggest using a normal power adapter instead of the Dash charging one. Even a normal USB C cable prevents Dash charging as it can only be used with OnePlus' own cable. So maybe get a cheap USB C cable and use that? :)
[OnePlus 5T  Questions & Answers] DragonMessor:
Use a low amperage charger. Something like 1000mah. This will slowly charge your phone overnight. But make sure you use a quality charger.
[OnePlus 5T  Questions & Answers] jmtjr278:
Why would you want to do this? The OnePlus dash charger works differently from other chargers in that it holds the heat in the charging block. If you use a standard adapter you would transfer the heat to the phone while charging. I would NOT recommend doing this.
[OnePlus 5T  Questions & Answers] Headbanger1982:
I use an Anker IQ 6-port Charger with a couple of fairly good quality cables.

I personally try to avoid any kind of fast charge because it will end up damaging the battery life faster than "standard" charge, even if the heat is absorbed by the DASH charger block. IQ Charge adapts itself with the needs of the device connected.

And my unit stays cool if I touch it while its charging.
[OnePlus 5T  Questions & Answers] jmtjr278:
Charge however you want. But for me, dash charger while getting ready in the morning or when you have a free half hour. Forget about charging overnight. I don't know your usage but for me, this works. The phone just sits on my nightstand without connecting overnight and I lose a very minimal battery amount.

---------- Post added at 05:47 PM ---------- Previous post was at 05:43 PM ----------

https://www.guidingtech.com/61180/dash-charging-quick-charge. I'll just leave this here.
[OnePlus 5T  Questions & Answers] Headbanger1982:
That's why we can choose :)

Just not in a software way.
[OnePlus 5T  Questions & Answers] lyrebird:
I choose to use wireless charging using a receiver.

通过我的 ONEPLUS A5010 上的 Tapatalk发言
[OnePlus 5T  Questions & Answers] OhioYJ:
It's fine at even less than 1 amp. We have two 5Ts in the house and charge them at night at 0.35 - 0.45 amp.
[OnePlus 5T  Questions & Answers] ps000000:
I saw the dash reduce Ampare when pass above 80%.

(When not rush I use official iPhone 1Amp charger.)
[OnePlus 5T  Questions & Answers] Velosifero:
Use 5V/2A standard charger to standard usb type c.

Oneplus 5t = 5V/4A

Quick Charge = 9V/2A

Dash n QC have more power!
[OnePlus 5T  Questions & Answers] Squabl:
I'm using an old 1A Samsung power adapter and dash charge cable and in addition I also use Battery Charge Limit app to limit charging the battery to 80%.

https://xdaforums.com/android/apps-games/root-battery-charge-limit-t3557002
[OnePlus 5T  Questions & Answers] SilverSurger:
No, it does not, especially not with dash charge. The excess heat is stored in the charger and is not transferred to the phone, and the heat is the only thing that degrades the battery faster.
[OnePlus 5T  Questions & Answers] Headbanger1982:
Your informations are not correct.

Dash (or VOOC, which is the very same technology since OnePlus is an Oppo brand) uses high current fast charging instead of high voltage charging (QuickCharge 2.0/3.0 uses high voltage) and the circuit that produces heat in phones that are not Dash/VOOC compliant is inside the phone, while in Dash/VOOC is inside the charger.

Oppo and OnePlush themselves have acknowledged that it makes SAFE to use the phone while it is quickcharging, NOT that the battery is not getting damaged by the use of a fast charging method, even if it charges at a lower voltage and higher current.

The use of any fast charge technology implies to shorten out the overall battery life.
[OnePlus 5T  Questions & Answers] OhioYJ:
Just because they moved a bunch of the power regulation stuff to the charger doesn't mean the battery doesn't still get warmer. If you push 4 amps of current into it, it will heat up more so than when it receives, 1 amp.

Now you have me curious though, I guess I'll have to pay close attention to the battery temp next time I charge my battery. I've never used the dash charger, but perhaps I'll have to get it out of the box, and test with it as well just to see what kind of temps I see with a more powerful charger as well. I'm curious to see how much temperature difference there is.

I know on my Nexus 5X my phone always lasted long on a single charge when slow charged (0.35 amps), vs using the factory 3 amp charger.
[OnePlus 5T  Questions & Answers] xocomaox:
Constantly topping up the battery overnight for 5-6 hours (assuming your slow charger will charge it to 100% in 2-3 hours) is worse than using Dash to charge it quickly in bursts in the morning and night when you have a spare 30 minutes.

I would never leave a phone stuck on a charger overnight. Especially since even the slowest charger in the works will charge the phone to 100% in three hours or so.
[OnePlus 5T  Questions & Answers] Squabl:
I don't charge my phone over night either but by using above mentioned Battery Charge Limit app it is possible to stop charging when desired battery level has been reached.
[OnePlus 5T  Questions & Answers] xocomaox:
That would be a good idea to do. Although the best is to just Dash charge in short 30 minute bursts when you can.
[OnePlus 5T  Questions & Answers] SilverSurger:
How does it imply that? Heat is the only factor. Phone is not getting hot(ter than slowly charging) when charging.
[OnePlus 5T  Questions & Answers] LeonSTabS:
What is the truth? With the rapid charging the battery deteriorates faster or better a slower charging?
[OnePlus 5T  Questions & Answers] OhioYJ:
Haha, you expected a simple answer on a topic with many opinions. It's like asking which oil is best on a car forum. Many people believe li-ion battery's don't have a memory effect like NiMH. However, I'm of the opinion they do, just less one. However another subject where you will find people who debate both sides.

Wasn't very long ago people swore slow charging batteries was always better. Newer technologies in my opinion has made fast charging less harmful to batteries, but I still believe slow charging them is best. However again, I'm on the slow charging bandwagon.
[OnePlus 5T  Questions & Answers] lukesky:
Well if you believe batteryuniversity, they recommend not to use fast charging if you want to prolong the lifespan of your battery. I quote :

Figure 2: Cycle performance of Li-ion with 1C, 2C and 3C charge and discharge.

Charging and discharging Li-ion above 1C reduces service life. Use a slower charge and discharge if possible. This rule applies to most batteries.

Read the full article here http://batteryuniversity.com/learn/article/ultra_fast_chargers

Does the above article apply to VOOC chargers, well I'm not sure...
[OnePlus 5T  Questions & Answers] Headbanger1982:
It should apply to VOOC/DASH since their fast charging tech involves high current instead of high voltage for charging, so you actually charge at an higher C rating.

And heat can be an issue, that's for sure, but that damages the battery phisically (and might lead to explosion), it does not necessarily damage it's charge/discharge capacity, just to answer [MENTION=3146330]SilverSurger[/MENTION]
[OnePlus 5T  Questions & Answers] Airwolf79:
If you're worried about battery longevity, whether you use dash or regular charging, leaving it on the charger over night will shorten the life span. If you want the longest life from your battery, maintain a charge between 45-75%. Anything consistently above or below will contribute to shortening the lifespan of your battery. Best way to charge is like others have said, short bursts.
[OnePlus 5T  Questions & Answers] jkyoho:
Exactly, when reaching 80% dash charge reduce amp to 2A, and when 90%, dash charge turn off itself and only standard speed.

Hell yeah, no need overnight pluged in anymore after owning oneplus 5t, when I wake up, get the phone connect to dash charge. After getting ready for work and unplug it, all day juice ready for me:laugh::laugh:
[Wing, P4350 General] tareq557:
after flash a rom worked for 2 hours normal then the touch screen dead ???:confused::( any body can help me with that please ,, sorry for my bad english
[Wing, P4350 General] duprade:
What rom?

Try hard resetting or reflashing the Rom
[Wing, P4350 General] tareq557:
thanks

thanks for the answer but i tried to reflash the rom and hard reset but with no results, i think its a hardware problem :confused: ?????
[Wing, P4350 General] duprade:
I had a wing and the touch screen stopped working on it for no reason... so it may be hardware
[Wing, P4350 General] tareq557:
and did you fix it ??
[Wing, P4350 General] mv3:
did you put a new touch screen protector?

have you tried to flash a different ROM?

if it's a hardware problem, then you might have to send your phone to service center...or install new lcd touch screen by yourself ;)
[Wing, P4350 General] duprade:
no, I had to get it replaced.
[Wing, P4350 General] tareq557:
yes i think its a hardware problem :(:confused:
[OnePlus 5T  Questions & Answers] bat0nas:
Hi,

In the recent questionaire by OnePlus I've seen some questions about benefits of the OnePlus that I can use custom kernels etc.

So are those modifications officially allowed and supported by OnePlus?

No way to brick the device while rooting or installing custom recoveries?

Thanks!!!
[OnePlus 5T  Questions & Answers] Macusercom:
No modifications are supported by OnePlus but they do not mind if you do so. You will not lose warranty unless they definitely know it had something to do with any alterations of your device e.g. extreme overclocking, breaking your CPU due to overvolting and other extreme things. Luckily, only custom kernels or other operating systems should not void your warranty.

You can definitely brick your device as you can see on XDA here but an L2 technician can unbrick it with the MSM tool by Qualcomm (like a DFU mode for iPhones). Basically, it is very hard to completely brick your device and make it unusable without an RMA request.

What happens if you send it to OnePlus with an unlocked bootloader and another ROM/kernel is something I do not know but AFAIK it's like Google devices: Reflash stock, lock the bootloader, send it in. You should wipe your data anyway for an RMA so it's not a big deal.
[OnePlus 5T  Questions & Answers] bat0nas:
OK that's good to know. I was afraid it was complicated and/or some Knox thing was present as in Samsung devices.

It was easy with Nexus devices as you say ("Reflash stock, lock the bootloader, send it in"; did that few times).
[Samsung Galaxy A3, A5, A7 (2017) Questions & Answe] vinfrix:
Hello

I just want to ask if someone knows how to

installed TWRP in my A5 2017

i can't find any threads for my Version
[Google Pixel Guides, News, & Discussion] pangolin.rollin:
Xposed was released for Oreo! Been so long don't know where to start.

EDIT: (I was just being dumb)

Grab the systemless version. Easiest way is through Magisk. Just make sure your on 15.2 or grab it via the link below.

https://xdaforums.com/xposed/unofficial-systemless-xposed-t3388268
[Google Pixel Guides, News, & Discussion] TENN3R:
I think the best method is using the systemless version for magisk, I just tried it and it works.

Simpy go into modules and you will see the sdk27 version at the very bottom: tap on it, you see there is an updated xposed manager apk made for the new magisk version.

Download the apk, install the module, reboot, install apk, reboot.

Works with no problems
[Google Pixel Guides, News, & Discussion] Sh0X31:
Enjoy :)

https://xdaforums.com/xposed/unofficial-systemless-xposed-t3388268
[Google Pixel Guides, News, & Discussion] daddylonglegs:
I feel dumb but I don't see xposed anywhere in the modules section of the Magisk Manager app.

Is there some other way I should be finding modules? I click on the hamburger menu and then downloads and there's about 30 or so listed.

---------- Post added at 07:34 PM ---------- Previous post was at 06:48 PM ----------

Never mind. I figured out I had to be on Magisk 15.2. I was on 14.5.

So anyway I downloaded the Xposed Installer that is linked in Magisk Manager and installed it. Then I installed Xposed inside of Magisk. The only problem is the Xposed Installer crashes every time I click on a module to download. Does anyone else have this issue?
[Google Pixel Guides, News, & Discussion] TENN3R:
Yes, I confirm, I don't know if it's caused by Magisk or because it's just a beta...

Anyway there is a workaround, instead of downloading the module from xposed manager, download the apk of the module from internet (official repo website or from whatever you want), because when you are going to install and enable the modules there are no problems, and after a reboot they're working.
[Google Pixel Guides, News, & Discussion] pangolin.rollin:
Updated op to reflect install options. Happy modding everyone!
[Google Pixel Guides, News, & Discussion] pangolin.rollin:
Success! ?

.. now for that network speed in the status bar hehe
[Google Pixel Guides, News, & Discussion] bush911:
has anyone succeeded in using xprivacy? I tried, it said xprivacy is not enabled.
[Google Pixel Guides, News, & Discussion] KittyRgnarok:
Uh for some reason my downloads tab of Xposed just constantly says pull down to refresh and offers no modules
[Google Pixel Guides, News, & Discussion] pangolin.rollin:
Did you download the modded apk as well? That's what threw me off
[Google Pixel Guides, News, & Discussion] pangolin.rollin:
Don't know if it's supported. Of course you rebooted? I'm sure a lot of things will need slight tweaks to work on Oreo
[Google Pixel Guides, News, & Discussion] KittyRgnarok:
Yeah I did everything the same as the way you installed nougat Xposed systemlessly. Also the framework module caused a lot of choppiness on my phone so I uninstalled it anyways
[Google Pixel Guides, News, & Discussion] daddylonglegs:
Just a head's up that MinMinGuard causes my Pixel to start crashing like crazy
[Google Pixel Guides, News, & Discussion] sliding_billy:
I have been thinking of installing this since last night, but with it still in beta and modules still needing fixed for 8.1 I just can't see any reason (other than something new for me to play with) that will benefit me enough to deal with the SafetyNet failure.
[Google Pixel Guides, News, & Discussion] marsrolled:
How is Xposed for 8.1 now? Any updates on this? Thanks! [MENTION=4609886]sliding_billy[/MENTION]
[Google Pixel Guides, News, & Discussion] sliding_billy:
Not running it since it still doesn't offer a way to pass SafetyNet.
[Google Pixel Guides, News, & Discussion] marsrolled:
Alrighty, thanks. I got a question for you senior member, of all the roms you've tested, which has the best battery life even if compromising a little performance? Thanks. Also, any interesting things going on for our og pixel?
[Google Pixel Guides, News, & Discussion] sliding_billy:
I am happily enjoying the stock ROM on my XL and I keep the same installed on my wife's Pixel. I spent years swapping out custom ROMs on various devices and expected to do the same when I got the PIxels (very shortly after released almost 2 years ago). After the initial shortage of custom ROMs (due to the new OS engineering method) subsided and plenty came out, I realized there was nothing I was missing enough to deal with running custom and not being able to do a monthly update that takes me literally less than 10 minutes. Besides not missing anything, there is pretty much no bloat I need to get rid of, and the device still runs great even with a handful of "always on" apps. Probably best for you to look at the development sub-forum and do your research there and ask questions.
[Google Pixel Guides, News, & Discussion] nasedase:
haven't used xposed in years. Is it still worth it with the recent android OS's?
[Google Pixel Guides, News, & Discussion] Bobbaloo:
That's like asking, "which tastes better, vanilla or chocolate?" Make a twrp backup, and give it a try, what you like, another may hate. For me, it's fun to add features when I'm using a rom that is lacking in that department.
[Google Pixel Guides, News, & Discussion] nasedase:
xposed was a no brainer during kit-kat and lollipop but now days modern android OS's aren't as lackluster.
[Google Pixel Guides, News, & Discussion] Bobbaloo:
Yep, that's true. That's why I only use it on certain roms that don't have some features I want.
[Moto Z Play Questions & Answers] sekk:
Hi there, I just wanted to know why the **** motorola announced that Moto Z Play XT1635-02 would come with 32GB of storage but it just came with 23.85GB, as you can see in the picture I'm not lying, it's just 23.85GB.... is there any way to fix it? Hahahahah I know that I can use a sdcard, but is there any other way?

[IMG="storage"]http://i66.tinypic.com/b666as.png[/IMG]
[Moto Z Play Questions & Answers] Artim_96:
Because it does come with 32 GB of built in storage. But if course with nothing that has any storage you wrong ever get the full capacity. In the case of every smartphone and other computer, part of that storage is already occupied by the system and its programs. And the only way to change anything would be to remove the OS but then you just have a useless brick. You should learn stuff like that before asking those questions. Or what do you think where the OS lives?
[Moto Z Play Questions & Answers] sekk:
i just wanted to know why 10gb if the stock rom only have 1.5gb
[Moto Z Play Questions & Answers] Artim_96:
The installation file is just 1.5 GB. All inflated, installed and compiled is roughly 10 GB big. But that's not much for an operating system. iOS takes up about the same space, Windows even more. Just think about what needs space. The system partition with all the system apps (Google apps alone are already about 700mb only as apk files. Installed is most likely more), cache partition, bootloader, recovery, kernel, OS and much more. And it most likely includes some extra space that's empty at the moment but part of partitions you can't install apps to to have enough free space for future versions since with about every major update the OS becomes a bit bigger. Otherwise the installation process would need to include some form of dynamic partition size changing like it was included in windows mobile but probably wouldn't be that safe
[Moto Z Play Questions & Answers] sekk:
Wow very good answer explaining everything. Thanks artim, I've never found something about inflating the system in the internet, thank you for explaining me!
[Moto Z Play Questions & Answers] Artim_96:
I thought that's logic... Sure, they could ship it as a 10 GB image, but not everywhere you have fast unlimited internet speed. That's why even Microsoft leaned to make Delta updates for the big upgrades that only contain stuff that changed. That's why OTAs are mostly under a GB with the security patches taking only a few dozen MB