Enable 4G only for rooted devices - Honor 8 Themes, Apps, and Mods

in the name of God
My name is Ali i am going to show you how to enable 4G only
needed:
root access
root browser for example root explorer
instruction:
1.go to
/cust/hw/meafnaf/xml/hw_defaults.xml
2.find this code
<string hw_networkmode_preference="9,3,12,11,1"/>
(may be a bit different in some devices)
3.change it to
<string hw_networkmode_preference="9,3,12,11,1,2,4"/>
4.add this code
<string hw_add_4g_only="432"/>
<integer hw_global_networkmode_settings_enable="1"/>
pay attention:if your device doesnt support Volte
when a person trys to call or send message to you can't
so be careful
I tested it in my honor 8 emui 5

Related

[MOD]LolliPop Navigation bar / navigation keys for galaxy quattro/win i8552

Lolipop Styled navigation bar for samsung galaxy quattro / win
for those who loves the lollipop styled naviation bar and keys for samsung quattro
Remember as always “I WILL NOT BE RESPOSIBLE FOR YOUR DEVICE..DO IT ON YOUR OWN RISK”
Tools required
1.A computer ofcourse
2.Apktool or AdvancedApkTool
I prefer AdvancedApkTool by BDFreak for its ease of use.
Before using the above mentioned tools You should be having a good knowledge about the procedure and how to decompile , recompile and signing apk files
U can check it from here if u never heard about the apktools
http://forum.xda-developers.com/show....php?t=1755243
For Step to step procedure
http://forum.xda-developers.com/show....php?t=1989533
For Advanced ApkTool http://forum.xda-developers.com/show....php?t=2639400
2.SystemUI.apk
You can can pull it out from your phone using any root enabled file mangers like root explorer or ES file manager
3.An XML editing tool
Preferably Notepad++
You can Install it on your PC from https://notepad-plus-plus.org/download/v6.7.9.2.html
BEFORE DOING THIS ALWAYS TAKE A BACKUP OF YOUR ROM USING NANDROID OR TWRP I WLL NOT BE RESPONSIBLE FOR BRICKED PHONE
STEP 1 --- ACTIVATING THE NAVIGATION BAR
1. using root explorer or ES file manager open build.prop as editable text or use any buil.prop editor
2. go to the bottom and add this line
HTML:
qemu.hw.mainkeys=0
3. Save the file and reboot
now you will ab able to see the jelly bean themed navigation bar
STEP 2.------ Lollipop soft keys
download the attached file , unzip it and push the files inside lollipopkeys folder to SystemUI.apk\res\drawable-hdpi using 7zip or you can add it after decompiling the SystemUI.apk and recompille and sign it back
STEP 3.------ Now push back your SystemUI.apk to your Phone
ie. Root\System\app\
Paste it and set persimmons as rw-r-r (assuming you know the drill )
ReBoot
IF YOU WANT TO DISABLE THE PHONE RECENT AND BACK BUTTON
OPEN Root Explorer, navigate to System > usr > keylayout, and open Generic.kl in Text Editor
navigate to key 139 MENU and key 158 BACK, and put a "#" sign in front of each line. Save the file.
For disabling backlight on your capacitive keys go to phone Settings > Device > Display > Touch key light duration, and switch the setting to Always off
TO REARRANGE THE BACK AND RECENT TAB BUTTON
if you want the back button on the left and recent on the other side
follow the steps
. Decompile the SystemUI.apk file using the apktool or advancedapktool
2. Open the folder and go to \res\layout
3. Find the file “ tw_navi_bar.xml”
4.Open it using Notepad++ or any xml editing tool
find
HTML:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_navigationbar_recent" android:layout_weight="1.0" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/tw_sysbar_highlight" />
and
HTML:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_navigationbar_back" android:layout_weight="1.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/tw_sysbar_highlight" />
Now replace the first with the second one and second with the first one
its just shifting each code position on the top and bottom side of the home button
save it
. Recompile the apk..and don’t forget to sign or else u will end up in Bootloop
Now push back your New SystemUI.apk to your Phone
ie. Root\System\app\
Paste it and set persimmons as rw-r-r
ReBoot
IF YOU WANT TO CHANGE THE HEIGHT AND WIDTH OF NAVIGATION BAR
for this you need to decompile framework-res.apk
If u knw how to decompile and recompile framework apk then only you proceed or else u wll end up in bootloop
decompile framework-res.apk
Go to /res/values
open dimens.xml
find "navigation_bar_height" , "navigation_bar_height_landscape" and "navigation_bar_width"
change the dpi values ....better not to change it below 22 dpi
save it
recompile the apk and push it back to framework folder
reboot
can u please make flashable zip......please ....thakns in advance
Yes can u give atleast the systemui. Apk

[APP] Uichanger for Custom roms

If you are theming or modding a custom rom you probably thinking to use multiple ui and a switch between them. You can use this app. You can put 3 different UI in your rom and a switcher for those.
How to use:
1) Put it in System/app folder of your rom.
2) Make 3 different themed or modded SystemUI.apk.
3) Name those ui1.pack,ui2.pack and ui3.pack and put those in System/data/uichanger/ folder of your rom.
4) Now decompile the app and open res/values/strings.xml in text editor .
5) Now look for
Code:
<string name="ui1">Xperia UI</string>
<string name="ui2">Touchwiz UI</string>
<string name="ui3">AOSP UI</string>
Change the names as you want. This means if you check Xperia Ui it will set ui1.pack .
6) Now we need your SystemUI.apk path. In strings.xml find
Code:
<string name="systemuipath">YOur SystemUIpath</string>
For lollipop the path is /system/priv-app/SystemUI/SystemUI.apk
FOr kk the path is /system/priv-app/SystemUI.apk
Now just use that.
Any question in comments
App link :
Code:
https://docs.google.com/uc?authuser=0&id=0BySRffw4ufYxcEVoMWVITTVhY1E&export=download

Reset Location to Device Only

Okay so I choose "yes" when the location settings asked for access to network info. I would like to revoke that choice so it does not access my network and I can ignore the prompt. I prefer to just use the GPS (Device Only) setting but instead it goes to High Accuracy (GPS and Network) and I can't change force the location button to change back to default when it prompted me. Is it possible to get it back so that when I enable location it's not High Accuracy? Android OS: 5.1.1
Grabbing the anwser from the following topic : http://forum.xda-developers.com/android/help/reset-google-network-location-consent-t2890971 . You will need root:
smelllllllllll said:
So for anyone else who's interested I edited the nlp-prefs.xml file contained in Data > Data > com.google.android.gms > shared_prefs
Changing From:
<boolean name="confirmNlp" value="false" />
Changing To:
<boolean name="confirmNlp" value="true" />
Click to expand...
Click to collapse
I tried it myself and it really works... After doing this change , reboot your device
In the meantime the (mis)behaviour of Play Services changed a bit. I.e. in v12.x there's, instead of changing the value of
<boolean name="confirmNlp" value="false" /> to "true",
the complete line to be deleted.
Reboot. Then the confirmation dialog appears again.
Tested on MM 6.01.

Remove Whatsapp status feature in Rooted/Non-Rooted android

Remove Whatsapp status featureRemove Whatsapp status feature
Rooted :
To Remove Whatsapp status feature
0. Force Stop WhatsApp before proceeding.
1. a. For Root Explorers, open the file ‘/data/data/com.whatsapp/shared_prefs/com.whatsapp_preferences.xml‘
b. For SharedPreference Editors, select ‘WhatsApp’ and then select ‘com.whatsapp_preferences‘.
2. Find the key name: ‘status_mode‘ and edit its value from ‘1’ and make it as ‘0’.
From:
<int name="status_mode" value="1"/>
To:
<int name="status_mode" value="0"/>
3. Now, launch WhatsApp and see if there’s a difference
Note: This is currently working in version 2.17.81
Non- Rooted - Visit Source
source : http://developeit.net/remove-whatsapp-status-feature-in-rootednon-rooted-android/

Enable multi-users marshmallows

Enabling multi-user
Decompile framework-res.apk
As of Android 5.0, the multi-user feature is disabled by default. To enable it, device manufacturers must define a resource overlay that replaces the following values in:
frameworks/res/values/bool.xml
frameworks/res/values/integer.xml
<!-- Whether Multiuser UI should be shown -->
<bool name="config_enableMultiUserUI">false</bool>
<!-- Maximum number of supported users -->
<integer name="config_multiuserMaximumUsers">1</integer>
Replace the value of config_enableMultiUserUI with: true
Replace the value for config_multiuserMaximumUsers with one greater than 1
recompile and sign

Categories

Resources