FORUMS
Remove All Ads from XDA

[GUIDE] Allview P6 Quad

4 posts
Thanks Meter: 8
 
By viliam.pucik, Junior Member on 19th December 2013, 01:58 PM
Post Reply Email Thread
Allview P6 Quad (Romania) is a dual SIM phone based on MTK6589 chipset running Android 4.1.2. It is actually a clone of Gionee Dream D1 / GN878 (China) also know as Fly IQ444 Quattro / Diamond 2 (Russia) or Walton Primo X1 (India).

Click image for larger version

Name:	allview-p6-quad.jpg
Views:	1070
Size:	37.0 KB
ID:	2463682

1. Setup

All the below described activities such as backing up, flashing and rooting require the PC is able to recognize and communicate with the phone. In case of Windows this is achieved by installing Gionee MTK USB driver, see Software section. Backing up and rooting also require USB debugging enabled on the phone via System settings -> Developer options -> USB debugging:

2. Backing Up

It is highly advised to create an initial ROM backup by MTK Droid Tools before doing any phone modifications.
  1. Make sure Gionee MTK USB driver has been installed and the phone is powered up with USB debugging enabled and connected to the PC.
  2. Run MTKdroidTools.exe.
  3. In case the phone has not been rooted yet then press ROOT button and after an access to the phone is successfully obtained the application automatically offers initial backup option. Otherwise press Backup button in root, backup and recovery tab to start the backup manually.
  4. After couple of minutes backup files are placed into backup directory.

3. Flashing

Restoring a custom, stock or any ROM for MTK based devices can be done by SP Flash Tool, see Software section. The tools works in two modes:
  • Download: A little bit misleading name as it actually does ROM upload. For partial or complete ROM flashing of the same Android version. Useful for restoring the base system, user settings, boot logos or installing an alternative recovery (CWM or TWRP) image.
  • Firmware Upgrade: For complete ROM flashing when fixing a completely bricked device or doing Android upgrading or downgrading using stock ROM or one of cloned phone ROMs.
A ROM consists of the following files. Only some of them should be selected for download mode flashing.
  • RELOADER, UBOOT, SECRO: Device and Android version dependent files. Should NOT be selected for download mode flashing as it may brick the device.
  • MBR, EBR1, EBR2: Disk layout information.
  • LOGO: Startup logo and battery charging animation.
  • BOOT: Linux kernel and initial RAM disk partition.
  • RECOVERY: Recovery kernel and initial RAM disk partition.
  • SYSTEM: System files and factory applications.
  • CACHE: Cache of mostly used applications.
  • USERDATA: User settings and non-factory applications, usually downloaded from Google Play Store.
Stock ROM contains only empty CACHE and USERDATA partitions, selecting them will actually clean the cache and user data.

3.1. Flashing - Download Mode
  1. Make sure Gionee MTK USB driver has been installed and the phone is powered DOWN and NOT connected to the PC.
  2. Run Flash_tool.exe.
  3. Enable Options -> USB Mode.
  4. Open File -> Open Scatter-loading File and select MT6589_Android_scatter_emmc_PMT.txt.
  5. Select only the necessary ROM files that should be restored.
  6. Press Download button.
  7. Then connect the powered down phone to the PC.
  8. The tool should automatically detect the phone presence and start firmware flashing.
  9. After couple of seconds a green circle is displayed after the process successfully ends.
3.2. Flashing - Firmware Upgrade Mode
  1. Make sure Gionee MTK USB driver has been installed and the phone is powered DOWN and NOT connected to the PC.
  2. Run Flash_tool.exe.
  3. Enable Options -> USB Mode.
  4. Open File -> Open Scatter-loading File and select MT6589_Android_scatter_emmc.txt.
  5. Select all ROM files for restoration. In case some of them are missing then double click on them and select corresponding files from disk:
    Click image for larger version

Name:	allview-p6-quad-firmware-upgrade.png
Views:	3081
Size:	11.0 KB
ID:	2463357
  6. Press Firmware Upgrade button.
  7. Then press and hold VOLUME UP phone button and connect the powered down phone to the PC.
  8. The tool should automatically detect the phone presence and start firmware flashing. VOLUME UP button can be released.
  9. After couple of minutes a green circle is displayed after the process successfully ends.
3.3. Flashing - Firmware Upgrade Mode - MIUI ROM

