All posts tagged android

Restore Amazon Fire HD 8

Fire 10 HD is a successor to the Fire HD from Amazon and comes with upgraded features. Besides serving as an eBook reader, it has all the features found in an Android device. Moreover, it comes with Android Lollipop firmware. As the tablet runs on Android OS, it can be manipulated and modified with custom ROMS and kernels. TWRP and bootloader unlock procedures are available for the Amazon Fire 10 HD 5th Generation and hence Android users can theme and mod their device or even flash a custom ROM on it. However, in the process, the device may get bricked and needs to be restored to stock firmware. A new software update is available for the Fire HD 10 (5th Generation). This update automatically downloads and installs on your device over the air; however, you can also manually download the software and transfer the update to your device via USB cable.

For those who have changed their system and want to revert back to stock firmware, here is a short tutorial that will take our device to latest available stock ROM on the Fire 8 HD from Amazon. Once you setup adb environment on your PC you are all set to flash the latest firmware for your device. Download the latest available update from the download section and issue the commands in cmd or terminal as instructed below.

This will also lock your bootloader and flash the stock recovery on your device. The guide involves the usual process of flashing the system image file issuing commands through command prompt or terminal. If you are new to this process, then here is a detailed tutorial.

So let’s begin.

Contents [hide]


How to Restore Amazon Fire HD 8 to Stock Firmware

This is another method to install stock firmware updates. To make this method work, you need to setup adb environment on your PC. You need to sideload the update manually to your system.


  • This tutorial is compatible with Amazon Fire 10 HD 5th Generation only. Do not try it on any other device.
  • Set up ADB and Fastboot on your computer. You can install the full Android SDK package from Google or get the quick adb and fastboot installer for Mac or Linux OS.
  • Install the latest USB Drivers on your computer. This is important to detect the phone.
  • Open Settings> Developer options and enable USB Debugging on your device. To enable developer options, tap the Build Number multiple times (approx. 7 times) in About Phone.
  • Allow OEM unlock from developer options, if available.

Installation Instructions

The hidden mode of Android 5.1 Lollipop called recovery should allow you to perform hard resetwipe cache partition or Android 5.1 Lollipop update. So follow the steps of recovery mode tutorial:

  1. Switch off the tablet by using the Power key.
  2. After that press and push Power key + Volume Up for a couple of seconds.
  3. If you see AMAZON logo let go of all buttons.
  4. Wait for a few seconds and you will be in Recovery Mode.
  5. Success! In this mode you can navigate by using Volume keys and confirm with the Power button.
  1. Switch off the tablet by using the Power key.
  2. After that press and push Power key + Volume Up for a couple of seconds.
  3. If you see AMAZON logo let go of all buttons.
  4. Wait for a few seconds and you will be in Recovery Mode.
  5. Success! In this mode you can navigate by using Volume keys and confirm with the Power button.
  1. Make sure you have setup ADB and Fastboot environment on your PC. Download the firmware package and place the file in the same directory where the adb is installed.
  2. Power off your device and keep it unplugged from your PC.
  3. Boot into stock recovery. To do so, press and hold volume down and the power button for 5-6 seconds. For an alternative method look at the bottom of these instructions.
  4. Now on the next screen, select the stock recovery option which will boot you into the recovery.
  5. Once into the stock recovery, select the option apply update from adb.
  6. Now plug in your device to the PC using a USB cable.
  7. Navigate to the location where your adb and fastboot is installed on your PC. While the folder with adb and fastboot files is open, right-click on an empty space and select “Open command window here” option to launch a command prompt window.
  8. Now check your adb connection by issuing the following command. It should return device information. Otherwise, you need to make sure your drivers are installed correctly.
    adb devices
  9. Issue the following command to install the firmware
    adb sideload update-kindle-
  10. This will flash the stock firmware update to your system. The last keyword is the name of the file. Make sure you either rename the file to a simpler one or type the name of the file as it is with the proper extension.
  11. Once the installation completes, reboot to system.

For Mac or Linux users, setup adb and issue the “./adb sideload update-kindle-xxxx.bin” command without quotes. Now that you have installed the stock firmware update, you can now enjoy the latest update on your device.

How to boot into stock recovery using adb and fastboot? 

Alternatively, you can issue an adb code to boot into recovery while your device is connected to the PC. Issue the following code.

Currently, we already have a thread for xpose module to help users to run mutiple Skype ID on their android here:…e-app-t2860388

I also followed that thread from October. However recently I just found out a small tip for who wants to run 2 skype id on same android device without xpose module.

