How to increase volume in all cm based lollipop roms - Xiaomi Redmi 1S

I was having hard time in increasing the volume in Redmi 1s when we all got CM12 and other roms based on lollipop.
So here i go without much discussion on 'how to do it?'
Steps:
1)Download and flash this Universal dolby App.
2)Enable root explorer in ES File manger then go to Device>etc>mixer_paths.xml and open it.
3)Now you know what you have to edit,but this time insted of these lines
"<ctl name="RX1 Digital Volume" value="84" />
<ctl name="RX2 Digital Volume" value="84" />
<ctl name="RX3 Digital Volume" value="84" />
<ctl name="RX4 Digital Volume" value="84" />"
we have to edit this line(the one in the red)
"<path name="speaker">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
<ctl name="SLIM_0_RX Channels" value="One" />
<ctl name="RX4 MIX1 INP1" value="RX1" />
<ctl name="SPK DAC Switch" value="1" />
<ctl name="COMP0 Switch" value="1" />
<ctl name="RX4 Digital Volume" value="84" />"
(Scroll down to see these lines)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
4)Now change the value from 84 to 94 and save it.
5)Now reboot once.
6)Disable both AudioFx and Dolby Digital Plus,(you will think that "what was the purpose that app?',i think it replaces and some audio files in the system),if you enable it you will get distorted sound.
7)Now listen any music,and feel the loudness.
Note:I am using PlayerPro with its DSP Pack(You have to activate the DSP Pack from the settings in PlayerPro),And i set the equalizer to Treble to get clear sound which i am getting.
Tips:if you are using any other music app and if it has inbuilt equalizer set it to Treble.
Note 2:If you are flashing the dolby app on CM 12.0 based roms you have to change the Selinux to 'permissive' manually,because in CM 12.1 the rom installs with Permissive mode itself.
Credits To:1)worstenbrood for the dolby app
2)me(chauhansonu104) for the procedure

Related

[TUT] How to change a static notification icon to an animated icon

I always hated the static wifi icon that is displayed in the notification bar so I set out to change it with a simple 6 step animated icon.
The original framework-res.apk contains 5 wifi icons for the different signal levels.
and they are named stat_sys_wifi_signal_0.png to stat_sys_wifi_signal_4.png and can be found in the res/drawable-hdpi and res/drawable-mdpi folders within the framework-res.apk
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
stat_sys_wifi_signal_0.png is not very useful so we'll keep that one a static icon.
stat_sys_wifi_signal_1.png to stat_sys_wifi_signal_4.png are going to be replaced by a set of 6 icons that will show a nice animation.
So now that we have a the graphics comes the hard part, how do we get these into the framework-res.apk as an animation.
The answer is, with XML files.
We need to create an xml file for each animated set and they have to have the same name as the original icons except for the extension.
So for the stat_sys_wifi_signal_1.png we create an xml file with the name stat_sys_wifi_signal_1.xml and place it in the res/drawable directory.
The content of the xml file is here below.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim0" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim1" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim2" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim3" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim4" />
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim5" />
</animation-list>
Some explanation about the content, this line
Code:
<item android:duration="200" android:drawable="@drawable/stat_sys_wifi_signal_1_anim0" />
it tells the system to show the icon stat_sys_wifi_signal_1_anim0.png for 200ms (mili-seconds) and then go to the next line.
The full set of icons and xml files can be downloaded here
To re-compile the framework-res.apk you can use this
Happy modding.
Other animated Icons
Download Sync Animation
Download Upload Download Animation
wdl1908 said:
Reserved for future use.
Click to expand...
Click to collapse
Great!
Just recompile the apk after modding and install it?
Lennb said:
Great!
Just recompile the apk after modding and install it?
Click to expand...
Click to collapse
Yes I'v added a link to a frameworkrebuiler script in the first post.
wdl1908 said:
Yes I'v added a link to a frameworkrebuiler script in the first post.
Click to expand...
Click to collapse
Thank you!
Added some extra animated icons in second post.
very funny !
thanks
thanks
How would set up xml file for your data animation? What would you call it. Im trying to get http://forum.xda-developers.com/showthread.php?t=846825 to work for my lf g2x I have settingSU and framework Ive manged to compile new icons for battery,download,wifi but getting the animations to show is driving me crazy
cleanmydirt said:
How would set up xml file for your data animation? What would you call it. Im trying to get http://forum.xda-developers.com/showthread.php?t=846825 to work for my lf g2x I have settingSU and framework Ive manged to compile new icons for battery,download,wifi but getting the animations to show is driving me crazy
Click to expand...
Click to collapse
What is the name of the icons you are trying to change?
You have to make an xml file with the same name and use other names for the icons that will do the animation.

