Showing posts with label Android Dev. Show all posts
Showing posts with label Android Dev. Show all posts

Friday, 8 April 2016

Fixing Updater Script Error [Yunique]

What is a updater script?


To install any ROM through a custom recovery, you need to have an updater-script. It’s basically a few lines of commands that tells your Android recovery what to do. These files are also widely used with Aroma Installer and other scripting engines, but of course everyone knows this already. However, a problem arises when you need to create your own updater-script from scratch, as it’s not always generated during the build process.

Most frequent error that I have seen is the "Updater script error"


To solve this:-

Extract the .zip package of the ROM

Go to META-INF >> com >> google >> android.

Then open "updater-script" binary in Notepad++.

Delete the first line. which says this:- 

assert(getprop("ro.product.device") == "YUNIQUE" || getprop("ro.build.product") == "YUNIQUE" || abort("This package is for device: YUNIQUE; this device is " + getprop("ro.product.device") + "."););


After this repack(add to archive) the contents of the folder extracted.

Note:- Add to zip archive and archive the contents of the folder not the folder directly.

Thursday, 7 April 2016

How to Handle BootLoops or Soft Bricks



How to know if there is a Bootloop?

Sometimes after you flash a ROM and reboot it takes much more time than usual to boot because it takes time to remake the cache and load into the memory all Apps. But when you see the Boot Animation for 5mins or more you should be sure that it is a bootloop. So Below is the way to handle such cases and its not a situation to panic. We can also term bootloop as SoftBrick. When you see that the ROM doesn't bootup after 5mins then you should turn off your phone otherwise if you leave your phone in the same state the SoC may heatup much more and may lead to damage the chipset.
So the first step that you should take is to turn it off. In Yu Yunique you can do this by two ways. Either hold Volume Up + Power Button otherwise hold Volume Down + Power Button. From these two ways any one of them must work.

Prerequisites:

  1. Download and install required USB Drivers on PC. Alternative.
  2. Install and setup ADB and Fastboot drivers – Windows | Mac.
  3. Unlock Bootloader on YU Yunique.

How to Defeat a Bootloop?

  1. After you turn off your phone. Boot into Fastboot mode by pressing and holding Volume Up + Power Button(For Yunqiue).
  2. Then Connect the Phone to PC. Note:- You must have had installed the Fastboot and ADB Drivers.
  3. Hold Shift and Right click on ADB and Fastboot Folder and Select 'Open Command Window Here' option.
  4. In Command Window, Type:- fastboot devices
  5. You must see some a combination of alphabet and numbers written on the screen that should show up. If not you must properly connect the device to PC, properly install the drivers and Reboot your PC and then try again.
  6. Then download CyanogenMod Recovery from the give link. Download
  7. Then Copy the file inside the ADB and Fastboot Folder and rename it to cmrecovery.img
  8. Type in Command Window:- fastboot boot cmrecovery.img
  9. Then After about 5sec you can see CyanogenMod recoery on your phone.
  10. From there Select: Wipe Data/Factory Reset > Yes.
  11. Then Select: Wipe cache partition
  12. Finally Click on: Reboot System Now.

Now ENJOY!! Finally the ROM will boot perfectly. If any other problem occurs then do not forget to notify me in the Comment Section Below **. 

Saturday, 26 December 2015

TUTORIAL dsixda's Android Kitchen (DeOdxing, and cooking roms)


CREDITS: The crew that made recovery possible, sammyz for his great unbrick stuffs, bard and anyone else who helped me firgue the updater out. dsixda kitchen for the awesome program and guides to use it.



Ok This is a tutorial to teach everyone step by step how to install, and use dsixda kitchen, on WINDOWS 7,8 for our LG Motions.

STEP 1. Download Java Jdk. Refer RIGHT back here for instructions.

STEP 2. Download dsixda kitchen. Refer RIGHT back here for instructions.

STEP 3. Download Cygwin. Refer RIGHT back here for instructions.

STEP 4. Install Java Jdk

STEP 5. [HIGH]1) Run the Cygwin setup.exe and select the defaults for the installation paths, such as:
- install from internet
- install to C:\cygwin

2) At the 'Select Packages' screen, go to the 'Search' box to look for the following package:
* gcc (found under 'Devel')
- Click on the '+' symbol at the section it's found under
- Then find this single package (only the one with this exact name, not multiple similarly-named ones!) and click 'Skip' once so that it changes to show a version number
Go back to the Search box and repeat the above steps for the rest of the packages:
* perl (found under 'Interpreters')
* cpio (found under 'Utils')
* util-linux (found under 'Utils')
* ncurses (found under 'Utils')
* zip (found under 'Archive')
* unzip (found under 'Archive')
* wget (found under 'Web')

3) Press Next to proceed installing these packages.
4) When installation has been completed, click on your new Cygwin desktop shortcut. This will open a terminal session that will run some initialization.
5) With the Cygwin terminal still open, we need to configure the path to the Java application so that it can be executed within Cygwin.
In the terminal, type the command 'java' (without quotes). If it says 'command not found', then read the below. Otherwise, skip this section.

First, make a backup of your .bash_profile file in case you make a mistake later in this procedure.
Enter the following in the terminal:
cp .bash_profile .bash_profile.backup

Next, find out where your java.exe file is and run the appropriate command to add it to your Cygwin path.
For example, my java.exe is found under C:\Program Files\Java\jre7\bin, so I had to type:
echo "PATH=/cygdrive/c/Program\ Files/Java/jre7/bin:\${PATH}" >> .bash_profile
Modify the command above so that it matches the actual path to your installed Java.
Remember to add a "\" character before any spaces in your path, as shown above.

Type the following so that the file gets loaded (you only need to do this once):
source .bash_profile
There should not be any errors displayed if successful.
(Otherwise, if you made an error in the .bash_profile file, restore your backup by typing: cp .bash_profile.backup .bash_profile, and then try the procedure again)

If done correctly, then when you type 'java' it should display some help information.

6) Your Cygwin is now ready for the kitchen![/HIGH]

STEP 6. Unzip and Rename the Kicthen Folder from: Andriod-Kitchen-0220 to: Kitchen to avoid errors

STEP 7. Copy kitchen folder to C:\Cygwin\home\username\ then type.
"cd Kitchen"

STEP 8. type ./menu and BOOM yer in the kitchen. now before you use this kitchen there are 3 things we need todo to get it working with your LG MOTION.


STEP 1. Install notepad++

STEP 2. navigate to kitchen folder then tools folder then edifydefs folder.

Create a file named l0 and put these contents in it.[HIGH]*LG MOTION

change_mnt=yes
param1=ext4
param2=EMMC
param1_sdcard=vfat
param2_sdcard=MTD
sys_mnt=\/dev\/block\/platform\/msm_sdcc.1\/by-name\/system
data_mnt=\/dev\/block\/platform\/msm_sdcc.1\/by-name\/userdata
cache_mnt=\/dev\/block\/platform\/msm_sdcc.1\/by-name\/cache
sdcard_mnt=\/dev\/block\/mmcblk0p1
boot_mnt=\/dev\/block\/mmcblk0p7[/HIGH] save with notepad++ exit.



STEP 3. after you have deoxed or cooked your rom you must open your updater-script found in /METAINF/COM/GOOGLE/ANDRIOD and replace it with this [HIGH]show_progress(0.1, 0);
format("ext4