スキップしてメイン コンテンツに移動

某Mobile AP Shortcutが

バージョンアップしてえらいことになったので
$ baksmali -c :twframework.jar -d ~/galaxy/system/framework/ -o Settings -x ~/galaxy/system/app/Settings.odex
$ cat mobileap.patch
--- Settings.o/com/android/settings/WirelessSettings.smali 2011-03-02 01:52:03.584252209 +0900
+++ Settings/com/android/settings/WirelessSettings.smali 2011-03-02 01:53:34.145242437 +0900
@@ -465,7 +465,7 @@
 
     move-result-object v4
 
-    invoke-virtual {v3, v4}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
+#    invoke-virtual {v3, v4}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
 
     .line 200
     invoke-virtual {p0}, Lcom/android/settings/WirelessSettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
@@ -478,7 +478,7 @@
 
     move-result-object v4
 
-    invoke-virtual {v3, v4}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
+#    invoke-virtual {v3, v4}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
 
     .line 232
     invoke-static {}, Landroid/telephony/TelephonyManager;->getDefault()Landroid/telephony/TelephonyManager;
$ smali -o classes.dex Settings
$ zip Settings.apk classes.dex

こんなんでいいにちがいない。

コメント

このブログの人気の投稿

今日の都電

device-mapper-multipath

Jan 6 00:04:09 ovn2 kernel: [181703.837857] device-mapper: table: 253:0: multipath: error getting device Jan 6 00:04:09 ovn2 kernel: [181703.838212] device-mapper: ioctl: error adding target to table Jan 6 00:04:09 ovn2 multipathd: dm-0: remove map (uevent) Jan 6 00:04:09 ovn2 multipathd: dm-0: remove map (uevent) ぐぬぬ
[root@ovn2 multipath]# multipath Jan 06 00:04:16 | ADATA_SX300_2D3920001647: ignoring map [root@ovn2 multipath]# echo "blacklist { > wwid ADATA_SX300_2D3920001647 > }" >> /etc/multipath.conf [root@ovn2 multipath]# service multipathd restart Redirecting to /bin/systemctl restart multipathd.service [root@ovn2 multipath]# multipath [root@ovn2 multipath]# すっきり!