yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] adstraylight:
To prevent freezes I have:

Using Kernel Auditor app:

Set zram to 200MB

Set swapiness to 100

Set CPU quiet governor to 'runnable'

Set interactive governor timer_rate to 50000

& midrange_go_maxspeed_load to 85

Set minimum CPU speed to 204mhz

Run startup script with the following lines via init.d scripts support app:

echo 2 > /sys/block/zram0/max_comp_streams

service call SurfaceFlinger 1009 i32 1

Run SSD Boost app at startup

I also use a taskiller app to root kill (force stop) unnecessary apps when the screen is off, the only one I've found on the Play store to effectively do this is this one:

https://play.google.com/store/apps/details?id=com.rhythm.hexise.task&hl=en_GB

Hope this helps ☺️

With this setup, the new kernel feels snappier and more responsive than the last version, many thanks [MENTION=4573282]namerke[/MENTION] & UA for effectively keeping my tablet alive!
[Nexus 7 Android Development] pmitrik:
Thank you for the instructions. I implemented what I can, but it appears that the zram is not enabled even though when I initially installed it appeared to be working when using the Shell to verify using 'free' and the sdcard command to verify. Does this mean I need to reflash the boot image and then supersu?
[Nexus 7 Android Development] adstraylight:
If you flashed supersu after the kernel, then granted kernel auditor su privileges everything should work, and you will be able to alter the size of the zram. Otherwise maybe you should do as you say and try again from the beginning. It is hard to give a definitive answer without knowing the detail.
[Nexus 7 Android Development] massima:
i'm stunning how these settings make the grouper like a new tablet, i didn't install other apps except kernel auditor. I tried to apply some settings to the stock UA kernel, i got less freezes but with this kernel and settings my tablet flies:victory:
[Nexus 7 Android Development] eNVy:
Will it work with LineageOS 14.1 ?
[Nexus 7 Android Development] pmitrik:
As I understand it, this only works with Unlegacy Android (UA).
[Nexus 7 Android Development] adstraylight:
I've been trying out stuff to improve the performance, essentially adding bits of the parrotmod script to see what works in this context ?. So any thanks are really due to parrotgeek.

Here is my new improved init.d script, which once again, works for me but ymmv, any suggestions and alternatives would be great to hear about...I'm still doing all the ka stuff + SSD boost as well btw..as well as using the task killer...

echo 2 > /sys/block/zram0/max_comp_streams

service call SurfaceFlinger 1009 i32 1

echo 1 > /proc/sys/vm/highmem_is_dirtyable

echo 48 > /sys/module/lowmemorykiller/parameters/cost

setprop ro.hwui.disable_scissor_opt 0

setprop ro.hwui.texture_cache_size 20

setprop ro.hwui.texture_cache_flushrate 0.5

setprop ro.hwui.gradient_cache_size 0.1

echo 512 > /sys/block/mmcblk0/queue/nr_requests

echo 0 > /sys/block/mmcblk0/queue/read_ahead_kb
[Nexus 7 Android Development] sakindia123:
Got my nexus 7 running back after years,kernel works very well with Unlegacy rom,is it possible to add overclock support for this kernel?It used to be a popular feature in the 3.1 kernels
[Nexus 7 Android Development] adstraylight:
Okay, think I've got my init.d script done (for now, pending the big O ?)....

So I thought I'd share, and stop spamming the thread?

Many thanks to parrotgeek, for all his expertise and research as well as namerke + UA.. I am, as they say, not worthy☺️
[Nexus 7 Android Development] pmitrik:
Can a September UA rom be dirty flashed over an August version? Same versions just different months.

Thank you in advance!
[Nexus 7 Android Development] adstraylight:
Yes, in that you don't need to wipe the data partition, but I wipe the /system manually (advanced wipe) along with the dalvik cache/cache. This is probably more out of habit than necessity though.

Of course you also need to reflash gapps as well if you use them, and also this kernel/ SuperSU, but I do these last two separately once i know that the new version boots ok
[Nexus 7 Android Development] adstraylight:
So, i know I said I'd stop spamming the thread, but I've been playing with the virtual memory settings in KA, and think I've got the zram setup finer tuned for balance between fore/background activity:

dirty_ratio 26

dirty_background_ratio 9

swappiness 70

Disksize 200MB

Hope this may be of some use to somebody ?
[Nexus 7 Android Development] kalafior12:
After executing script in KA

Result: parcel (null)

It's ok?

Thanks btw :)

