yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Android Development] :
Alright... SO....

I've been working the last few days or so on trying to implement per-app profiles (applying a saved profile from within SKA depending on which app you currently have opened.)

I'm looking for anyone that's interested in testing. Currently the app selection list is VERY rudimentary. It only lists apps by packagename, without any sorting. However, it's there.

You'll want to set one profile to "Default"

This feature requires the app accessibility service (easiest way to get the foreground app that I could find) under Settings > Accessibility.

Any existing profiles that you have WILL need to be re-created (apply the current profile, delete the existing one, re-save the profile). This is because Profile names are not unique to each profile, so I added a unique identifier to the profile when it's being saved.

There are no outward indications that the profile changed, you would need to check logcat to see that it's applying a profile. I've also noticed some issues... for instance, occasionally with chrome as the foreground app the accessibility service reports my launcher as the foreground app. Not really sure why it's doing this, but it'll cause the profiles to toggle back and forth :s I'm unsure that there's much I can do about this... I think it's a "feature" of the launcher. The only thing that I could *really* do is make the service ignore any packages that match common launcher names, though I'm not even sure where I would find such a list of package names.... However, this would mean that it wouldn't switch back to the "default" profile when switching from one app back to the main screen. I'll have to think more on this.

Either way, send me a PM if you're interested in testing.

I should have a test build sometime tonight or tomorrow. Just looking for knowledgeable testers since this COULD cause extra battery drain or freezes potentially.
[Nexus 6 Android Development] nodnarb91:
"F*CKING BOW DOWN" LOL nice status bar label ?. Thanks for the settings overview.
[Nexus 6 Android Development] apophis9283:
Forgot that you all could see that. :)
[Nexus 6 Android Development] MINTED7:
for some reason my phone isnt fastcharging. ive tried reenabling usb fast charge and rebooting but it doesnt work

---------- Post added at 07:40 PM ---------- Previous post was at 07:26 PM ----------

nvm its fixed
[Nexus 6 Android Development] LunaticSerenade:
Someone is a Born of Osiris fan.[emoji14]
[Nexus 6 Android Development] apophis9283:
Damn you caught me..lol
[Nexus 6 Android Development] confanet:
Same for me. Any suggestions?

EDIT:

I tried to measure charge speed using AMPERE app. It show that maximum speed is 1500mA/h but actually the phone charge at 900mA/h. This problem has appeared after installing singularity kernel. If I switch back to my old kernel (Lean Kernel) the problem disappears and the charge speed is correctly set at about 2000mA/h.

I love this kernel and I'd really appreciate if someone can help me to solve this issue.

Inviato dal mio Nexus 6 utilizzando Tapatalk
[Nexus 6 Android Development] apophis9283:
Well, that guy you qutoed said he had it fixed. Not sure what he did, but possibly ask him. Shouldnt be anything on our end
[Nexus 6 Android Development] itzdarockz:
Is it just me, or does this kernel cause a lot of apps to freeze up? I like the options, but this kernel is really buggy. Video playback starts freezing up and I am constantly forced to restart my phone while using this on Chroma. Anyone know a fix? Im thinking about changing up some settings. Probably memory allocation issues? Thanks.
[Nexus 6 Android Development] apophis9283:
Provide a log of some sort and we can go through it. I can't debug a bug that I dont have. Also include the ROM
[Nexus 6 Android Development] apophis9283:
As far as the charging, theres 2 main types. PC (usb) charging which we allow the phone to charge faster in this instance, its a feature we have and it would need to be turned on. As far as wall charging which is the other main type. It is not affected at all by the other method. Considering that out of everyone that uses this kernel, theres 2 people having issues I would assume its on the user end. As me, Yoinx and my wife all run the same kernel, the same build, with no issues. Get me logs and id be more than happy to look through them
[Nexus 6 Android Development] confanet:
I don't know if the issue is on your side or not. I don't know if I'm the only one with this problem, you cannot immediately notice it if you don't check your charge speed. I noticed it by chance.

I'm on stock Android and it is sure that I have this problem only with your kernel (I tried only with stock kernel and lean kernel and both are ok). So maybe there's something in my phone or my settings that make some problems using your kernel.

I will try to investigate more. I just asked if anyone has some suggestions.
[Nexus 6 Android Development] :
Are you getting the 900ma from a usb port on a computer or your wall charger?

I'm going to assume that is the wall charger, since ampere shouldn't show more that 900ma from a usb port anyway.

I haven't seen any issue with my charge current. However, keep in mind that li-on batteries have weird charging characteristics. The turbo charger also behaves differently depending on the battery level.