[ColorOS Camera] Guide to Add 16:9 Resolution

Hi guys,
Since using ColorOS v1.0 the stock camera app is missing an option to take pictures with 16:9 resolution format, but when using other app such as camera fv-5 we can use this resolution.
So I believed this is just a software restriction instead of hardware limitation. After looking inside several .xml files I figured out a way to add back this 16:9 option into Oppo Camera app.
We need to edit two xml files which you can find in /system/etc and their names are :
oppo_camera_dev_config.xml
and
oppo_camera_dev_config_novoice.xml
You can use file editor to edit them, just remember to backup first. Permissions for these files are 0644 with root as owner. You need root access and mount system with rw access first.
Now you only need to add this single line inside <string-array-name="oppo_back_camera_supported_picture_size"> into both files :
<item>2560x1440</item>
Details below :
This is the original content :
Code:
<!-- Supported Camera picture size for back camera in mega-->
<string-array name="oppo_back_camera_supported_picture_size">
<item>3264x2448</item>
<item>2560x1920</item>
<item>2048x1536</item>
</string-array>
And this is after inserting one line :
Code:
<!-- Supported Camera picture size for back camera in mega-->
<string-array name="oppo_back_camera_supported_picture_size">
<item>3264x2448</item>
<item>2560x1920</item>
<item>2560x1440</item>
<item>2048x1536</item>
</string-array>
Don't forget to reboot first.
And here's the screenshot from Oppo Camera after editing xml files :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my R819 using Tapatalk
hi,
In files oppo_camera_dev_config.xml and oppo_camera_dev_config_novoice.xml:
changing from "false" to "true" we obtain new features in camera app (slow shutter)
Code:
<!--camera mode list-->
<string name="slowshtr">true</string>
adding <item>rec_hdr</item> and <item>rec_slow_playback</item> inside <!-- Supported Camera mode for back camera --> we obtain new features (hdr movie and slow motion)
Code:
<!-- Supported Camera mode for back camera -->
<string-array name="oppo_back_camera_supported_rec_mode">
<item>rec_hdr</item>
<item>rec_slow_playback</item>
Unfortunately, I do not see any difference in recorded movie and slow shutter does not seem to work.
Inside decompiled oppocamera.apk are two files oppo_camera_dev_config.xml and oppo_camera_dev_config_novoice.xml changing the parameters there also do not see any difference.

[2.3xx][MOD][GUIDE] AlmasToggle(Noob Friendly) (Updated v2)