There is MIUI ROM (alternative Android distribution with beautiful, iOS like user interface) attached in Software section containing all bits and pieces to easy upgrading process from the default Allview Android 4.1 firmware. The ROM integrates:
  • Android 4.2.x ready bootloader and partition layout taken from hardware compatible Walton Primo X1 ROM (http://www.waltonforum.com/index.php/topic,3590.0.html).
  • Original Allview boot logo.
  • Helpful deepak2111's TWRP recovery image.
  • Excellent RickyGoldsmith's MIUI port for hardware compatible Gionee Dream D1 / GN878 phone.
  • Valuable stas2z's OTA patches up to MIUI v3.12.15. The latest v3.12.21 patch was not integrated deliberatively as it causes screen locks during the initial setup wizard screen when the phone is firstly started from factory mode. The patch can be applied separately without any issues after the initial setup wizard is completed.
  • Small modifications of /system/build.prop to enable software keys (qemu.hw.mainkeys=0), preselect English language mutation (instead of Russian), preselect Central European Time zone (instead of Moscow) and change phone model name to Allview P6 Quad (instead of GiONEE Dream D1).
ROM should be flashed using SP Flash Tool running in Firmware Upgrade mode following the steps described in previous section.

Click image for larger version

Name:	allview-p6-quad-boot-logo.png
Views:	1799
Size:	4.2 KB
ID:	2469840Click image for larger version

Name:	allview-p6-quad-miui-screen.png
Views:	1951
Size:	209.2 KB
ID:	2469924Click image for larger version

Name:	allview-p6-quad-miui-version.png
Views:	1401
Size:	51.1 KB
ID:	2469925

4. Rooting

Rooting a phone is enabling root (administrator, superuser) access to the device useful in cases where modifying of protected system files and applications is required. For example this allows Mobile Uncle application to tweak various settings of MTK based devices or allows AdAway application to block advertisement sites.

Android by default does not expose root access so a special exploit for particular Android version needs to be used which achieves user privilege escalation and places su binary and one of superuser management applications such as Superuser (open source) or SuperSU on the device. One of popular exploits which can be used for Android 4.1 is Motochopper, see Software section.
  1. Make sure Gionee MTK USB driver has been installed and the phone is power up with USB debugging enabled and connected to the PC.
  2. Run run.bat (Windows) or run.sh (Linux) to start the rooting.
  3. The phone reboots automatically after the process successfully ends.

5. Booting

The phone supports three booting modes:
  • Normal: Simply by pressing POWER button the device boots into Android.
  • Recovery: Pressing and holding POWER and VOLUME UP buttons for a while enters recovery boot mode enabling backing up and restoring of user settings and cache wiping.
  • Factory: Pressing and holding POWER and VOLUME DOWN buttons for a while enters factory boot mode used mainly for running various hardware tests but can be used to recover from "touchscreen not responding" issue.
Long pressing of POWER button acts as a reset and powers down the device gracefully.

6. Theming

The phone comes with several theme skins which change the look of vendor applications such as Phone, Contacts, Messaging, Clock, Calendar, Calculator and others. Theme skins are are ZIP archives with *.gnz suffix located directly in /system/app or in SD card's Theme directory.

To create or modify a theme skin simply download and extract one of vendor provided theme skins. A theme skin archive can optimally contain various application launcher icons, icon backgrounds (located in /others/bottom), mapping files and mandatory since.properties file, which can be empty, and language.properties file which specifies name of the skin and various applications skin properties. In case application specific skin property is missing then system skin property value is used instead. Its value as as well as application skin property value can be one of the followings:
  • 0: Transparent background.
  • 1: White background.
  • 2: Dark background.
There are two custom theme skins linked in Software section: Minimal and Black. Both of them set dark applications skin, do not use any custom application launcher icons or icon backgrounds effectively restoring native applications look. The first skin restores the default phone background, the second one sets a plain black wallpaper.

Click image for larger version

Name:	allview-p6-quad-theme-minimal.png
Views:	1257
Size:	128.3 KB
ID:	2465279 Click image for larger version

Name:	allview-p6-quad-theme-black.png
Views:	1112
Size:	10.7 KB
ID:	2465280

7. GPS

Refresh outdated AGPS (Assisted GPS) caching files and enable EPO (Extended Prediction Orbit) cache to speed up GPS TTFF (Time to First Fix):
  1. Make sure the phone has been rooted and is connected to the Internet.
  2. Install a root file manager such as Root Browser application or use adb shell to remove the following files:
    • /data/misc/ARC.BIN
    • /data/misc/BEE.BIN
    • /data/misc/mtkgps.dat
  3. Install and launch Mobile Uncle application.
  4. Enable EPO via Engineer Mode -> Engineer Mode ( MTK ) -> Location -> Location Based Service -> EPO -> Enable EPO.
  5. Then press EPO button or optionally enable Auto Download option to initiate download of the latest EPO file.
  6. Navigate back to YGPS section as this will initiate AGP cache refreshment.
  7. After couple of seconds a satellite map should display and location fix should arrive:
    Click image for larger version

Name:	allview-p6-quad-ygps.png
Views:	963
Size:	30.0 KB
ID:	2463701
  8. At this point connection to Internet can be disabled as all AGPS and EPO caches have been warmed up and GPS can function on its own.

8. Software
The Following 4 Users Say Thank You to viliam.pucik For This Useful Post: [ View ] Gift viliam.pucik Ad-Free
 
 
21st December 2013, 10:34 PM |#2  
Junior Member
Thanks Meter: 1
 
More
Hi
Great work here, thank you..
Please tell me.., did you test any of the clone phone roms?
like http://forum.xda-developers.com/show....php?t=2300818

Thank you
21st December 2013, 11:40 PM |#3  
viliam.pucik's Avatar
OP Junior Member
Thanks Meter: 8
 
More
Thanks

Yes, I am testing that particular RickyGoldsmith's MIUI ROM - very nice work. It is a little bit tricky to put it on the phone as it is Android 4.2.x based which requires a different bootloader code and partition layout than P6's Android 4.1x default has. Here is how I "managed" to put it on my P6:
  1. Place MIUI42-D1.zip and miui_ota_iq446_stas2z_3.10.4_3.10.12_e3209310ae_4. 2 on SD card upfront.
  2. Download Android 4.2.x based Walton Primo X1 ROM (http://www.waltonforum.com/index.php/topic,3590.0.html).
  3. Replace Primo recovery.bin file with GIONEE_TWRP_2500_42 recovery image (http://forum.xda-developers.com/showpost.php?p=43039979).
  4. Optionally replace Primo logo.bin (white background) with Allview logo.bin (black background).
  5. Upgrade the phone with Walton Primo X1 ROM, GIONEE_TWRP_2500_42 recovery image and Allview logo.bin.
  6. After successful flashing boot the phone into recovery mode by pressing POWER+VOLUME UP.
  7. In TWRP install MIUI ZIP archives stored on SD card.
  8. Still in TWRP press Mount and make sure Data and System partitions are checked.
  9. Still in TWRP connect to the phone from PC via adb shell and recreate missing directories:
    Code:
    mkdir -p /data/media/0
    chmod 770 /data/media
    chmod 770 /data/media/0
    chown media_rw:media_rw /data/media
    chown media_rw:media_rw /data/media/0
  10. Enable software keys by editing /system/build.prop and setting qemu.hw.mainkeys=0. For example download the file locally (adb pull /system/build.prop), change it and upload it back (adb push build.prop /system).
  11. Then restart the phone and enjoy MIUI startup
  12. It may take it couple of minutes to finish the initial boot so don't be surprised. The next ones will be faster.
That said still couple of trial and errors might follow to boot into MIUI successfully so a good thing is to have the phone connected to the PC with log running (adb logcat *:W) to see what is failing. Usually wiping Dalvik cache via TWRP and doing couple of more reboots sort things out.

Hope that helps and soon Marry Christmas
The Following User Says Thank You to viliam.pucik For This Useful Post: [ View ] Gift viliam.pucik Ad-Free
22nd December 2013, 10:16 AM |#4  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by viliam.pucik

Thanks

Yes, I am testing that particular RickyGoldsmith's MIUI ROM - very nice work. It is a little bit tricky to put it on the phone as it is Android 4.2.x based which requires a different bootloader code and partition layout than P6's Android 4.1x default has. Here is how I "managed" to put it on my P6:

  1. Place MIUI42-D1.zip and miui_ota_iq446_stas2z_3.10.4_3.10.12_e3209310ae_4. 2 on SD card upfront.
  2. Download Android 4.2.x based Walton Primo X1 ROM (http://www.waltonforum.com/index.php/topic,3590.0.html).
  3. Replace Primo recovery.bin file with GIONEE_TWRP_2500_42 recovery image (http://forum.xda-developers.com/showpost.php?p=43039979).
  4. Optionally replace Primo logo.bin (white background) with Allview logo.bin (black background).
  5. Upgrade the phone with Walton Primo X1 ROM, GIONEE_TWRP_2500_42 recovery image and Allview logo.bin.
  6. After successful flashing boot the phone into recovery mode by pressing POWER+VOLUME UP.
  7. In TWRP install MIUI ZIP archives stored on SD card.
  8. Still in TWRP press Mount and make sure Data and System partitions are checked.
  9. Still in TWRP connect to the phone from PC via adb shell and recreate missing directories:
    Code:
    mkdir -p /data/media/0
    chmod 770 /data/media
    chmod 770 /data/media/0
    chown media_rw:media_rw /data/media
    chown media_rw:media_rw /data/media/0
  10. Enable software keys by editing /system/build.prop and setting qemu.hw.mainkeys=0. For example download the file locally (adb pull /system/build.prop), change it and upload it back (adb push build.prop /system).
  11. Then restart the phone and enjoy MIUI startup
  12. It may take it couple of minutes to finish the initial boot so don't be surprised. The next ones will be faster.
That said still couple of trial and errors might follow to boot into MIUI successfully so a good thing is to have the phone connected to the PC with log running (adb logcat *:W) to see what is failing. Usually wiping Dalvik cache via TWRP and doing couple of more reboots sort things out.

Hope that helps and soon Marry Christmas

Many many many thanks
Can't get this to work...
What scatter file should i load? primo's or allview's ?
Should i hit Download or Firmare upgrade?
Also. What doesthis error mean?

Thanks again for helping me
23rd December 2013, 09:54 AM |#5  
viliam.pucik's Avatar
OP Junior Member
Thanks Meter: 8
 
More
subject urcharia
I have just uploaded MIUI ROM for P6 Quad, feel free to give it a try

Recently I run into a similar issue as seen on your screenshot but not sure it it was really BROM ERROR : S_BROM_DOWNLOAD_DA_FAIL (2004). In my case SP Flash Tool detected the phone but was not doing any data transfers. Seems like resetting the phone by long pressing POWER button resolved it.
The Following 2 Users Say Thank You to viliam.pucik For This Useful Post: [ View ] Gift viliam.pucik Ad-Free
23rd December 2013, 07:55 PM |#6  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by viliam.pucik

I have just uploaded MIUI ROM for P6 Quad, feel free to give it a try

Recently I run into a similar issue as seen on your screenshot but not sure it it was really BROM ERROR : S_BROM_DOWNLOAD_DA_FAIL (2004). In my case SP Flash Tool detected the phone but was not doing any data transfers. Seems like resetting the phone by long pressing POWER button resolved it.

Can't get it work..
Same error every time (2004) with 4.2.1
Restoring your 4.1.2 backup works fine though.
I did try another version of sp tools, no success so far

EDIT: strike that - i was using a virtual machine - not ok it seems. Using a PC it worked fine.
This is fracking greaaat.

I'll edit it with impressions:
- camera captures much darker photos than stock + videos are awfully dark (edit. on phone only - on pc they are ok - display driver issue?)
- can't get both rds internet and orange to work. Well i can't unlock orange 50% of the time without restart (edit: this issue happens only if updating to latest miui, on fresh install it is fine).
- google play store keeps crashing, and when it works its chinese and requires some chinese account. Did i say chinese enough times? lol Edit: this i believe is caused because the phone id in build.prop is messed up.
- apps inside not very friendly (CH) - i have no idea how to remove them..
edit: - interface is much slower than stock - needs tweaks...viliam?
- love the idea of OTA updates and miui site backup.

My verdict -very nice IOS looking, slower interface than stock, still the same damn error for IGO just like in stock that got me looking for something else: Out of memory. Requested 1701978227. Cache 0

Once again... big THANK YOU viliam.pucik, and Merry Christmas !
25th December 2013, 06:57 PM |#7  
viliam.pucik's Avatar
OP Junior Member
Thanks Meter: 8
 
More
Welcome sama7896

I am sorry about the camera and apps

Quote:
Originally Posted by sama7896

- camera captures much darker photos than stock + videos are awfully dark
- can't get both rds internet and orange to work. Well i can't unlock orange 50% of the time without restart.
- google play store keeps crashing, and when it works its chinese and requires some chinese account. Did i say chinese enough times? lol

  1. Regarding camera I suppose HDR mode or some filters are disabled by default in MIUI ROM and enabled in stock, maybe that causes darker images in MIUI ROM.
  2. My assumption was that MTK chipset supports 3G service (aka mobile Internet) fully only for SIM in the first slot which could explain why it works only for one mobile provider.
  3. Do you by any chance use Market app (an orange icon with MI letters on it) instead of real Google Play Store? That could explain seeing Chinese apps.

Hope that helps.
The Following User Says Thank You to viliam.pucik For This Useful Post: [ View ] Gift viliam.pucik Ad-Free
24th January 2014, 06:35 PM |#8  
Junior Member
Thanks Meter: 1
 
More
Hi again
I started messing again with the roms, i like the walton primo 4.2.2 (modified with your instructions), i will try it and post any bugs
BTW, you were right... 3g card works fine only on first slot; on stock rom it worked fine on second slot. Plus i had to set the access point APN for RDS as pointed in this post (for some reason there was no profile by default).

Review for the walton primo X1 4.2.2 rom:
Rooting is done with Framaroot-(IMU)1.6.1.apk
Camera - lots of options, pictures are great. Full HD recording works.
Gestures dont work - did not need them anyway.
Occasional lag when returning to home screen - not very bothering edit: fixed -freed up some space on system partition.
Wireless input devices work - I tested a bluetooth mouse and a BT keyboard.
Did not have a smart 2 view to test it (should work as it is a miracast copy and android 4.2.2 specifications say it should pe supported).
All other apps included work beautifully. Very clean and well done rom.

There is a color rom but it requires a 800 mb partition. My current system partition is listed as 660,3 mb and it is 99% full. How can i modify the size?

More important question - is there any way to enable OTG cable functionality ? That is all that is missing now. I know the usb connection is not power enabled, tried with a hub powered externally but still no go. USB host mode is enabled in the kernel it seems (?).

edit2: i finally found the problem with igo: it only works if not rooted. gps accuracy is awfull!
18th March 2014, 07:37 PM |#9  
Junior Member
Thanks Meter: 1
 
More
kitkat flavour?
hi again..
can you use this kernel for a kitkat rom?
http://www.gizmochina.com/2014/03/10...t6589-chipset/

credit: ahmyani
http://forum.xda-developers.com/show....php?t=2677573
12th November 2014, 04:33 PM |#10  
Junior Member
Thanks Meter: 0
 
More
gps sure fix
I have this phone and i always had problems with gps.
Finnaly i found the gps fix.Pretty easy though.
Root your phone with framaroot or droid tools, then install this app: MT GPS EPO FIX
And thats all. You should be able to use your gps propely after rebooting your phone.
1st June 2015, 11:34 AM |#11  
Junior Member
Flag Bucharest
Thanks Meter: 1
 
More
Upgraded to MIUI-4.9.12
Hi,

First of all, thanks for this awesome guide. I've finally got bored of my Allview P6 Quad's stock rom (JB 4.1.2) and decided to give the MIUI one a try (wanted to do this from last year but was afraid of bricking it).
So I've did a full "Firmware>Upgrade" as described in this guide with the MIUI 3.12.15 rom. It did not boot up properly the first times, but after 2 "hard" restarts (holding down the lock button) , it worked.
As mentioned above, it has some bugs like the Googla Play Store crashing, this being the most important thing for me as I did not wanted to use the chinese market. I tried several ways to fix it, like installing GApps , but it was useless.
The only thing which made it work was to upgrade with a patch from MIUI's website, which brings the rom to version 4.9.12.

To do this, I have folowed this guide (first method) and grabbed the patch from here.
I also had to set my IMEI using this guide and repair the APN for Vodafone RO with these settings.

As a review, I am using this rom since a day and everything works well. These are the things I like most:
- Play Store fully working (the chinese market is absent)
- Walkman Equalizer preinstalled (makes my big headphones usable with my phone, could not get anything to sound this good using other apps with stock rom)
- Titanium Backup Pro and OfficeSuite Pro preinstalled
- powerful security center, also some nice cleanup and monitoring tools
- nice UI, pretty responsive (a bit of lag in some cases, but does not bother me)

I also tried enlarging the Apps partition using these instructions, but it bricks my phone as soon as I open and apply the 2.5GB/4GB patch (I cannot wipe or restore rom from TWRP, it fails on mounting the "emmc" partition) and I have to start all over and reflash the phone. Also noticed that after reflashing again with MIUI rom, it boots up properly from first try .... strange.
I have quit trying this mod and will use link2sd as this is too risky.

P.S: I've almost bricked my phone in this journey, follow my steps at your own risk.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes