yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] bigrammy:
Hi bro,

I have just spent 24 hours trying to get my linux and build environment setup and I get lots of errors when I try to compile anything :crying:

So I guess I still have lots to learn about both linux and compiling :silly:

I would not have a clue about how to setup a freenode channel and with just 3 of us I guess it would be pretty quiet :laugh:

From what I can gather a straight forward rebuild using the latest TWRP should work with just a few tweaks to the board config should do the trick.

Have got Lp on your device now? If not myself or [MENTION=4056517]HypoTurtle[/MENTION] can give you the differences :o

According to my build.prop we maybe able to turn off selinux if it causes a problem ro.selinux=disable is # out so maybe if we un # it will disable the selinux :confused:

I will just paste some info from the build.prop below :)

# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=arm64-v8a
KERNEL OPTIONS???
ro.kernel.zio=38,108,105,16
#ro.kernel.qemu=1
#ro.kernel.qemu.gles=0
#ro.boot.selinux=disable
DAVIK STUFF
persist.sys.dalvik.vm.lib.2=libart.so
dalvik.vm.isa.arm64.features=default
dalvik.vm.isa.arm.features=default

I need sleep now so bad :crying:

Thanks in advance. :cool:
[Android Software/Hacking General [Developers Only]] HypoTurtle:
If you can compile it as 64bit then great, if not try compiling it with the TW_J_CRYPTO flag to L_CRYPTO, I think I probably just broke the graphics.c when I attempted to update it.

[MENTION=3924647]bigrammy[/MENTION] feel free to post the build errors, yea already spoke to the guys on freenode and they say they can compile for 64-bit fine on omni5.1.

I tried to see if we could compile the kernel as 64-bit, just need to see if I can get the CC to change. (L project_config and Config_'s added to the mt6752 project).
[Android Software/Hacking General [Developers Only]] :
The original graphics.c file was the stock one from minuitwrp folder in 2.8.2.0 twrp version (omni source). I modified that file to suit the changed framebuffer and graphic request of these new MTK platforms.
[Android Software/Hacking General [Developers Only]] bigrammy:
Hi bro,

I am sure it's probably just me thats missed something during the setting up of the environment plus zorin did a big update which included a Kernel update :eek: So all the settings I made using [MENTION=5186178]carliv[/MENTION] guide probably got broken :crying:

I seemed to get a lot of ccache issues and the mkmkimage thing popped up too so I think I will just start afresh after I clean up or maybe just re partition and install [MENTION=4478781]yuweng[/MENTION] recommended bbqlinux :confused:

Speaking with NiksSkersts on the Just5 Blaster thread he says they have promised an Lp 5.0 OTA end of March or early April so with luck we can use their Kernel again even if our KK kernel still won't boot or the Lp gives us touch problems which I am sure it will :laugh:

Regardless of the Kernel we still need the recovery's to be rebuilt with the corrected board configs for Lp anyway so I will continue to try get a working setup as I don't think I can keep avoiding compiling :laugh:
[Android Software/Hacking General [Developers Only]] :
Well my friend, Zorin is good for a linux newcomer but not so good for development. It's main target are users that are coming from windows. There is a reason I specified in my guide "ubuntu", because for every linux distro there is a different rutine. In some distros some packages are already there and don't need to be installed again, or they have different versions, etc. Currently I'm using Ubuntu Mate 14.04.1 (LTS) because I hate Unity, and I don't have any problem with it, updating once a week. Here is how it looks after I tweacked the theme and icons pack. :)

Cheers!
[Android Software/Hacking General [Developers Only]] bigrammy:
Hi bro,

Yes thats why Zorin was perfect for me a linux noob and is also "ubuntu" based so plenty of support :laugh:

It works perfect for all other things and it may well do for compiling too. :confused:

I can't blame the OS just yet as it's more than likely that the fault lays with me :silly:

I do like your super clean setup on mate :good:

My desktop now looks like a bomb site on both windows and zorin :laugh:

I will have a good clean up and try again on my next set of days off.
[Android Software/Hacking General [Developers Only]] Santhosh M:
You both join here which I have created since it is easy to talk over there and keep replying continuously.
[Android Software/Hacking General [Developers Only]] bigrammy:
Hi bro,

Thanks for setting up the chat on freenode :good:

I have Just got in from work and will be working for the the next few days so I won't get much of a chance to join you until the end of my shift :(
[Android Software/Hacking General [Developers Only]] superdragonpt:
Actually there is development going on ...

Hi

Yes, since MTK's KK Released 3.4.67, modules are built in ... however you can build them external if you wish ... hence... no problem insmoding

Yeah

