How To Guide [howto] (root) Display correct 4G(+) icons in statusbar on LTE network with missing config - Google Pixel 6 Pro

Took me a while to figure out ...
I'm on a 4G(+) network but out-of-the box the P6P did not have the correct config (unfortunately).
It was displaying 'LTE' in the status bar.
I found out how to have correct 4G or 4G+ symbols in the status bar and 4G 'settings' entry in Settings app.
But you must have root.
Code:
> adb shell
$ su
# cd /data/user_de/0/com.android.phone
# ls -l
There will be an XML file in that directory named:
Code:
carrierconfig-com.google.android.carrier-8932002100401134483-1365.xml
In your case the file name WILL BE DIFFERENT as it is dependent on the network you are on.
Then, edit the file using:
Code:
# busybox vi carrierconfig-com.google.android.carrier-8932002100401134483-1365.xml
If you don't know what 'vi' is, its a linux text editor. Google it and learn the basic commands.
The top of the file will have a line:
Code:
<bundle>
Below that line, add the following lines:
Code:
<boolean name="show_4g_for_lte_data_icon_bool" value="true" />
<boolean name="enhanced_4g_lte_on_by_default_bool" value="true" />
<boolean name="carrier_volte_available_bool" value="true" />
<boolean name="vendor_hide_volte_settng_ui" value="false" />
<boolean name="hide_lte_plus_data_icon_bool" value="false" />
What do these mean?
1) Show 4G icon instead of LTE
2) Enhanced 4G (if available) is ON
3) VoLTE is available
4) Don't hide VoLTE setting in Settings app
5) Display 4G+ icon when you'r on enhanced 4G
See my screenshot attached showing 4G+ icon in status bar and Quick Setting tile.
Other screenshot shows Settings app with 'Call using 4G' (VoLTE) and preferred network = 4G (text is in Dutch).
Note that my 4G icon is 'small' (due to another MOD which I have running; check out https://forum.xda-developers.com/t/adb-magisk-module-mod-maker.4354189/page-7#post-86000045)
Check out: https://android.googlesource.com/pl...a/android/telephony/CarrierConfigManager.java
On that page you can find additional carrierconfig settings for that XML file.
Play and enjoy.

If I'm not mistaken 4g is lte. Just another was of saying it. But nice work changing the icon.

Blade22222 said:
If I'm not mistaken 4g is lte. Just another was of saying it. But nice work changing the icon.
Click to expand...
Click to collapse
Correct but in my country we don't use the word LTE but 4G...All other phones here display 4G in the status bar...

Blade22222 said:
If I'm not mistaken 4g is lte. Just another was of saying it. But nice work changing the icon.
Click to expand...
Click to collapse
To be more precise, LTE is also named 3.9G. It's third generation.
An extension to that is called LTE-Advanced, or 4G. That's fourth generation.
There is an extension to LTE-Advanced called LTE Advanced Pro, also called 4,5G.
Some companies marketed LTE as 4G, but that's bogus. Because of that, we now also have "4G+" as the alleged NEXT progress step, even though its two steps higher.
If you want to study a bit on the matter:
LTE (telecommunication) - Wikipedia
en.wikipedia.org

Does this really enabled volte and enhanced 4g+ or is it just changing icons and settings?

Just change icons. For VoLTE you need additional properties in build.prop.

foobar66 said:
Just change icons. For VoLTE you need additional properties in build.prop.
Click to expand...
Click to collapse
Ok got it. Thanks

how to check my carrier id?

Apparently on AT&T and in the right place (in my case, at an ice hockey game in the big city), the P6P shows the misleading "5Ge" mobile data notification.

my carrier config is in data/user_de/0/com.android.phone/files
but i type busybox and it report error cannot find file. what should i do

tanipat said:
my carrier config is in data/user_de/0/com.android.phone/files
but i type busybox and it report error cannot find file. what should i do
Click to expand...
Click to collapse
Install busybox from Google playstore. Choose to install in system/bin

Hey,
Thanks for sharing.
I just wonder, after adding those lines, my lte/4g bandwidth does not pass 30Mbps
Any idea ?

foobar66 said:
Took me a while to figure out ...
I'm on a 4G(+) network but out-of-the box the P6P did not have the correct config (unfortunately).
It was displaying 'LTE' in the status bar.
I found out how to have correct 4G or 4G+ symbols in the status bar and 4G 'settings' entry in Settings app.
But you must have root.
Code:
> adb shell
$ su
# cd /data/user_de/0/com.android.phone
# ls -l
There will be an XML file in that directory named:
Code:
carrierconfig-com.google.android.carrier-8932002100401134483-1365.xml
In your case the file name WILL BE DIFFERENT as it is dependent on the network you are on.
Then, edit the file using:
Code:
# busybox vi carrierconfig-com.google.android.carrier-8932002100401134483-1365.xml
If you don't know what 'vi' is, its a linux text editor. Google it and learn the basic commands.
The top of the file will have a line:
Code:
<bundle>
Below that line, add the following lines:
Code:
<boolean name="show_4g_for_lte_data_icon_bool" value="true" />
<boolean name="enhanced_4g_lte_on_by_default_bool" value="true" />
<boolean name="carrier_volte_available_bool" value="true" />
<boolean name="vendor_hide_volte_settng_ui" value="false" />
<boolean name="hide_lte_plus_data_icon_bool" value="false" />
What do these mean?
1) Show 4G icon instead of LTE
2) Enhanced 4G (if available) is ON
3) VoLTE is available
4) Don't hide VoLTE setting in Settings app
5) Display 4G+ icon when you'r on enhanced 4G
See my screenshot attached showing 4G+ icon in status bar and Quick Setting tile.
Other screenshot shows Settings app with 'Call using 4G' (VoLTE) and preferred network = 4G (text is in Dutch).
Note that my 4G icon is 'small' (due to another MOD which I have running; check out https://forum.xda-developers.com/t/adb-magisk-module-mod-maker.4354189/page-7#post-86000045)
Check out: https://android.googlesource.com/pl...a/android/telephony/CarrierConfigManager.java
On that page you can find additional carrierconfig settings for that XML file.
Play and enjoy.
Click to expand...
Click to collapse
GOOD JOP

thehartk said:
Hey,
Thanks for sharing.
I just wonder, after adding those lines, my lte/4g bandwidth does not pass 30Mbps
Any idea ?
Click to expand...
Click to collapse
Well, I set enhanced_4g_lte_on_by_default_bool to false and I have much better results

thehartk said:
Well, I set enhanced_4g_lte_on_by_default_bool to false and I have much better results
Click to expand...
Click to collapse
In what sense?

foobar66 said:
In what sense?
Click to expand...
Click to collapse
Before I got only 30mbs, after setting to false, I get 76mbs

Oh ok ... Maybe the 4G+ signal isn't as good in your area ... I'm not an expert in these different types of networks, so not sure that might the the case ... or you are/were in a different location where the signal is stronger/weaker?

tanipat said:
my carrier config is in data/user_de/0/com.android.phone/files
but i type busybox and it report error cannot find file. what should i do
Click to expand...
Click to collapse
Oh yes ... I did not realize that some people do not have busybox ...
Alternatively, copy the file to /sdcard using:
Code:
# cp carrierconfig-XYZ.xml /sdcard/
Get file on your PC:
Code:
> adb pull /sdcard/carrierconfig-XYZ.xml
Edit the file ... hmm ... I guess on Windows you have to use Notepad (I don't use Windows).
Then push the file back onto your phone.
Code:
> adb push carrierconfig-XYZ.xml
And copy the file back on your phone:
Code:
> adb shell
$ su
# cp /sdcard/carrierconfig-XYZ.xml /data/user_de/0/com.android.phone/files/
And finally reboot.

thehartk said:
Before I got only 30mbs, after setting to false, I get 76mbs
Click to expand...
Click to collapse
112 when true , 37 when false

foobar66 said:
Oh yes ... I did not realize that some people do not have busybox ...
Alternatively, copy the file to /sdcard using:
Code:
# cp carrierconfig-XYZ.xml /sdcard/
Get file on your PC:
Code:
> adb pull /sdcard/carrierconfig-XYZ.xml
Edit the file ... hmm ... I guess on Windows you have to use Notepad (I don't use Windows).
Then push the file back onto your phone.
Code:
> adb push carrierconfig-XYZ.xml
And copy the file back on your phone:
Code:
> adb shell
$ su
# cp /sdcard/carrierconfig-XYZ.xml /data/user_de/0/com.android.phone/files/
And finally reboot.
Click to expand...
Click to collapse
Why is that , just edit it on the pixel using file explorer , no need for computer then restart

Related

Changing my internet icon into Safari Browser Banner

just played with my HTC touch HD and try to figure it out on how to change the Image Banner/Browser Icon on my Internet Tab....
check this out
http://s157.photobucket.com/albums/t57/butz007/htc%20touch%20hd/?action=view&current=safari_browser.jpg
how to do it very simple
1. Create an Icon... must be on .PNG (whatever software do you prefer will definitely do as long as the final output would be on Transparent PNG)
note: the size of the PNG icon must be on 480 by 200 pixels, 72 dpi
2. Edit the XML code, don't be afraid this won't bite you (for all the newbs and non-developers)
you could always locate the XML code on this path on your device go to Application\Manila
InternetPortal.xml and InternetPortal-en-AU.xml
copy that and edit it on your desktop computer using a Notepad
note: make sure you have a back-up copy of the original better do this than sorry
then heres the original code just look the following highlighted text this is the one you going to change
***************************
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
<Banner
DefaultImagePath="\Windows\480x200.qtc"
SelectedImagePath="\Windows\480x200.qtc"
Text="Launch Gee!"
NavigateUrl="http://gee-select.starhubgee.com.sg/wap/"
Width="480"
Height="215" />
<OperatorLinks>
<Link
Text="YouTube"
Executable="\windows\youtube.exe"
ImagePath="\Windows\HTC\Assets\Images\InternetPortal\youtube.qtc" />
</OperatorLinks>
</InternetPortal>
*******************************************
the first two highlighted text where the image path and the filename of icon that you just created... OK!?
example
DefaultImagePath="\Windows\myicon.png"
SelectedImagePath="\Windows\myicon.png"
second, I'm using a Blackstone that i bought in singapore so theres starhub logo and starhub link there so I've really don't know on your devices if were both the same but i think all htc devices were all the same when it comes to firmware.. so next on my device I got a welcome text
example
Text="Launch achu chu chu etc etc...or welcome to my world!"
Third Highlighted Text is the link of your banner
Whatever Link you may think that you usually go so often using your device
NavigateUrl="http://playboy.com"
and then FINALLY
copy this the two edited xml file and overwrite it on you devices, same path ofcourse.....Application\Manila, using Total Commander
then put your created art (PNG) on the main windows folder and viola, your personalized Internet Tab.......
...............................................................................
LIKE it..LOVE it.. HATE IT.. WHATEVER!! just enjoy it! ...

Question about APN info from apns-conf.xml

I managed to get a system dump from a Samsung Acclaim which is the only Android phone available for my service provider (US Cellular/USCC.)
I found the apns-conf.xml file but I'm not sure what info I need from it to get added to the APNs available for XDAndroid. (I've attached the file.)
Also, wouldn't there be a way to just add this to my system.ext2?
heavymetalmage said:
I managed to get a system dump from a Samsung Acclaim which is the only Android phone available for my service provider (US Cellular/USCC.)
I found the apns-conf.xml file but I'm not sure what info I need from it to get added to the APNs available for XDAndroid. (I've attached the file.)
Also, wouldn't there be a way to just add this to my system.ext2?
Click to expand...
Click to collapse
the apn list provided is sooooooooooo small. Probably because the phone is only available in the US. Not worth looking at but if you wanted to add it to your system.ext2
then
Code:
mkdir mountfolder
sudo mount -o loop system.ext2 mountfolder
Add the apns-conf.xml to /system/etc
then
Code:
sudo umount mountfolder
babijoee said:
the apn list provided is sooooooooooo small. Probably because the phone is only available in the US. Not worth looking at but if you wanted to add it to your system.ext2
then
Code:
mkdir mountfolder
sudo mount -o loop system.ext2 mountfolder
Add the apns-conf.xml to /system/etc
then
Code:
sudo umount mountfolder
Click to expand...
Click to collapse
Well I went through it all but it didn't allow me to use USCC as my apn. Thanks for your help though Babijoee!
heavymetalmage said:
Well I went through it all but it didn't allow me to use USCC as my apn. Thanks for your help though Babijoee!
Click to expand...
Click to collapse
Well if the APN was provided within the apns-conf.xml it should auto-detect. Otherwise you can input it manually
babijoee said:
Well if the APN was provided within the apns-conf.xml it should auto-detect. Otherwise you can input it manually
Click to expand...
Click to collapse
Actually this is not correct the RUU_Bravo_hTC_Asia_WWE_1.19.707.7_Radio_32.36.00.28U_4.06.00.02_2_release_126179_signed rom has an apns-conf.xml that looks like this ..
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- This file contains fake APNs that are necessary for the emulator
to talk to the network. It should only be installed for SDK builds.
This file is not installed by the local Android.mk, it's installed using
a PRODUCT_COPY_FILES line in the sdk section of the toplevel Makefile.
-->
<!-- use empty string to specify no proxy or port -->
<!-- This version must agree with that in apps/common/res/apns.xml -->
<apns version="6">
<apn carrier="Android"
mcc="310"
mnc="995"
apn="internet"
user="*"
server="*"
password="*"
mmsc="null"
/>
<!--apn carrier="TelKila"
mcc="310"
mnc="260"
apn="internet"
user="*"
server="*"
password="*"
mmsc="null"
/-->
</apns>
And as you can see there's SFA in there that is useful however this rom has no problem configuring the APNS for all of the Asia networks... I have yet to figure out where the configuration is hiding or if it is actually downloaded from the internet using a generic Internet apn named "internet" ..
AsiaWWE-apns.xml
I finally found it .. it seems that the framework-res.apk contains an apns.xml with all the details in it. It would appear that the old /system/etc/apns-conf.xml is depreciated in favour of res/xml/apns.xml in the framework-res.apk file ..
I have attached the Asian WWE apns.xml definition file for everyone in this region ..
nice find will look into it when time lets me
babijoee said:
Well if the APN was provided within the apns-conf.xml it should auto-detect. Otherwise you can input it manually
Click to expand...
Click to collapse
I tried it once again with no luck. I think the issue must have to do with the network being CDMA.
heavymetalmage said:
I tried it once again with no luck. I think the issue must have to do with the network being CDMA.
Click to expand...
Click to collapse
I'll have to have a look at what sidewindr suggested. It could be the root of the problem.
so in my endless quest to play with apn settings, i tried to replace the apn.xml file in the framework-res.apk and when i loaded the new apk, it kept crashing my phone.apk. once i put the original back, it loaded everything up again no problems.
babijoee, do we have an easy way to edit the apns to our liking yet? for testing or whatever...

[How To] Port Note keyboard to S2 [dedicated number row]

Christian ported this keyboard to S2 but this is a how to do it yourself, prepared it from scratch after a lot of research
1) Extract SamsungIME.apk from the ROM that you prefer that has the default S2 Samsung keyboard
2) decompile the apk
3) in the extracted/decompiled folder, browse to res\xml-sw320dp-hdpi\properties.xml
4) search for the following line and change the value to "true" as seen below
<Property key="USE_ADDTO_NUMBER_KEY_FIRST_LINE" value="true" type="bool" />
5) add the following line at the bottom of the same file
<Property key="NOTE_KEYPAD_TYPE" value="true" type="bool" />
6) next browse to /res/xml-sw320dp-hdpi/qwerty_en.xml and add the following code at the top. Blue color code is what was added to the top to add the numeric row. Modified file attached.
<Row android:keyHeight="0.0px" android:horizontalGap="0.0px" android:verticalGap="@dimen/qwerty_first_line_vertical_gap">
<Key android:keyWidth="100.0%p" android:codes="-257" android:keyLabel="StrEmpty" />
</Row>
<Row android:keyHeight="@dimen/qwerty_number_key_height" android:rowEdgeFlags="top">
<Key android:horizontalGap="@dimen/qwerty_first_col_horizontal_gap" android:codes="0x31" android:keyEdgeFlags="left" android:keyLabel="1" />
<Key android:codes="0x32" android:keyLabel="2" />
<Key android:codes="0x33" android:keyLabel="3" />
<Key android:codes="0x34" android:keyLabel="4" />
<Key android:codes="0x35" android:keyLabel="5" />
<Key android:codes="0x36" android:keyLabel="6" />
<Key android:codes="0x37" android:keyLabel="7" />
<Key android:codes="0x38" android:keyLabel="8" />
<Key android:codes="0x39" android:keyLabel="9" />
<Key android:codes="0x30" android:keyEdgeFlags="right" android:keyLabel="0" />
</Row>
<Row>
<Key android:horizontalGap="@dimen/qwerty_first_col_horizontal_gap" android:codes="113" androidopupCharacters="@string/default_umlaut_q" android:keyEdgeFlags="left" android:keyLabel="q" />
<Key android:codes="119" androidopupCharacters="@string/default_umlaut_w" android:keyLabel="w" />
<Key android:codes="101" androidopupCharacters="@string/default_umlaut_e" android:keyLabel="e" />
<Key android:codes="114" androidopupCharacters="@string/default_umlaut_r" android:keyLabel="r" />
<Key android:codes="116" androidopupCharacters="@string/default_umlaut_t" android:keyLabel="t" />
<Key android:codes="121" androidopupCharacters="@string/default_umlaut_y" android:keyLabel="y" />
<Key android:codes="117" androidopupCharacters="@string/default_umlaut_u" android:keyLabel="u" />
<Key android:codes="105" androidopupCharacters="@string/default_umlaut_i" android:keyLabel="i" />
<Key android:codes="111" androidopupCharacters="@string/default_umlaut_o" android:keyLabel="o" />
<Key android:codes="112" androidopupCharacters="@string/default_umlaut_p" android:keyEdgeFlags="right" android:keyLabel="p" />
</Row>
7) most of the ported keyboards did not have 5 rows in the symbols page. I preferred to match 5 rows on the symbols page like the note keyboard. So, I had to make changes to qwerty_number_symbols.xml file. I remapped the keys and hence attached xml file to the post.
8) Finally I preferred to increase the height of the numeric keys and so I change "qwerty_number_key_height" in dimens.xml to 48 from default value of 31 or 32
I change it both under \res\values\dimes.xml and also \res\values-sw320dp-hdpi\dimes.xml
9) decompile back the apk and then replace the original file with the modified apk file in \preload...\app\
Note: these are the steps to be performed to English language keyboard. For other languages, you need to edit the corresponding qwerty_xx.xml and qwerty_number_symbols_xx.xml file. Thanks to Christian for highlighting this.
Hoping not to missed anything. Got ideas from Korean website.
http://www.matcl.com/?m=bbs&bid=usermoim&cat=팁&uid=191755
josephpatrick said:
Christian ported this keyboard to S2 but this is a how to do it yourself, prepared it from scratch after a lot of research
1) Extract SamsungIME.apk from the ROM that you prefer that has the default S2 Samsung keyboard
2) decompile the apk
3) in the extracted/decompiled folder, browse to res\xml-sw320dp-hdpi\properties.xml
4) search for the following line and change the value to "true" as seen below
5) add the following line at the bottom of the same file
6) next browse to /res/xml-sw320dp-hdpi/qwerty_en.xml and add the following code at the top. Blue color code is what was added to the top to add the numeric row. Modified file attached.
7) most of the ported keyboards did not have 5 rows in the symbols page. I preferred to match 5 rows on the symbols page like the note keyboard. So, I had to make changes to qwerty_number_symbols.xml file. I remapped the keys and hence attached xml file to the post.
8) Finally I preferred to increase the height of the numeric keys and so I change "qwerty_number_key_height" in dimens.xml to 48 from default value of 31 or 32
I change it both under \res\values\dimes.xml and also \res\values-sw320dp-hdpi\dimes.xml
Click to expand...
Click to collapse
josephpatrick said:
9) decompile back the apk and then replace the original file with the modified apk file in \preload...\app\
Hoping not to missed anything. Got ideas from Korean website.
http://www.matcl.com/?m=bbs&bid=usermoim&cat=팁&uid=191755
Click to expand...
Click to collapse
Should not we recompile the apk at last?
BTW nice guide
Sent from my GT-I9100 using Tapatalk 2
corruptionfreeindia said:
[/hide]
Should not we recompile the apk at last?
BTW nice guide
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Corrected, thanks
Good job with the guide mate
But don't forget to type that they need to edit all the remaining querty_xx.xml (xx is the abbreviated language) or to edit their favorite language
Good job once again , I was too lazy to start making a guide for the extra row with the numbers
Sent from my PMP5880D using Tapatalk Pro v4
Touchwiz Independent
How to make it independent from Touchwiz or Samsung Firmware? In other words how to make it work on AOSP and other ROMs variations?
Thanks'
mma173 said:
How to make it independent from Touchwiz or Samsung Firmware? In other words how to make it work on AOSP and other ROMs variations?
Thanks'
Click to expand...
Click to collapse
Does not seem possible because of the Samsung framework
Thanks for very useful guide. I could edit the code and got number row working on my Samsung default keyboard on Galaxy S3 Korean variant. I was looking for this guide from many days. Thanks again bro.
One thing, there are no keys beneath the number rows, can you guide how to add these ? only number rows are seen
Thanks.
kmdangi said:
Thanks for very useful guide. I could edit the code and got number row working on my Samsung default keyboard on Galaxy S3 Korean variant. I was looking for this guide from many days. Thanks again bro.
One thing, there are no keys beneath the number rows, can you guide how to add these ? only number rows are seen
Click to expand...
Click to collapse
You might want to check "sip_key_bg_number.9.png" and "sip_key_bg_number_qwerty.9.png" under res\drawable-sw3**** folders. For landscape layout, you need to also make changes in folder "res\drawable-sw***-land***" folders
josephpatrick said:
You might want to check "sip_key_bg_number.9.png" and "sip_key_bg_number_qwerty.9.png" under res\drawable-sw3**** folders. For landscape layout, you need to also make changes in folder "res\drawable-sw***-land***" folders
Click to expand...
Click to collapse
thanks josephpatrick,
I deleted <Property key="USE_ADDTO_NUMBER_KEY_FIRST_LINE" value="true" type="bool" /> from properties.xml and the problem was solved !!
Can you help me, How to disable the secondary keylabels seen on the number buttons ?
kmdangi said:
thanks josephpatrick,
I deleted <Property key="USE_ADDTO_NUMBER_KEY_FIRST_LINE" value="true" type="bool" /> from properties.xml and the problem was solved !!
Can you help me, How to disable the secondary keylabels seen on the number buttons ?
Click to expand...
Click to collapse
Glad u figured it out. Normally the number row has a different background image/color.
For the symbol part, system/csc/feature.xml ==> remove following lines
<CscFeature_Sip_UseSymbolInCMKey>true</CscFeature_Sip_UseSymbolInCMKey>
<CscFeature_Sip_EnableSymbolInSecondary>de;en_US;en_GB</CscFeature_Sip_EnableSymbolInSecondary>
Use root explorer and edit the file
josephpatrick said:
Glad u figured it out. Normally the number row has a different background image/color.
For the symbol part, system/csc/feature.xml ==> remove following lines
<CscFeature_Sip_UseSymbolInCMKey>true</CscFeature_Sip_UseSymbolInCMKey>
<CscFeature_Sip_EnableSymbolInSecondary>de;en_US;en_GB</CscFeature_Sip_EnableSymbolInSecondary>
Use root explorer and edit the file
Click to expand...
Click to collapse
==============
deleted above lines from feature.xml but the secondary labels on number keys are still present
Note : labels are seen only during alphabet view of keyboard, during symbol view it does not show up.

