yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=7743247]noone2006[/MENTION] I have not seen that message. Perhaps you made a typo in the file? Did you try it with the original file again?

Make sure the permissions are set to 644 (rw-r--r--)

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] noone2006:
Finally it works, i have tried with original files again. maybe i modified something unintentionnaly.

Thanks
[Xiaomi Redmi 4X Guides, News, & Discussion] stevenlopes92:
where do i need to make change or what file do i need to flash to increase the write speed as mentioned in your last edit

and also i found that when i copy "init.qcom.post_boot.sh" to the path VoLTE stops working , currently on developer stable of santoni MIUI 9 8.1.25

and also wanted to ask if i can flash	"init.qcom.post_boot.sh.RRV7" in this rom ?

BTW awesome work
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=5241521]stevenlopes92[/MENTION] look into the V8 file. There is a line like:

echo 300000000 > /sys/class/devfreq/mmc0/max_freq

Might be kernel specific!

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
V9 of the script. Added tweaked deviceidle (doze) settings. Device looses only 0-1% overnight!

Be sure to use Firmware V32 from here: https://xdaforums.com/xiaomi-redmi-4x/how-to/firmwares-t3682965

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Decide to release V10 of the script after doing research on light/deep Doze (deviceidle) on Nougat (Android 7.1).

The story

Reference:

https://www.bignerdranch.com/blog/diving-into-doze-mode-for-developers/

The goal:

screen off/charge unplug/no motion: 0 sec -> light doze (5 min maintenance interval) -> after 15 min -> Deep doze (1 hour maintenance interval)

- device in light mode directly after screen off (light_after_inactive_to=0)

- stay in light mode for 15 minutes

- after 15 minutes step into deep doze (inactive_to=900000)

- do not wait for any motion (locating_to,motion_inactive_to,sensing_to all 0)

Note:

Apps NOT on whitelist can do their thing inside maintenance window (light/deep)!!!!!

The solution:

dumpsys deviceidle enable light
dumpsys deviceidle enable deep

dumpsys deviceidle whitelist +com.whatsapp +com.google.android.gm

settings put global Phenotype_flags device_idle_constants
settings put global device_idle_constants motion_inactive_to=0,locating_to=0,sensing_to=0,idle_after_inactive_to=0,inactive_to=900000,light_after_inactive_to=0

The result:

Idling history:
light-idle: -22m24s207ms (screen off)
normal: -21m43s844ms (screen on)
light-idle: -21m37s274ms (screen off)
light-maint: -13m56s266ms (first light maintenance after 21-14=7 minutes)
light-idle: -13m51s170ms (maintenance took only 5 seconds)
light-maint: -3m51s114ms (second light maintenance after 13-3=10 minutes)
light-idle: -3m46s68ms (maintenance took only 5 seconds)
deep-idle: -3m40s882ms (into deep doze after 22-3=19 minutes)

mState=IDLE mLightState=OVERRIDE
mInactiveTimeout=+15m0s0ms
mNextAlarmTime=+56m19s113ms
mNextIdlePendingDelay=+5m0s0ms
mNextIdleDelay=+2h0m0s0ms
mNextIdleDelay=+15m0s0ms
mCurIdleBudget=+2m49s859ms

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
My LED stopped working right upon applying v10. I'm back to v7 now and it's good again.

After comparing, I realized you deleted several lines at the end. Well.. it removed the LED completely after you remove these:

chown system:system /sys/class/leds/*/brightness
chown system:system /sys/class/leds/*/blink
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=5259237]NTLinhHaHa[/MENTION] Thanks for the feedback. These lines are still in V10. Strange that you don't have them.

Can you look into the V10 zip file you downloaded, then in system/etc you will find the script.

I downloaded the V10 from the OP just minutes ago and the lines are in there.

At the moment I am busy with deviceidle (light/deep Doze) problem. Think I solved it.

Custom deviceidle settings are stored in settings.global with the name device_idle_constants

But they are reset to default after a few hours. Found that Google Play Services does that.

I will put that in V11.

Nice weekend.
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
I downloaded the txt file, that's why... =))))

Took the one from the zip, proper v10, LED's working again :>
[Xiaomi Redmi 4X Guides, News, & Discussion] :
Time for Oreo ?

I am Following your Work from the start. And You're Improving day-by-day. But since Santoni got Many Oreo ROMs now (quite stable too :P) can we expect you to Help us With Oreo now. Join The TG group for your work feedback & Getting ROm updates https://t.me/redmi4official