The guide is very confusing .... however, there's some usefull links and quotes from other guys there ....

About the new 64BIT Platform:

On KK source, you can enable if 32 or 64 bit compilation (rom/kernel), even if 64bit isn't supported on KitKat, some apps will still benefict from it.

On LL Source, only 64bit compilation will work ...

The AndroidONE project(s):

Please guys, don't compare the AndroidONE to all the others MTK's ...

(im tired of repeating myself on several threads...)

Just forget The AndroidONE is equiped with an Mediatek SoC...

Cheers
[Android Software/Hacking General [Developers Only]] Santhosh M:
^ This one is so true so much so that people blindly see the Android one project as a reference for the normal MTK as it's fully stable. The android one project is more like the regular qcom. ( Doesn't use mtk headers, no hacks in source and lots like that ).
[Android Software/Hacking General [Developers Only]] bigrammy:
What! :confused: :confused:

Both 32bit and 64bit libs are in the Android 5.0 suggesting it runs both. :confused:

Hmmm well maybe you're wrong on this and should retract your advice :confused:

The CM12 ROM seems to have been compiled using traditional methods ie no mediatek framework and a traditional boot.img so I assume It would also work for AOSP too

Granted the CM12 had sim wifi issues etc but I think with a little work using the sprout for guidance it maybe possible to get things fully working so definitely not worth abandoning any work in that area :rolleyes:

I am Looking forward to seeing your own work for the P6000 :good:
[Android Software/Hacking General [Developers Only]] HypoTurtle:
Not sure if anyone's interested; but:

Lenovo have released there sources http://support.lenovo.com/us/en/products/phones/p-series/p70-a/downloads/DS102000

That's for the P70-a which has a MT6752 SoC.

Also have compiled the MT6732 source with the additions needed for Ubuntu Touch (or whatever it's called now - "Ubuntu for devices") - only one small (I hope) change was needed in ./kernel. Will need to see if I can get the compiled UT recovery to boot before seeing if UT itself will boot.
[Android Software/Hacking General [Developers Only]] Tech N You:
Sorry to cut you Sir but CM11 of Elephone P5000 (6562) uses RIL patches from sprout to fix network issue so it's not fairly accurate
[Android Software/Hacking General [Developers Only]] Santhosh M:
My 6592 builds ( done nearly 2 months back even before these elephone builds ) which bishal has doesn't have any part of RIL patch from sprout and it has fully working RIL as well with the regular MTK way. If you use sprout RIL you can't use your device RIL vendor blobs and you have to use it from sprout. So that deviates from the regular way. ( Its more technical to explain how sprout RIL blobs make diff )
[Android Software/Hacking General [Developers Only]] bigrammy:
Hi bro,

I think we are all now agreed that it is possible thanks to the patching of the various files by some genius. :good:

It would be nice to see future development follow the sprout AOSP route rather than rely on mediatek's builds frameworks etc. :rolleyes:

It's a shame CM12 is still so buggy even on other SoC's so Maybe CM12.1 will fix the issues :fingers-crossed:

Hopefully Lenovo will release the mt67x2 5.0 Lp Kernel source also :fingers-crossed:

EDIT: [MENTION=5480061]Santhosh M[/MENTION] you posted at the same time LOL

I am not sure of the in and out's but was replying to superdragonpt who was saying it's not possible which it obviously is.
[Android Software/Hacking General [Developers Only]] Santhosh M:
What he said is it's not possible which is right. RIL works because of some similarity and because you use custom compiled normal android like RIL blobs by google. On the other hand there are lot of other patches which are did without which u won't be able to boot cm or any other which is not the case in sprout
[Android Software/Hacking General [Developers Only]] bigrammy:
I will take your word for it bro as I am a little confused :confused: :laugh:
[Android Software/Hacking General [Developers Only]] Tech N You:
Umm! You may want to have a look at my CM11's boot.img

It has used RIL patches as far as I noticed maybe I am talking foolish lol but there is something related to RIL of sporut :fingers-crossed:

---------- Post added at 12:16 AM ---------- Previous post was at 12:15 AM ----------

Hello sir!

Yes it is possible as per my cm11 boot.img IDK if it's what but you devs might want to look it up!
[Android Software/Hacking General [Developers Only]] HypoTurtle:
Anyone compared the Just5 Blaster ProjectConfig with the KK one to see if we can at least compile a 32bit touch one?
[Android Software/Hacking General [Developers Only]] bigrammy:
No I haven't but I suspect they have used a different touch driver altogether or used/adapted the one fixed up by Red Hat :confused:

https://github.com/hadess/gt9xx/blob/master/goodix.c

Check http://www.spinics.net/lists/linux-input/msg33643.html for the work through during patching up this aweful driver :laugh:

The gt9xx can also be compiled as a module too it seems maybe that would be the way to go :confused:
[Android Software/Hacking General [Developers Only]] superdragonpt:
Like said, forget the {sprout} blobs ...

^^ THIS

You can of course use the {sprout} RIL part (to some extent), but you'll be better served by using MTK's stock RIL part ...

(This is the best simple answer i can give you ....)

Cheers
[Android Software/Hacking General [Developers Only]] ianfromnyc:
Lenovo have released a Mediatek source package for the A7000-a, a MT6752m device which shipped with Lollipop. Could this help get L roms made for mt6752 devices?

I can't post links, but you can find it on support.lenovo.com /us/en/products/phones/a-series/a7000-a/downloads/DS102637

How does one build these makeMtk packages? I'm familiar with kernel hacking but I'm new to Mediatek tools.
[Android Software/Hacking General [Developers Only]] bigrammy:
Good spot bro :highfive:

Yes it could be very useful indeed :fingers-crossed:

I Hope someone better qualified than me can explain Building Mediatek but Just have look back over previous posts to gather tips and info ;)
[Android Software/Hacking General [Developers Only]] tinaeire:
Hi,

