[Guide] Reload Facer & Watchmaker On-The-Fly (without PC) after Factory Reset (rev.1) - Wear OS Q&A, Help & Troubleshooting

[Guide] Reload Facer & Watchmaker On-The-Fly (without PC) after Factory Reset (rev.1)
Hi Guys,
Since my watch has developed a problem (http://forum.xda-developers.com/huaw...-pair-t3337462) I have figured out an on-the-fly return mechanism with the help of TWRP.
* This requires TWRP flashed.
** Your Facer and Watchmaker collection should be existed there (/sdcard/Facer & /sdcard/BeautifulWatches directories) already.
Since factory reset won't delete your directories in /sdcard/ ; they will stay, survive.
0- Create a new directory "app" in /sdcard/ directory. (It will be: /sdcard/app/)
1- Copy of facer & watchmaker wearable APKs and any other micro APKs you wish (SWApp, etc.) into /sdcard/app.
2- Once you have completed your factory reset & paired your phone.
3-
3.A) Press and hold power button until reset, Huawei logo pops and you will feel a long vibration.
3.B) Upon feeling the vibration, release the power button then a short press (Press/Release) quickly.
3.C) It will take you to the bootloader, go to Recovery (TWRP must be installed)
4- Once you are in TWRP, head to Advanced -> File Manager
5- Go to /sdcard/app directory, and click on "Select" button below. It will show you options (what you want to do with /sdcard/app directory) and Copy It under /data/ folder. It will overwrite your /data/app/ folder.
6- Reboot to System. You will see all apps you have kept are installed.
Now you will find Facer & Watchmaker among your watchfaces.
I also keep Swapp wearable app there as backup, and copying it either along with many other watch faces.
So you don't need to install apps one by one, /sdcard/app directory contains all apps you want to install, just copy & overwrite /data/app/ folder, all apps installed .
Your watch is ready, from Factory Reset confirmation to this stage takes about 5-6 mins. Really on-the-fly.
I wish it will help.
Thanks for reading
Credits/Thanks:
1) @richboy324 : For manual bootloader method (http://forum.xda-developers.com/huaw...flash-t3307137)
2) @_that & @LunarEclipse120 : For teaching me /data/app manual .apk loading method.
Edit: I have originally posted this thread on Huawei Watch forum, but I think it is valid for all Android Wear. Also revised some parts of text (after experiencing it several times). Transferred the thread here.

Thanks for the mention. No Problem

Related

Defy for the Layman Mac User - Some questions

Installing Mods on a Defy MB525:
A Guide for the Laymen MacOS User
Read In Rich Text:
https://docs.google.com/document/d/15XYKWyjvfHr4pAV5Wtxlt_4KsM-ykmQ4pvLhOt_mzlM/edit
This began as a personal list/guide for myself since much of the info was scattered across the XDA forum and some other websites. I'm still tweaking the guide on my laptop but if anyone thinks this is useful I'd be more than willing to update it here.
I just have some questions listed below as well as a general wonder if anything I'm doing isn't that efficient. Cheers.
I. Questions:
I.A. What Apps should I use on an unrooted Defy for backup?
I.B. Which SBF do I have? (Out-of-the-box)
http://sbf.droid-developers.org/umts_jordan/list.php
I.C. Is there a way to batch restore APKs on Mac like the Windows APK Batch Installer?
http://forum.xda-developers.com/showthread.php?p=23291051
http://www.droidsector.com/blog/2010/06/23/easy-way-to-install-apk-files-using-android-sdk-for-mac/
I.D. Is it necessary to know what color the lens is? Is knowing the camera module enough?
In the Beginning…
II. Rootin'
II.A. Prepping for Unrooted Flashin'
II.A.1. Copy down your SBF info (See I.A.)
II.A.2. Find out which Defy you have:CatLog
II.A.3. Android Development Bridge (ADB is found in the Android SDK)
Download Android SDK http://developer.android.com/sdk/index.html
Drag her into a location such as Applications/Android (The location is of your choice) & unzip. Open the newly unzipped folder "android-sdk-macos" then open "tools."
In Terminal drag and drop "android" located in tools so the command looks like:
$YOURPATH/android-sdk-macosx/tools/
We will write a shortcut so that ADB can be accessed anywhere. In terminal enter:
$ open ~/.bash_profile
.bash_profile should have been opened in a Text editor. At the bottom enter the following(Remember to replace "$PATHto/xxxx" with a drag and drop of the directory):
export PATH=$PATHto/platform-tools:$PATHto/platform:$PATHto/tools=$PATH
i.e.
export PATH=/Users/BobDole/Android/android-sdk-macosx/platform-tools:/Users/BobDole/Android/android-sdk-macosx/platform:/Users/BobDole/Android/android-sdk-macosx/tools=$PATH
Save the file and jump back into Terminal. Reload the sucker:
$ source ~/.bash_profile
In Terminal open up the SDK by typing:
$ android
Press enter. this will launch the SDK Android Manager. Find the folder named, "Tools;" tick it and click the install button.
Sources: http://wiki.cyanogenmod.com/wiki/Howto:_Install_the_Android_SDK
II.A.4. Create a folder on your Mac to organize all your Android files. i.e.
/Users/BobDole/Documents/MotoDefy/
II.A.5. If you have been using your Defy, you will probably want to save your text messages, phone calls, photos etc. Make , non-root Apps and do a manual backup:
SMS Backup
Call Logs Backup & Restore
Source: http://wiki.cyanogenmod.com/wiki/Mo...efore_you_do_anything_.E2.80.94_Make_a_backup
II.A.6. Getroot (Contains):
busybox, copy_rootfile.sh, getroot.sh, rage.bin, su, SuperUser.apk
II.A.7. Your MOD (and any extra files)
II.B. Backup (Unrooted)
II.B.1. Optional: Preform SMS Backup & Call Logs Backup
II.B.2. Duplicate entire SDcard via mounting on a Mac.
i. Plug Defy into a Mac
ii. Defy will now have a new notification at the top, open it and select Memory Card Access.
iii. Right click (or option + mouse-click) and select duplicate.
iv. Relabel as you like and put her into you android folder for safe keeping.
Source: https://motorola-global-en-uk.custh.../defy---transfer-files-from-phone-to-computer
II.C. Rooting
II.C.1. Mount SDcard (if not already mounted) See II.B.2.i.
II.C.2. Extract Getroot.zip and drag unzipped contents onto SDcard. Once done, Eject SDcard.
II.C.3. Change Defy's USB connection to "None."
II.C.4. Go to settings - Apps - Development - USB debugging. Turn this on.
II.C.5. In terminal launch adb:
$ adb shell
Launch getroot.sh by typing:
$ sh $SDcardNAME/Getroot/getroot.sh
Re-enter ADB:
$ adb shell
"$" should now be "#." Time to copy some files including the recovery tool (up next):
# sh #SDcardNAME/Getroot/copy_rootfile.sh
Reboot!
# reboot
This should have Clockwork Recovery load on reboot. Continue to II.B. Flashing to add ROMs and Mods like CM7.
Flash Some Color
III. Flashing
III. A. Prepping for Rooted Flashin
All You Need:
Titanium Backup https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup
Your ROMs & MODs
Place them on your SDcard in an easy to find place. (Refer to II.B.2. i - ii for Mounting SDcard instructions) I'd suggest placing them at the root unless you plan on keeping them, in which case I'd place them in a folder designated for ROMs and Mods, i.e.
/SDcard/mods
The Mods and ROMs can be removed after flashing them but you may wish to keep them in a folder for quick flashing between ROMs.
III. B. Backup (Rooted)
III. B. 1. Titanium Backup
Open 'er and in the upper right corner select Batch Backup/Restore - All button, the paper with a check mark onto. (See Image 1.)
Under Backup, find Backup all user apps + system data and press RUN. (See Image 2.)
"Pause active apps" should be ticked.
Press Select all.
Press the green check in the upper right corner to begin backup.
III. B. 2. "Nandroid" Backup - via Clockwork Recovery
Reboot your Defy
Upon reboot when the phone flashes the Blue LED, press Volume Down to load the Bootmenu.
Using the volume buttons to navigate; press the power button to select Recovery > Backup and restore > Backup (All). This will take a few minutes (depending on how much is on the phone and SDcard.
Reboot after backup unless you're installing ROMs/mods.
Sources: http://wiki.cyanogenmod.com/wiki/Motorola_Defy:_bootmenu
III. B. Flash! Installing ROMs & Mods
III.B.1.
Go to Bootmenu
Recovery > Backup and restore
Wipe data/factory reset
When done, Wipe cache partition
When done, Instal zip from SDcard >Choose Zip from sdcard>Your ROM/mod .zip
When finished with all the installs select Go Back and reboot the phone.
Source: http://wiki.cyanogenmod.com/wiki/Motorola_Defy:_Full_Update_Guide#Flashing_CyanogenMod
|||. Reverting to Stock SBF
All You Need:
Windows PC **(Most Likely needed as Mac OS & Defy don't seem to get along via USB during sbf_flash's execution.)
Your Defy's Stock SBF (refer to the notes you took for it in II.A.1):
http://sbf.droid-developers.org/umts_jordan/list.php
IV. Apps of Interest
As of 2012-10
Here's the few essential and near-perfect apps:
AdAway
Blocks a great number of ads in and out of Apps. You can also customize which URLs to allow or not (white listed).
SwiftKey
I don't use too many of the type-saving features (which really are great) but the amount of slight adjustments like key height in Landscape gives the text half an inch of space! That and it's seamless (so far).
Apex Launcher
It's hard to find a smooth Launcher. Apex isn't perfect but it's the closest I've come to finding one with the most space-saving, shortcut-creating, quick-loading, customizing-featured launcher.
Turntable FM
Want continuos music… with no ads? Interested in discovering new artists or songs every time you jump on? Turntable FM has "rooms" which are entirely dj'd by it's users. If there's an open spot feel free to jump on and upload your own tunes! Just make sure you stick with the style or else you'll get "booed" off. It's a great lil' music app I've run on my laptop's browser for a good year now. It can be tempting to take part in the community but even just being a listener and grad a song here and there makes this app so great.
Tasks
Need a quick and easy To-Do list? Hook this batboy up to your Google account and have them sync back and forth. It'll only take 15seconds to add a new "task," and if you put the widget on the desktop, it only take one second to mark completed. This also allows for different lists, notes, due dates and reminders (reminders are only on the app, not on Google's.)
Solid Explorer
The only file browser you'll need. can be very simple but offers so much for such a clean app? I'll take two! Oh and you can swipe between two "windows" and drag and drop!
Honorable Mention:
Photoshop Express
Manually adjust the exposure, saturation, tint, "Black & White," contrast and brightness. Crop, straighten, rotate and flip. The basic adjustments to make your image pop. If you want auto settings like InstantHipster, I mean Instagram, try Streamzoo. Lot's of great auto settings but also offer some manual adjustments. This is the closest app I have found to manipulate photos the way I do… which isn't as close as I'd like but the closest yet.
Currents
I haven't spent much time finding a good RSS reader but Currents works just fine for me so I haven't done too much searching. Plus she's pretty minimal and to the point.
V. Notes & Terms
Terminal Commands
($ represents the username you see, merely a place holder for each line of commands you will type into Terminal. Wait for $ or # to appear before entering new commands.)
Device Identification
SOC or BAYER Camera Module?
a. Install CatLog
b. Open & your camera app.
c. Open Catlog and "Search Logs for SOC, BAYER or Camera
d. If nothing is found try reopening the camera app and repeat these steps.
Model Number MB525 or MB526?
a. Open settings > About Phone > Model No.
b. MB525 is a Defy. MB526 is Defy+.
Manufacturing date: Late January or Later are Red?
a. Look at your battery.
b. There's a Thread about what each letter/number means.
SBF info?
Rooting
Android Rooting is the process of devices running the Android mobile operating system to attain privileged control (known as "root access") within Android's subsystem. http://en.wikipedia.org/wiki/Rooting_(Android_OS)

[Guide] Ultimate Nexus 4 Root Guide

Post One: Unlocking and Rooting
Post Two: Installing Roms / Kernels / Tweaks
Post Three: Panic Section / FAQ / Miscellaneous
Unlocking The Bootloader And Obtaining Root
*This part of the tutorial is geared towards Windows users. The MAC instructions are very similar, from what I understand. Install the package the same way. All ADB/Fastboot commands may need to start with "adb-mac" (no quotes) rather than "adb" (no quotes). Due to the vast amount of Linux distros available; instructions will vary for your device. Once ADB/Fastboot are set up all command will begin with "./adb" (no quotes) rather than "adb" (no quotes). Once ADB/Fastboot are set up; this guide is relevant to everyone.*
Time required:
20-40 minutes.
Setting up ADB for our device:
Download the AndroidSDK onto your computer.
Note: Google changes their mind every other week as to if this will be distributed as a .zip or an .exe. If you get an .zip file, simply extract the contents to your C:\ drive. For an .exe install it like you would any other program, but set the path directly to the C:\ drive when the installer asks.
Or...you can use this page to download the "ADB for Dummies AIO App."
This will automatically install ADB for you to your C:\ directory. It's very very simple this way.
If your platform-tools folder doesn't have a fastboot.exe, place this fastboot.exe file in your C:\android-sdk-windows\platform-tools (or possibly simply called tools, if you set up ADB ages ago) folder.
Now you have ADB installed! Congratulations.
Unlocking the Bootloader:
***NOTE***
This will perform a factory reset on your device. You will lose all applications. Even the data on your SD Card! I'd recommend making a Backup to your computer BEFORE performing this. There is a method for backing your data up, detailed HERE.
For the time being, there is a method available that will allow you to unlock your device (and root it) without losing your data.
For instructions, click HERE. Please note: this is a hack and isn't the "conventional" and "accepted" way of unlocking your bootloader on a nexus device. The wipe requirement is there for your safety, really, and I'm certain this will be patched in the upcoming releases.
Get the drivers:
Uninstall any previously attempted drivers if they don't work and move to the next.
Option One:
Navigate to the "Device Manager" (Control Panel > Device Manager) in Windows and Select the android device. Open the properties and select the "Install Driver" option. Pick the driver with "Install from disk." Ignore any warnings about the driver not being signed properly.
PDAnet's drivers may work if the above options don't. Simply install PDAnet (after uninstalling any previous attempted driver installations) to get the drivers.
While that is downloading, on your Nexus 4: turn USB debugging on.
To do so; you must first go to Settings>About>Build Number and click seven times.
The actual setting can then be found in Settings>Developer Options>USB Debugging
Once the drivers are installed, navigate to the C:\android-sdk-windows\platform-tools folder on your computer.
Hold shift and right click. Select "Open Command Window Here."
Plug your phone into the computer. Now in this command window type:
Code:
adb reboot bootloader
(Hit Enter)
Your phone should now boot into a screen with a green android with his chest exposed.
Type this:
Code:
fastboot oem unlock
(Hit Enter)
If your Command Prompt displays the message "waiting for device" your driver wasn't successfully installed.
Close the Command Prompt window and open Device manager while your phone is still plugged in. (Search for it using the search option).
Right Click the "Android" option and select Update Driver. Choose to "Browse My Computer" and "Let Me Pick From A List." Pick the Driver with the newest date and install it. Now retry the code above.
Your phone will ask if you want to unlock it. Select "Yes" by using the volume keys and use power to select it.
Now, navigate to "Recovery Mode" with the volume keys. Use power to select.
A screen with another Android will pop up. Press Volume Up and Power at the same time.
Select Factory Reset. This process may take a few minutes. Be patient and let it work.
Once finished, select "Reboot."
Your phone is now unlocked!
Obtaining Root Access and Custom Recovery:
Turn on USB Debugging.
To do so; you must first go to Settings>About>Build Number and click seven times.
The actual setting can then be found in Settings>Developer Options>USB Debugging
Download the following:
SuperSU (CWM .zip)
CWM (Pick the version for your device)
Place the recovery-clockwork-VERSIONNUMBER-mako.img file into your C:\android-sdk-windows\platform-tools folder.
Put the SuperSU.zip on your phone.
Open another Command Prompt if it isn't still open. (Navigate to C:\android-sdk-windows\platform-tools and shift + right click. Select "Open Command Window Here.")
With your phone plugged in type:
Code:
adb reboot bootloader
(Hit Enter)
And wait for your phone to boot into the android again.
Now type:
Code:
fastboot flash recovery IMAGENAME.img
(Change the file name to the correct file name and Hit Enter)
Once that is finished: select the "Recovery Mode" option again on your phone.
You should get a new recovery menu here. Select "install zip from sd card" and "choose zip from sd card."
Find the SuperSU.zip that you transferred earlier and select "Yes" to installing.
Navigate back to "Reboot" and reboot your phone.
You're now rooted!
However, ClockworkMod Recovery won't continue to load after this.
To fix this, find "Rom Manager" from the market. (The free version is fine.) Use the "Flash ClockworkMod Recovery" option.
If your recovery still doesn't stick around after a reboot, you have another couple options. Find a file explorer that allows root access, such as Root Explorer. Use this program to rename /system/etc/install-recovery.sh to /system/etc/install-recovery.bak. You'll need to mount the system as r/w to do this. Root Explorer provides a button at the top to do so.
Or, you can do this completely manually by firing up ADB again and running a few commands:
Code:
adb shell
(Hit Enter)
Code:
su
(Hit Enter)
Code:
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
(Hit Enter)
Code:
mv /system/etc/install-recovery.sh /system/etc/install-recovery.bak
(Hit Enter)
Congratulations!
Your phone is now unlocked, rooted, and has a custom recovery!
Continue reading the next posts for info on getting custom roms, kernels, tweaks, and more!
***I take no responsibility for what happens to your phone due to following this guide! That being said, not only am I sure you'll be fine...but there are an endless amount of users who would be glad to help if you need it.***
Thanks:
Google, for making Android a reality.
VanillaTbone, for the ADB AIO app.
Efrant, for posting about a bootloader locking utility without USB.
ClockworkMod team, for being a part of making our phones as awesome as they are.
The assorted developers, who continue to push out amazing material for us to use.
The awesome community, for endlessly supporting both Android itself and its users.
Installing Custom Roms Kernels and Tweaks
All of the instructions below require your bootloader to be unlocked. Please follow the guide above and return here when you're done.
Backing Your Files Up:
Time required:
15-25 minutes.
Making a Nandroid
The first thing you're going to want to do is back up your phone's entire system. This is done by making a "nandroid."
To do this, boot into ClockworkMod Recovery. To accomplish this: Turn your phone off. Once it is completely off: hold both volume buttons and the power button until the Android with his chest exposed is displayed. Navigate to the "Recovery Mode" option and select "backup."
This will take some time. Be patient and let it finish. This process is important! You should always have a recent nandroid available on your device.
Backing Your Data Up
Install Titanium Backup from the market.
Open Titanium Backup. A Superuser request should pop up. Allow it. Note: if Titanium Backup then says it failed to obtain root access; press the menu button and select more>reload application.
Press menu>batch. Select "Backup all User Apps." Select all and "Run the Batch Operation."
Let the process complete. This may take quite some time: depending on how many applications you have installed.
You can now backup your Text Messages, Bookmarks, and WiFi addresses with Titanium Backup as well.
Press Menu>Backup Data To XML to do so.
Backing Your Contacts Up
Note: This process may or not be useful to you. The Google servers should automatically import any contacts you have stored back whenever you install a new rom. Also note that Facebook/Google+/etc contacts will need to be synced again through their respective applications.
Open the Contacts application.
Press the Menu button.
Select import/export.
Export to storage.
Installing A Rom (Or Kernel/Radios/Tweaks/Themes/etc.)
Time Required:
5-10 minutes.
Note:
Follow the guide above about backing your phone up before attempting!
This guide will also work for flashing kernels/radios/themes/tweaks/etc. Simply ignore the part about wiping data and wipe whatever the thread says you should. You only need to restore data after a rom install.
Find a Rom You'd Like To Try:
Nexus 4 Original Development
Nexus 4 Development
Download the rom you'd like to try on your device.
Most roms also require you to install "gapps" as well.
You can find the correct ones for the rom you're using in the rom thread.
Make sure the Rom and Gapps are on your SD card.
Now, open Google Wallet (if you have it installed) and press Options>Settings>Reset Google Wallet. This will prevent the "Secure Element" errors some users have experienced.
Boot into ClockworkMod Recovery by turning your device completely off. Hold volume up, volume down, and power until the green Android with the open chest is displayed. Navigate to "Recovery Mode" with the volume buttons and select using the power button.
Remember to have a recent nandroid before continuing!
Navigate to "wipe data/factory reset" and select it. Select "yes."
Wait for the process to complete. This may take some time. Be patient!
Once complete: Navigate to "Install Zip from SD card" and "Choose zip from SD card."
Find the rom's .zip and install it. Once that completes install any applicable gapps' .zip.
Select the "Reboot" option.
Congratulations! Your phone should now boot into the custom rom!
Follow the prompts to re-activate your phone.
Restoring Your Applications / Contacts / Nandroid
Time Required:
5-15 minutes.
Restoring Your Applicaions
Install Titanium Backup. Note: you may want the pro key. If you have it, you won't have to manually click "install" on each application. The process is completely automated. Open Titanium Backup (grant root access. If titanium says it failed to obtain root access, press menu>more>reload application). Press menu>batch>restore missing apps with data. Now, here you have a choice to make. Do you want a completely clean install? Select "app only" and run the batch operation (Deselect Google Wallet first. We don't want to risk restoring wallet in any way. Install it manually through the Play Store.). Do you want all of your application data (saved games/settings/etc)? Select "app+data" and run the batch operation (Deselect Google Wallet first. We don't want to risk restoring wallet in any way. Install it manually through the Play Store.). This MAY cause you problems or it may not. Personally, I often restore application data and seldom run into any trouble. If you do find that restoring data caused problems, follow the guide above to re-install your rom and restore without data. This process will take some time. Be patient (I'd suggest turning your screen off so the screen doesn't burn, but that's just me.) It will vibrate upon completion.
You can now restore your Text Messages, Bookmarks, and WiFi addresses if you backed them up by pressing Menu>Restore Data From XML.
Note:
Overclocking/CPU tweaking applications should never be restored with data. Simply deselect it from the list.
Facebook/Haxsync/Google+ may have problems restoring your contacts when installed through Titanium Backup. Simply uninstall and reinstall through the market (and be sure to log in and select to sync your contacts again).
Also, if you have NFC Task Launcher successfully launching Tasker tasks with your stickers: they may not immediately work.
Through my testing, it's as simple to fix as uninstalling NFC Task Launcher and Tasker. Restore Tasker first. Then restore NFC task launcher.
Restoring Your Contacts
If google fails to restore your contacts (not facebook/haxsync/google+/etc) you may import them manually if you backed them up.
Open the contacts application and press menu>import/export>import from storage.
Restoring A Nandroid
If your phone is acting funny or won't boot...restore a nandroid from a previous rom or working set-up.
You may also use a Nandroid to switch back to a previous rom if you decide you don't like the one you're on.
Do this by booting into ClockworkMod Recovery (hold volume up, volume down, and power while your phone is off and navigate to "Recovery Mode").
Simply select "restore" and find the most recent (or relevant) backup.
This process will take some time. Be patient and let it complete! Once done, select "Reboot."
Note:
Nandroids are stored in the "clockworkmod" folder on your SD card. They take up quite a bit of space. ALWAYS have at least one recent one on your SD card. However, since these are huge files: you may like to delete old ones to save space. You must delete backups by booting into CWM and navigating to Backup and Restore>Delete.
Important Notes About Restoration
I outline the method of using Titanium Backup above for a reason. Restoring system applications and data is the most common cause of problems on custom roms. For this reason, always ONLY restore "missing applications" from "user applications" that were backed up when restoring onto a new rom. Every time you restore system data or applications a narwhal sodomizes your favorite childhood cartoon. This is FACT.
Installing Alternate Custom Recoveries
If you find a custom recovery (such as the touch-recovery options) that came as a .img file:
Use these instructions to flash. Plug your phone into the computer. Open up ADB. Move the .img to the C:\android-sdk-windows\platform-tools folder.
Type the following:
Code:
adb reboot bootloader
(Hit Enter)
You can also manually boot to the bootloader by powering off and holding volume down, volume up, power buttons until the green Android with his chest exposed is displayed.
Then type:
Code:
fastboot flash recovery FILENAME.img
(Replace the file name with whatever the .img is called and Hit Enter).
Wait for the process to complete and reboot.
***I take no responsibility for what happens to your phone due to following this guide! That being said, not only am I sure you'll be fine...but there are an endless amount of users who would be glad to help if you need it.***
Panic Section! (Something is Wrong)
Q: My phone won't boot!
A: The easiest option is to get into recovery and restore a nandroid using the above guide (pull battery to put phone in an off-state if needed).
However, more advanced options are available if you don't have a nandroid available (You're naughty).
Do you have another rom .zip available on your SD card? If so, simply use the above guide for installing a rom to get you booting again.
If not, you can download one on your PC. Boot into fastboot (the green Android with open chest menu). Navigate to recovery and select it with the power button.
Move the .zip to the C:\android-sdk-windows\platform-tools folder.
Open ADB.
Change the NAMEOFZIP.zip below to the correct file name...and perform the action.
Code:
adb push NAMEOFZIP.zip /sdcard/NAMEOFZIP.zip
(Hit enter)
You may have to reboot recovery to get the file to show up. Now follow the guide above for flashing a rom to get you booting again.
Did you install a tweak that modified only a file or two on your phone? (Find this out by opening the .zip and looking in the folders (ignore META-INF). Good news! We MAY be able to recover you completely. If this doesn't work...you'll have to follow another method.
Get your phone into fastboot (the boot-menu that allows you to select recovery/reboot/etc). Navigate to Recovery. Start up ADB. Pull the files that were modified out of the stock rom's .zip (using whatever tweak you were installing as reference to find what was changed) that you're on into the C:\android-sdk-windows\platform-tools folder. Now we're going to push these files onto your phone...replacing the tweaked ones and hopefully getting you booted again. Use this code, but change the values of the file name and where it should reside. This is only an example!
Code:
adb shell
(Hit Enter)
Code:
su
(Hit Enter)
Code:
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
(Hit Enter)
This will mount your system so you can write to it.
Code:
exit
(Hit Enter)
This should exit shell and allow the use of adb commands again. You may need to type it a couple of times (until the #_ changes back to the platform_tools> prompt).
Code:
adb push framework-res.apk /system/framework/framework-res.apk
(Press enter after each file that you need to replace).
Note: This last option probably won't work. I'd just skip over it unless you're absolutely adamant about restoring your current setup and want to try everything possible.
Q: I want my SDcard files from my phone...but I'm in a situation where I need to flash stock images! This will erase my SD content. What can I do to save it?
A: Do you have a custom recovery installed? If not, download a custom recovery from post one in this guide and flash it using those instructions. You'll need to be in a custom recovery in order to obtain ADB access without booting your phone. Boot into recovery (With phone turned off: hold Power and Volume+ and Volume- until the bootloader pops up and navigate to "Recovery"). Run the command:
Code:
adb pull /sdcard/ /SDCARD/
(Hit Enter)
This will put all of your files into a folder called "SDCARD" in your C:\ drive. Keep in mind that this will take a LONG time. Maybe a couple of hours.
To restore once you're booting again:
Move the "SDCARD" folder you created from your C:\ drive to the platform-tools folder. *Then input:
Code:
adb push SDCARD /sdcard/
(Hit Enter)
Q: How do I make an "ADB Backup?"
A: An ADB Backup will backup your phones data (applications and their settings). Follow the guide HERE about ADB Backups.
Q: My phone gets really sluggish and often turns off or reboots on its own.
A: Without knowing anything about your situation...I'd say you either have severely bad data somewhere or some bad kernel tweaks. Use the rom install guide above, paying close attention to the part about backing up and restoring if you haven't already. In the case of a kernel problem, you're likely undervolting too low. Restore the stock kernel values and see if your problems subside.
Q: My phone screen won't turn on! This requires a battery pull to fix.
A: This is called a "Black Screen of Death" or BSOD. This is generally due to using a hotplug governor (one that turns cores off with the screen off) or possibly undervolting your device too low. Change governors or up your slots a bit.
Q: My phone is doing really weird things. Regardless of kernel/rom and even if I don't restore any data at all! Either that or I simply cannot boot up! My phone is possessed no matter what I do!
Download the stock IMAGES for your device and extract the files using 7-zip. Move all of the extracted files to your platform-tools folder. Open the flash-all.sh file with a text editor. Copy and paste the commands (one by one) and wait for each process to complete for continuing.
FAQ
Roms/Kernels
Q: What is the best rom?
A: The "best" rom is a matter of opinion. Do you like a certain customization and can't live without it? Use a rom that has that option.
Q: What is the best rom for battery life?
A: Roms themselves really shouldn't impact your battery all that much. They can have an impact, but if you're really looking for better battery I'd suggest swapping kernels or tweaking yours.
Q: What is the best rom for stability?
A: All of the roms out are "stable." They may have options that don't work correctly, but generally: this is user error. If you follow my advice on installing a rom, you'll end up with MUCH fewer bugs.
Q: What is the best kernel?
A: The best kernel is a matter of opinion. Some users may love one, while others swear by another. Find one you like and tweak it accordingly.
Q: How do I tweak a kernel for better battery?
A: Generally, you'll want to either change your governor and or undervolt and or underclock your kernel. This is done either by using SetCPU or similar apps, or with an option in your rom (usually labeled "performance" or something similar). Take note: extremely high/low voltages may cause instability. Never "set at boot" until you've thoroughly tested the options you've set. Testing includes low strain (like turning your screen off for an hour) and high strain (like playing a game for an hour) scenarios. To be extra safe: run the values for a couple days before setting them at boot. Follow the users ideas in the kernel's threads for some guidelines. However, remember that not all values will play nicely with all phones.
Miscellaneous
Q: Why isn't Google Wallet working at [store]?
A: I'm not sure if it's a Google Wallet problem, or a problem with the terminal. But I personally struggle to find a terminal that consistently works in my area. Something that has generally worked for me is to open wallet and go to Options>Reset Google Wallet. You must then re-add any cards you had.
Q: Does my ass look good in these shorts?
A: Yes.
Neat Ideas / How to Show Off the Nexus 4
-Get some NFC stickers. Tagstand has them available.
You can use these to make your phone perform certain tasks when you touch the sticker. Use NFC Task Launcher to define the tasks. These are capable of doing simple things like muting your volume to the more complex like turning on Tasker tasks that do things like auto-reply to text messages while you're at work.
-Do you have any suggestions? Submit them below!
***I take no responsibility for what happens to your phone due to following this guide! That being said, not only am I sure you'll be fine...but there are an endless amount of users who would be glad to help if you need it.***
ADB Backups:
SDcard backup:
Code:
adb pull /sdcard/ /sdcard/
(This will pull all of your sdcard contents to an "sdcard" folder in your C:\ directory)
Applications and their data:
Take note, that you'll need to be using CyanogenMod's method for setting up ADB to do this. The ADB AIO application installs an older SDK without this functionality. First, get your drivers installed (detailed in post one). Once you get ADB installed (post one), navigate to the C:\android-sdk-windows\platform-tools folder on your computer. Hold shift and right click. Select "Open Command Window Here."
Input this while your phone is turned on and USB Debugging is Enabled:
To do so; you must first go to Settings>About>Build Number and click seven times.
The actual setting can then be found in Settings>Developer Options>USB Debugging
Type this:
Code:
adb backup -apk -noshared -all -nosystem
(Hit Enter)
Your phone will ask for a password. Input one and remember it.
Once the process completes: continue with unlocking and rooting your phone.
Restoration:
Upon unlocking and rooting your phone: open up ADB again.
Enter this code:
Code:
adb restore backup.ab
(Hit Enter)
Input the password you saved to this file earlier, and wait for the restore to complete.
To restore your SDcard backup, first move the "sdcard" folder that was made in the backup process to your platform-tools folder.
Then run:
Code:
adb push sdcard /sdcard/
Do you have to install "ADB" ?
As far as like...clicking it and letting the windows installer install...no.
The exe file will read the commands in cmd without "installation."
Nice Work!
I've just added this guide to the Nexus 4 Complete Index
Sent from my GT-I9100 using xda premium
Great work!!! nice and clean reading!
Can this guide include information on how to re-lock bootloader and unroot the device? Does this informaiton exist?
I need to RMA my phone due to dead pixels and I want to make sure I dont have any issues with the warranty.
jayluke said:
Can this guide include information on how to re-lock bootloader and unroot the device? Does this informaiton exist?
I need to RMA my phone due to dead pixels and I want to make sure I dont have any issues with the warranty.
Click to expand...
Click to collapse
Post 3.
fastboot oem lock
Locks the device.
How long is the first boot, after unlocking the bootloader, supposed to take? Mine's sitting there for quite a while already. (I had a lot of stuff installed, but still, this is really long.)
EDIT: When rebooting the custom recovery, you have to say "yes" to the message it gives you, something about keeping some recovery. I had originally said no because I didn't flash it, I just booted it once.
I just got my nexus yesterday, and this isnt the first phone that I have rooted.... however... my settings on the thing are extremely basic..
How do I enable usb debugging if I dont have the option in the settings?
Thanks
Chris
---------- Post added at 03:19 PM ---------- Previous post was at 03:14 PM ----------
I just got my nexus yesterday, and this isnt the first phone that I have rooted.... however... my settings on the thing are extremely basic..
How do I enable usb debugging if I dont have the option in the settings?
Thanks
Chris
Edit: Got an app to enable it... still not in the menu though.
wizshaw said:
I just got my nexus yesterday, and this isnt the first phone that I have rooted.... however... my settings on the thing are extremely basic..
How do I enable usb debugging if I dont have the option in the settings?
Thanks
Chris
---------- Post added at 03:19 PM ---------- Previous post was at 03:14 PM ----------
I just got my nexus yesterday, and this isnt the first phone that I have rooted.... however... my settings on the thing are extremely basic..
How do I enable usb debugging if I dont have the option in the settings?
Thanks
Chris
Edit: Got an app to enable it... still not in the menu though.
Click to expand...
Click to collapse
Oh geeze!
I forgot.
Settings>about>version number I think...
Click 7 times to enable developer options.
Will update op soon.
Quick question: is there a reason the first post links to SuperSU version 0.98, when version 0.99 is the most recent? If version 0.99 has known issues with the Nexus 4, I don't want to use it on my device.
The 0.99 version came out after this guide was posted. I was offered to upgrade to the new version of supersu from 0.98 and so far no problem at all.
Does this work on the latest version of JB (4.2.1)?
When installing a new ROM it says to perform a factory reset through CWM, which will remove all apps and data but should keep all your pictures, videos, songs etc.
It doesn't mention to wipe the System partition as well. Is this not necessary when flashing ROMs on a Nexus?
Prior to owning the N4 I had the Galaxy S 2 and it was always stated in the OP instructions to wipe data/factory reset, wipe system, clear cache, clear dalvik and then flash ROM and Gapps.
However, I don't notice in any guides or instructions for N4 ROMS to wipe the system partition, just the data partition. Is there a reason for this or is it not necessary to wipe the system partition? Thanks. Great guide by the way.
Peace
thank u for ur effort
Chochiwpg said:
When installing a new ROM it says to perform a factory reset through CWM, which will remove all apps and data but should keep all your pictures, videos, songs etc.
It doesn't mention to wipe the System partition as well. Is this not necessary when flashing ROMs on a Nexus?
Prior to owning the N4 I had the Galaxy S 2 and it was always stated in the OP instructions to wipe data/factory reset, wipe system, clear cache, clear dalvik and then flash ROM and Gapps.
However, I don't notice in any guides or instructions for N4 ROMS to wipe the system partition, just the data partition. Is there a reason for this or is it not necessary to wipe the system partition? Thanks. Great guide by the way.
Peace
Click to expand...
Click to collapse
I actually have a question along these lines.
I just came from a LG G2X so things were different for me whenever I flashed ROM's/kernels. For one thing, I had an external sd card so whenever CWM made it's backups, they went to that automatically and I didn't have to worry about wiping since everything was on the external. This phone doesn't have an external so where do the backups go? From the looks of the new CWM 6.0.2.0, the backups (and blobs now apparently) go to /data/media/clockworkmod. Well I guess my question here is if you have to wipe /data for installing new ROM's, how would I restore a backup because they would have been deleted off the /data partition. I tried adb pulling /data/media/clockworkmod to my computer but it won't go. Don't know if it's because that partition is mounted while the phone is in use or what. I tried the mount/umount command that OP listed but it won't work for me. Don't want to flash ANYTHING on this phone until I know for a fact I can get to the backups that I'm creating.

[HOW-TO] Remove Amazon Ads/Bloat manually

ROOT REQUIRED
Open up some type of file manager (root browser recommended) and delete the following folders -
/system/priv-app/com.amazon.*
/system/priv-app/com.goodreads
Then boot into TWRP (found here) and do a factory reset. If you do not factory reset, you will likely see some apps crashing and error messages.
NOTE: THIS WILL ALSO DELETE ALL OF THE AMAZON "CRAP" THAT COMES PRELOADED, NOT JUST THE ADS.
If your not comfortable with manually deleting these folders, you can head over to http://forum.xda-developers.com/r1-hd/development/blu-r1-hd-remove-amazon-ads-ota-updates-t3427303 and flash @Tomsgt's firmware file. This thread was just to explain the method of ad removal, which is very simple.
Credit goes to @Tomsgt for the idea.
You forgot IMDB, Audible, and all of Google's crapware. (probably a couple other things I forgot about too)

Device Stock UPSM

My device Stock in USPM and no way that i can turn it off.
here is some ways i read in different threads.
charge 100%
use different launcher
wipe cache
wipe dalvik
and more i don't want to bored you with them.
here is solution i came up with and it solved my problem without lose anything
Requirement:
TWRP recovery
1. reboot to recovery (TWRP)
2. Advanced - File manager
-- look into system\app
-- and change every "emergency " Folder name or
-- or simply rename apk file and delete extension
3. reboot (this is how you get color and full setting)
4. setting - app manager - reset app preference (this is how your all apps working without losing any data (only if you disabled some apps this will enabled them again))
5. reboot to recovery
6. Restore apk files that renamed
7. reboot
8. disable UPSM
9. reboot
and it's done

Phone goes back to huawei eRecovery

Hi there,
First of all, lemme tell what i did.
Phone model : Huawei p9 lite VNS-L31 ( Dual Sim )
I downgraded my p9lite to andriod 6.0
After that, i unlocked the bootloader, unlocked my Phone etc and installed TWRP.
Phone was still working at this point. Installed the magisk root and Phone still worked.
main reason i wanted to root is to spoof at pokemon go ( yeah it sounds silly, but it is ).
In order to make it work i had to do some stuff, heres a copy paste from the website i followed the tutorial from :
* Step 5- Download a GPS Spoofing app of your choice. I prefer GPS Joystick but I have had great success with Fake GPS Floater. HERE is a known working GPS Joystick apk from my phone to use instead of converting the app over.
Download Service Disabler
Download a root file manager. I use root explorer but I believe its a paid only app, give Root Browser a try from HERE.
Download GPS Test app from HERE
Now its time to convert your spoofing app to a system app. If you downloaded my apk open your root explorer and copy/paste the apk to /system/priv-app and select the file and change permissions to 644 (all read selected and owner write selected), skip the rest of these steps below. If you downloaded from the Play store Open up your root explorer and navigate to /data/app and find the gps spoofing app that you installed and select the entire folder and cut it to /system/priv-app. Now go into the folder that you just moved and delete everything but the apk, All odex files and folders must go. Now long press highlight the apk and change permissions of the file to 644 (all read selected and owner write selected). Back out to the folder that the apk is in and do the same but set permissions to 755 (all read, owner write, and all execute).
Next up is Service Disabler, open the app and go to the system tab, search for location, open fusedlocation and disable it (samsung owners need to do the same for Samsungfusedlocation), search again for google and select google play services, navigate down to fusedlocation and disable it.
Next open GPS Test and go to hamburger menu, AGPS and select clear only.
Reboot to recovery and select wipe, advanced, select dalvic cache and cache. swipe to wipe and then reboot. Boot up time will take a few minutes to optimize all apps.
I followed the steps verry carefully.
My Phone starts to huawei logo, it stays on the logo and it goes to the Huawei eRecovery.
any suggestions?
Restart your phone by holding power button (Hold it until it vibrates).
try this 20 times for example , till it boots into system
FunnkyHD said:
Restart your phone by holding power button (Hold it until it vibrates).
try this 20 times for example , till it boots into systen
Click to expand...
Click to collapse
Tried it, but it does not boot.
solvathus said:
Hi there,
First of all, lemme tell what i did.
Phone model : Huawei p9 lite VNS-L31 ( Dual Sim )
I downgraded my p9lite to andriod 6.0
After that, i unlocked the bootloader, unlocked my Phone etc and installed TWRP.
Phone was still working at this point. Installed the magisk root and Phone still worked.
main reason i wanted to root is to spoof at pokemon go ( yeah it sounds silly, but it is ).
In order to make it work i had to do some stuff, heres a copy paste from the website i followed the tutorial from :
* Step 5- Download a GPS Spoofing app of your choice. I prefer GPS Joystick but I have had great success with Fake GPS Floater. HERE is a known working GPS Joystick apk from my phone to use instead of converting the app over.
Download Service Disabler
Download a root file manager. I use root explorer but I believe its a paid only app, give Root Browser a try from HERE.
Download GPS Test app from HERE
Now its time to convert your spoofing app to a system app. If you downloaded my apk open your root explorer and copy/paste the apk to /system/priv-app and select the file and change permissions to 644 (all read selected and owner write selected), skip the rest of these steps below. If you downloaded from the Play store Open up your root explorer and navigate to /data/app and find the gps spoofing app that you installed and select the entire folder and cut it to /system/priv-app. Now go into the folder that you just moved and delete everything but the apk, All odex files and folders must go. Now long press highlight the apk and change permissions of the file to 644 (all read selected and owner write selected). Back out to the folder that the apk is in and do the same but set permissions to 755 (all read, owner write, and all execute).
Next up is Service Disabler, open the app and go to the system tab, search for location, open fusedlocation and disable it (samsung owners need to do the same for Samsungfusedlocation), search again for google and select google play services, navigate down to fusedlocation and disable it.
Next open GPS Test and go to hamburger menu, AGPS and select clear only.
Reboot to recovery and select wipe, advanced, select dalvic cache and cache. swipe to wipe and then reboot. Boot up time will take a few minutes to optimize all apps.
I followed the steps verry carefully.
My Phone starts to huawei logo, it stays on the logo and it goes to the Huawei eRecovery.
any suggestions?
Click to expand...
Click to collapse
As far as i noticed, on a huawei p9 lite you can't disable a system module, such the fused location module. I know, I did this mistake by myself time ago for the same purpose as yours and i did'nt find a solution. Another strange thing is that after the wipe data and th magisk reflash (reinstall) the safetynet test won't pass. That's strange..

Categories

Resources