Showing posts with label Firmware Galaxy download. Show all posts
Showing posts with label Firmware Galaxy download. Show all posts

Thursday, 13 October 2011

Unroot (almost) All Android Devices (simplified)



Firstly, in order to unroot your android device, you need:
1) An update available for your phone or an old nandroid backup that has a previous version of your phone android version
2) A nandroid backup done before you attempt the following steps below
Once the above conditions are met, you are ready to UNROOT your phone!
Before you read the procedure, read how it works
below and get a better picture:
HOW
Firstly, one known method of unrooting is to install an available system update. However, stock updates are signed with official keys and custom recoveries only accept updates signed with their custom keys.
So, to unroot, you need to have stock recovery installed. One way to get your phone`s stock recovery back is contained in the update zip.
The update zip is the key, literally. Look through it and you will find (usually in the system folder) a file called recovery.img, which will be used as your new stock recovery.
By flashing in the image into recovery, you can now install updates, keep your previous applications, enjoy being unrooted and updated.
There are other unroot options that tailor to specific android phones and versions, but this solution should work on all android phones.
Why unroot? Because sending in a rooted phone for repair will void your warranty. Also, by having a rooted phone, you run the risk of a rogue rooted application that does unwanted stuff to your phone.
PROCEDURE
Step 1)
If you still have your original stock recovery that came with your phone, continue. Else search for my previous thread: "[RECOVERY] Reverting to original(STOCK) recovery" and follow the steps there. You can use the update file you used to revert to stock recovery here as well or vice versa
Step 2)
Reboot you phone
Step 3)
Check for system updates and download them
Step 4)
Wait until phone reboots. All your applications and user settings will be retained.
Step 5a)
Open up a terminal emulator on your phone and enter "su" (Check if unroot)
Step 5b)
If you cant turn your phone on to check if unrooted, boot into recovery mode, open up adb enter:
[Code="c++"]
adb shell
su
[/code]
Step 6)
If you get "permission denied" or something like that from step 5a/5b,
CONGRATULATIONS! YOUR PHONE HAS BEEN SUCCESSFULLY UNROOTED!
Step 7)
If you don`t want to void your warranty, you should unistall applications that require root, especially Superuser
To date, I have rooted and unrooted my phone (Backflip) 3 times without any problems. In case your phone can`t be booted up, only to the bootloader or recovery, DO NOT WORRY! You can use the adb (android debug bridge) to flash in the stock recovery, push/pull the updates and reboot the phone into recovery mode or normal mode!!!
Useful ADB commands
Reboot Phone
[Code="c++]
adb shell
reboot
[/code]
Reboot Phone into recovery mode
[Code="c++]
adb shell
reboot recovery
[/code]
Flash a new recovery image temporarily (resets when rebooting)
[Code="c++"]
adb shell
flash_image recovery /sdcard/recovery.img
[/code]
Flash a new recovery image that does not reset when rebooting
[Code="c++"]adb shell
flash_image recovery /sdcard/recovery.img
exit
adb shell
cd system
su
mount -o rw,remount /dev/block/mtdblock1 /system
rm recovery.img
mount -o ro,remount /dev/block/mtdblock1 /system
exit
exit[/code]
Push file to sdcard
[Code="c++]
adb push file.blah /sdcard/file.blah[/code]
Push file to sdcard
[Code="c++"]
adb pull /sdcard/file.blah file.blah[/code]
Here`s wishing you good luck and a belated happy new year!
READ MORE - Unroot (almost) All Android Devices (simplified)

Unpack/repack .apk Files


This tutorial is about how to unpacking and repacking .apk files. Intended for people who don't want to mess with Command Prompt, or for those who want to do it in graphical user interface.
Requirements:
-An archive manager, such as WinZip, WinRar, or Power Archiver, that is capable of extracting and making .rar archives
-Formatter .  Click to download

How to unpack .apk files:

1. Open Formatter (Are you already have it downloaded and installed on your computter?)
2. Click the "Choose File" button and choose your apk file. Then, in the first text box, enter ".rar" (without quotes). After that, enter your desired name for your .rar archive and click the big "Rename!" button
3. Go to the folder where your .apk file was. You should see a .rar archive, named by the name you entered in Formatter. Extract it with your archive manager

How to repack .apk files:

1. Compress the extracted files in a .rar archive (compress them normally like any other archive)
2. Open Formatter
3. Choose the .rar archive you made a minute ago
4. Set the format to .apk
5. Set the name to whatever you want
6. Click the big "Rename!" button
READ MORE - Unpack/repack .apk Files