I found a tool to unpack the boot.img.

Thanks to Cofface for writing it and youngchaos to share it:

Here the link to youngchaos' thread (as I cannot post links yet just delete the spaces and complete ;))

en.miui.com /thread-27657-1-1.html

here the link to the bootimg.exe:

hxxps mega.co.nz /#!BI8myaYC!5Bm23DBSmcvuvmILwF8q9y4cW8YP1UA77N8-DV4UoxI

I did already unpack for:

Ecoo E04 3GB Lollipop Stock 150528:

hxxps mega.co.nz /#!QF1ERbRS!Ce-ovIe0WfKzVtfx31VYvPOruFZfyuyLsQTFq-2m9Jg

Ecoo E04 3GB TWRP repack (from needrom):

hxxps mega.co.nz /#!xJtQmQCY!MNqrG4FN_3BkO4ts4Il9gk1EdCusfuTnagw8srfYuic

Elephone P7000 Stock ROM:

hxxps mega.co.nz /#!YE9lXQyI!8nbBSnlzK9sNauxAdjP5b7AqzGVt19-pHQOGZzOUoyI

But now I am stuck ;) I own a Ecoo E04 3GB and like to participate in building a real CM for it.

I did work with Linux before: openWRT and openSuSE, but not as dev.

I use CM since my Samsung Galaxy Europe ( 5 or 6 years back).

I am not a dev, but manage to build a custom kernel for PCs.
[Android Software/Hacking General [Developers Only]] :
Alright, I have been sitting near my pc building "the build enviroment" figuring out errors and eventually even building, for me, first kernel

some warnings but everything went well, after a lot of tries. :)

But now, since my goal is to add more governors, I/O, and slowly learn to finally to add DT2W support for this phone of course it's for KK since we have only KK sources available.

and here is my enemy at the moment

Edit: seems like I have fixed it by using "make mediatek-config, untill,

In file included from drivers/staging/android/ion/ion_priv.h:31:0,
from drivers/staging/android/ion/ion.c:39:
../mediatek/kernel/include/linux/ion_drv.h:6:17: fatal error: ion.h: No such file or directory
compilation terminated.
make[4]: *** [drivers/staging/android/ion/ion.o] Error 1
make[3]: *** [drivers/staging/android/ion] Error 2
make[2]: *** [drivers/staging/android] Error 2
make[1]: *** [drivers/staging] Error 2
make: *** [drivers] Error 2
niks@niks-EasyNote-TE11HC:~/p6000/kernel$
[Android Software/Hacking General [Developers Only]] bigrammy:
I feel for you bro it's so frustrating I gave up in the end but maybe I should revisit compiling from source maybe after Christmas :o
[Android Software/Hacking General [Developers Only]] :
It's frustating that Elephone left us with unfinished/laggy Lollipop and even couldn't release the sources just like they did for P8000.

..well anyway, now I need to look for some Ion.h driver,

In file included from drivers/staging/android/ion/ion_priv.h:31:0,
from drivers/staging/android/ion/ion.c:39:
../mediatek/kernel/include/linux/ion_drv.h:6:17: fatal error: ion.h: No such file or directory
compilation terminated.

it's 11 pm so I think I am going to do it tommorow.

You should revisit the compiling... maybe one day, we will finally do it, and compile first custom kernel for P6000 :)
[Android Software/Hacking General [Developers Only]] bigrammy:
Maybe you should try use the HTC mtk6752 5.0.2 source code it seems to be complete and contains your missing ion.c :good:

