Showing posts with label Android device. Show all posts
Showing posts with label Android device. 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

Monday, 10 October 2011

Overclocking Your Android msm7k Device


This patch applies to many android devices.

Overclock6ing msm7k has been supported on wince devices'  linux port for a long time now. (months for msm720xa, and maybe even more for 720x and 750x, I haven't see the details). So it's the same idea that has been implemented here. Making it work was more difficult than for wince devices, because the radio software is way too clever on android. Still, we got past this difficulty, and it works.
It's actually even better than what ToAsTcfh actually got, he posted only older results which were bottlenecked at 620MHz, now this patch provide users with a 710MHz frequency.
And it should work for all msm7x0xa devices. (so that makes almost double speed for stock G1 ).
For people who wants even more overclocking, you can change the values:
the writel(0x25, ......) line,
This value is the multiplier from 19.2MHz to cpu frequency, 19.2MHz*0x25=710.4MHz
You can change it to whatever value you want, but the higher limit seems to be around 750MHz.
If you want to play with mem values, edit the line:
[code="C++"""""]{ 528000,6 ACPU_PLL_2, 2, 1, 132000, 3, VDD_7, 160000, 0, 5, -1 }[/code]
Change the 3 after 132000, it's the divisor of memory compared to cpu frequency, -1 (with default settings, it's 132MHz=528MHz/(3+1)
The patch is attached, and also available at http://htcandroid.xland.cz/oc.diff.txt
Basically, all devices from HTC from before 2009 should be supported (all versions of G1, G2, G3), LG GW620, samsung galaxy, and many others.

To newbies: To get this patch working, you need to build the linux kernel for your phone. Basically, wait for you rom modder to do it.
READ MORE - Overclocking Your Android msm7k Device