1. Download and Install version from google play normally:…e.raider&hl=en.
(If you cannot access google play or you don’t have google play on your phone, just go to this thread:….php?t=2392504 to request apk file or use evozi’s website to download it)

2. Download and install version from skype China’s website. Because Google service is not availabe in China so Skype must publish a version for this market on their website.
Link for Skype China Website’s download page:

I checked the package name, one from GPlay is “” and one from Skype China’s website is “”. That’s the same method with the xposed module I mentioned (2 apps with 2 different package name) but it can be considered as official way from Skype 😛 and of course it’s more stable in my opinion

Hope this can be useful for users as me for using 2 skype ids at the same time. Of course if you want to run more than 2 id, using xpose module still works well. But for 2 ids, this is much easier.

Let me know if this doesn’t work for you! As per today, I am able to install to skype without any issues using this method.

I realize that much of this is common knowledge on XDA. Still, every day I see people post about how their phone “loses” 10% as soon as it comes off the charger. I also have friends who can’t understand why their battery drains so quickly. Trying to explain this to people without hard numbers is often met with doubt, so I figured that I’d actually plot it out with real data.

So it’s not a piece that is optimized for this audience, but I hope that you find it interesting.


Your Smartphone is Lying to You
(and it’s not such a bad thing)

Climbing out of bed, about to start your day, you unplug your new smartphone from its wall charger and quickly check your email. You’ve left it plugged in overnight, and the battery gauge shows 100%. After a quick shower, you remember that you forgot to send your client a file last night. You pick up your phone again, but the battery gauge now reads 90%. A 10% drop in 10 minutes? The phone must be defective, right?

A common complaint about today’s smartphones is their short battery life compared to older cell phones. Years ago, if you accidentally left your charger at home, your phone could still make it through a weeklong vacation with life to spare (I did it more than once). With the newest phones on the market, you might be lucky enough to make it through a weekend.

And why should we expect anything else? Phones used to have a very short list of features: make and receive phone calls. Today we use them for email, web surfing, GPS navigation, photos, video, games, and a host of other tasks. They used to sport tiny displays, while we now have giant touch screens with bright and vibrant colors. All of these features come at a cost: large energy requirements.

Interestingly enough, improvements in battery management technology have compounded the average user’s perception of this problem. Older phones were rather inelegant in their charging behavior; usually filling the battery to capacity and then switching to a trickle current to maintain the highest charge possible. This offered the highest usage time in the short-term, but was damaging the battery over the course of ownership. As explained at Battery University, “The time at which the battery stays at [maximum charge] should be as short as possible. Prolonged high voltage promotes corrosion, especially at elevated temperatures.”[1]

This is why many new phones will “lose” up to 10% within a few minutes of coming off the charger. The reality is that the battery was only at 100% capacity for a brief moment, after which the battery management system allowed it to slowly dip down to around 90%. Leaving the phone plugged in overnight does not make a difference: the phone only uses the wall current to maintain a partial charge state.

To monitor this, I installed CurrentWidget on my HTC ADR6300 (Droid Incredible), an app that can log how much electric current is being drawn from the battery or received from the charger. Setting it to record log entries every 10 seconds, I have collected a few days worth of data. While many variables are involved (phone hardware, ROM, kernel, etc) and no two devices will perform exactly the same, the trends that I will describe are becoming more common in new phones. This is not just isolated to a single platform or a single manufacturer.

Chart 1 shows system reported battery levels over the course of one night, with the phone plugged in to a charger. Notice that as the battery level approaches 100%, the charging current gradually decreases. After a full charge is reached, wall current is cut completely, with the phone switching back to the battery for all of its power. It isn’t until about two hours later that you can see the phone starts receiving wall current again, and even then it is only in brief bursts.

The steep drop in reported battery seen past the 6.5 hour mark shows the phone being unplugged. While the current draw does increase at this point (since the phone is being used), it still cannot account for the reported 6% depletion in 3 minutes. It should also be obvious that maintaining a 100% charge state is impossible given the long spans in which the phone is only operating on battery power.

Using the data from CurrentWidget, however, it is quite easy to project the actual battery state. Starting with the assumption that the first battery percentage reading is accurate, each subsequent point is calculated based on mA draw and time. Chart 2 includes this projection.

Now we can see that the 6% drop after unplugging is simply the battery gauge catching up with reality.

The phone manufacturers essentially have three choices:
1. Use older charging styles which actually maintain a full battery, thereby decreasing its eventual life
2. Use new charging methods and have an accurate battery gauge
3. Use new charging methods and have the inaccurate battery gauge

Option one has clearly fallen out of favor as it prematurely wears devices. Option two, while being honest, would most likely be met with many complaints. After all, how many people want to see their phone draining down to 90% while it is still plugged in? Option three therefore offers an odd compromise. Maybe phone companies think that users will be less likely to worry about a quick drop off the charger than they will worry about a “defective” charger that doesn’t keep their phone at 100% while plugged in.

Bump It. Or Should You?

One technique that has gained popularity in the user community is “bump charging.” To bump charge a device, turn it off completely, and plug it into a charger. Wait until the indicator light shows a full charge (on the ADR6300, for example, the charging LED changes from amber to green) but do not yet turn the device back on. Instead, disconnect and immediately reconnect the power cord. The device will now accept more charge before saying it is full. This disconnect/reconnect process can be repeated multiple times, each time squeezing just a little bit more into the battery. Does it work?

The following chart plots battery depletion after the device has received a hefty bump charge (6 cycles) and then turned on to use battery power. Note that the system does not show the battery dropping from 100% until well over an hour of unplugged use, at which point it starts to steadily decline. Again, however, it should be obvious that the battery gauge is not syncing up with reality. How could the rate of depletion be increasing over the first 5 hours while the rate of current draw is relatively steady? And why does the projected battery line separate from the reported levels, but then exactly mirror the later rises and falls?

The answer, of course, is that bump charging definitely works. Rather than anchoring our projected values to the first data point of 100%, what happens if we anchor against a later point in the plot?

Aligning the data suggests that a heavy bump charge increases initial capacity by approximately 15%. Note that the only other time that the lines separate in this graph was once again when the phone was put on the charger and topped up to 100%. Just as with the first set of graphs, the phone kept reporting 100% until it was unplugged, dropped rapidly, and again caught up with our projections.

So what does it all mean?

If you absolutely need the highest capacity on a device like this, you will need to bump charge. There are currently people experimenting with “fixes” for this, but I have yet to see one that works. Be warned, however, that repeated bump charging will wear your battery faster and begin to reduce its capacity. If you are a “power user” who will buy a new battery a few months from now anyway, this presumably isn’t a concern. If you are an average consumer who uses a device for a few years, I would recommend that you stay away from bump charging. The bottom line is that you don’t really “need” to do it unless you are actually depleting your battery to 0% on a regular basis.

If you are someone who can top off your phone on a regular basis, do it. Plug it in when you’re at home. Plug it in when you’re at your desk. As explained by Battery University, “Several partial discharges with frequent recharges are better for lithium-ion than one deep one. Recharging a partially charged lithium-ion does not cause harm because there is no memory.”[2]

Beyond that, the best advice I can offer is to stop paying such close attention to your battery gauge and to just use your phone. Charge it whenever you can, and then stop obsessing over the exact numbers. If you really need more usage time, buy an extended-capacity battery and use it normally.


1. When you to open “android-ndk-r10c-darwin-x86_64.bin” with “Archive” or other app.
2. Then you’ve got “android-ndk-r10c-darwin-x86_64.bin.cpgz”, OH! Crap it’s not extract but archive .bin to .cpgz extension.
Warning!! extracted file take more disk space up to 3.55 GB on disk
[Solution 1] recommended!!
1. open Terminal then type “chmod +x [path]/android-ndk-r10c-darwin-x86_64.bin” and press “Enter”, after that type only “[path]/android-ndk-r10c-darwin-x86_64.bin” and press “Enter” as below image.

After that Terminal was extract with 7-Zip SFX, as below detail.
7-Zip SFX 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=utf8,Utf16=on,HugeFiles=on,4 CPUs)
Processing archive: /Users/dtkad/Downloads/android-ndk-r10c-darwin-x86_64.bin
2. just wait process until Terminal show “Everything is Ok”

[Solution 2]

1. It’s too easy just rename by remove “.bin” if your non-extension file can be execute.
you should see it’s as execute file, check it by right-click and choose “Get Info”, you will see detail like below image.
2. double click on “android-ndk-r10c-darwin-x86_64” execute file or open with “Archive”,  so if you not see “Archive” in both Launchpad and Application folder, it should be here “/System/Library/CoreServices” like below image.
then the Terminal was run and execute file will do extract process, leave it run until it’s show message as below.


Everything is Ok
[Process completed]
3. Let’s see your extracted folder “android-ndk-r10c”, it’s contain in “Users” by default, for example my users is “poraweeraksasin” from step 2. name on bar, see below image.

If you want to split a Single Linear layout into a Two Columns(Like newspaper Columns). Here’s the layout for it. Use recursively as per your requirement:

        android:orientation="horizontal" >

            android:orientation="vertical" >

                android:src="@drawable/item" />



            android:orientation="vertical" >

                content here/>

                content here/>