I am not sure if you could reconfigure the HTC source code to build for the P6000 hardware. :confused:

It's probably not so simple. :laugh:

http://www.htcdev.com/devcenter/downloads Enter Desire 820 dual sim in filter by box then hit find files. The Top result TW region is mtk version.

Actual download link

http://dl4.htc.com/RomCode/Source_and_Binaries/a50mldtul-3.10.61-gfac522d.zip
[Android Software/Hacking General [Developers Only]] HypoTurtle:
I'd stick with using ./makeMtk k01q_e new k to build the kernel, this worked fine for me (rebuilding a dev environment atm.) I also managed to build a config for UbuntuTouch with only a minor fix needed.
[Android Software/Hacking General [Developers Only]] :
I am a newbie in these things, but if I build kernel with ./makeMtk method, keeping in mind that my target is to make flashable boot.img, how can I do that? In out files the only type i have seen is the kernel.bin .
[Android Software/Hacking General [Developers Only]] HypoTurtle:
Yea the kernel source just builds the kernel - the rest is from ROM source. So other than downloading and compiling with AOSP/Omni/CM you could take an already built boot.img and just swap the kernel. I could be wrong here and the MTK4.4.4 kernel source has a rudimentary make for a boot.img, but I don't think so.

I'm also a novice here and have just compiled a couple kernels/recoveries.
[Android Software/Hacking General [Developers Only]] AdamDevlopper:
Sofar if someone can help me please <3

I compiled weeks ago and tried and tried to get the kernel to boot but never succed.

Its for Lenovo K3 Note (MT6752). The reason i dont know why till now it won't boot...

When i compile i get the files like image.dtb.gz and so on take it but in the boot.img (carlivimagekitchen)

Then Flash it and then boom.

When i plug in the cable before the Phone goes on the led went to Red when i put it out the led stays red (which has to be turned off) so it means basically that the kernel "freezes".

I used the kernel Sources from Lenovo official website.

and here are the commands that i used to compile the kernel:

PATH=${PATH}:/AOSP_Code/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.8/bin/
export ARCH=arm64
make aio_otfp_defconfig ARCH=arm64 CROSS_COMPILE=aarch64-linux-android-
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android-

the compiling goes very good no errors nothing. Just fine just...

I hope that someone can enable a light why its not booting.

anyways thanks :D
[Android Software/Hacking General [Developers Only]] bigrammy:
Hi bro this thread is old and kinda obsolete now.

I would check out the Elephone p8000 thread as there seems to be a few there that know about compiling mtk kernels :good: and maybe give you some pointers as to why it's failing to boot. http://xdaforums.com/elephone-p8000/orig-development/rom-cyanogenmod-12-1-p8000-t3259022

I suspect a kernel log may be helpful if you can get one. :fingers-crossed:
[Android Software/Hacking General [Developers Only]] AdamDevlopper:
well Bro i managed to get a newer version of the kernel to work but after bootsplash screen stays black :/

Anyways bro i will see why and thanks for th thread i will surely check it out
[LG G Flex] zain rasheed:
Hi guyz i got lg g flex f340.i rooted is successfully and after rooting i started to.

Delete unwanted apps and accidently delete recovery file.

Now my fone is now taking any updates....

And its not rebooting in recovery mode it gives error.
[LG G Flex] Razvan:
Sir,

Please wait until mods will move this thread to the device specific forum for more relevant answers.

Stand by

Good luck
[Android Q&A, Help & Troubleshooting] dandanbkk:
So, i had gotten an lg ls620 after breaking my droid x, and i was wanting to figure out a way to port cwm to the device... following this thread, http://xdaforums.com/showthread.php?t=2027311 i had gone into adb and typed in cat /proc/mtd, but all i had gotten was "no such file or directory"... im pretty sure that this device has a BML partiton... is there any way that i would be able to get some help on porting cwm. i really dont like optimus ui and prefer AOSP. Thanks :)
[Nexus 6 Q&A, Help & Troubleshooting] OverSu:
Hello everyone,

Informations

Phone : Nexus 6

ROM : Euphoria OS 1.0 with included kernel

I have a little problem with the phone network...

I have just install the ROM (3days ago) and everything worked fine.

After the first reboot, I had a network problem: no more network (just phone)

Bluetooth is OK,Wifi also ect...

No extra apps installed.

Any idea?

Thanks :p

