Android Drivers
Android Drivers

Few months ago I bricked my Tablet while I was using new CWM recovery to get new custom ROM, I didn’t know much then but then my tablet got stuck in boot loop and it was bricked. I tried every show in Kathmandu, New Road but no one could fix it. After 1 week deep search on internet I found the manufacturers site and downloaded and re-flashed the firmware. You can read here how I unbricked Allwinner tablet AD701. Everything worked but the WiFi didn’t work and it didn’t start. The WiFi button would just get to on and show “Turning On” and then again get off so the WiFi was broken. I have seen many people with same problem, some with G-sensors and some with camera problem.They said that a code can fix this by dialing it on dial pad but my tablet didn’t have any dial pad so I searched a lot and found solutions in expert forum and discussion. They said that the driver didn’t load so I have to root the tablet and load the WiFi using Android Terminal Emulator. 

1) Root the device

2)Install Terminal Emulator

3)Use the following codes:

Advertisement

——————————————————

su(Enter)

insmod /vendor/modules/8188eu.ko(Enter)

——————————————————

4)Now go to settings and turn on wifi. Sometime it may get stuck but a restart will do the trick

(8188eu.ko) is the driver modules for Android device.

I did this process for around 7 months but it was getting frustrating. So I found the final solution and that was to edit the kernel files. This process can be used to fix broken driver for any drivers. You must know the drivers well.

See the below list to confirm and find which drivers you need

WiFi drivers:

8818eu

bcm4330

Audio drivers:

sndi2s

Camera drivers:

gt2005

hi253

hi704

mt9d112

mt9m112

mt9m113

ov2643

ov2655

ov5640

ov7670

sp0838

Gsensor drivers:

dmard06

bma250

mxc622x

Ts drivers:

ft5x_ts

mma7660

goodix_touch

gt818_ts

zt8031

goodix811

gt2005

Now that we have figured out which driver we need, we can proceed further. In this case we need 8188eu.ko for WiFi. The main and basic problem is the script that orders the device to load drivers doesn’t have the command to load the required or specific driver and all we do is add that code. I figured it out all be myself and I tried to edit it using File explorer and Text editor but after restart the saved file would again reset because the script isn’t meant to be edited that way. It can only be edited by pulling it out and can be only installed by flashing.

1)Install Android SDK and run ADB shell and enable USB Debugging on Android device.

Installation Directory
Installation Directory

Installing ADB and run ADB shell:

1) Extract the folders from downloaded archive file. Download from Android Development Site of Google.

2)To make it easy copy the folder into root C:

3)Run adb shell from command

4) You need to find folder named “platform-tools”

Suppose the folder containing folder “platform-tools” is “sdk” and it is in “adb” which is in C:

5) Run Command (CMD)

————————————————–

Type “cd..” as many times required to get to root directory such as “C:”

Follow these commands to start the shell if you have things as in example

——————————————————-

cd..

cd..

cd adb

cd sdk

cd platform-tools

adb

adb shell

su(If required for super user permission)

———————————————————–

Pull the boot.img file

——————————————————————

adb shell

cat /dev/block/nandc > /sdcard/dump/boot.img

(Control+C)

adb pull /sdcard/dump/boot.img *Local Directory*

——————————————————————–

3)Copy the boot.img to your computer

4)Install Boot Repacker. Thanks to developer

5)Extract the contents

6)Edit “init.sun5i.rc” or “init.sun4i.rc” or “init.sun.rc” which ever you have. This file will include instructions such as “insmod /system/vendor/modules/8188eu.ko” Under Network

7)In the case for WiFi edit the file using Notepad++ and add the new line “insmod /system/vendor/modules/8188eu.ko” and save it.

8)Repack the boot.img and copy it to SD Card root directory.

9) Re-Flash the boot.img file

————————————————————

cat /sdcard/boot.img > /dev/block/nandc
----------------------------------------
Voila the broken driver problem will be fixed permanently.
If there is any problem then drop a comment in the section below. We will try to help.

Leave a Reply