我有一台Android 6.0智能手机Gretel a7,我想编辑它的Settings.apk。因此,我想删除上方菜单(见图片),并通过按主页按钮返回我的启动器应用程序。此外,我已经通过编辑文件res / xml / dasboard-categories.xml清除了主设置菜单中的仪表板(现在其中有onle wi-fi和蓝牙项目)。
那么你能告诉我如何删除上层菜单并按下" home&#34 ;?能够回到我的启动器应用程序吗?以下是我的反编译settings.rar和settings.apk - https://nofile.io/f/RUhg7taZmTe/Settings.rar和Settings.apk
这是/ res / xml文件夹中的dashboard-settings.xml文件:
<?xml version="1.0" encoding="utf-8"?>
<dashboard-categories
xmlns:android="http://schemas.android.com/apk/res/android">
<dashboard-category
android:id="@id/wireless_section"
android:title="@string/header_category_wireless_networks"
android:key="@string/category_key_wireless">
<dashboard-tile
android:icon="@drawable/ic_settings_wireless"
android:id="@id/wifi_settings"
android:title="@string/wifi_settings_title"
android:fragment="com.android.settings.wifi.WifiSettings" />
<dashboard-tile
android:icon="@drawable/ic_settings_hetcomm"
android:id="@id/hetcomm_settings"
android:title="@string/hetcom_setting_title">
<intent
android:action="com.android.settings.HETCOMM_SETTINGS" />
</dashboard-tile>
<dashboard-tile
android:icon="@drawable/ic_settings_bluetooth"
android:id="@id/bluetooth_settings"
android:title="@string/bluetooth_settings_title"
android:fragment=
"com.android.settings.bluetooth.BluetoothSettings" />
</dashboard-category>
</dashboard-categories>
这是/ res / xml文件夹中的bluetooth_settings.xml:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/bluetooth_settings"
xmlns:android="http://schemas.android.com/apk/res/android" />
这是来自/ res / layout文件夹的bluetooth_device_settings.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:gravity="center"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<fragment
android:id="@id/bluetooth_fragment_settings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
class="com.android.settings.bluetooth.DeviceProfilesSettings" />
</LinearLayout>