I would love to see your Work On OREO, just like N days :P
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=7592018]__PG__[/MENTION] thanks for your kind words. I am not ready for OREO yet and still fine tuning N that I and my family use daily. I'm sure that day will come I switch everything to O.

So little time and still too much todo...well you know ;)

Cheers
[Xiaomi Redmi 4X Guides, News, & Discussion] basti_b24:
I noticed that the commands to enable light and deep doze do not get executed /have no effect when they are inside the init.qcom.post_boot file. I executed them separately using tasker which works. Is there any explanation for this behaviour?
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=5704434]basti_b24[/MENTION] maybe it doesn't work if you have multi user enabled in Android? I will test it again on another phone.

You solution is working. People using Kernel Adiutor can also create custom script for this.
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
RR Oreo stable is finally out =)) and one small problem: the file list inside /system/etc has changed. I could't find that file anywhere close. Would really appreciate OP's effort on Oreo support ;_;

For the record, I have found some lines in root/init.rc which refer to cpu settings. It might help, or not, idk.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
[MENTION=5259237]NTLinhHaHa[/MENTION] I have seen it. For me it is too early now to switch to O. Maybe in a few weeks time. I will download the ROM and take a look anyway. Maybe I have time this weekend.

Also read there was a problem with doze in the /etc/sysconfig/google.xml file.
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
Partly because of this, I'm back to Nougat, for now xD some review for you, Oreo is very fancy on animations and designs, but the current build of RR oreo lacks 1/2 of the customizations found on RR nougat. Don't switch too soon guys ;_;
[Xiaomi Redmi 4X Guides, News, & Discussion] himfa71:
Same here, I also switch back to RR Luis because of this, oreo is in very early stage,
[Xiaomi Redmi 4X Guides, News, & Discussion] hung.ngomanh:
I dont see RR Oreo is lacking any customization compared with RR N? Im using it since it becomes official build.

Im very excited with the OP's works, many thanks for your hard working. Hope to see the tweak on Oreo.
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
Have you touched all the customization settings inside the Settings app?

Just to list a few, there's a lack of statusbar network traffic settings, such as "incoming only", the display unit, hiding the arrows, there's no task manager on notification panel, lockscreen weather, lockscreen color settings, pie control, etc. I might have listed something wrong, but in my own defense I was not able to survive that first official build for more than 1 day after it came out.

Aaaaaaaaaand Clarity kernel hasn't supported Oreo yet, same to this tweaks of OP's. CPU constantly at 6-core idle is a bad start for me.
[Xiaomi Redmi 4X Guides, News, & Discussion] hung.ngomanh:
I see it has lock screen weather and pie control, other things are same here but i might not need them much personally.

Clarity 2.0 supports Oreo, check his thread??
[Xiaomi Redmi 4X Guides, News, & Discussion] NTLinhHaHa:
Well, I'd still want to wait for one or two "improvement" builds before going up.

And yes, I just checked their thread and noticed that. Does the custom kernel survive when we flash a ROM update over an old build with custom kernel though :rolleyes:
[Xiaomi Redmi 4X Guides, News, & Discussion] hung.ngomanh:
An OTA update could contain the kernel update so the answer is no probably xD
[Xiaomi Redmi 4X Guides, News, & Discussion] manchester98:
Hi Dev I am on latest DotOS nougat rom with clarity 2.1 kernel . I flashed your V11 script, how can I add som apps like Viber and Messenger to the white list ? because there is some delay in notification when the screen goes of.Thanks for reply
[Xiaomi Redmi 4X Guides, News, & Discussion] matiasdelafuente90:
Hi! Nice guide to boost our phone. I have a problem with the whatsapp voice record and the voice record in general. It sounds TOO low. With that tweaks i will be able to record with a normal volume? Greetings.
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Yes, take audio_platform_info.xml and mixer_paths_qrd_sku1.xml
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
They must be white listed too. To get the package names use adb shell (or terminal)

and type:

pm list packages -f | grep -i viber

pm list packages -f | grep -i mess

or grep other names. This is to give you an idea of how to find package names.
[Xiaomi Redmi 4X Guides, News, & Discussion] ariel5zal:
hi.. want to know.. if use this.. are the both grill speaker enable.. tq
[Xiaomi Redmi 4X Guides, News, & Discussion] tweakradje:
Nope. I have tried to make it work. I can get sound out of ear piece but not two speakers at the same time. But ear piece it is not very loud at all.
[Xiaomi Redmi 4X Guides, News, & Discussion] ariel5zal:
owh ok.. thanks..
[Xiaomi Redmi 4X Guides, News, & Discussion] himfa71:
There's only one speaker in redmi 4x, the other one is microphone
[Google Pixel Questions & Answers] queerquirks:
I got a Pixel purchased from JB HiFi last Dec. Now I am facing the mic issue where the other party cannot hear me, in addition it would playback a loud whining sound when I put it to call speaker only.