Wysłane z mojego Nexus 7 przy użyciu Tapatalka
[Nexus 7 Android Development] adstraylight:
Yes, that's the return from the surface flinger line, hope it helps everything run smoothly, like I say, these settings improve my usage pattern ☺️
[Nexus 7 Android Development] adstraylight:
Here's a thing, I think I've made the ux 'snappier', but as it's such a subjective thing, it'd be great to know if others agree:

In the interactive governor I've set high_freq_min_delay to 100000

I've also set the minimum cpu frequency to 340

To me the system feels more responsive....
[Nexus 7 Android Development] kalafior12:
I've apply all you settings and script and what can i say...GREAT WORK.

But i dont know if last settings change anything....

Thanks

Wysłane z mojego Nexus 7 przy użyciu Tapatalka
[Nexus 7 Android Development] adstraylight:
Thanks, tbh I'm not sure myself, but it doesn't seem to be doing any harm, so I think I'll run with it fo a while. Going below 100000 appears to make the system less stable, and cause reboots while the device is idle, but of course this could be a complete coincidence.

It's been a bit like this all the way through my experimenting, barely noticeable improvements that together add up to something more significant. My approach has been based on the feel as a a user, rather than anything more technical. I have done some research on things in order to get a basic idea of what the tweaks affect, and for some, including this last one, there's surprisingly little information.
[Nexus 7 Android Development] kalafior12:
is there a chance for overclocking in the next build ?

Wysłane z mojego Nexus 7 przy użyciu Tapatalka
[Nexus 7 Android Development] namerke:
Based on their gerrit the Unlegacy Android team / [MENTION=4619263]sheffzor[/MENTION] seems to be very active working on Oreo for Nexus 7, which is of course, wonderfull news.

On the other hand, it also means that I put this project on halt until we know if there is any point playing around with additional kernel features.

I will probably remove my release once Oreo hits XDA to avoid any confusion / bootloops.

[MENTION=2583740]adstraylight[/MENTION]

Thanks for all the feedback and for testing out values for the governors and also for the build properties.

I will probably embed them if there will be any future relesase by my side.
[Nexus 7 Android Development] adstraylight:
[MENTION=4573282]namerke[/MENTION]

Thanks for the opportunity to play with a kernel that allows such freedom. I think having sdcardfs in particular makes it so good for our device.

I do hope you can see your way to maintaining this project, as it is in accord with UA's aim of providing a base that others may develop from. Also they appear to be working on a lot of differing devices, so having you looking out for our groupers alone is great, and very much appreciated.

It looks to me like a load of cve patches have been included in the source recently, so there might be a cause for a new release? I'm not too familiar with how UA structure their various forks an repositories, so they might not be relevant to us though.

I'm pleased that you think the stuff I've been playing around with is worthy of inclusion, as I've honestly no idea if it works well for others aside from the few positive comments people have made here. I only really started posting my setup to maybe get a discussion going on the best ways to optimise the kernel for differing usage patterns, of which mine is obviously just one. So if anyone finds anything that works better, please do let the community know ?

To continue from my last postings about the high_freq_min_delay, I'm now running a value of 125000, as anything lower seems to cause some instability, I'm also pretty unsure as to whether changing it is to any great advantage anyway.

Thanks again!
[Nexus 7 Android Development] sheffzor:
Sometimes I feel we aren't working for the same goal/cause, instead, we look for highlighting our personal work instead of a mutual big achieve.. I wonder why, this kind of proposals aren't pushed to our gerrit to release them to everybody in the origin.

So.. what we all want in the end is to avoid android fragmentation but what the dev community tends to do is to fragment work in small projects, I don't blame them, but that will difficult stabilization.

Gerrit is such a nice place to discuss if some feature/functionality should be implemented, why not do it there and let the users here, in this kind of forums, test and say what they think about it, then we just need to filter what is feasible and beneficial​ or not from the hardware/software point of view.

So my suggestion to every developer is to converge their work to their workbase so we can together achieve a better and concise core instead of fragmenting it.

Unlegacy Android project exists to fulfill the hole on this context, reduce the fragmentation, keep things straight and clean and almost non dependable on aosp changes to make it possible to be used by everyone, but with one thing in mind, keep those old pieces of silicon the most bleeding edge possible even with their physical/hardware limitations.

To resume, what we all expect in the end is not an experimental rom but a real daily use device always knowing the device limitations.

All the features/implementations in OP here would be easily acceptable in UA gerrit and would eventually benefits more devices then only grouper.