Sent from my Nexus 6

If I've helped you, don't forget to hit thanks!
[Nexus 6 Android Development] confanet:
Yes wall charger.

I know that i can have different behavior depending on charge level. This is why I want to make different tests.

Btw thanks for your quick replies.

Inviato dal mio Nexus 6 utilizzando Tapatalk
[Nexus 6 Android Development] MINTED7:
I replugged the charger in like 4 times until it started fast charging
[Nexus 6 Android Development] apophis9283:
To stop the battery from going bad, what they did was the lower the battery, the faster it charges. As you get into those higher numbers it will slow down so not to hurt or over charge the battery.
[Nexus 6 Android Development] DreamFX:
I could never get fast charge to ever work on a pc port with any kernel out there. It's not my USB cables because I test them on my battery packs and wall adapters and my lock screen says charging when hooked to pc it says charging slowly even with fast charge checked. Is there something else I can do on my end to get it to stop charging slowly?
[Nexus 6 Android Development] apophis9283:
I have ampere. Ill take measurements at different battery levels see what happens, and see if there is something in our kernel preventing it

edit im on to it. give me time
[Nexus 6 Android Development] mexiken:
Hey guys, what's the way to check our bin short of a kmesg dump????
[Nexus 6 Android Development] apophis9283:
You could use synapse. i dont know if you need ukm for that
[Nexus 6 Android Development] apophis9283:
Im seeing where it 500mah but in fastcharge.h it shows 900mah. So im gonna have to figure out whats going on
[Nexus 6 Android Development] apophis9283:
Ill work on the UBS FAST CHARGE stuff tomorrow.
[Nexus 6 Android Development] :
You can read them from

Pvs Bin: /sys/module/clock_krait_8974/parameters/pvs_level

Speed Bin: /sys/module/clock_krait_8974/parameters/speed_level

Sent from my Nexus 6

If I've helped you, don't forget to hit thanks!
[Nexus 6 Android Development] str8str:
I forget is it better if it's lower or higher? The bin number I mean.
[Nexus 6 Android Development] apophis9283:
Lower.
[Nexus 6 Android Development] mexiken:
Thanks. So my old phone was 5, and my new one is 8, that means its worse????
[Nexus 6 Android Development] confanet:
Thanks man for your hard work.

---------- Post added at 08:39 AM ---------- Previous post was at 08:30 AM ----------

I don't know if it is important but using Ampere I noticed that it shows that the maximum speed is 1500mA. With stock kernel it shows 2000mA.

I don't know it this it the maximum reached speed or maximum reachable speed. In this last case it is clear that there is a cap somewhere preventing to reach 2000mA.

Inviato dal mio Nexus 6 utilizzando Tapatalk
[Nexus 6 Android Development] II_DiE_4:
Can I ask if the new faux sound is in this kernel?

Seems like it actually makes a lot of difference pair with v4a and Dolby.

Thanks. Love the kernel.
[Nexus 6 Android Development] Macusercom:
No. It goes from 1 to 15. 15 is the best. The higher the number, the lower you can go with undervolting or overclocking without bumping up the voltage too much.

BTW I'd like to say that since Singularity 5.2.1 I haven't had any issues with YouTube videos not playing anymore or apps quitting unexpectedly after several hours. Also Hotboot doesn't get stuck sometimes. Running about 2 days now and this issues which might have been due to an allocator bug is gone :)

Gesendet von meinem Nexus 6 mit Tapatalk
[Nexus 6 Android Development] :
Not sure why, but it seems that it's reverse on this phone from troubleshooting voltage issues with people. People with lower bins could uc/oc to whatever with no issues. While pstore with double digit bins couldn't change the values at all without reboots.

Sent from my Nexus 6

If I've helped you, don't forget to hit thanks!

---------- Post added at 08:11 AM ---------- Previous post was at 08:10 AM ----------

What "new" faux sound?

Sent from my Nexus 6

If I've helped you, don't forget to hit thanks!
[Nexus 6 Android Development] Macusercom:
Interesting. All I know is that I have a PVS binning of about 9 and I can undervolt with 75 mV without any stability issues with stock clock speed.
[Nexus 6 Android Development] apophis9283:
Trying to get RR ROM to build. I will start looking at the fast charge tomorrow. I just wanted an updated RR ROM
[Nexus 6 Android Development] apophis9283:
Someone said FAST CHARGE was working on another kernel. What kernel was it
[Nexus 6 Android Development] confanet:
I tried only stock kernel and Lean kernel. For both fast charge works correctly.

