yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] :
Thank you! Take care and can you post here back that test 10 to not build three tests untill I found the right one :)

I created three folders with tests (ctr, cwm and twrp) and I don't know how but I have a cwm test 10 in each ...
[Upgrading, Modifying and Unlocking] ghost45:
Carliv ,

read again my last post and look carefully the screenshots!

My phone is clear!

Every test i flash all the firmware because i make all tests with the clear rom no old folders!
[Upgrading, Modifying and Unlocking] :
Then must be something wrong with time stamp because I see there only January first, and we are in 3 now...
[Upgrading, Modifying and Unlocking] ghost45:
After Flash i found everytime new wrong date.
[Upgrading, Modifying and Unlocking] :
:p My nickname should be "Sorry, you are limited to 8 thanks per day" lately. I don't know why I'm so blocked :confused:

OK, Let's finish this! I hope you guys understood that for this phone, for cwm and ctr the internal sdcard will be seen as I explained here. It won't be "emmc" or "internal_sd" or something... First two tests are made to recreate the old test 10 (since I didn't knew exactly which one was, I pick up two of them very similar - only a trailing "/0" different in same place). The third test is made respecting the instructions from google for emulated storage. I tried yesterday countless times, as you know, to remap internal legacy card to /storage/sdcard0, but that didn't worked - I gues if it was possible it would be included in google informations - the symlinks became redundant. So you have to accept it as emulated/legacy.

I built a twrp test too. For twrp using /data/media sdcard, you should read this page and this one. And I corrected the CPU temp path Thanks to [MENTION=3419562]Snoopy2006[/MENTION].

Starting again:

CWM test 1

CWM test 2

CWM test 3

TWRP test 1

+

2 more twrp

TWRP test 2 <<< with "/data/media"

TWRP test 3 <<< with "/data/media/0"

Now there are final builds on page 35.

Please just pick one from these cwm tests (I would go for number 3, but I can't test any of them), and I will make final build with that.

I hope the twrp is right this time (I was forgotten to add RECOVERY_SDCARD_ON_DATA := true on BoardConfig).
[Upgrading, Modifying and Unlocking] marsapa:
TWRP not see the internal memory and error in the installation of the ROM

The cwm3 instead is perfect, installs and reads the internal memory
[Upgrading, Modifying and Unlocking] :
Thanks, I thought cwm3 will be good too.

For twrp I explained that being a /data/media won't appear in mounts menu, is under data, and you should check in data, /data/media/0 folder if there is a TWRP folder there. Also check sdcard folder.

For error installing it will be helpfull to post a recovery log, maybe is just a matter of signature, and you forgot to turn it off if the ROM is not signed.
[Upgrading, Modifying and Unlocking] marsapa:
Now check because I put on the cwm, however I can not install the logo.bin from recovery, you have ideas of how to do because with package_extract_file ("logo.bin", "/ dev / logo"); well if you do not install the procedure is successful

log error:View attachment last_log.rar
[Upgrading, Modifying and Unlocking] :
I think for this phone you should use:

package_extract_file("logo.bin", "/dev/block/platform/mtk-msdc.0/by-name/logo");

Can you please tell me which one of twrp tests is better (I added two more now).

In log I see /data/media is used.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

...edited
[Upgrading, Modifying and Unlocking] ch64:
I do not know English and I not have the knowledge to help. I like a lot, but am aware of the forum and I think many too. Thank you very much for your help, you have done us a great help. Thank You
[Upgrading, Modifying and Unlocking] marsapa:
where are the other two TWRP?

ok i have see
[Upgrading, Modifying and Unlocking] :
Thanks! It helps even to say CWM test x, and TWRP test x if you tried any of them.

In the same post as the others: http://xdaforums.com/showpost.php?p=57917376&postcount=316

And I appreciate your help really much, but we are kind of alone here. I need more feedback. At least three users.

Cheers!
[Upgrading, Modifying and Unlocking] marsapa:
Ok now it is installed in the log, then the installation of the ROM is complete, in addition to the system I was able to install the boot, folder, date and time thanks to the Carliv Logo.bin

Carlin now test the other TWRP, with cwm i have installed the rom to internal sd, it's ok
[Upgrading, Modifying and Unlocking] blackidra2:
In cmw test 3 i confirm the test of [MENTION=4729462]marsapa[/MENTION]
[Upgrading, Modifying and Unlocking] marsapa:
TWRP 2 and 3 give the same results as the first, the internal memory and can not be seen in the flash ROM by mistake these are the log

View attachment last_log_twrp2.rar

View attachment last_log_twrp3.rar
[Upgrading, Modifying and Unlocking] :
I really don't understand what means "can not be seen in flash the ROM by mistake" :confused: I know it's not your fault, but I don't understand. In logs I can see the /data/media is used as default sdcard.
[Upgrading, Modifying and Unlocking] marsapa:
Managing to install the rom with cwm, now using it to test for TWRP so see if you install
[Upgrading, Modifying and Unlocking] ghost45:
So i want to recapitulate 2

Actually we have these recovery that running good :

1) CM Stock:

2) CM1 - for control