Regards,

André

Enviado do meu A0001 através de Tapatalk
[Nexus 7 Android Development] adstraylight:
I agree that the ideal is to have all the best features brought together in order to avoid​ fragmentation and mutual incompatibility, but the benefit of slightly forked projects in my view is to allow for experimentation with a smaller number of alpha or beta testers. On saying that, I'd love to see you guys all working closer together, as it could only be a good thing for users such as myself.

I just think there is room for both things to occur in parallel.

I do apologise though if I've misrepresented the aim of your project, and wish to thank you for your dedication to keeping our devices alive.

EDIT: An example of the benefits of having smaller outside groups is that it appears to me that many Devs don't use Gapps, I presume in order to focus on the core Android functionality, whereas many users do. This came to light when I first started tinkering with this kernel's settings in order to improve the function of my tablet that has a minimal gapps installation along with several Google service apps downloaded from the market. It took a while for me and the OP to realise why I was having issues and they were not.

Frankly, the focused environment of of this thread made it far easier for a non dev user like me to be heard, and have my ideas taken seriously. In a wider context they may very well have been lost in the background noise.
[Nexus 7 Android Development] namerke:
Hi André !

Thanks for sharing your thoughts.

I'm sincerely sorry if I came accross as someone who wants to highlight individual contributions. I tried to emphasise in the UA 3.4 topic that it was never my intention to take personal credit for this kernel and all the work that you guys are doing for us. Hopefully everyone here understands that the commits introduced by me are nowhere near as difficult and complex as the actual development that the Unlegacy-Android team is doing.

I know git, I have a basic understanding about Android as an OS and it's kernel and about how to implement features, mostly based on other people's work.

But the thing is that I feel like these 'skills' won't make me an actual developer, one who is eligible and able to contribute to the common project / gerrit in merit.

After giving it some toughts, I think you are right about fragmentation therefore I put this project on halt and I already deleted the boot.img from the downloads page. Probably this is for the better on the long run for the above mentioned reasons and hopefully I can find other ways to contribute in the future.

For start here is a small list of the experiences that we gained here from the top of my head:

User experience varies highly between users with and without gapps (probably system load). Since most users use gapps I think it does worth to test with gapps installed.

Default min CPU freq 50Mhz seems to cause some hiccups/freeze especially with gapps installed. It seems like the freq scaling is not fast enough. 102Mhz is better, but still can cause trouble with heavy usage, especially right after unlocking the tablet. Min freq 340Mhz feels snappier but drains battery.

Grouper seems to be very sensitive to interactive governor values, at least compared to my Hammerhead. It can be freezed up easily with some slightly-off values, again, especially with gapps installed.

As for the 'experimental' features listed here: as far as I know SDCARDFS became a default feature on some (all?) Oreo devices, and is actually usefull when implemented properly, on the other hand ZRAM is kind of a mixed bag. Sure, ZRAM can help with keeping apps in memory, and on my Hammerhead it causes no trouble, but I'm still note sure if it worths to sacrifice CPU power on Grouper for it. I think it would require some more testing / measuring if Grouper's CPU/bus speeds are fast enough for it.

KSM values from [MENTION=2188693]AndDiSa[/MENTION] 's 3.1 kernel are worthy to check, even if they can change from time to time my personal experience is that they can help with overall performance.

I hope some of these make some sense. :)

Cheers!
[Nexus 7 Android Development] adstraylight:
Sad to hear that, but thanks for the opportunity to play ? I don't agree with the philosophy of over centralisation of creativity or authority, and have always felt that what made xda great is that slightly anarchic thing, where everyone is pulling in the same direction, but from their own perspectives.

Anyway, thanks for everything, and I shall stay subscribed in case you change your mind.....?
[Nexus 7 Android Development] adstraylight:
[MENTION=4573282]namerke[/MENTION]

Just a small point to note, and not wishing to stir up conflict, but Ziyan did actually give you his blessing to publish your kernel iirc, so I don't really see the need to delete or discontinue your work.

Also, there's no chance of fragmentation, given that you specify that it will only work with UA's ROM....

I for one, and I'd contend many others are extremely grateful to both you and UA for allowing an 'old' device to feel current and useable so many years after the commercial powers have deemed it obsolete.

Thanks again.
[Samsung Galaxy S8+ Questions & Answers] Wiz:
I received a dual sim S8+ model SM-G955FD (CSC XXV) that somehow was flashed with an Italian (CSC-ITV) SM-G955F single-sim ROM ..