Tested the mic on a voice recorder app and camera video, both playback my voice audio normally.

Edit: This only happened after the August update. Done a full wipe/factory reset, issues still persist.

How to go about the warranty process for an Australian set, Google Australia or through the retailer?

I am not residing in Aus but had a friend brought it back for me, will go through my friend again to settle this issue so all advice is welcome in order not to trouble him too much.
[Google Pixel Questions & Answers] NOSTALGIA:
get in touch with the retailer first. thats the first advice google support will provide.

you may also call google support and you can check warranty options.
[X Play Q&A, Help & Troubleshooting] Darlenix:
Is there any way to downgrade ASPs? I suppose it's not as simple as finding a previous ASP and flashing it over, right?

If it's worth noting, I'm using a custom ROM -LineageOS-
[X Play Q&A, Help & Troubleshooting] aadityaraj1:
Are you talking about stock rom if then flash the stock firmware of older build and if you are talking about Lineage OS then flash previous build of it.
[Amazon Fire Phone] angelodealwis:
HI

I have been thinking of installing FireOS ROM in a different ROM slot to to the Stock ROM slot in safestrap while retaining the CM11 as my stock ROM. I saw some one doing the opposite on you tube (keeping the Fire OS ROM in the Stock ROM slot and installing CM 11 in another ROM slot and dual booting. Has any one tried it the way I am suggesting? Any advice will be appreciated.

Thanks.

P.S I did post a question on dual booting but no one answered :(
[Nexus 10 Q&A, Help & Troubleshooting] bedwere:
Hi,

I installed lineage-13.0-20170812-nightly-manta-signed.zip on my Nexus 10 and the microphone doesn't work. Has anyone any idea on how to fix this? Thanks!
[Nexus 10 Q&A, Help & Troubleshooting] bedwere:
I'm pleased to report that the problem disappeared after installing lineage-13.0-20170826-nightly-manta-signed.zip. Hopefully it won't ever come back! :)
[Galaxy S 5 Q&A, Help & Troubleshooting] Viralata:
Hello Guys

I installed Magisk, then i tried installing Xposed from this version : https://devs-lab.com/download-install-xposed-for-samsung-devices.html since Xposed Freezes on samsung logo om my GM-900H (Exynos). But the Xposed freezes and closes on start, and Safety Net got Error (Withtou Xposed it was ok). Anyone know any workaround ? Thx
[Samsung Galaxy S7 Edge Questions and Answers] SmartViewYTC:
Hello there!

Since I'm currently living in Germany and electronics here are sold with a 19% markup called sales tax, I was wondering if I could use US phones with bad IMEI/ ESN in Germany.

I found a unlocked Galaxy S7 Edge for $120 but it has a bad IMEI (T-mobile USA unit). Can I use this phone with Deutsche Telekom (T-mobile Germany)?

I couldn't find the info I was looking for so any advice is helpful.

And yes I know these phones have been beaten to death and may have even been stolen but I can live with that since a similar device here will cost around $400.

Best regards!
[Samsung Galaxy S7 Edge Questions and Answers] nimms:
You may.. if it's Network unlocked for any sim to be used. Verizon are unlocked by default. Sprint remote unlocks are less than 10usd on ebay. ATT can be unlocked too... tmobile ones are costly to unlock.
[Lenovo ZUK Z2 (Plus) Themes, Apps, and Mods] cast-away:
Hi. today we gonna change the system emoji without ROOT via very easy step and you just need to install an app as normal and that's it

Note:

I changed the font as well using San Francisco font edition modified By member v-b-n thank you for the awesome work bro also I added Arabic font Geeza pro was bring from iphone as well . These apps I just started from a different app and then modified it to pursue my need . so thank you for good work guys

finally if you want to change to emoji or the font for what ever you want I will post the way soon

let get start

download the file from attachments and extract the apps and install it normally

open the theme choose that we installed it and choose the font option from the list or just into the ios theme and choose the font and press apply

enjoy

bug:

dose not work with browser but can read it normally with all apps and system

For non owner zuk. Give it a try
[Lenovo ZUK Z2 (Plus) Themes, Apps, and Mods] Teji06:
Theme chooser not opening
[Lenovo ZUK Z2 (Plus) Themes, Apps, and Mods] jacq4tich:
Can you fix this please? It says end of directory not found!

Please read thr above message.
[Moto Maxx Android Development] Hlcpereira:
This is ViperOS

Disclaimer

* Your warranty is voided.
*
* We are not responsible for bricked devices, dead SD cards,
* Third World War, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.

"This is a user friendly thread. All feature requests will be heard and considered. I am not against anything that doesn't stray too far away from the original idea of the ROM! Helping one another is also encouraged! Please be respectful and you will always be treated the same way, we are all here for a good experience."

About

We are a Brazilian team, ViperOS aims to bring stability and useful features. If you are looking for a stable ROM with true tested features, minimal bugs and no Lineage bloatwares, then this is the place to be.

Features

Statusbar

* Traffic indicators

* Statusbar items

* Clock & date

* Battery icon settings

* Carrier label

* Quick settings personalization

* Other statusbar settings

Lockscreen

* Custom lockscreen settings

* Lockscreen weather

Multi tasking

* Round button on recents

System

* Beautiful black theme

* Navbar enable/disable

* Pixel navbar (with animation) toggle

* Dynamic navbar

* Navbar dimensions

* Navbar button layout

* Hardware keys binding

* Hardware keys enable/disable

* Kill app with back button

* Power menu customization

Many other customizations, install and take a look

Downloads

Download here

GApps (I personally like OpenGApps. I use Pico package, but anyone it's fine):

Open GApps

BeanGapps(Older ones)

BeanGapps(Newer ones)

Credits & Thanks

All ViperOS team

LineageOS team

Resurrection Remix team

crDroid team

And all other open source Devs/Teams I may have missed!

Other Links

Device tree

Kernel

Google+ Community

Telegram Channel
​

XDA:DevDB Information

ViperOS, ROM for the Motorola Moto Maxx

Contributors

Hlcpereira

Source Code: https://github.com/Viper-Project

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 3.10.x

Based On: LineageOS

Version Information

Status: Stable

Stable Release Date: 2017-08-18

Created 2017-08-18

Last Updated 2018-03-12
[Moto Maxx Android Development] Hlcpereira:
F.A.Q:

What is the base of ROM??

A

: As you can see in the OP, it's based on LineageOS

Is it the ROM pre-rooted?

A

: No. It's necessary to do the flash of Magisk or SuperSU

How about CMActions?

A

: Not included yet. I'm getting problems while building with CMActions included in device tree (see attached files). While I don't solve it, you can go using GravityGestures. Included! Update of day 08/30 or newer have it.

About the bugs/issues we have in ViperOS, how much of they we have?

A

: You tell me. But PLEASE search before you post. If you don't found a solution here, post it, and remember to get a logcat.;)

I have a issue with Modem. Any solution?

A

: Yes. Try to flash the clean_modem_status.zip and see if returns to work (Thanks to [MENTION=5747496]bhb27[/MENTION] to provide us this GPS fix)

How to get a logcat?

A

: Check it here. If you're using BHB27 Kernel Adiutor, it's so much simple, go to Logs section and press the "logcat" option.

Is it the BHB27Kernel working on this ROM?

A

: Yes, it's working.

Xposed works?

A

: Yes it's working, as Scrluiz said (Thanks to [MENTION=7287518]Scrluiz[/MENTION] for check it)

I have a bug and I have installed Xpos...

A

: Stop. If you want to report a bug or anything like that, uninstall Xposed first. I won't give any support until you uninstall the Xposed

Changelog:

ViperOS 3.1.1 October Update!

- October Security Patch
- Merge to 7.1.2_r29;
- Introduced Viper Color Engine;
- Added Lawnchair as default launcher (Included Double Tap to turn off screen);
- Allow user to add/remove QS shortcuts with one click;
- Reintroduce Three Fingers Swipe for Screenshot;
- Introduced PA Accidental Touch;
- QS Brightness control On Footer;
- Improvements on Header Layout;
- VPapers Revamped (+ Size reduced);
- Several Bug Fix
- Package Install and KRACK Vulnerability fixed
And many more improvements and minor changes.

Device Specific:

- Changed stock kernel from LOS repository to bhb27 stock kernel repository
- Fixed Led Notification issue (Oops! Not this time)
- Included Notification Led Brightness control
- Included SnapCamera
-------------------------------------------------------------------
ViperOS 3.1.1 March Update!

- February Security Patch
- Merged Android 7.1.2_r36

Device Specific:

- Notification LED Working now
- Used UberTC to give better battery life
- Change camera app to Camera2
[Moto Maxx Android Development] Hlcpereira:
Reserved #2
[Moto Maxx Android Development] Scrluiz:
Another one! Quark is not dead guys!
[Moto Maxx Android Development] Steve One:
Just loaded on my Verizon droid turbo.

Do we need to flash super user?

Edit, ha ha just saw the answer.
[Moto Maxx Android Development] Scrluiz:
[MENTION=7838323]Hlcpereira[/MENTION] I want to say to you and everybody that's using/testing ViperOS now... ROM is compatible with Xposed Nougat (Unofficial), I tested and it's working on first boot including the ROM itself, GApps and Xposed flashable zip (by PurifyOS)! I don't know if you already know it, but I'd like to say it in another forum from here, it's too soon to tell about the ROM, but it's very stable and I love this black theme on settings!
[Moto Maxx Android Development] Hlcpereira:
I don't use Xposed, but it's good to know that. Thanks for the information
[Moto Maxx Android Development] KARIM9377:
Thanks for your great work I am going to test
[Moto Maxx Android Development] Steve One:
Hello Hlcpereira really enjoying the ROM today. Had some problems last night with Google not syncing my contacts and getting SuperSU properly installed.

But retried this morning and got it all worked out. Thank you very much for sharing this with us. Really enjoying it, and look forward to running for quite some time.
[Moto Maxx Android Development] KARIM9377:
Its working smoothly I have only this

I am going to flash hb27 kernel and send you log cat
[Moto Maxx Android Development] Hlcpereira:
Here it's normal. Which variant of GApps did you use?
[Moto Maxx Android Development] Steve One:
Play services good here, used newest open - micro variant.
[Moto Maxx Android Development] KARIM9377:
open_gapps-arm-7.1-mini-20170816

And I use mult ROM I have 2 ROM on my droid turbo
[Moto Maxx Android Development] Hlcpereira:
Try reflash the GApps. If its FC after that, try flashing an older package of same variant. Check it here. And remember to get for 7.1. ;)
[Moto Maxx Android Development] Steve One:
Don't know if this is a bug or not , but last night and then again tonight if I open map's my phone shuts down.

It will restart and I can use any app but map's.
[Moto Maxx Android Development] Steve One:
Here is a pic of it dropping down to zero and back up to 34 after reboot.
[Moto Maxx Android Development] Hlcpereira:
I'll check it as soon as I can. ;) I'm with some personal problems here
[Moto Maxx Android Development] Steve One:
No rush Sir, can always plug it in!
[Moto Maxx Android Development] Hlcpereira:
Here it's all right with Maps. I don't know if its because I'm using BHB Kernel, but anyway try uninstalling and installing Maps again. If don't solve it I'll check it better in this weekend.
[Moto Maxx Android Development] Steve One:
Probably just the same deal as with all the other 7.1 Roms phone shutting down before it should.

I've had this happen before on other ones but when it happened on those it wouldn't reboot until I put it on the charger.

I did as you suggested though.
[Moto Maxx Android Development] Horned Duckie:
Any clue of how's the battery life comparing to AEX?
[Moto Maxx Android Development] Hlcpereira:
ROM Update!

Recommended Clean Install!​

Download link

Changelog

:

ViperOS:

Nothing by the moment

Device specific:

Added CMActions.

Removed MotoCamera. Now the camera app is a choose of the ROM user.

Found a bug?

:

Check if you make a clean install (wiping Cache, Data, Dalvik/ART Cache and System). If you did a "dirty flash" I won't give you a solution. If you made a clean install, report it, and don't forget the logcat
[Moto Maxx Android Development] Hlcpereira:
I think it's better to you discover by yourself. I even used AEX before I started building ViperOS for Quark and I think its a bit lower than AEX, but I'm suspect to say since I'm the maintainer of VOS for our device.
[Moto Maxx Android Development] HerxMz:
Has ambient display this rom?, And How is the battery life?
[Moto Maxx Android Development] Hlcpereira:
Yes, it has (build of day 08/30 or newer only). About battery I think its better to you discover by yourself. The battery results depends on its use, mainly, and your battery "health".
[Moto Maxx Android Development] pedrohxn:
Good having another developer bringing up new stuff for quark.

Congrats and thank you for you effort [MENTION=7838323]Hlcpereira[/MENTION] .
[Moto Maxx Android Development] tismond:
Just installed the rom and it is running nice and smooth.
[Moto Maxx Android Development] Steve One:
Been running this ROM since it was released and love it. Still running the initial release since that is the camera I use. Only thing I would like is that it had the stock Moto camera and gallery.

Probably wouldn't do right on nougat though.