A few tricks with stock ROM J510FN (Android 6.0.1)

Here are a few tricks that work with stock ROM and some apps I use. Maybe you find something you like to use too.
Little note on text here, sometimes you see " " (spaces) appear in text/code. They shouldn't be there. You will know when you see them. Ignore!
A very quick summary.
What type of values can you find/change in Android?
0) Linux sysclt values, use sysctl -a to list them (stored in /proc/sys/...)
1) Android properties, use getprop en setprop, you find them in /etc/build.prop
2) Android Settings databases, use settings list [system][global][secure] etc
3) Samsung CSC values, specific for Samsung to hide or show extra GUI elements in /system/csc/feature.xml or /etc/feauture_default.xml
4) Samsung Floating features, like above in /etc/floating_feature.xml
How to find them (1+3)?
- root your phone (install busybox on Android 4 or less)
- goto adb shell and su
- find /system -type f -exec strings -f {} \; | grep "persist\."
if you are looking for perstist. variables. Or to find CSC values use "CscFeature_"
Caveats: some "persist." values are stored in /data/property folder. Keep that in mind.
For some you need to change /system/build.prop, some are Samsung CSC features with the /system/csc/feauture.xml file or Android system settings db.
For some I cannot remember if it was already visible without tweaks. Anyway lets go
I put feature.xml (with a lot of nonworking csc features too!!!), build.prop and disabled_services.txt in attachement.
Reboot after putting new feature.xml in /system/csc folder. Permissions of the file: root.root 644, same for build.prop
If your Samsung ROM has no csc feature create /system/csc and put content in other.xml instead of feature.xml
Call Recording: <CscFeature_VoiceCall_ConfigRecording>RecordingAllowed</CscFeature_VoiceCall_ConfigRecording>
Call blocking: <CscFeature_Setting_EnableMenuBlockCallMsg>TRUE</CscFeature_Setting_EnableMenuBlockCallMsg>
Voice Recorder Quality: <CscFeature_VoiceRecorder_SupportRecordingQualitySetting>TRUE</CscFeature_VoiceRecorder_SupportRecordingQualitySetting>
Camera Shutter Sound:
build.prop ro.camera.sound.forced=0
<CscFeature_Camera_ShutterSoundMenu>TRUE</CscFeature_Camera_ShutterSoundMenu>
Data Usage on Quickpanel: <CscFeature_SystemUI_SupportDataUsageViewOnQuickPanel>TRUE</CscFeature_SystemUI_SupportDataUsageViewOnQuickPanel>
Multi Window: (sort of working, use recent apps button to see effect, landscape and portrait)
build.prop persist.sys.debug.multi_window=1 or setprop persist.sys.debug.multi_window 1
<CscFeature_Framework_ConfigMultiWindowTrayBarFunction>TRUE</CscFeature_Framework_ConfigMultiWindowTrayBarFunction>
Smart Manager:
<CscFeature_SmartManager_ConfigDashboard>dual_dashboard</CscFeature_SmartManager_ConfigDashboard>
<CscFeature_SmartManager_ConfigSubFeatures>autoclean|trafficmanager|trafficmanager_auto|storageclean|devicesecurity|autolaunch|cstyle|powerplanning</CscFeature_SmartManager_ConfigSubFeatures>
<CscFeature_SmartManager_DisableAntiMalware>TRUE</CscFeature_SmartManager_DisableAntiMalware>
ps: don't use "backgroundapp", it will FC RAM Management button
FM Radio Hybrid mode (inet) and EPG
Add support for Auto Follow and inet Hybryd support. Edit /etc/floating_feature.xml
<SEC_FLOATING_FEATURE_FMRADIO_REMOVE_AF_MENU>FALSE</SEC_FLOATING_FEATURE_FMRADIO_REMOVE_AF_MENU><SEC_FLOATING_FEATURE_FMRADIO_SUPPORT_HYBRID_RADIO>TRUE</SEC_FLOATING_FEATURE_FMRADIO_SUPPORT_HYBRID_RADIO>
<SEC_FLOATING_FEATURE_FMRADIO_SUPPORT_RDS>TRUE</SEC_FLOATING_FEATURE_FMRADIO_SUPPORT_RDS>
Smooth scroll of surface flinger
In /etc/floating_feature.xml
<SEC_FLOATING_FEATURE_FRAMEWORK_SUPPORT_SMOOTH_SCROLL>TRUE</SEC_FLOATING_FEATURE_FRAMEWORK_SUPPORT_SMOOTH_SCROLL>
Google installer overlay permission fix
For annoying overlay warning if using Lux for example (only for 6.0.1): here on xda
Apps that I use:
Xperia Keyboard: https://forum.xda-developers.com/android/apps-games/app-sony-xperia-keyboard-phones-t3346736
ZenUI Weather: http://www.apkmirror.com/apk/zenui-asus-computer-inc/
Samsung Apps: https://www.sammobile.com/apk/
Next Camera: https://forum.xda-developers.com/oneplus-one/themes-apps/app-cameranext-gallery-cm13-t3305917/page12
See attachement for comparisson Stock, Next and OpenCam.
Dalvik JIT for dex: build.prop: [size=+2]debug.usejit=true[/size]
adb commands: stop cd /data/dal*/arm rm * sync reboot
RIL wakelock optimalisation: build.prop: [size=+2]ro.ril.wake_lock_timeout=10000[/size]
Edit Quick Menu:
settings put secure sysui_qs_tiles "Wifi,Location,SilentMode,Flashlight,Bluetooth,MobileData,PowerSaving,UltraPowerSaving,RotationLock,AirplaneMode,DormantMode,WifiHotspot,Nfc,Sync,SFinder"
Tried to add SmartStay,MultiWindow,PersonalMode,AllShareCast but no tiles in Framework res.
I disabled a lot of bloatware using the pm disable command (too much for you I guess). Also in attachment.
Some hidden Activities you can find with QuickShortcutMaker (playstore):
- GPS Satellites (search for gps)
- SoundAlive Equalizer (search for alive) EDIT: not working for other than gmusic. SA will bypass for others. Need edit in SoundAlive apk.
Cheers
EDIT 19-01-2016: Added stock Camera from J7 which produces better quality picture.
Code:
- download SamsungCamera4_ESS_J7.apk
- adb push SamsungCamera4_ESS_J7.apk /sdcard/
- adb shell
- su
- mount -o remount,rw /system
- cd /system/priv-app/SamsungCamera4_ESS
- mv SamsungCamera4_ESS.apk SamsungCamera4_ESS.apk.J5
- mv oat oat.J5
- cp /sdcard/SamsungCamera4_ESS_J7.apk .
- chmod 644 SamsungCamera4_ESS_J7.apk
- stop
- sync
- reboot
After reboot start camera and clear settings first! Then do camera settings.
Remove Knox
To disable all Samsung Knox packages:
Code:
for p in $(pm list packages |grep nox) ; do echo $p | busybox awk -F ":" '{print $2}' | xargs pm disable ; done
pm disable com.samsung.klmsagent
pm disable com.policydm
To remove all Samsung Knox packages:
Code:
for p in $(pm list packages -f|grep nox) ; do echo $p | busybox awk -F "/" '{print "/"$2"/"$3"/"$4}' | xargs rm -r ; done
To remove all data from disabled packages:
Code:
for p in $(pm list packages -d) ; do echo $p | busybox awk -F ':' '{print "/data/data/" $2}' | xargs rm -r ; done
Disable Knox (hidden) services
Code:
stop
mv /system/container /system/container.OFF
rm /data/dal*/arm/*
sync
reboot
EDIT 09-02-2017: Added /etc/mixer-paths.xml for increased volume on speaker, headphone and handset speaker.
Finding the proper loudness values can be done from the shell command line with tinymix command.
example:
Code:
tinymix (see all audio objects)
tinymix "RX1 Digital Volume" (see all possible values for this audio object)
tinymix "RX1 Digital Volume" 86
Note that a value of 83 represents 0dB.
Some extra settings for system, global and secure db (/data/system/users/0/settings_system.xml etc)
Find yours with settings list system, global or secure. These settings are Android version (API23 in this case)
related. Beware of that when copying it from xda or anywhere else.
Code:
settings put system enable_mtp_settings 1
settings put system intelligent_sleep_mode 1
settings put system white_lockscreen_statusbar 0
#settings put system white_lockscreen_wallpaper 1
settings put system lockscreen_wallpaper_transparent 0 (1=hard to see statusbar)
settings put system adaptive_fast_charging 1
settings put system simple_status_bar 0
settings put system data_powersaving_mode 0
settings put system data_usage_on_lockscreen_sim1 1
settings put system min_minder 1
settings put system csc_pref_camera_quality_key 0
settings put system csc_pref_camera_videoquality_key 0
settings put system csc_pref_camera_burstshot_key 1
settings put system csc_pref_camera_autonightdetection_key 1
settings put system csc_pref_camera_forced_shuttersound_key 0
settings put global ble_scan_always_enabled 0
settings put global bluetooth_discoverable_timeout 120
settings put global wifi_watchdog_poor_network_test_enabled 0
settings put global wifi_scan_always_enabled 0 (0)
settings put global wifi_idle_ms 1800000 (def is 900000=15min)
settings put global wifi_suspend_optimizations_enabled 1
settings put global wifi_networks_available_notification_on 0
settings put global wifi_max_dhcp_retry_count 3
settings put global wifi_mobile_data_transition_wakelock_timeout_ms 5000
#settings put global heads_up_snooze_length_ms 2000
#settings delete global heads_up_snooze_length_ms
settings put global heads_up_notifications_enabled 1
settings put global low_power_back_data_off 1 (drop data conn if low pwr
settings put global low_power_trigger_level 5 (5% batt is low pwr)
settings put secure button_key_light 0
settings put secure long_press_timeout 300
settings put secure location_mode 2
#0 = LOCATION_MODE_OFF
#1 = LOCATION_MODE_SENSORS_ONLY
#2 = LOCATION_MODE_BATTERY_SAVING
#3 = LOCATION_MODE_HIGH_ACCURACY
PS: Don't quote this post. Is is considered useless and annoying.
PS2: more Samsung MM mods/tweaks can be found in this xda thread.
PS3: added meizu camera mod apk with very good image quality (Smaller version here https://forum.xda-developers.com/moto-g/themes-apps/camera-app-t3283962)
tweakradje said:
Here are a few tricks that work with stock ROM. For some you need to change /system/build.prop, some are Samsung CSC features with the /system/csc/feauture.xml file or Android system settings db.
For some I cannot remember if it was already visible without tweaks. Anyway lets go
I put feature.xml (with a lot of nonworking csc features too!!!), build.prop and disabled_services.txt in attachement.
Reboot after putting new feature.xml in /system/csc folder. Permissions of the file: root.root 644, same for build.prop
Call Recording: <CscFeature_VoiceCall_ConfigRecording>RecordingAllowed</CscFeature_VoiceCall_ConfigRecording>
Call blocking: <CscFeature_Setting_EnableMenuBlockCallMsg>TRUE</CscFeature_Setting_EnableMenuBlockCallMsg>
Voice Recorder Quality: <CscFeature_VoiceRecorder_SupportRecordingQualitySetting>TRUE</CscFeature_VoiceRecorder_SupportRecordingQualitySetting>
Camera Shutter Sound:
build.prop ro.camera.sound.forced=0
<CscFeature_Camera_ShutterSoundMenu>TRUE</CscFeature_Camera_ShutterSoundMenu>
Data Usage on Quickpanel: <CscFeature_SystemUI_SupportDataUsageViewOnQuickPanel>TRUE</CscFeature_SystemUI_SupportDataUsageViewOnQuickPanel>
Multi Window: (sort of working, use recent apps button to see effect, landscape and portrait)
build.prop persist.sys.debug.multi_window=1
<CscFeature_Framework_ConfigMultiWindowTrayBarFunction>TRUE</CscFeature_Framework_ConfigMultiWindowTrayBarFunction>
I disabled a lot of bloatware using the pm disable command (too much for you I guess). Also in attachement.
Cheers
Click to expand...
Click to collapse
Cool, but when multi window is enabled, don.t you get the scroll bug in recents apps? (especially in the bottom part of the screen)
Yes the bug is there. Pull down notifications corrects it shortly. Multi Window on small screens is not my thing anyway.
Can I enable multi-window in J500F the same way? Would love to have two apps on screen simultaneously.
Perhaps, what's the scroll bug?
Added information of how to increase volume on different audio outputs with /etc/mixer-paths.xml and test it with the tinymix command.
tweakradje said:
Added information of how to increase volume on different audio outputs with /etc/mixer-paths.xml and test it with the tinymix command.
Click to expand...
Click to collapse
tinymix "RX1 Digital Volume" 86 gives me tinymix is not executable.
chmod 755 does not return error but still not executable.
putting <ctl name="RX1/2/3 Digital Volume" value="86"/> or even 90 in the mixer_paths.xml and reboot does't increase the volume.
I'm missing something ?
What ROM are you on then? I have stock.
Dude I don't understand how to use this. Please help me. I really want these features.
Added my latest build.prop and init.qcom.post_boot.sh
Antutu score with stock ROM and Cherry Kernel 3.10.94
Hi how to remove "system unauthorised action "when i'am instal custom kernel on stockrom
adf18224 said:
Hi how to remove "system unauthorised action "when i'am instal custom kernel on stockrom
Click to expand...
Click to collapse
The notification or smart manager alert?
Wizardlysense said:
The notification or smart manager alert?
Click to expand...
Click to collapse
Smart manager sir

Found Some Interesting Files in system/etc/sysconfig/

I am on SM-G975U1 so needless to say I am not rooted, but whilst perusing the system files I came across 2 Samsung .cert files; both of which are not installed in security certificates, or user certificates, though they can be. The other is nfcee_access.xml, which I'll get into the details of after the first 2 are described.
I tried installing them in User Certificates, first for Apps and VPN, which led to a constant warning in notifications so I removed them and tried installing them for Wi-Fi which got rid of the notification while having them installed. They don't seem to do anything so far, but their name is whats interesting, one is ASKS_INTER.crt, and the other is ASKS_ROOT.crt and they are both signed by Samsung Incorporated.
The subject and issuer details for both of them are -
CN = Samsung Cert INTER/Samsung Cert ROOT
OU = Mobile
O = Samsung Corporation
L = Suwon City
S = South Korea
C = KR
Basic Constraints are -
Subject Type=CA
Path Length Constraint=0
The key usage for both are -
Digital Signature, Certificate Signing, Off-line CRL Signing, and CRL Signing.
I de-compiled an .apk for a file viewer, added them to the existing .cert folder, then rebuilt them from scratch in Android Development, but I know too little about building apps so I was unable to install after compiling it.
I'm not sure what the certifications are for, but they aren't installed anywhere in the phone except the two locations I found them in which weren't app files; they seem to be just be a hidden extra.
The NFC_ACCESS file was found in another folder, I can't recall which, and is not a .cert file, but an .xml file. It contains multiple different signatures (let it be known I do not have a T-Mobile SIM card, nor did I flash to U1 from a T-Mobile variant of U) -
<!-- Samsung nfcextras Signature -->
<!-- Samsung Platform signature -->
<!-- T-Mobile development Signature -->
<!-- T-Mobile production Signature -->
<!-- Mobeewave Signature -->
Under <!-- Samsung Platform signature --> is -
<package android:name="org.simalliance.openmobileapi.service" />
<package android:name="com.android.se" />
<package android:name="com.skms.android.agent" />
<package android:name="com.samsung.android.spay" />
<package android:name="com.samsung.android.spayfw" />
<package android:name="com.sem.factoryapp" />
</signer>
The only package I don't have installed on my phone is <package android:name="org.simalliance.openmobileapi.service" />.
I'm not sure what this file could be for either, the only thing I can think of is adding the .xml signatures to the .apk of NFC or somewhere within the system NFC files. I am unsure of where the ASKS_INTER.crt and ASKS_ROOT.crt would go, maybe they are just for building apps and signing them?
Are any of these files of any value? What could they be for other than signing apps? From what I can tell they are standalones.
The ask_root.crt one is very eye brow raising. Can it be hex edited or decompiled? I know very little about all this. Maybe someone with more knowledge can chime in.

Categories

Resources