It works fine, even dual-sim functionality, so on itself no real issue. Even a recent OTA update went fine and did not break anything.

But I would like to flash it back to the original SM-G955FD rom for XXV. I have downloaded the proper file and flashed everything via Odin (AP, BL, CSC, CP) but somehow it now has become a SM-G955F (CSC-PHN) ..

Am getting a bit confused now .. How do I get the sodded thing back to its original CSC with Odin? The S8+ is not rooted, and Knox is not tripped.

Any help would be welcome :)
[Samsung Galaxy S8+ Questions & Answers] henklbr:
I'll try to explain in a simple way...

That your CSC now is PHN is CORRECT!

Since introduction of the Note 7, Samsung is using for most European countries (and some other countries) the Multi-CSC OXM.

In The Multi-CSC OXM, these CSC's are included:

ACR AFG AFR ARO ATO AUT BGL BNG BRI BTC BTU CAC CAM CHO COO DBT DKR ECT EGY EON ETL EUR GLB ILO INS ITV KSA LAO LUX LYS MID MM1 MWD MYM NEE NPL ORX PAK PHE PHN ROM SEB SEE SEK SER SIN SKZ SLK SMA STH THL THR TMC TPA TPH TTT TUN TUR WTL XEF XEH XEO XEU XFA XFE XME XSG XSP XTC XXV ZTO

As you can see, PHN & XXV (original CSC of your device) are BOTH included in the Multi-CSC OXM

Because you flashed the firmware with CSC_OXM (NOT HOME_CSC_OXM) your device was resetted. The initial set-up sees, that your SIM-card is NOT from Vietnam (XXV) so it'll use the best CSC for your SIM-card, in this case PHN.

When you have a look at the "Softwaregegevens"-screen, scroll down to "Software serviceprovider" you probably see "PHN/PHN/XXV" which is CORRECT! (The last XXV can't be changed, because this is the product-code of your device).

Because your device is using the "correct" CSC-file now (PHN), probably VoLTE & VoWiFi (when available) will work now too, as well as "NL Alert"...

You'll also (probably) receive automatically OTA-updates...

I hope, this made it some clear to you...

PS: the SM-G955FD will be released in The Netherlands too ;)

PS2: the ROM's for the SM-G955F & SM-G955FD models are the same ;)
[Samsung Galaxy S8+ Questions & Answers] Wiz:
Thanks for the clarification ... There is however one strange thing that remains unexplained. Phone Info identifies my phone as a SM-G955F, not a SM-G955FD ... is that perhaps because Phone Info is not able to correctly read out the phone details?
[Samsung Galaxy S8+ Questions & Answers] henklbr:
Correct...

Phone Info doesn't read the correct CSC information also... ;)
[Samsung Galaxy S8+ Questions & Answers] Reppy07:
I hope I'm allowed to piggy back this thread for a quick question relating to this.

I have the XXV dual Sim. And VMC is the CSC I need to use. I had to install it via twrp and works great.

But how do I figure out which one to flash from Odin? I'd like to see which one it'll pick closest relating to my Sim card. XAC is the Canadian but it's not included in the multi.

Can you help clarify this for me? I'm starting to understand this.
[Samsung Galaxy S8+ Questions & Answers] farazg:
Similar question for me. Is there a way to install Canadian (Fido) CSC on an unrooted stock SMG955FD. Knox is important to me but so is wifi calling.

Help please.

thanks.
[Samsung Galaxy S8+ Questions & Answers] spartakus:
I´ve a SM-G955FD DUALSIM with:

Model	SM-G955FD

Model name	Galaxy S8+

Country	Taiwan (BRI)

Version	Android 7.0

Product code	BRI

PDA	G955FXXU1AQJ1

CSC	G955FOXM1AQJ1

When I look at the "Softwaregegevens"-screen, at "Software serviceprovider" i see "BRI/TPH/BRI"

Can i flash this one ? :

Model	SM-G955F

Model name	Galaxy S8+

Country	PORTUGAL(TPH)

Version	Android 7.0

Product code	TPH

PDA	G955FXXU1AQH3

CSC	G955FOXM1AQH3

It'll change "Software serviceprovider" to "TPH/TPH/TPH"?

THANKS
[Android Q&A, Help & Troubleshooting] donkey8:
This is my first thread on this forum, I am looking for some solution to my problem.

As I described in the title, I have rooted rk3066 device with android jelly bean 4.1 and I am stuck at boot animation.