24 Toggle Almas Toggle
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
AlmasToggle
I am Bored with lidroid quickpanel and my friend spacecaker toggles because no methods to switch between gridview or horizontal view and some other stuff. I make This toggle from Scratch no fork of cm11 or any other toggle source it is totally open source everyone can fork and anything but just give credit to me This toggle take 4-5 day to complete because me soo busy these day . If You need any help regarding to this post here BUT NO PM there one app where some window are located if you don't install that force close when clicking on window based toggle. Also There almas-res.apk Where the resource are located you need to put almas-res.apk to system/framework the java of the toggle will load to app to give output of images and etc. If You want to have kitkat Status_Bar_Close just open status_bar_tracking find <ImageView and replace with com.almas.systemui.BottomBar after replacing you need remove android:src="blabla" from the tag. AlmasToggle contain 24 Toggle Now and can be switch grid view and horizontal view . We talk so much let's start ?
Required
1. almas-res.apk
2.AlmasToggle.apk
3.Toggle_Smali
Instruction
1st
1. Put almas-res.apk to /system/app or /system/framework and set Permission R - W - RR (Recommended to in /system/app)
2.Install AlmasToggle to Your Phone
2nd
1.Decompile Your SystemUI.apk
2.Open smali folder Merged Toggle_Smali
3.Open /res/layout/**** any layout where you want load
4.Add These Lines
Code:
<com.almas.toggles.ToggleGridView android:layout_width="match_parent" android:layout_height="wrap_content" />
<com.almas.toggles.ToggleHorizontalView android:layout_width="wrap_content" android:layout_height="wrap_content" />
Tips
How to change Profile name and photo
Click on the Toggle
SS
Credits
AndroidFire
PxL for Toggle Images
tentenponce
AKOP
SpaceCaker
Source
Go Here
Change logs
v1
-Initial released
v2
-Added Wifi Hotspot Toggle
-Bug Fixed
-Added Toggle Order
-Many More
Features
Two Policy.
AutoUpdate
Toggle Order
Extended Toggle
more

[MOD][5.0.2][XT1069][22.21.28]Remove Sim number from statusbar

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm using gravitybox to make other modifications in the image above. But it cant remove SIM number so i use this mod
This Mod Remove Sim number, from statusbar. Works on lockscreen and un-locked screen
Instructions:
Do It Yourself
This can be done to any systemUI Of Lollipop...
1° Copy yours SystemUI.apk and framework-res.apk to PC put in a safe place and do not change these files...
Framework-res.apk is in /system/framework
SystemUI.apk is in /system/priv-app/SystemUI
Make a copy of these files and decompile SystemUI.apk using:
[TOOL] V4.0.3-xdaAutoTool ALL-Win | V5.0.0b-xdaautoAPKTool | V1.0.3-xdaautoDeoTool
To decompile and recompile follow the instructions detailed in the Thread above
change two lines in systemui.apk res/layout/signal_cluster_view.xml as follows
Open XML file with notepad
original
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimLabel" />
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label_2" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimLabel" />
changed
* change what is in RED
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label" android:layout_width="0.0dip" android:layout_height="0.0dip" style="@style/TextAppearance.StatusBar.SimLabel" />
<TextView android:layout_gravity="bottom|center|right" android:id="@id/mobile_phone_label_2" android:layout_width="0.0dip" android:layout_height="0.0dip" style="@style/TextAppearance.StatusBar.SimLabel" />
After the change save the XML file, recompile and Sign the apk using the tool, replace it on the phone...
To easy replace it on the phone, just replace yours MOD SystemUI.apk in the ZIP attach, flash it and tested...
If some goes wrong, replace yours original untouched SystemUI.apk in the ZIP attach and flash it...
FLASHABLE zip:
Flash the zip (SystemUI-xt1069-5.0.2-Mod.zip) on recovery, reboot and test
if something goes wrong, use the file (SystemUI-xt1069-5.0.2-Default.zip) to restore...
!!! This zip only works on android 5.0.2 XT1069 22.21.28
This version:
But if you follow the Instructions Do It Yourself, can be made to any SystemUI...
Do a full backup before
I'm not responsible for any phone brick​​
if you can not do it yourself, provide me with your SystemUI and framework-res.apk that I make modifications, and make a flash zip to you...
I do not have much time left so it may take up to 48 hours for me to do it...
Credits to creators of thread and and those who helped them...
[MOD][XT1033] Remove carrier label and SIM numbers for statusbar[Do-It-Yourself]
[MOD][5.0] Center clock for stock Android Lollipop
[TOOL] V4.0.3-xdaAutoTool ALL-Win | V5.0.0b-xdaautoAPKTool | V1.0.3-xdaautoDeoTool

Nexus 5X, LOS 15.1: Can't add/edit APN settings; no mobile data

Right now I'm trying to upgrade from 14.1 to 15.1 on my Nexus 5X. Everything seems fine with the exception of mobile data, which isn't working at all. I have a Chatr SIM, and can see four APNs from Rogers/Petro-Canada, but none of these work, and I'm unable to edit or add APNs:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This XDA post suggests editing /etc/apn-conf.xml but I don't see that file in /etc
Any ideas?
boardwarp said:
Right now I'm trying to upgrade from 14.1 to 15.1 on my Nexus 5X...
Click to expand...
Click to collapse
I don't have this device but, your best bet is to post this question within the following Official LineageOS 15.1 thread for your device.
https://forum.xda-developers.com/showthread.php?t=3724575
Also, i would suggest that you should not be looking to threads for completely different devices because they are completely different builds and don't apply to each other even if the are both Official LineageOS developments.
If all else fails, as a last resort, try posting your question within the following Q&A thread that's specific to your device.
https://forum.xda-developers.com/showthread.php?t=3206931
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
Thanks! I'll give that a try.
I too had problems with mobile data on LOS 15.1 with the Chatr network. I ended up restoring a backup of my OEM OS and made a copy of the /etc/apn-conf.xm file. I went back to LOS and copied the file to the same location. Then I reset to default the APN settings in the android network settings. Afterwards mobile data worked.
Here are the relevant Chatr settings in the apn-config.xml file. You'll need to mount /system as read/write (mount -o remount,rw /system) before adding them to the file. I used Ghost Commander to mount and edit the file.
Code:
<apn carrier="Chatr Tethering"
mcc="302"
mnc="320"
apn="ltedata.apn"
type="dun"
mvno_type="gid"
mvno_match_data="D2"
protocol="IPV4V6"
roaming_protocol="IP"
/>
<apn carrier="Chatr Internet"
mcc="302"
mnc="320"
apn="chatrweb.apn"
type="default,mms,agps,supl,fota,hipri"
mvno_type="gid"
mvno_match_data="D2"
protocol="IPV4V6"
roaming_protocol="IP"
mmsc="http://mms.chatrwireless.com"
mmsproxy="mmsproxy.chatrwireless.com"
mmsport="80"
/>
<apn carrier="Chatr Tethering"
mcc="302"
mnc="720"
apn="ltedata.apn"
type="dun"
mvno_type="imsi"
mvno_match_data="302720x84"
protocol="IPV4V6"
roaming_protocol="IP"
/>
<apn carrier="Chatr Internet"
mcc="302"
mnc="720"
apn="chatrweb.apn"
type="default,mms,agps,supl,fota,hipri"
mvno_type="imsi"
mvno_match_data="302720x84"
protocol="IPV4V6"
roaming_protocol="IP"
mmsc="http://mms.chatrwireless.com"
mmsproxy="mmsproxy.chatrwireless.com"
mmsport="80"
/>
<apn carrier="Chatr Tethering"
mcc="302"
mnc="720"
apn="ltedata.apn"
type="dun"
mvno_type="imsi"
mvno_match_data="302720x94"
protocol="IPV4V6"
roaming_protocol="IP"
/>
<apn carrier="Chatr Internet"
mcc="302"
mnc="720"
apn="chatrweb.apn"
type="default,mms,agps,supl,fota,hipri"
mvno_type="imsi"
mvno_match_data="302720x94"
protocol="IPV4V6"
roaming_protocol="IP"
mmsc="http://mms.chatrwireless.com"
mmsproxy="mmsproxy.chatrwireless.com"
mmsport="80"
/>
<apn carrier="Chatr Tethering"
mcc="302"
mnc="720"
apn="ltedata.apn"
type="dun"
mvno_type="gid"
mvno_match_data="D2"
protocol="IPV4V6"
roaming_protocol="IP"
/>
<apn carrier="Chatr Internet"
mcc="302"
mnc="720"
apn="chatrweb.apn"
type="default,mms,agps,supl,fota,hipri"
mvno_type="gid"
mvno_match_data="D2"
protocol="IPV4V6"
roaming_protocol="IP"
mmsc="http://mms.chatrwireless.com"
mmsproxy="mmsproxy.chatrwireless.com"
mmsport="80"
/>
Pastebin link

Categories

Resources