本帖最后由 eveing 于 2016-8-27 17:03 編輯
liu_sophy 發(fā)表于 2016-8-27 09:55
現(xiàn)在修改好了哪個了@eveing
設(shè)置界面按五次左方向。
zcj@zcj-Lenovo-H3050:~$ sudo adb start-server
[sudo] password for zcj:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
zcj@zcj-Lenovo-H3050:~$ adb connect 111.128.1.119:65432
connected to 111.128.1.119:65432
zcj@zcj-Lenovo-H3050:~$ adb pull /system/app/Settings_shandongmobile8400_1.3.1.7_1461.apk Settings_shandongmobile8400_1.3.1.7_1461.apk
622 KB/s (6288952 bytes in 9.860s)
zcj@zcj-Lenovo-H3050:~$ apktool d Settings_shandongmobile8400_1.3.1.7_1461.apk
I: Using Apktool 2.0.3 on Settings_shandongmobile8400_1.3.1.7_1461.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/zcj/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
zcj@zcj-Lenovo-H3050:~$ vi Settings_shandongmobile8400_1.3.1.7_1461/smali/com/android/settings/Settings.smali
修改下面v5為com.android.settings, v1為com.inspur.wasu.launcher.applist.AppListActivity
.method private startInstalledApplication()V
.locals 7
.prologue
.line 505
:try_start_0
const-string v5, "com.inspur.checksdcardapk"
.line 506
.local v5, "packageName":Ljava/lang/String;
const-string v1, "com.inspur.checksdcardapk.activity.AppListActivity"
zcj@zcj-Lenovo-H3050:~$ apktool b Settings_shandongmobile8400_1.3.1.7_1461
I: Using Apktool 2.0.3
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
I: Copying unknown files/dir...
zcj@zcj-Lenovo-H3050:~$ adb push Settings_shandongmobile8400_1.3.1.7_1461/dist/Settings_shandongmobile8400_1.3.1.7_1461.apk /data/local/tmp/
551 KB/s (6268174 bytes in 11.095s)
zcj@zcj-Lenovo-H3050:~$ adb push dexopt-wrapper /data/local/tmp/
473 KB/s (13600 bytes in 0.028s)
zcj@zcj-Lenovo-H3050:~$ adb shell
shell@orange:/ $ su
root@orange:/ # cd /data/local/tmp/
root@orange:/data/local/tmp # chmod 755 dexopt-wrapper
root@orange:/data/local/tmp # ./dexopt-wrapper Settings_shandongmobile8400_1.3.1.7_1461.apk Settings_shandongmobile8400_1.3.1.7_1461.odex
--- 開始轉(zhuǎn)換 'Settings_shandongmobile8400_1.3.1.7_1461.apk' (bootstrap=0) ---
--- 請等待 verify+opt, pid=3695
--- would reduce privs here
--- 轉(zhuǎn)換結(jié)束 'Settings_shandongmobile8400_1.3.1.7_1461.apk' (成功) ---
root@orange:/data/local/tmp # mount -o remount,rw /system
root@orange:/data/local/tmp # cp Settings_shandongmobile8400_1.3.1.7_1461.odex /system/app/
root@orange:/data/local/tmp # chmod 644 /system/app/Settings_shandongmobile8400_1.3.1.7_1461.odex
root@orange:/data/local/tmp # mount -o remount,ro /system
root@orange:/data/local/tmp # reboot
|