3) CM2 - accept unsigned zips

4) CWM V.6 -last test 3

5) CTR test2

6) TWRP last test 3 (not good)

Correct me if i'm wrong!

So everyone that read understand !

:silly:

Carliv tell me if is right, because ONLY you know what have inside these Recovery!
[Upgrading, Modifying and Unlocking] Snoopy2006:
Hi [MENTION=535343]all[/MENTION],

I installed CWM Test 3 and it runs (for me) perfect. The complete Update need 3,5 GB on the SD1 Card.

Thanks !
[Upgrading, Modifying and Unlocking] ghost45:
Hi ,

Have you checked the backup on sdcard0 path if is changed in that recovery?:confused:
[Upgrading, Modifying and Unlocking] Snoopy2006:
Hi Ghost45,

now I make a Backup on the internal SD Card (0) and everything is ok.

But, no Data in the CWM Directory.
[Upgrading, Modifying and Unlocking] ghost45:
what is the path of the backup on internal sdcard (scard0)?
[Upgrading, Modifying and Unlocking] ghost45:
The backup is in a different location, have wrong path....Carliv must be correct this mistake!

I want ot explan better:

Backup from Cwm and Ctr

1) Backup sdcard1

the cwm run the backup and build and write the correct backup folder in:

sdcard1 /clockworkmod /backup etc

2) backup sdcard0

the cwm run the backup and build and write in two different folder

1) the correct backup builded in:

mtn/shell/emulated/clockworkmod/backup

2) create also one other folder in sdcard0/clockworkmod/log files

Carliv is correct this thing?

why do not create only one folder in root of sdcard?

Please explain better this mistake if is it !

Thanks
[Upgrading, Modifying and Unlocking] Snoopy2006:
After deleting the clockworkmod directory I started CWM once more for the internal Sd Card

Result: No Data stored

Path: /sdcard or /storage/sdcard0
[Upgrading, Modifying and Unlocking] ghost45:
Snoopy you are not looked good!

try again
[Upgrading, Modifying and Unlocking] :
Well, I see all are focused on test 3. You said is working well, and now is not :confused:

Before you said the test 10 was best. The test 1 and 2 (one of them, I don't know which) is a replica of test 10.

Maybe it will be good to test the other files too.

Anyway, really this time, without the phone to see with my own eyes what's happen I can't debug everything. You have to understand that I did already more than any other guy would do. If you are going to ask any developer here it will tell you that without the device it won't work for it.

Maybe you should settle with what you have untill a dev who will buy this phone can pick it up.

I'm ready to build the final images, just tell me which cwm test you like most.

About those two folders, the internal sdcard is not a real sdcard, it relies on symlinks. Not all you see is a file. You will see links to the real files.

I'm sorry I can't explain you better.
[Upgrading, Modifying and Unlocking] marsapa:
For me CWM test3
[Upgrading, Modifying and Unlocking] blackidra2:
Cwm test 3 work beatifully
[Upgrading, Modifying and Unlocking] ghost45:
Hi Carliv,

The tests of the Cwm 10 was tested here :

http://xdaforums.com/showpost.php?p=57906111&postcount=288

But i do not ask nothing about this test, so is not mine test!

I have tested the Cwm v 13 and here i found this mistake!

The previous one do not have this problem because the cwm not mounted the sdcard0 but only the sdcard1 !

But the cwm and the crt run fine only have this mistake !

The backup in the sd card1 is very good!
[Upgrading, Modifying and Unlocking] :
Ok, then cwm test 3 it is!

Here are the final recoveries:

The links are here now.

Thanks for support, enjoy using them!

Now for people who want to use the device folder tree from my github (I will update that in short time).

Take a look on BoardConfig to see what flags must be used, and add a local-manifest in your building repo with this content:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="git://github.com/carliv/" name="carliv"/>
<project path="bionic/libc/arch-arm/cortex-a17" name="bionic_libc_arch-arm_cortex-a17" remote="carliv" revision="master" />
<project path="device/zopo/zp999" name="device_zopo_zp999" remote="carliv" revision="master" />
</manifest>

then do a repo sync. If you have already a local-manifest just add the project path line in it.

Next open cortex-a7.mk file from /bionic/libc/arch-arm/cortex-a7 folder and replace the content with this:

ifneq ($(TARGET_2ND_CPU_VARIANT := cortex-a17),)
include bionic/libc/arch-arm/cortex-a17/cortex-a17.mk
else
include bionic/libc/arch-arm/cortex-a15/cortex-a15.mk
endif
include bionic/libc/arch-arm/generic/generic.mk

That's it, then you can build. The most important part on BoardConfig is this:

TARGET_RECOVERY_PIXEL_FORMAT := "RGBA_8888"
BOARD_USE_FRAMEBUFFER_ALPHA_CHANNEL := true
TARGET_DISABLE_TRIPLE_BUFFERING := false
BOARD_CUSTOM_GRAPHICS := ../../../device/zopo/zp999/recovery/graphics.cwm.c
TW_BOARD_CUSTOM_GRAPHICS := ../../../device/zopo/zp999/recovery/graphics.twrp.c (for twrp only)

Without any of these flags, the recovery won't boot. Cheers!
[Upgrading, Modifying and Unlocking] ghost45:
[MENTION=5186178]carliv[/MENTION],

Thank you Very much for Your Big Work and to all the time that you have lost here!!!

All of us are glad to YOU !

:laugh::good::good::victory:

I want also to give my thanks to everyone that have partecipated actively to realize all this Project!

Many thanks also to:

Bigrammy,Codelover,SevenMax,Yuweng, Mrjavum,Marsapa, and everybody!

:good::victory:
[Upgrading, Modifying and Unlocking] marsapa:
However the only one who reads the internal memory is the cwm?
[Upgrading, Modifying and Unlocking] Snoopy2006:
I found the internal SD Card CWM backup in

/Data/media/clockworkmod
[Upgrading, Modifying and Unlocking] :
And for TWRP has to be /data/media/0/TWRP/BACKUP/MT6595/ or something like that.

Thank you again guys for support, and also I want to say thank you to the people who donated to me these days. I believe it was for this project and I don't know their usernames only emails (but that I won't publish); they know who they are and I appreciate very much their support. :highfive:
[Upgrading, Modifying and Unlocking] AP756:
Carliv, speaking for all unknown owners of ZP999 I want to give you a (another) big thank you. Back from work now I can enjoy flashing recoveries to my liking. Regarding the donations: Hope I wasn't the only one who provided some coffee to you ;). Just in case: EVERYBODY is free to show his/her appreciation by clicking DONATE in post #243 in this thread (can't figure out how to copy this link). If ever you decide to buy this phone let me know, I will fight for a developers discount :D.
[Upgrading, Modifying and Unlocking] :
Thank you very much! :o

I don't know yet about buying a new phone, but if the time will come I will remember your kind offer!

Cheers and enjoy!
[Upgrading, Modifying and Unlocking] mrjavum:
carliv

You are a mega cool dude! :good:

Now most of mt6595 owners (including me) can build, customize, patch etc!

I have sent you small amount for a coffee too!
[Upgrading, Modifying and Unlocking] :
Thank you very much! I am glad I could help in this problem! :highfive:

Cheers!
[Upgrading, Modifying and Unlocking] coldhurricane:
Hi guys, you did a great job!!! Special thnx to carliv, you're the best!

But could someone explain me how to flash modified recovery on official rom 20141230?

When I flashed it on marsapa V3 rom everything was OK, but now I'm trying to do this on official rom. I get scatter.txt from official rom and flash only recovery using flashtool. When I'm trying to boot to recovery using Vol+ and Power buttons, i see Zopo logo, then screen blinks and then Zopo logo again and phone begins to boot in ordinary way. adb reboot recovery from BB reboots phone into stock recovery...
[Upgrading, Modifying and Unlocking] AP756:
If you flashed disconnect the phone from PC and connect it to charger! Do it slowly, no hectic. The Windows drivers mess with your phone when connected to USB :).

Now press and hold [vol +] and then press and hold [power] until screen comes alive. Did it for me.
[Upgrading, Modifying and Unlocking] coldhurricane:
AP756, thnx a lot!