Edit : French phone/network (FreeMobile)
[Nexus 6 Q&A, Help & Troubleshooting] oOflyeyesOo:
I am having issues over here also. My data randomly stopped working on my way down to memphis, randomly would start to work again. I tried a new rom, it slightly got better, but would cut out of data every 5 min. Kinda got it better by switching to tmo in the apn's. Now just installed sinless, and it is no longer working again.
[Nexus 6 Q&A, Help & Troubleshooting] OverSu:
So, same problem and no fix...? :/
[Nexus 6 Q&A, Help & Troubleshooting] collegencmc:
Holy cow! I thought I was the only one! I mean this problem really sucks(and I have wasted a lot of my hours trying to fix it), and have been thinking of creating a thread on this problem until I saw yours.

Okay let me start with what I'm on:

N6: 64gb blue

Rom: Stock

Rooted: Yes

Any other modification: No, only think I did was unlock and do chainfire su root.

Network: VZW

I have had this phone since Dec with no issues other than random reboot every so often.

Now to the problem I had, I went out to the middle of MO for a weekend get away (on Feb 14th). The whole time I was out there it showed 1x even though I was still getting LTE speed. Didn't think much of it until we moved further into the hilly parts of MO were I lost service. Thought it was just where we were at, and thought it would come back once we got back to the hotel we were staying at. It never did. It would say "No Network found" only allow 911 calls.

Spent the next 4 days working With VZW with several trips to the store, and talking to tech support. They made sure my IMEI was not blocked on their side. We used several sim chips, they would all do the same thing, quickly connect then disconnect and go back to no service.

So I did a factory reset, still didn't help. I finally did a fastboot flash of 5.0.1 stock again, this fixed the issue. Until I used titanium backup to restore my sys setting. Then it would drop and not reconnect after the reboot. So I did fastboot flash again and it hasn't happened again since last Thurs. I just restored my app's again to make sure it wouldn't fail to connect over the weekend, and rebooted several times. No issues so far, but I called Motorola and they are RMAing me a new one, because I don't have any trust in this one anymore. They are out of 64gb ones, and they will get back to me in a week.

Questioned to anyone who has gotten a RMA from Motorola:

Are their "like new" replacements okay? I got a few from them when I had my droid x, and they were crap. So I wasn't sure if that is still the same for the N6 or not. I have a feeling its not, but just wanted to get other peoples input on that process.

Thank you for creating this thread, and for everyone's time!

Edit: Had the same issue network wouldn't work, however WIFI, Location, Bluetooth would.
[Nexus 6 Q&A, Help & Troubleshooting] Casper34:
Check your APNs..... make sure you are on the correct one, and that both of APN protocols say IPv4.

Sent from my Nexus 6
[Nexus 6 Q&A, Help & Troubleshooting] OverSu:
APN is for Internet(3G) and MMS, no?

Because we have a phone network (call & SMS) issues.

On my side, APN are OK, but still don't work...

Edit: New !

Everything works fine on :

- Paranoid Android 5 Alpha 1

- Chroma (Latest)

But not work on :

- Euphoria

- Stock ROM

Edit 2 : It works now !!

I seen that I had several issues around the APN side. I mean, I can't add APN, sometime I can. Sometimes APN reseted themselves, sometimes it was OK. Then, I had read the solution above: security tab.

I had just remove my 3rd party lockscreen (HiLocker). Restart the phone and voilà ! After the reboot, my phone ask me the pin code, and all APN are here.

I hope it can help...! ;)
[Nexus 6 Q&A, Help & Troubleshooting] collegencmc:
Some times I will see the APN settings, and sometimes I won't. Right now I don't. When it does show up it shows VZWINTERNET selected. There are ton of other options, but they don't work either when the problem was seen.
[Nexus 6 Q&A, Help & Troubleshooting] smatherlee:
Is what your experiencing data going in and out? I'm on Sprint and I thought maybe it was just an issue with Sprint. I have or need to read up more on APN because it does get bothersome. I even have issues where sometimes my SMS gets hung up for minutes in sending mode before they actually send. Would be nice to have this corrected.
[Nexus 6 Q&A, Help & Troubleshooting] xjedi:
This solved my problem. One of them was on IPv6.

T-Mobile Nexus 6; 32GB

Thanks!!
[Nexus 6 Q&A, Help & Troubleshooting] Casper34:
The thanks should go to [MENTION=1413320]Circaflex[/MENTION] though... he told me how to fix my issue and thought it could be useful here. I'm glad it was.

Sent from my Nexus 6
[Nexus 6 Q&A, Help & Troubleshooting] collegencmc:
No my whole problem was that it would drop and no matter what I would do wouldn't reconnect to the network. I tried a lot of things to fix it (see above). APN would appear and then disappear from the menu. Right now its working on the network as of last Thurs. and APN options is not there.