爱黑武论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3135|回复: 1

[经验教程] v版1096 root刷机mofo教程

[复制链接]
发表于 2015-8-9 21:12 | 显示全部楼层 |阅读模式

立即注册,加入爱黑武论坛的大家庭!爱黑武,爱上搞机生活!

您需要 登录 才可以下载或查看,没有账号?注册

x
转自http://forum.xda-developers.com/moto-x-2014/development/img-xt1096-victara-mofo-image-root-t3100145
Updated 2015.08.06 - See changelog below

These images have tether enabled, root, Sqlite3, BusyBox, Xposed, CF.lumen and support for AirAudio, AdAway, iOS Emoji fonts and Viper4Android with the latest TK Gapps installed.  Here are the main files:
  • 5.1bins.7z - Kernel, modem and other 5.1 update files
  • xt1096-5.1-v3.1f_img-pkg.7z - Base image with everything
You should save the base 5.1 image file.  When there are updates in the future, patch files will be used to work with this base image.

@JulesJam has written an excellent guide for new users (and those who might need a refresher) here:  Mofo Noob Guide

Here is the original info and links for Mofo 5.0 images:
The mofo image file with Xposed v65 baked in is listed below.  It is based on the image posted by btdownloads7.  It includes root, tether, BusyBox and SQLite3 while adding Xposed v65.  

You need to flash an image with root from here: http://forum.xda-developers.com/show...82&postcount=1 to be able to follow the instructions below.

You also need to install the alpha Xposed apk from here: http://forum.xda-developers.com/atta...6&d=1435601440 Download the apk to your phone, find it with your phone file manager and click on it to install.  Do not try to install the framework from within the Xposed installer.

While in your root file manager, navigate to /data/dalvik-cache and delete both the "arm" and "profiles" folders. (This is needed one time due to a glitch in the alpha Xposed for Lollipop.)  You must do this!

Connect your phone to your pc and issue the "adb reboot-bootloader" command to get into fastboot mode (or use the proper key combination on the phone to enter fastboot mode.)
Flash the image file with mofo as normal.
After mofo completes its work, enter "fastboot erase cache" from your pc to flush the system cache.

Once done, reboot the phone. The boot animation will end and seem to freeze for a minute or two, then it will start the upgrading/optimizing apps process.  Once your phone is booted up, open the Xposed installer from the app drawer, install a module (like Gravity Box for LP) and enjoy!

Note: If you get system memory full errors after the reboot, you didn't delete the folders in /data/dalvik-cache as noted above; with luck you will be able to delete them in between error messages and reboot.  Otherwise, you'll need to flash an image without Xposed and start over.

  • XT1096_5.0-tether-root-bb-sqlite3-XposedV65.img.7z - XT1096 image for use with mofo. Includes HDR fix, tether, root, busybox, sqlite3 and Xposed v65
  • http://forum.xda-developers.com/atta...6&d=1435601440 - Link to Xposed Installer Alpha 4 needed for Xposed v65
  • XT1096_5.0-tether-root-bb-sqlite3-XposedV65-DeBloat.img.7z - Image with bloat removed, see this post for details: Post 169
  • XT1096_5.0-tether-root-bb-sqlite3-XposedV65-DeBloat-AdAway.img.7z - Image for AdAway users with symlink for hosts file, see this posrt for details:  Post 188
Here is the info for 5.1 Mofo Images, updating, patching, etc.:

Thanks to @JulesJam and @Slack3r we have Android 5.1 for the XT1096 with mofo!  Below are links to the 5.1 mofo image and patch files.

These images are for Android 5.1.  If you are still running 5.0, here are instructions for upgrading to 5.1:
The following presumes that you already are running a rooted mofo version of Android 5.0.  You shouldn't loose your data by making this upgrade, however, it is always wise to backup anything on your device that isn't also stored somewhere else.  As usual, I can't be responsible if your phone malfunctions in some way.  I have installed these files following the instructions below without any difficulty.

First, download the 5.1 base file and the 5.1 base image with patches.

Do not remove your SIM card, leave it installed.

Using your root file explorer (like ES Explorer with root enabled), delete everything in /data/dalvik-cache - YOU MUST DO THIS! Then reboot into bootloader mode.

Extract the files from the 5.1bins.7z archive and then run these commands:

Code:
fastboot flash logo logo.binfastboot flash boot boot.imgfastboot flash modem NON-HLOS.binfastboot erase modemst1fastboot erase modemst2fastboot flash fsg fsg.mbnfastboot flash recovery recovery.img
Then, immediately use mofo to flash the 5.1 image.  Reboot your phone and enjoy Android 5.1!     
The base image can be patched to enable/disable features.  The patch files are listed below and instructions on how to apply them are here:
First, you need to have the Xdelta3 program:
  • xdelta3 for Windows x86
  • xdelta3 for Windows 64-bit
  • xdelta3 for Linux
For Linux, extract the files from the archive, enter the folder with the extracted files and run the following command to install xdelta3 to your system:
Code:
./configure && make && make install
For windows extract the xdelta3-3.0.9-x86.exe file from the zip and rename it to xdelta3.exe.
Put the patch file(s), the xdelta3 program and the base image mofo file into the folder where your mofo program file is.  
Open a command window in this folder.
Enter the "dir" command   (Without quotes.  You should see your files listed including xdelta3, mofo, etc.)

For both Windows and Linux users enter the following cmd while in your mofo directory:

Code:
xdelta3 -d -s base_image_file patch_file
In other words, to patch the base image to add Xposed, your command would look like this:

Code:
xdelta3 -d -s xt1096-5.1-mofo-base-v2.img base-to-base_xp.patch
The patched image will be created and you can then flash that like normal.

Make sure the newly created image is the exact same size as the original image.  If a patch for another image is applied to the wrong image, there will be an error message displayed.  Even if there is an error, a patch file may be created but it will usually not be the same size as the original.

The patch files for the base image are included in the image archive
In the archive are patches to do the following:
  • 3.1{x}--3.1{x}-de                     - Removes some apps from v3.1f image
  • 3.1{x]--3.1{x}-v4a                 - Adds Viper4Android to the image

The apps removed in the Debloat patch(es) are listed here:
If iOS Emojis are desired,
   Copy /system/fonts/NotoColorEmoji.ttf.iOS to
   /data/data/NotoColorEmoji.ttf

   To restore the stock font,
   Copy /system/fonts/NotoColorEmoji.ttf.stock to
   /data/data/NotoColorEmoji.ttf

   Or, just delete the file and the system will copy the
   stock one into place at the next boot
Code:
3c_main                        (Moto Apps Manager)3c_checkin                (Moto Apps Connector)3c_notification         (Moto Apps Notifications)3c_ota                        (Moto Apps Data Manager)BodyGuardApp                (Moto Alerts)Books                        (Google Books)CF.lumenChrome                        (Google Chrome)Cloud                        (Verizon cloud storage)Drive                        (Google Drive)Ears                        (Google Sound Search)ECID_VZW_Victara        (Verizon CallerID pay service)EditorsDocs                (Google Docs)EditorsSheets                (Google Sheets)EditorsSlides                (Google Slides)FaceLock                (Face Unlock)Google Earth                (Google Earth)Google HindiIME                (Hindi keyboard)Google PinyinIME        (Pinyin keyboard)Google PlayGames        (Playgames (not playstore))Hangouts                (Google Hangouts)Inbox                        (Google Inbox)iWnnIME                        (iWnn keyboard)Keep                        (Google Keep)KoreanIME                (Korean keyboard)Maps                        (Google Maps)Messenger                (Not Messaging)MotorolaConnect                (Connect to watches or your PC)Music2                        (Google Play Music)MyVerizon                (My Verizon Mobile)News & Weather                (News & Weather widget)Newsstand                (Google Magazines)Nflgamecenter                (NFL App)PlusOne                        (Google+)Quickoffice                (Google Quickoffice)Talkback                (Google Talkback)Translate                (Google Translate)Trebuchet      (CM Launcher)Videos                        (Google Play Movies & TV)VVM3                        (Verizon Visual Voicemail)VZMessages                (Verizon Messages)VzwEntitlementService        (Not needed with tether in build.prop)Wallet                        (Google Wallet)YouTube                        (Google YouTube)

Tips:
  • The image includes AdAway support.  If you want to use AdAway, go into the AdAway settings and set the location of the hosts file to /data/data/hosts
  • To change the bootup animation, place your desired bootanimation.zip file (not the installer zip) into /data/local/moodle and set the permissions to rwx rwx rwx (chmod 777) and owner:group u0_a40:u0_a40
  • To use iOS Emojis, follow these instructions:


回复

使用道具 举报

发表于 2015-8-10 20:30 | 显示全部楼层
感谢分享
有兴趣的机友可以去xda看看
回复 支持 反对

使用道具 举报

 Hello,黑武的好机友!回复想偷个懒?点这里: 
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|小黑屋|Archiver|手机版|爱黑武论坛 ( 京ICP备2023028323号 | 京公网安备11011202000270号 )

GMT+8, 2024-11-21 22:23 , Processed in 0.077601 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2024, ihei5.com

快速回复 返回顶部 返回列表