If the charger is connected I can boot into TWRP recovery using Vol+ and Power, but if it is not, i can't. It is very strange, the battery level is 56%.
[Upgrading, Modifying and Unlocking] codelover:
For 100% stock, just flash custom recovery along with a modified boot.img and the custom recovery will stay.
[Upgrading, Modifying and Unlocking] marsapa:
Carliv allowed myself to copy your link donation to paste in tred my rom where I prayed users to make a donation in your favor (http://www.androidiani.com/forum/zopo-modding/442523-zopo-zp999-3x-komu-k8-4g-marsapa-rom.html)
[Upgrading, Modifying and Unlocking] :
Sure, Thank you!

And thank you all again for your donations!

I'm overwhelmed :o
[Upgrading, Modifying and Unlocking] AP756:
Sounds very good. Hmm, maybe you can buy a ZP999, now you are on your way to getting rich :D
[Upgrading, Modifying and Unlocking] :
for their work always again and again,

Thank you also for the other developers
[Upgrading, Modifying and Unlocking] blackidra2:
carliv think that it is now possible to a ported cm12 on this phone?
[Upgrading, Modifying and Unlocking] marsapa:
serve the sources to compile the cyano
[Upgrading, Modifying and Unlocking] blackidra2:
yes, I know I was wondering if with the sources of lenovo you could do something
[Upgrading, Modifying and Unlocking] :
No, except for same platform (CPU+GPU+Communications), they don't share same aspects: different sensors, different hardware components... For that it will require for zopo to open their sources...
[Upgrading, Modifying and Unlocking] blackidra2:
OK i understand now, thank you again for tour work developers
[Upgrading, Modifying and Unlocking] :
:laugh: Well I'm not on that road yet, I said that because I appreciate every single gesture from zp999 users no matter what, because I take this as a sign of respect for my work here. But, if I will have the money for it I surelly will buy one as a respect for all of you! :)

Thanks again!
[Upgrading, Modifying and Unlocking] :
Hello again, guys!

Today I was playing with a phone which share the same "plague" as zp999: internal sdcard is /data/media folder. I had an ideea and it worked, I manged to create the symlinks as such the internal partition is seen as /storage/sdcard0.

I know I said those were final builds, but when I'll have an ideea I will come to try it, and maybe to make things better.

So, here it is a test version (CTR this time, to spare your phone buttons):

CTR nomedia test 1

Let me know if this works in your phone too.

:cool: [MENTION=633509]AP756[/MENTION], [MENTION=4729462]marsapa[/MENTION], [MENTION=3419562]Snoopy2006[/MENTION], [MENTION=4560967]split52[/MENTION], [MENTION=4945206]ghost45[/MENTION], others.. if you have time :)
[Upgrading, Modifying and Unlocking] SevenMaxs:
Hello carliv!

graphics.twrp.c works on mt6752!!!
[Upgrading, Modifying and Unlocking] AP756:
Hi Carliv,

sure, I took the time and skipped TV :). Well, when trying to install a file from internal sdcard I get the message

Could not open directory

Could not open directory

No files found

Sdcard1 works as expected.

When exiting (rebooting) I get the Error "Cannot write to /sdcard/0/clockworkmod/.recovery_version

Just a note: In my filer this path shows up as /storage/sdcard0/clockworkmod/.recovery_version (or if someone prefers the other way /storage/emulated/0/clockworkmod/.recovery_version or /storage/emulated/legacy/clockworkmod/.recovery_version)

Thanks for trying to improve, I like your attitude ;)
[Upgrading, Modifying and Unlocking] :
Oh, Thank you. I'm disapointed.. There must be some permissions involved for this phone. In the other one (well an older platform mt6582) it worked.

Anyway, if I'll think on something else or find a different solution I'll came here again. Actually that's how I am, I can't settle down until I find the solution when I have a problem. Even if I tried to take a break to clear my mind I couldn't :)

---------- Post added at 22:00 ---------- Previous post was at 21:58 ----------

Really? That phone has 32bits framebuffer too? Very well then. I'm glad that my solution works even for other new platforms!

---------- Post added at 22:04 ---------- Previous post was at 22:00 ----------

BTW, PhilZ explains very well what is all about this /data/media internal storage in his FAQ post for PhilZ Recovery: http://xdaforums.com/showpost.php?p=43707355&postcount=9

Read the second point: "2- I backed up my data and I cannot find it when I boot into phone".
[Upgrading, Modifying and Unlocking] AP756:
I see some similarities :D. You sure have heard the saying "Rome was not build in one day", so I'll stay tuned and I'm happy to volunteer if there is something to do. ;)
[Upgrading, Modifying and Unlocking] SevenMaxs:
100%, You did a great job!