Inviato dal mio Nexus 6 utilizzando Tapatalk
[Nexus 6 Android Development] :
I'm really kinda confused now.

Neither leankernel nor stock have a force fast charge option?

The only thing that force fast charge does, is makes the phone charge at 900ma instead of 500ma when connected to a computers USB port. It doesn't affect anything else.
[Nexus 6 Android Development] confanet:
I just reported a different behavior I noticed, I'm not an expert of Android code.

Btw I'm speaking about the nexus 6 wall charger. With stock kernel I had values about 2000ma never reached with your kernel.

With your kernel installed Fast charge for usb port works at about 500 ma that anyway is it a low values.

I should check how many time I need for a complete charge; maybe Ampere is giving wrong values.

I really don't know if it is a problem on my side or your side.

I really thanks you if you give a look at it but you are right, if I'm the only one with this issue you have no reasons to think that it is your problem.

Inviato dal mio Nexus 6 utilizzando Tapatalk
[Nexus 6 Android Development] :
No, you could be right. I haven't been on stock in forever.

However, the Wall charger is only a 120V 2A charger. Given transformer losses, it could never actually output 5V at 2A.

In fact, on the wall charger itself the values are:

Input: 100-240VAC ~50-60Hz 0.5A

Standard Output: 5VDC @ 1.6A

Turbo 1 Output: 9V @ 1.6A

Turbo 2 Output: 12V @ 1.2A

1.6A = 1600ma

1.2A = 1200ma

So I guess my question would be... The charger itself doesn't even go to 2000ma, is it really that big of a deal if the display value for the max doesn't show 2000ma?

---------- Post added at 08:11 PM ---------- Previous post was at 07:44 PM ----------

Question to anyone interested in Per-App profiles...

I think that this feature is *almost* ready for general release.... However, my question is this... How big of a deal is it to delete/resave your existing profiles? I'm having a hard time figuring out how to modify the existing profiles to add in an ID field. If it's not a huge to deal to re-add them then I won't bother spending anymore time trying to figure that out. I'd prefer for the app to auto-upgrade the stuff but... I dunno

*edit*

Disregard. I think I figured out a way to automatically add the IDs to existing profiles.
[Nexus 6 Android Development] chopt51:
Why does it say [AWESOME KERNEL] last time I tried to flash it the sound broke. Took me a while to reflash my **** to make sound work again. Was nice for a joy ride though.
[Nexus 6 Android Development] apophis9283:
Because Im awesome. Feel free to report this post because Im that awesome. Also your full of it. Not one time has any other person ever said sound was broken. Youre a known troll and I dont have time for you and to prove this, you will now be added to my ignore list
[Nexus 6 Android Development] RngrYogi:
Any plans to bring this to the 6p? I have a shiny one waiting for it. lol
[Nexus 6 Android Development] confanet:
I agree with you. Anyway I should use a multimeter to measure the right voltage and the right current that can be a little bit different compared to the spec on the charger.

Now I tried to install lean kernel after flashing system again and I get the result on the screen shot.

Then I flashed Singularity over Lean without flashing system first. Now I have the same charging speed also with your kernel.

I also have the charging led enabled that I haven't before.

Can you help me to understand?

I don't want you to waste time to investigate about an issue if there isn't a real reason
[Nexus 6 Android Development] apophis9283:
Like I said. I dont have any plans to bring it to any other devices and I dont think Yoinx does either. If you can find someone who is knowledgeable about kernels and would like to be part of team Singularity. I would have no issues with them doing so as long as credit is given and the kernel name remains the same

Also must be RC or higher
[Nexus 6 Android Development] :
Could've just been a dirty flash honestly. With the way that anykernel works, it patches whatever is in your boot.img. If there was something janky in there, you can get weirdness.

Sent from my Nexus 6

If I've helped you, don't forget to hit thanks!

---------- Post added at 10:35 PM ---------- Previous post was at 09:41 PM ----------

SKA V12

Changes:

Fixed a typo in the BCL path

Added the ability to disable the logger daemon (logd, controls whether or not logcat is running)

Added binning (PVS/Speed) information to the info window (if it's available)

Added Per-App profile support

Notes for Per-App profile support:

The SKA Per App Monitor service needs to be enabled under Settings > Accessibility (the app will prompt you when you try to enable them if it's not)

There is a slight delay when opening the profiles view now. This is because I have it upgrading existing profiles with a unique id and pre-caching the list of installed applications.

You'll want to set at least one profile as "Default" (it's in the list) with whatever you want as 'normal' settings. This profile will be applied anytime that the foreground app doesn't match any other profile

If the previous app and the current app have the same profile assigned, it won't try to apply the profile a second time

There's an option under settings to generate a toast every time that the service applies a profile. If you want to see that it's working, this is the only outward indication (you won't be able to go back to the app to check settings since it might re-apply another profile).

I'm aware of some apps which the launcher will be presented as the foreground app over. I've noticed this with chrome while on the main page. If you set a profile to it, the assigned profile will apply then the default. Once you start browsing, it'll re-apply the correct profile. I've tried to add a few checks to prevent this, but they aren't working... This isn't something wrong in the app, this is something with the other apps/accessibility service.

Good luck, hopefully this works correctly for everyone!
[Nexus 6 Android Development] str8str:
How do you set a default? Don't see a settings to call it or set one as default.
[Nexus 6 Android Development] :
"default"... It starts with a d, and the list is alphabetical...

I had it at the top of my list while trading, but changed my methods and forgot to force it back to the top

Sent from my Nexus 6

If I've helped you, don't forget to hit thanks!
[Nexus 6 Android Development] str8str:
What list? The app list

---------- Post added at 02:53 PM ---------- Previous post was at 02:51 PM ----------

Got it thanks
[Nexus 6 Android Development] :
Yeah. I may figure out a different/better way to do this at some point, but for now I just included it in the app last for ease... Maybe I should move it back to the top to make it clearer.

Sent from my Nexus 6

If I've helped you, don't forget to hit thanks!
[Nexus 6 Android Development] RngrYogi:
Ok I will keep my eye out.
[Nexus 6 Android Development] apophis9283:
I have a few things merged today. Replaced Fauxs Intelli-Plug with a version neobuddy did. Some sound stuff from the guys over at elite kernel and a fix. Ill work on it more tomorrow
[Nexus 6 Android Development] str8str:
U you could at some point but now that I know where it is it's n not a big deal. Definitely no hurry. Good job man. Just out of curiosity what apps would you consider having different profiles for.
[Nexus 6 Android Development] :
Really, it's up to you. I don't really do the per app profiles thing typically... This war something that someone had mentioned including at one point, so I did.

Sent from my Nexus 6

If I've helped you, don't forget to hit thanks!
[Nexus 6 Android Development] apophis9283:
So i checked my charger with charging from a moto turbo charger. Its charging at 1950 mah even though it says its max is 1500 mah

Just as i said, as the battery gets full it drops the mah. Now at 580mah
[Nexus 6 Android Development] MrSplaat:
After the flash of 5.3 I've been getting one random reboot every night, mostly in the morning between 06.00 and 08.00.

Edit: It just rebooted in front of my face while charging, newest logs added.
[Nexus 6 Android Development] Hung0702:
I'm getting reboots, too. Sorry no logs. If I don't set any CPU-related settings on boot, then it's fine. But setting CPU/Voltage/Hotplug causes my phone to crash. Didn't have this issue on 5.2, Kernel Adiutor v11. I'm not sure which is the culprit. Anyone got a link for 5.2.1? Or KA v11?
[Nexus 6 Android Development] Meowdib:
Elite kernel’s is not as good Singularity 5.3 sound is and I have just tried the latest Elite testing. Also, I am not getting any random reboots at all and also on v12 KA. I'm on Stock Lite with xposed.
[Nexus 6 Android Development] MrSplaat:
Removed all the "Apply on boot" and let SKA reset settings to default. Did small changes to CPU, hotplug and wake locks. Let's hope this fixes the RR.
[Nexus 6 Android Development] apophis9283:
Had you messed with any wifi wakelocks?
[Nexus 6 Android Development] MrSplaat:
All the wlan wakelocks are disabled, but the dividers are default.
[Nexus 6 Android Development] apophis9283:
Try leaving anything wifi related on. then see if you still get reboots
[Nexus 6 Android Development] MrSplaat:
Will try that if the changes I made didn't help.
[Nexus 6 Android Development] apophis9283:
Been awhile since Ive done a ROM. Finally got RR ROM to boot.
[Nexus 6 Android Development] NITRO_2:
I'm also getting some random reboots. I pulled the logs here, hopefully they'll help. https://drive.google.com/file/d/0ByTzZ5Z4zV9MUFJTU1VMc2NYcUk/view?usp=docslist_api
[Nexus 6 Android Development] apophis9283:
Link isnt working. I even copied and pasted it.
[Nexus 6 Android Development] NITRO_2:
Oh woops, my bad. Try this please https://www.dropbox.com/s/n9sb8fmquuy0xh5/2016.zip?dl=0
[Nexus 6 Android Development] apophis9283:
do you use agressive or higher for low memory killer? Just at first glance i see it killing a lot of apps

in fact i see 5 apps so far being killed
[Nexus 6 Android Development] NITRO_2:
I never touch the low memory killer so it's still at the default setting
[Nexus 6 Android Development] apophis9283:
Im about to post a build I would like everyone who is having issues to try it out and see what happens
[Nexus 6 Android Development] apophis9283:
People who are having issues with reboots. please try this

https://www.androidfilehost.com/?fid=24438995911973144
[Nexus 6 Android Development] Hung0702:
Flashed over, re-enabled all CPU-related set-on-boot toggles, and it works fine now. Thanks for the very, very quick fix!
[Nexus 6 Android Development] apophis9283:
Heres whats going on. I am friends with the dev of this app

https://play.google.com/store/apps/details?id=com.torch2424.statsmonitorwidgetFree&hl=en

he gave me 10 free codes to download the app. I gave Yoinx one I have 9 left. I want to reserve 2 leaving me with 7. First seven people to pm me will get codes.You have to understand he just pushed 5.0 where everything is working. If you use it for 4.9 it will be broken but he has pushed 5.0 to play store. so you would just update. Not being biased first 7
[Nexus 6 Android Development] MrSplaat:
Flashed and running. Next, see if the phone quits its childish behavior.
[Nexus 6 Android Development] apophis9283:
To the 2 that messaged me, check your inbox.

5 to go
[Nexus 6 Android Development] apophis9283:
Also, I have a newer test build that should stop some of the dumb stuff

https://www.androidfilehost.com/?fid=24438995911973375
[Nexus 6 Android Development] apophis9283:
For those with codes already, 5.0 is available on the market and it works great

2 more codes
[Nexus 6 Android Development] apophis9283:
If you all would be kind enough and test that test kernel a page back (theres 2 you want the one thats the latest). If Random Reboots are gone and funkyness while charging is gone. Ill make it official

And I still have 2 codes left :)
[Nexus 6 Android Development] Mervingio:
me [emoji16]
[Nexus 6 Android Development] apophis9283:
PM me if you want a code
[Nexus 6 Android Development] apophis9283:
I have one left...... technically 3 because I reserved 2. I may end up handing those out as well
[Nexus 6 Android Development] TheGrandFinale2001:
Did you take down the test kernel?
[Nexus 6 Android Development] apophis9283:
here it is

https://www.androidfilehost.com/?fid=24438995911973375
[Nexus 6 Android Development] NickosD:
Why I can't find that list? Is it at the side menu of the app? I only see information (kernel, freq table) and kernel options (cpu, voltage, gpu, thermal, gpu, screen, wake controls, sound, power and battery, i/o, kernel samepage, memory killer, virtual, wake locks, entropy, misc)
[Nexus 6 Android Development] omaralkha99:
Just flashed this over pure nexus, but only one of the cores is staying on, the other 3 cores are staying off no matter what I tweak or governor I choose. No mods and didnt touch anything but flashing this :/ any ideas or thoughts?
[Nexus 6 Android Development] :
You need to go to profiles, then select one of your saved profiles and choose perapp

Sent from my Nexus 6

If I've helped you, don't forget to hit thanks!

---------- Post added at 08:40 PM ---------- Previous post was at 08:39 PM ----------

Sometimes people seem to get wonky flashes. I'd try reflashing your roms boot image then reflash this

Sent from my Nexus 6

If I've helped you, don't forget to hit thanks!
[Nexus 6 Android Development] apophis9283:
Gone
[Nexus 6 Android Development] apophis9283:
Take that back. I have 2 left. The people who wanted them never got back to me. 2 codes
[Nexus 6 Android Development] apophis9283:
Screen shot
[Nexus 6 Android Development] apophis9283:
Ok folks Im sending the last code, no more
[Nexus 6 Android Development] Mervingio:
Damn Nice!!!!!
[Nexus 6 Android Development] Mervingio:
with Test Kernel [emoji16]
[Nexus 6 Android Development] MrSplaat:
After the flash of this and the earlier test build, the freq on all CPU cores seems to freeze at 1958 MHz with the dancedance gov after a reboot. Have to change gov forth and back a few times for it to go down to normal freq.

Besides that, haven't had any reboots since the earlier test build :good: