ADB Sideloaded while Unlocked and rooted 4.4.2 - Nexus 4 Q&A, Help & Troubleshooting

Hello all,
I unlocked and rooted 4.4.1 with the stock ROM.
I saw the new update 4.4.2 and booted into recovery, did adb sideload for the update and everything rebooted.
I seem to have lost Root?
When I open Super SU I get the message:
There is no SU binary installed and SuperSU cannot install it. This is a Problem!
If you just upgraded to Android 4.3, you need to manually reroot - consult...
I go through the following process:
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.
In Rom Manager, when I try to re-install recovery I get: "An Error occured while flashing your recovery"
Help please!
-Jason
I fixed it. I had to reflash the SU.zip from within recovery.
-J

Long story short. When you flash a ota file you loose root. It resets the permissions on /system
Just download the latest su. Zip and put it on your phone.
Get the custom recovery of your choice in. Img form and flash or just boot it up with fastboot and flash the su. Zip.
It's that simple
---------- Post added at 07:06 AM ---------- Previous post was at 07:04 AM ----------
Damn it. I read everything but I fixed it part. Thought it was a sig which I don't ever read.

Related

Newbie Trying to Root and Unlock Phone

Hi,
I am a Canadian Newbie to Android and just purchased a Nexus S from Fido. I tried to Unlock and Root my phone using this guide
http://forum.xda-developers.com/showthread.php?t=970237
As I have a Mac, but got stuck on the 5th instruction. I rebooted my phone and now can't get my data connection. I am left scratching my head what I did wrong. Thank goodness I didn't brick the phone, but I need to find a way to get this working or least take me back to where I started.
Any assistance would be great,
I got back my data connection and the phone is unlocked. I just want some assistance with the rooting process.
I don't have a MAC, so i'm not sure how you would proceed. However, if you have access to a Windows based PC, follow the instructions for the i9023 phone to unlock the i9020a version of the device.
The issue with Fastboot is related to drivers and in windows, there is a bug in the driver INF file, so read the instructions carefully.
If it is already unlocked, you should be able to reboot back into recovery, flash clockwork and install superuser (without rebooting)
I would first boot into recovery and resume from step 6 in the guide you were going through..
Basically you want to get clockwork flashed so that way you can install the superuser zip file from the SD Card...
So I need continue to follow these instructions? When I open terminal and put in step 6 nothing happens, that's why I stopped in the first place. Sorry to be a pain, but I am really new to this platform.
6) Copy/paste the following into the Terminal window:
Code:
~/Desktop/adb-fastboot/fastboot flash recovery ~/Desktop/adb-fastboot/recovery-clockwork-3.0.0.5-crespo.img
Hit "Return" again and wait for recovery to boot.
For the following steps while in Recovery, use "Volume Down" to highlight a selection and "Power" to choose that selection:
8) Choose "mounts and storage"
9) Choose "mount USB storage". Your phone should now be mounted on the Mac as a Device called "NO NAME"
10) Move the zip file "su-2.3.6.1-ef-signed.zip" from the "adb-fastboot" folder to the "NO NAME" Device on you computer.
11) Eject/unmount your phone in the Finder on your Mac.
12) On your phone, choose "Unmount"
13) Choose "mount /system"
14) Choose "+++++Go Back+++++"
15) Choose "install zip from sdcard"
16) Choose "choose zip from sdcard"
17) Choose "su-2.3.6.1-ef-signed.zip"
Is there anyone on this forum who lives in Toronto and is willing to meet up to show me how to do this? Please let me know.
Thanks!
if you are running fastboot your phone must be on the bootloader menu.
so, turn off your phone. press volume up and power. don't enter recovery.
while in this state, continue with step 6:
fastboot flash recovery crespo.img and then enter recovery (now with clockwork)
while in recovery, mount sdcard (menus), adb push su.zip and adb push any_rom.zip (like cm7.zip) and then, back on the phone, install zip from sdcard, choose zip... (still from recovery). install what you need. reboot. you're done.
After typing in the commands for step 6, if the terminal says something like 3042 kbs/sent in or out (not exactly those numbers), then that's about it. Just press the volume rocker to highlight Recovery, and press the Power button to select it to follow from there. It may look like the command didn't do anything, but it actually temporarily replaced your recovery image. It is important that you follow through from there without booting into your phone. If you boot into your phone before installing the SU package, you will need to do step 6 again because the phone will reinstall its own recovery image on boot.
Ok, thanks for the advice. I will do my best and come back if I hit any snags.
did you get it
I actually got some help from a friend, but am still having trouble learning this stuff. Still looking for someone in Toronto that I can meet up with to show me how this platform works.

Need Help, No OS

Hi,
The N4 of my wife has big problem.
I wiped in "custom recovery" (TWRP) some stuff for return all in factory settings (this was stupid, I know)
Now, when she reboots on recovery, there is a message "No OS installed !"
How fix this, please ?
Edit: I tried with a toolkit, everything seems good, but when I boot, I have only the google screen.
Edit 2: I send with adb: image-occam-jdq39.zip, but when it failed when I try to install it.
Thanks.
https://developers.google.com/android/nexus/images#instructions
^^ negroplasty has given you the link to download the latest factory image. You can flash that to your phone no problem as long as you can boot into the bootloader (from off state, hold power + vol down)
Connect phone to pc, go to bootloader
Throw the image you want to flash to the same folder where your adb tools are
Open terminal, change directory to that folder
Then write: ./adb push EXACTNAMEOFROM.zip /sdcard/
Example of me trying to adb push Xylon
Then go to "Install" on your phone, sdcard, select the image, swipe to flash and that's it, hope this clears it.

How To Correctly Apply OTA Updates

I should ask for a sticky for this but these instruction will work EVERY TIME if you are running either custom recovery or Root.
You will need the latest adb/fastboot from google, you can either install the SDK or download any of the many smaller adb/fastboot and libs for your OS
You will need STOCK 4.4/4.3/4.2 recovery depending on what version of android you are currently on. Download the factory image from here. Open the zip within the package and pull out recovery.img and rename it stockrecovery.img
Copy your custom recovery to the adb folder name it twrp.zip or short name for whatever you are using I am using twrp.
You will need the correct OTA you are seeking to apply - rename it to something short simple and obvious - for this example I will use otaupdate.zip
If you wish to root get the latest patch (I believe its up to 1.75 now) and copy it to the adb/fastboot folder.
BACKUP YOUR DEVICE FIRST AND COPY IT TO YOUR PC
If you are already Rooted:
If you are using SuperSU - go to the application options and completely unroot and reboot if needed
BACKUP YOUR DEVICE FIRST AND COPY IT TO YOUR PC
If not rooted start here:
I am assuming most of you are Windows users. Open your file explorer and open the ADB folder.
On the left hand folder where ADB is located, press shift and right click the ADB folder and select "Open command window from here". This will open a command prompt window for you to run all your adb/fastboot commands from. This is the same folder where you copied your recoveries and updates to.
BACKUP YOUR DEVICE FIRST AND COPY IT TO YOUR PC
Copy your custom recovery and stock recovery to your adb folder
Copy and rename the OTA to the adb folder
Copy your root.zip patch to the /sdcard downloads folder (if you wish root)
>adb reboot bootloader - if you are already stuck in bootloop you can attempt >fastboot reboot-bootloader to run these steps
>fastboot flash recovery stockrecovery.img
>fastboot reboot-bootloader
Go into recovery and wait till dead droid appears
Press power and Volume Up at same time to go into the stock recovery menu
Using the volume buttons move and down the blue list of options and select: Apply update from ADB
You will now have orange text at the bottom of the screen - follow the instructions to side load by typing >adb sideload otaupdate.zip in your command prompt window
Wait and watch the progress, at this point you should see the ota processing steps of which there a few and will vary depending on the package. When its complete there will be a "install complete" or similar message
Reboot and let the update complete the system optimizations and go in validate your device is working and the version is what you wanted
>adb reboot bootloader
>fastboot flash twrp.zip
>fastboot reboot-recovery
Using your newly installed custom recovery you can now apply zips/root etc
Reboot as needed and update root if using older .zip to current binaries and enjoy your updated device.
And yes you only need to backup once prior to starting but many people skip that step -DON'T BE ONE OF THOSE PEOPLE.
Hopefully I've not missed a bit.
You can also use these same instructions if you're stuck in boot loop or applied a patch without first replacing stock or unrooting - just boot to bootloader using fastboot and replace recovery and apply the patches. This will usually work just fine and prevent much heart ache on your part.

[Install CM 12.1 Nightlies for Noobs] Updated 8/22/15

I'm creating this guide because other guides seemed quite out of date and a little complicated to unlock/root the phone, involving downgrading. However, this has been tested on firmware 2.20.40.59, but it should work on several older and newer versions.
I plan to make this guide as simple as possible.
1. Install USB Drivers + ADB/Fastboot:
Install this Intel Driver:
http://forum.xda-developers.com/zenfone2/general/intel-usb-driver-android-devices-1-9-0-t3105522
Install this ADB/Fastboot package:
http://forum.xda-developers.com/showthread.php?p=48915118#post48915118
Now REBOOT the PC! Don't skip this!
2. Unlock the bootloader:
Download the attached file in this thread.
http://forum.xda-developers.com/zenfone2/general/tool-one-click-bootloader-unlock-root-t3155884
Unzip the folder.
Connect phone to computer, and on the phone, enable developer settings ( Go to the "Settings">"About">"Software information">Tap "Build number" seven (7) times).
Go to "Settings">"Developer Settings">Check the box stating "USB Debugging".
On the computer, launch "unlock_one_click_v2.bat"
You should know you're unlocked if your spash/boot screen has inverted colors.
3. Flash TWRP:
Download the Un-tethered TWRP file
http://forum.xda-developers.com/zenfone2/development/alpha-tethered-twrp-asus-zenfone-2-t3123532
Open the folder the .img file is in, and rename the file to "twrp.img".
Hold the Shift button on your keyboard, and right click in the empty space of the folder you are in containing the twrp.img. You should be able to now click "Open Command Window Here".
On the phone (powered on), type "adb reboot bootloader".
After the phone reboots to fastboot, type "fastboot flash recovery twrp.img".
Reboot the phone to the normal OS.
4. Install the ROM & Gapps:
Download Gapps + ROM:
http://forum.xda-developers.com/zen...-unofficial-cyanogenmod-12-1-nightly-t3164144
http://forum.xda-developers.com/zenfone2/development/gapps-t3161271
Place them on your phone while its powered on normally.
On the computer, type "adb reboot recovery".
Create a nandroid backup at this point (https://www.youtube.com/watch?v=c7y0NpJ90JQ).
Now go to Wipe, and wipe everything except SD Card and Internal Storage.
Go back and click Install, and flash the ROM and Gapps file.
Reboot, and you are done!

Root S8 with Magisk failed.

Hallo,
I installed lineage-19.1-20230606-UNOFFICIAL-dreamlte on my SM-G950F and the NikGapps-basic-arm64-11-20210501-signed with TRWP.
The installation was successfull.
Then I tried to install no-verity-opt-encrypt-6.1.zip and Magisk with TWRP. It does end with error1.
Tried several ways to repair, but everything had failed.
Then I tried to root with that guidance:
https://www.rootmeguide.com/samsung-galaxy-s8-plus-rooting-guide-magisk/
Installed the magisk.apk
Installed Minimal+adb+fastboot+v1.4.3-stup on my PC.
I took the boot.img from the linage file.
Step 3: Flash Magisk patched boot image.
On the command line window, type the below command and hit Enter.
fastboot devices -> show no devices
Enter “adb devices”
List of devices attached -> ce12171c7a2eab4005 device
Enter “adb reboot bootloader”
Shows “Downloading … Do not turn off target
Enter “fastboot flash boot boot.img”
<waiting for any device> Nothing happened.
Can someone help?
If you flashed a custom ROM, then your device is already patched and rooted, at least in TWRP.
So you only need to download latest magisk.apk, rename it to magisk.zip and install it with TWRP.
Then reboot to system and wait 3 minutes. If you can't open the magisk app, then again rename to magisk.apk and install it. After that, just follow the instructions from the magisk app.
Custom rom install SPD Upgrade Tool ....checked better...working any zip refresh file ...if install together root acces etc...logic ? if the custom rom isnt rooted etc...+ almost present devices no sd update = no need twrp refresh because its working from the stock service menu etc...nowhere device specific refresh file etc..
PS: your problem : custom rom isnt rooted and not working twrp root ..

Categories

Resources