I can put the device into recovery mode by command "adb reboot recovery". Then I end up with android logo with red triangle and exclamation mark.

When I use the "adb shell dmesg" command I get the following results (just fragment):

Consider the cycle in the above text, cycle begins with:

What is wrong?

Is it a wifi or bluetooth problem?

I also have tried to unplug the camera and then boot the device, but the result was the same - stuck at boot animation.

Sorry for my english.

Thanks in advance for any help.

Donkey8
[Android Q&A, Help & Troubleshooting] RealWelder:
Can you run a logcat?
[Android Q&A, Help & Troubleshooting] donkey8:
Yes, I can, here are the results:
[Android Q&A, Help & Troubleshooting] donkey8:
continue...

next part of logcat:
[Android Q&A, Help & Troubleshooting] RealWelder:
It appears there are multiple errors. Do you have Notepad++? I would use it to search this logcat for FATAL, that will give you an idea of how many important errors you have. Looking through, I'm seeing things like WindowManager which could be an issue with "multiwindow" feature. Some other errors include PackageManager.

If I had to guess, I would say that you might be missing a . jar file. Possibly framework2.jar or android.policy.jar.
[Android Q&A, Help & Troubleshooting] donkey8:
Thank you RealWelder for your help...

but my knowledge about android is too weak I think.

So should I have another device with android 4.1 (BTW I have one - LG L3 II E430) and then copy missing jars to the Overmax tablet?

But where can I find these jars?
[Android Q&A, Help & Troubleshooting] RealWelder:
Unfortunately, it would have to be the exact ones that were meant for that OS. What was the last thing you did before the issue? Did you delete some stuff or change fonts or bootanimation?
[Android Q&A, Help & Troubleshooting] donkey8:
Now I don't remember what I was doing before the issue. Once I have changed bootanimation, but after that my tablet was working well. Maybe I have changed bootanimation once again before the issue - I don't remember well. It is rooted device.

Also I was developing some application and I have installed this application many times through Android Studio, but I don't think it was reason for the issue. AVG antivirus warned me that this application is dangerous, but I didn't do any dangerous tricks with this application - I have developed this application from scratch.

Before the issue i have noticed that on my tablet it was hard to turn on the wi-fi, sometimes I had to push wifi icon more than 20 times before it went turned on.
[Windows Mobile Development and Hacking General] htctoucher:
Is it possible to remap the buttons on the htc home plugin (meaning the sms and email buttons located below the clock)?

I would like to be able to open PocketCM Contacts when I press on the sms button.

Would this be possible?

Any help would be appreciated

Thanks,

htctoucher
[Windows Mobile Development and Hacking General] Martinhdk:
Have you tried to search??
[Windows Mobile Development and Hacking General] htctoucher:
yeah i have tried, just I could not find anything..

I searched "remap htc touch home buttons" and every variant of these words I could think of on XDA and Google.. couldn't find any answers

have any ideas?

or did I miss a thread?

thanks
[Windows Mobile Development and Hacking General] Azimuth21:
Martinhdk, I'd say at least answer the question for him. Simple Answer: you can't.
[Windows Mobile Development and Hacking General] htctoucher:
oh well.. thanks for the answer haha
[Windows Mobile Development and Hacking General] callius:
As in it's impossible to get the buttons to map to different things, or it is not really feasible (as in, it would take an enormous amount of work and programming skill)?

I was just wondering about this the other day. I have HTC Touch and I noticed that when I click on the mail button it brings me to my MMS inbox, however I would like it to bring me to my exchange inbox. Is this something which just isn't supported by HTC Touch, or is it something that no one (to your knowledge) has managed to code yet?
[Windows Mobile Development and Hacking General] larsuck:
Hell, nothing is impossible. Look at what Slither has done with the cube! However, the HOME plugin is hardcoded to link to the things it does. There aren't any registry settings to mess with unfortunately.
[Windows Mobile Development and Hacking General] Martinhdk:
some info here:

http://xdaforums.com/showthread.php?t=359957&highlight=htc+home

http://xdaforums.com/showthread.php?t=356015&highlight=htc+home

http://xdaforums.com/showthread.php?t=319308&highlight=Home+customise

http://xdaforums.com/showthread.php?t=352008&highlight=htc+home

:)

Standard XDA search.
[Windows Mobile Development and Hacking General] Ather:
it is possible...just as LG today plugin was edited..either by hex editing or modifying some dll...