[UPDATE] Ascend Mate 7 not-stock-derivative ROMS development status

Cpasjuste

Senior Member
Jun 8, 2007
962
1,358
0
I really did heavy testing on this device, trying to install cm recovery and /system built on my own and I have always found a way to restore stock roms. A few months ago I also formatted /boot (which contains the kernel as you know, my mistake :silly:) /recovery and /system partitions at the same time and the device was stuck on huawei logo: so I could boot from the bootloader which allows you to reflash anything you want, this is the only pro of huawei devices I think.
Yeah like with every devices out there in fact :)

I guess people who think they "hard brick" is because they try to restore a boot/kernel that's not compatible with the bootloader (for example a 5.x ROM with a 6.x bootloader). I'll think I'll stay on 5.x at start and take a deep look at cm12 even if people (you and @codeworkx) think its impossible (which is maybe the case). It would not be the first time I hear this while I did succeed (well it took me maybe 6 month for the amazon hdx 7 :/)

Envoyé de mon Kindle Fire HDX 7 en utilisant Tapatalk
 
Last edited:
  • Like
Reactions: pierro78

Cpasjuste

Senior Member
Jun 8, 2007
962
1,358
0
not think it's an theme as it is a competition among several cooks , I brought one month and is a rom flyme 100 Original
Hi,
I think we would need source code for this to be usefull.

Else @gabry3795 yes i am replacing my g3 with this, but you stress me now :) That's said i do have minors problems with my touchscreen on my d855. I did broke the lcd a few month back, changed the sceeen twice and still have two screen touch rows not working properly. Also i like to change sometime .. Hope ill still enjoy the new one :/

Edit: so i just received the mate 7. I did unlock BL, update from kk to lollipop (b329), installed twrp then did a backup. I'll try to take a look at cm12 in the next weeks.

Envoyé de mon LG-D855 en utilisant Tapatalk
 
Last edited:

gabry3795

Senior Member
Jun 22, 2015
69
180
0
Rome
gpm.name
04/12 update

UPDATE
With the last sources released I managed to build the kernel together with the CM13, but the phone does not boot: I'm stuck as when I built the CM12 but the difference is that now the kernel compiles perfectly with the main rom source.

I have updated the gits and the main post, everyone that can contribute to this project is ever welcome.
 

Jayz2K

Senior Member
Sep 15, 2007
230
97
0
UPDATE
I just managed to build the kernel and repack it to the stock Android 6.0 B551. For now it's not useful but it's a big step towards a full build.
Screenshot http://imgur.com/4MGuzUN.png
Good luck ! Congrats for the great job. I'm following Mate7 threads since ages and running CM11 ATM but really wish to see upgrades pointing there. Thanks for your time trying to push things further.
 

Cpasjuste

Senior Member
Jun 8, 2007
962
1,358
0
UPDATE
I just managed to build the kernel and repack it to the stock Android 6.0 B551. For now it's not useful but it's a big step towards a full build.
Screenshot http://imgur.com/4MGuzUN.png
In fact this a a really nice progress :)

Yesterday I synched your sources but I got some error when building cm13. There is definitely some problems on your github, I think it was related to the kernel build. I'll try to take a look but it would save some time if you fix your repos ( I mean sync cm13, pull your repos then go).



Envoyé de mon JAZZ en utilisant Tapatalk
 

gabry3795

Senior Member
Jun 22, 2015
69
180
0
Rome
gpm.name
In fact this a a really nice progress :)

Yesterday I synched your sources but I got some error when building cm13. There is definitely some problems on your github, I think it was related to the kernel build. I'll try to take a look but it would save some time if you fix your repos ( I mean sync cm13, pull your repos then go).



Envoyé de mon JAZZ en utilisant Tapatalk
Yes, I have already fixed that. Please sync your fork with my repo and you will able to build ;)
There was a bad .gitignore that excluded some files when committing [emoji28]
Also look into the folder _useful, you will find lots of infos that I gathered from imgs.
 
Last edited:
  • Like
Reactions: bobger93

Cpasjuste

Senior Member
Jun 8, 2007
962
1,358
0
Yes, I have already fixed that. Please sync your fork with my repo and you will able to build ;)

Sent from my Nexus 5 using XDA-Developers mobile app
Hehe so nice. I'll try that in a few minutes/hours.

Envoyé de mon JAZZ en utilisant Tapatalk

---------- Post added at 07:08 PM ---------- Previous post was at 07:06 PM ----------

Yes, I have already fixed that. Please sync your fork with my repo and you will able to build ;)

Sent from my Nexus 5 using XDA-Developers mobile app
By the way, what was the problem with the kernel not booting ? (I was stuck at the same place a few weeks ago)

Envoyé de mon JAZZ en utilisant Tapatalk
 

gabry3795

Senior Member
Jun 22, 2015
69
180
0
Rome
gpm.name
Hehe so nice. I'll try that in a few minutes/hours.

Envoyé de mon JAZZ en utilisant Tapatalk

---------- Post added at 07:08 PM ---------- Previous post was at 07:06 PM ----------


By the way, what was the problem with the kernel not booting ? (I was stuck at the same place a few weeks ago)

Envoyé de mon JAZZ en utilisant Tapatalk
Okay [emoji6]
I have never faced this issue, does your kernel not boot? How have you re-packed the boot.img?

There was a problem with an #include but my kernel didn't bootloop even commenting that include! Now thanks to @acbka we have also the .h that was missing, I have already updated the kernel repo.
 
Last edited:
  • Like
Reactions: bobger93

Cpasjuste

Senior Member
Jun 8, 2007
962
1,358
0
Okay [emoji6]
I have never faced this issue, does your kernel not boot? How have you re-packed the boot.img?

There was a problem with an #include but my kernel didn't bootloop even commenting that include! Now thanks to @acbka we have also the .h that was missing, I have already updated the kernel repo.
Well, i always ends up with this error :

Code:
/home/cpasjuste/android/system/kernel/huawei/mt7_l09/scripts/Makefile.build:104: scripts/Makefile.lib: No such file or directory
make[3]: *** No rule to make target 'scripts/Makefile.lib'.  Stop.
  GEN     /home/cpasjuste/android/system/out/target/product/mt7_l09/obj/KERNEL_OBJ/Makefile
/home/cpasjuste/android/system/kernel/huawei/mt7_l09/Makefile:499: recipe for target 'scripts_basic' failed
make[2]: *** [scripts_basic] Error 2
make[2]: *** Waiting for unfinished jobs....
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/cpasjuste/android/system/kernel/huawei/mt7_l09'
There's definitively a problem with your repos.
 
  • Like
Reactions: isthatxavier

gabry3795

Senior Member
Jun 22, 2015
69
180
0
Rome
gpm.name
Well, i always ends up with this error :

Code:
/home/cpasjuste/android/system/kernel/huawei/mt7_l09/scripts/Makefile.build:104: scripts/Makefile.lib: No such file or directory
make[3]: *** No rule to make target 'scripts/Makefile.lib'.  Stop.
  GEN     /home/cpasjuste/android/system/out/target/product/mt7_l09/obj/KERNEL_OBJ/Makefile
/home/cpasjuste/android/system/kernel/huawei/mt7_l09/Makefile:499: recipe for target 'scripts_basic' failed
make[2]: *** [scripts_basic] Error 2
make[2]: *** Waiting for unfinished jobs....
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/cpasjuste/android/system/kernel/huawei/mt7_l09'
There's definitively a problem with your repos.
Fixed now. Other files skipped by .gitignore resync your fork [emoji6]
 

Cpasjuste

Senior Member
Jun 8, 2007
962
1,358
0
Fixed now. Other files skipped by .gitignore resync your fork [emoji6]
I think there's still a problem with your repo (sepolicy).

Code:
...
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 287 has invalid context u:object_r:authpass_prop:s0
libsepol.context_from_record: type goldeneye_prop is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:goldeneye_prop:s0 to sid
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 288 has invalid context u:object_r:goldeneye_prop:s0
libsepol.context_from_record: type cameradump_prop is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:cameradump_prop:s0 to sid
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 291 has invalid context u:object_r:cameradump_prop:s0
libsepol.context_from_record: type cameradump_prop is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:cameradump_prop:s0 to sid
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 292 has invalid context u:object_r:cameradump_prop:s0
libsepol.context_from_record: type cameradump_prop is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:cameradump_prop:s0 to sid
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 293 has invalid context u:object_r:cameradump_prop:s0
libsepol.context_from_record: type cameradump_prop is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:cameradump_prop:s0 to sid
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 295 has invalid context u:object_r:cameradump_prop:s0
Invalid context file found in /home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts
external/sepolicy/Android.mk:237: recipe for target '/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts' failed
make: *** [/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts] Error 5
make: *** Deleting file '/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts'
 

gabry3795

Senior Member
Jun 22, 2015
69
180
0
Rome
gpm.name
I think there's still a problem with your repo (sepolicy).

Code:
...
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 287 has invalid context u:object_r:authpass_prop:s0
libsepol.context_from_record: type goldeneye_prop is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:goldeneye_prop:s0 to sid
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 288 has invalid context u:object_r:goldeneye_prop:s0
libsepol.context_from_record: type cameradump_prop is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:cameradump_prop:s0 to sid
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 291 has invalid context u:object_r:cameradump_prop:s0
libsepol.context_from_record: type cameradump_prop is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:cameradump_prop:s0 to sid
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 292 has invalid context u:object_r:cameradump_prop:s0
libsepol.context_from_record: type cameradump_prop is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:cameradump_prop:s0 to sid
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 293 has invalid context u:object_r:cameradump_prop:s0
libsepol.context_from_record: type cameradump_prop is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:cameradump_prop:s0 to sid
/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts:  line 295 has invalid context u:object_r:cameradump_prop:s0
Invalid context file found in /home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts
external/sepolicy/Android.mk:237: recipe for target '/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts' failed
make: *** [/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts] Error 5
make: *** Deleting file '/home/cpasjuste/android/system/out/target/product/mt7_l09/obj/ETC/property_contexts_intermediates/property_contexts'
Yes, I'm working at these files now just comment BOARD_SEPOLICY_DIRS on BoardConfig.mk and you're ready to compile.
I'm sorry for these issues but I'm working a lot on the code so even the repo it's not stable :/