Hiya all
I've got this piece of code from an xml in my settings.apk (SecSettings actually) that contains tutorials on motion settings.
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/motion_tutorial_settings_title" android:key="parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<Preference android:title="@string/turn_over_title" android:key="turn_over" android:summary="@string/turn_over_summary" />
<Preference android:title="@string/shake_title" android:key="shake" android:summary="@string/shake_summary" />
<Preference android:title="@string/pick_up_to_call_out_title" android:key="pick_up_to_call_out" android:summary="@string/pick_up_to_call_out_summary" />
[Color=red] <Preference android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" />
<Preference android:title="@string/pick_up_title" android:key="pick_up" android:summary="@string/pick_up_summary" />
<Preference android:title="@string/double_tap_title" android:key="double_tap" android:summary="@string/double_tap_summary" />
<Preference android:title="@string/tilt_title" android:key="tilt" android:summary="@string/tilt_summary" />
<Preference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list" android:summary="@string/tilt_to_scroll_list_summary" />
<Preference android:title="@string/pan_title" android:key="pan" android:summary="@string/pan_summary" />
<Preference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image" android:summary="@string/pan_to_browse_image_summary" />
<Preference android:title="@string/palm_swipe_title" android:key="palm_swipe" android:summary="@string/palm_swipe_summary" />
<Preference android:title="@string/palm_touch_title" android:key="palm_touch" android:summary="@string/palm_touch_summary" />
<Preference android:title="@string/tap_and_twist_title" android:key="tap_and_twist" android:summary="@string/tap_and_twist_summary" />[/color]
</PreferenceScreen>
In there, all the red parts contain tutorials on settings that don't actually work on my device, and for OCD sake, I don't want them appearing in my settings because of it.
But simply cutting them out of that file will make the settings app crash whenever i open that menu :crying:
So question is: is there a way to hide these settings without impairing their functions?
XML style ofcourse, as I don't dare touch smali
bump! I am still struggling with this :crying:
Is there really no simple xml line for this?
If not, is it possible to resize the not-working menu's to zero pixels? (thus making them invisible)
for the record, adding android:visibility="gone" / androi:visibility="invisible" and android:layout_height="0.0dip" all do nothing
you need to remove also the line inside a smali sir. removing the line will just force the app to close . i also want to remove a category sir, but im not good at smali so i just remove the strings and leave it blank xD
sorry for my english xD
Hello. im trying to create a menu for my apps ( xposed etc.. ) bloatware apps .
I started with the bloatware apps.
I was able to link them in settings + I found the list of setting will be long so I decide to create a submenu of categories.
here is the pic attached when I click on fido_menu it force close...
and here is what I did :
I in settings_headers:
<header android:title="@string/header_category_geo" />
<header android:icon="@drawable/ic_fidomenu" android:id="@id/fido_menu" android:title="fido menu" android:fragment="xml.Fido_Menu.xml" /> im not sure about the fragment what do u think?
and the Fido_Menu.xml that I created
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/fido_tab"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings."> do I have to create a samli file?
<Preference android:icon="@drawable/ic_fido" android:title="@string/fido_myaccount">
<intent android:targetPackage="com.fidosolutions.myaccount" android:action="android.intent.action.MAIN" android:targetClass="com.fidosolutions.myaccount.MyAccount" />
</Preference>
<Preference android:icon="@drawable/ic_vfido" android:title="@string/fido_VVM">
<intent android:targetPackage="com.fido.vvm" android:action="android.intent.action.MAIN" android:targetClass="com.communology.vvm.ui.MessagesListActivity" />
</Preference>
<Preference android:icon="@drawable/ic_afido" android:title="@string/fido_anti_theft">
<intent android:targetPackage="com.fido.rogers.security" android:action="android.intent.action.MAIN" android:targetClass="net.juniper.junos.pulse.android.ui.LaunchActivity" />
</Preference>
</PreferenceScreen>
Looking for help also how to create a smali file if need it
Thanks for your help
P.S: if u r not willing to help but just to fake that u r helping (( MEAN not giving the details )) so thanks in advance and don't help me...
First of all, I would like to thank poolmaker who had a tutorial over at the Xperia Z1 forum. So go on over and give him thanks!
First you must be rooted. Second must have a file explorer. I personally use ES File Explorer so the steps below will be covering that file explorer.
Open ES File Explorer.
Open the Tools Menu.
Make sure Root Explorer is turned on and long press over the name "Root Explorer".
A sub-menu pops up, select Mount R/W. (if you don't do this the changes you make will not stick.) The next menu that pops up, you want to make /system RW by selecting the radio button.
You then want to navigate to /system/etc/permissions.
Scroll down and find platform.xml and make a copy of it and save it somewhere.
Open the original file with ES Note Editor and then press the menu (the 3 vertical dots) to edit.
Make the following changes
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Click to expand...
Click to collapse
Save the changes you make.
Before you exit, check the permissions of the edited platform.xml. They should be (rw-/r–/r–).
Reboot your phone and enjoy being able to download/write/copy to your external SD card again.
This is a great tutorial to do it manually.
However you can also just install this app https://play.google.com/store/apps/details?id=nextapp.sdfix
Install, run it and uninstall.
tp2215 said:
This is a great tutorial to do it manually.
However you can also just install this app https://play.google.com/store/apps/details?id=nextapp.sdfix
Install, run it and uninstall.
Click to expand...
Click to collapse
Of course that is always an option, there are actually a few apps on the market that do this. I just thought since it is xda, people might want to do it manually.
https://play.google.com/store/apps/details?id=nextapp.sdfix
Sent from my bad ass Kryon infused Note 3
I went through the whole tutorial, it worked great. Then I scrolled down and noticed there was an app, oh well. Thanks for the write-up!
Please help. Can anyone give me a copy of their original platform.xml? Seems like I messed up mine. Can't find my back up. Help would be greatly appreciated. Thanks in advance.
I followed the steps in the first post and after I rebooted, messages keep popping up saying this and that failed to start and now I can't even use the phone because they pop up every 3 seconds.. I also can't see any files through a file browser or on the computer. I have a copy of my platform file on the phone but no way to get to it because no files show up in the file explorer. Any ideas? My phone is basically useless right now.
MIKE PH said:
Please help. Can anyone give me a copy of their original platform.xml? Seems like I messed up mine. Can't find my back up. Help would be greatly appreciated. Thanks in advance.
Click to expand...
Click to collapse
Here you go http://goo.gl/nlXWRE
I am so sorry for what is most likely a stupid question, but what is advantage of this? Does this address the issue of 4.4.x where we can't store our app data on our micro sd cards? Thanks in the advance for the help
What is the purpose of the mount r/w option?
I think I understand this but when I selected Root on, I was able to copy and overwrite and rename system files like SystemUI.apk. I did not have mount RW for the /system folder. So what exactly does the mounting do?
Bob
The app didn't work for me, but this manual write up did it!
Thanks saved me from having to install a new rom.
Thank you for this tutorial!!!
Sent from my SM-G900T using XDA Free mobile app
bgmikejr said:
Here you go http://goo.gl/nlXWRE
Click to expand...
Click to collapse
This link is not working already ;(
could anybody send me original or "patched" version of platform.xml? I didn't backuped mine and something went wrong. I always did backup and never have need them...
Right click the link and choose save link as it should download as I did this and it worked for me.
bgmikejr said:
Right click the link and choose save link as it should download as I did this and it worked for me.
Click to expand...
Click to collapse
it's a kind of magic
still doesn't work. i will flash another rom
damianssj661 said:
it's a kind of magic
still doesn't work. i will flash another rom
Click to expand...
Click to collapse
That's weird. It's working for me. Hopefully this works for you. Just copy and paste into Notepad++ or equivalent and name it platform.xml I've also attached it, just remove the .txt extension.
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project
Copyright (C) 2013 Broadcom Corporation
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 is used to define the mappings between lower-level system
user and group IDs and the higher-level permission names managed
by the platform.
Be VERY careful when editing this file! Mistakes made here can open
big security holes.
-->
<permissions>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are associating low-level group IDs with
permission names. By specifying such a mapping, you are saying
that any application process granted the given permission will
also be running with the given group ID attached to its process,
so it can perform any filesystem (read, write, execute) operations
allowed for that group. -->
<permission name="android.permission.BLUETOOTH_ADMIN" >
<group gid="net_bt_admin" />
</permission>
<permission name="android.permission.BLUETOOTH" >
<group gid="net_bt" />
</permission>
<permission name="android.permission.BLUETOOTH_STACK" >
<group gid="net_bt_stack" />
</permission>
<permission name="android.permission.NET_TUNNELING" >
<group gid="vpn" />
</permission>
<permission name="android.permission.SYSTEM_GROUP_INTERNAL" >
<group gid="system" />
</permission>
<permission name="android.permission.INTERNET" >
<group gid="inet" />
</permission>
<permission name="com.sec.android.permission.CAMERA" >
<group gid="camera" />
</permission>
<permission name="android.permission.READ_LOGS" >
<group gid="log" />
</permission>
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
</permission>
<permission name="android.permission.ACCESS_MTP" >
<group gid="mtp" />
</permission>
<permission name="android.permission.NET_ADMIN" >
<group gid="net_admin" />
</permission>
<!-- The group that /cache belongs to, linked to the permission
set on the applications that can access /cache -->
<permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
<group gid="cache" />
</permission>
<!-- RW permissions to any system resources owned by group 'diag'.
This is for carrier and manufacture diagnostics tools that must be
installable from the framework. Be careful. -->
<permission name="android.permission.DIAGNOSTIC" >
<group gid="input" />
<group gid="diag" />
</permission>
<!-- Group that can read detailed network usage statistics -->
<permission name="android.permission.READ_NETWORK_USAGE_HISTORY">
<group gid="net_bw_stats" />
</permission>
<!-- Group that can modify how network statistics are accounted -->
<permission name="android.permission.MODIFY_NETWORK_ACCOUNTING">
<group gid="net_bw_acct" />
</permission>
<permission name="android.permission.LOOP_RADIO" >
<group gid="loop_radio" />
</permission>
<!-- The group that releated with VPN -->
<permission name="android.permission.SAMSUNG_MODIFY_ROUTE" >
<group gid="net_admin" />
</permission>
<permission name="android.permission.SAMSUNG_TUNTAP" >
<group gid="vpn" />
</permission>
<permission name="android.permission.SAMSUNG_MODIFY_IPTABLES" >
<group gid="net_raw" />
</permission>
<!-- The group that releated with VPN -->
<permission name="com.sec.android.SAMSUNG_MODIFY_ROUTE" >
<group gid="net_admin" />
</permission>
<permission name="com.sec.android.SAMSUNG_TUNTAP" >
<group gid="vpn" />
</permission>
<permission name="com.sec.android.SAMSUNG_MODIFY_IPTABLES" >
<group gid="net_raw" />
</permission>
<!-- The group that releated with URL -->
<permission name="com.sec.android.SAMSUNG_GET_URL" >
<group gid="secnetfilter" />
</permission>
<!-- Group that can use gscaler -->
<permission name="com.sec.android.permission.USE_GSCALER" >
<group gid="graphics" />
</permission>
<!-- Except for SysScope, DO NOT USE this permission. -->
<permission name="com.sec.android.app.sysscope.permission.ACCESS_SYSTEM_INFO_SYSSCOPE_ONLY" >
<group gid="radio" />
</permission>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are assigning high-level permissions to specific
user IDs. These are used to allow specific core system users to
perform the given operations with the higher-level framework. For
example, we give a wide variety of permissions to the shell user
since that is the user the adb shell runs under and developers and
others should have a fairly open environment in which to
interact with the system. -->
<assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
<assign-permission name="android.permission.WAKE_LOCK" uid="media" />
<assign-permission name="android.permission.UPDATE_DEVICE_STATS" uid="media" />
<assign-permission name="android.permission.UPDATE_APP_OPS_STATS" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />
<!-- This is a list of all the libraries available for application
code to link against. -->
<library name="android.test.runner"
file="/system/framework/android.test.runner.jar" />
<library name="javax.obex"
file="/system/framework/javax.obex.jar"/>
<!--
<library name="javax.btobex"
file="/system/framework/javax.btobex.jar"/>
-->
</permissions>
_eroz said:
Of course that is always an option, there are actually a few apps on the market that do this. I just thought since it is xda, people might want to do it manually.
Click to expand...
Click to collapse
There's also an Xposed module for this too: http://forum.xda-developers.com/xposed/modules/kitkat-sd-card-access-t2790992 . A "semi-manual" option, if you will. I did both the manual run-through and then tried the Xposed mod to confirm they both made the same edit and both worked.
this did not work me i did this and went into dolphin browser on my galaxy tab 4 8.0 sm-t330nu and tried to download a picture and got that popup saying i cant do it why?
Tx
Hi _eroz
Just to say Thank you.
PLus I discovered the ES Task, and I had to root my phone. I feel that I 'll play with it even more, like changing rom...
For Sony phones running KitKat it was simple sollution:
----------------
1. Go to
/data/data/com.sonyericsson.conversations/shared_prefs
2. Open
com.sonyericsson.conversations_preferences.xml
3. Enabling costs saving
Change <boolean name="semc_pref_key_character_conversion" value="false" /> to <boolean name="semc_pref_key_character_conversion" value="true" />
_______________
There is also Sony Xposed module http://forum.xda-developers.com/showthread.php?p=53009040#post53009040
But my question is how to add this option on stock lollipop messages application or at least how to change it in preferences (I can not find preferences.xml file for messages on lollipop)
I have found option in /data/data/com.android.mms/shared_prefs/com.android.mms_preferences.xml
<boolean name="pref_key_sms_characters" value="true" />
But I do not know what it means...
https://code.google.com/p/synergy-t...ed_prefs/com.android.mms_preferences.xml?r=66
Getting Error on line 17 column 7 - missmatched tag
i dont see the problem...can someone help me fix this?
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="Advanced Power Menu Display">
<SwitchPreference android:title="The new style menu display Power" android:key="aurora_power_menu_style" android:summary="The new style is already in force shutdown menu" android:summaryOn="The new style is already in force shutdown menu" android:summaryOff="The new style has failed Shutdown menu" />
</PreferenceCategory>
<PreferenceCategory android:title="Advanced Power Menu" />
<CheckBoxPreference android:title="Shutdown" android:key="menu_power" android:summary="Show or hide the shutdown options" android:summaryOn="Shutdown item has been shown" android:summaryOff="Shutdown item has been hidden" />
<CheckBoxPreference android:title="Data network switches" android:key="menu_data" android:summary="Show or hide the 3G switch" android:summaryOn="Data switches has been shown" android:summaryOff="Data switch is hidden" />
<CheckBoxPreference android:title="Airplane mode" android:key="menu_airplane" android:summary="Show or hide the flight mode option" android:summaryOn="Flight mode has been shown" android:summaryOff="Flight mode has been hidden" />
<CheckBoxPreference android:title="Restart" android:key="menu_restart" android:summary="Show or hide the Restart option" android:summaryOn="Restart has been shown" android:summaryOff="Restart has been hidden" />
<CheckBoxPreference android:title="Screenshots" android:key="menu_screenshot" android:summary="Screenshot option to show or hide" android:summaryOn="Screenshot been shown" android:summaryOff="Screenshots have been hidden" />
<CheckBoxPreference android:title="flashlight" android:key="menu_torch" android:summary="Show or hide the flashlight option" android:summaryOn="It has been shown flashlight" android:summaryOff="Flashlight has hidden" />
<CheckBoxPreference android:title="Screen Recorder" android:key="menu_record" android:summary="Show or hide screen recording options" android:summaryOn="Screen video has been shown" android:summaryOff="Screen Recorder has been hidden" />
<CheckBoxPreference android:title="Emergency Mode" android:key="menu_emergency" android:summary="Show or hide the emergency mode switch" android:summaryOn="Emergency mode has been shown" android:summaryOff="Emergency mode has been hidden" />
<CheckBoxPreference android:title="Ringtone mode options" android:key="menu_mode" android:summary="Show or hide the ring pattern options" android:summaryOn="Ringtone mode option has been shown" android:summaryOff="Ringtone mode option has been hidden" />
</PreferenceCategory>
</PreferenceScreen>
figured it out, missing some code line 7 to match that of line 17, just needed some sleep to think better! lol