But does not work on Snapdragon 410 (msm8916).

I checked, and Lenovo Vibe Z2 and Lenovo S90.

I'm now trying to fix it.
[Upgrading, Modifying and Unlocking] split52:
confirmed like [MENTION=633509]AP756[/MENTION]

Thanks again carliv
[Upgrading, Modifying and Unlocking] :
Hi guys,

Can someone of you to post here few screenshots from a root explorer for these folders content?

/mnt

/storage

/data/media

/data/media/0

/data/media/legacy

of course if any of them exists.
[Upgrading, Modifying and Unlocking] split52:
sure
[Upgrading, Modifying and Unlocking] :
I have a new test for you guys. This one worked too in other phones.

CTR 3.0 ZP999 new test
[Upgrading, Modifying and Unlocking] marsapa:
It's ok (install-wipe-backup-restore on internal memory and sd) very well

---------- Post added at 11:44 AM ---------- Previous post was at 11:29 AM ----------

I have a problem to do the wipe data in aroma, I formatted my entire internal memory, or does nothing, ideas on how to give the command
[Upgrading, Modifying and Unlocking] :
Ok, then if it works let's make it really final this time.

Recoveries with fixed internal sdcard (I'm not sure about twrp because that works different):

CWM Modd ZP999 v2

Carliv Touch Recovery 3.0 ZP999 v2

TWRP 2.8.4.0 ZP999

PHILZ Recovery ZP999 v2
[Upgrading, Modifying and Unlocking] marsapa:
but the format it does, if it does what it should do even wipe, just as it does for the cache and davilk

the TWRP not see the internal memory

the PHILZ it's ok
[Upgrading, Modifying and Unlocking] AP756:
Hi Carliv,

confirm, this test works (as marsapa already posted). I just get a bit confused because of the statement " Compiled by carliv@max on: 2015-01-03". What did you change? Hmm, maybe I' a bit tired today... ;)

EDIT: Flashed the final recovery now, this shows the correct date. Thanks a lot for your work, much aprechiated. Now you may relax and have a nice weekend ;)
[Upgrading, Modifying and Unlocking] :
Thanks for feedback! Compiled on 2015-01-03??? It should be 2015-01-09 because I compiled all over again today (I should check my computer to see if it has the right date). I changed the way recovery connect to internal sdcard, and I did it the way I wanted, in ramdisk, without changing the recovery source code. At the end only one symlink did the trick, but the right one ;) Here is what I've changed.

So, now I can mind my own business, since I solved this :cowboy:

---------- Post added at 20:53 ---------- Previous post was at 20:51 ----------

I don't really understand your question about aroma (which aroma Installer or File Manager?).
[Upgrading, Modifying and Unlocking] ghost45:
Hi Carliv,

i explain better to you what is the Marsapa's mistake!

Marsapa is working around the world of custom Roms , so he do not able to make wipe cache and data in the script inside the his last custom rom for this Zp999.

So he have tried to ask to YOU , if you have some instruction to write inside in the file script inside the Aroma place to make wipe before installing his custom rom.

I don't know if You now have understood what is his problem.

See you and thanks for these New V2 Recoverys !

Thanks:laugh::good:
[Upgrading, Modifying and Unlocking] :
You're welcome! I had a task to fulfill and now I did it.

About that problem for marsapa I think I've told him the other days that for phones with internal emulated sdcards he can't use format data in updater script, no matter if it is aroma script or regular script: it is executed by same binary in the end, and the CWM recovery will protect the /data/media from /data partition. That's why he can't use format data in any script. In recovery menu, when you choose wipe data, there is a function which blocks access to /data/media and it is wiped everything except /data/media folder ("preserve_data_media" ). If he wants data wiped, he must instruct the users to do it before flashing the ROM. There isn't any way to change that.
[Upgrading, Modifying and Unlocking] bigrammy:
Hmmm, You mean the actual unpack and repack of the boot.img and recovery.img it's self ? :confused:

They seem to pack and unpack without a problem but they zopo/mtk could have changed something I guess.

PLEASE Notice this in the fastab posted above

noatime,nosuid,nodev,noauto_da_alloc wait,check,[COLOR="Red"]encryptable[/COLOR]=footer

maybe the recovery and boot are encryptable too. :eek: and maybe unpacking and repacking breaks the encryption. :confused:

We need to find away to turn off the encryption check.........
[Upgrading, Modifying and Unlocking] ghost45:
Yes this probably is the right street!

try if you are able to remove or check what kind of encript this phone have!

The zopo never have before!

:good: