yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] mauroaraujo:
Building MTK kernel and ROM from source

Hello guys,

I'm facing a small problem when compiling the stock rom for my device from source, but the main problem is when compiling the kernel.

Well, the settings are the following:

Device: LG G Pro Lite (D683)

Android version: 4.4.2 (AOSP + LG official files)

Build environment: Fedora 23 (make 3.81), kernel 4.7.X.

The steps I've followed:

-> $ cd /home/mauro.mascarenhas/Documents/
-> $ mkdir Android_ROM
-> $ cd Android_ROM
-> $ mkdir AOSP
-> $ cd AOSP
-> $ /* Here I downloaded AOSP source code and merged LG files to the source*/
-> $ tar -zxvf LGD683_GProLite_Kitkat_V20c_Android.tar.gz
-> $ source build/envsetup.sh
-> $ lunch 1
-> $ make
-> So, I've got the following output

​

I don't know what to do with those files... I thought I'd get a zip to flash through recovery...

//------------------------- (TRYING) BUILDING THE KERNEL -----------------

Steps:

-> $ cd /home/mauro.mascarenhas/Documents/Android_ROM
-> $ mkdir KERNEL
-> $ cd KERNEL
-> $ tar xvzf LGD683_GProLite_Kitkat_V20c_Kernel.tar.gz
-> $ PATH
-> $ PATH=$PATH:/home/mauro.mascarenhas/Documentos/Android_ROM/AOSP/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/
-> $ export PATH
-> $ ./mk muse77_phone_kk n k

After that I was supposed to have an output but I get lots of error messages in the beginning like this:

/bin/bash: scl: line 1: syntax error: premature end of file
/bin/bash: error when importing the definition to `BASH_FUNC_scl'

More details (logs) are on this post: http://xdaforums.com/optimus-g-pro/d680-development/rom-genesisg3-1-0-t3183601/post67512342#post67512342

Since now,

thank you A LOT.

:):):)
[General Questions and Answers] ajay7manoj:
I am using the Kernel that came with cm 13
[General Questions and Answers] Sam Nakamura:
Using a marshmallow kernel with a kitkat environment seems problematic.. You know that since lollipop there's no more dalvik and art cache instead.. And probably many more critical changes.. Are you sure that this setting is supposed to work? I really don't have much of a clue but that alone seems odd to me..
[General Questions and Answers] _ify:
I used this website here: http://www.beritahuaja.com/2015/10/how-to-root-samsung-galaxy-j1-ace-sm.html?en

I think I used the wrong model...

Device Model: SM-J111M

Is there still a way to fix it?
[General Questions and Answers] BrandiBaby223:
How would I go about converting kinguser to SuperSu with supersu-me? And I've seen a couple different supersu-me apps on the playstore. Which one is the right one?

---------- Post added at 10:54 PM ---------- Previous post was at 10:51 PM ----------

How do I flash a custom recovery? Exact fitting recovery image? What's that? I'm not understanding what you mean by it causes you bootloop one device...

---------- Post added at 10:55 PM ---------- Previous post was at 10:54 PM ----------

How do I flash a custom recovery? Exact fitting recovery image? What's that? I'm not understanding what you mean by it causes you bootloop one device...
[General Questions and Answers] Droidriven:
The app is easy to use, it does it for you. Instructions for

"how to use supersu-me"

are easy to find.
[General Questions and Answers] BrandiBaby223:
How do I flash a custom recovery? Exact fitting recovery image? What's that? I'm not understanding what you mean by it causes you bootloop one device...
[General Questions and Answers] ajay7manoj:
Hey guys? Somewhere I read that for phone that have 1 GB RAM can use Facebook through the chrome browser and it will show notifications also. It has been 2 days, not a single notification came. Any help?
[General Questions and Answers] Sam Nakamura:
As I absolutely understand the convenience of asking these questions here in forum I may please you to type this questions in Google... That's much better and more detailed rather than answering the same questions or over and over again.. Good luck
[General Questions and Answers] _ify:
Hey just asking is this the right firmware for my device?

http://www.sammobile.com/firmwares/database/SM-J111M/

Device Model: SM-J111M

Does it matter if I choose a different country? I'm in NZ
[General Questions and Answers] ajay7manoj:
Anyone?
[General Questions and Answers] Droidriven:
That is the correct model number but you should find the one for your region. In some cases another region can be used but it depends on the radio bands your region uses, if you use a firmware from a region with different bands then your radio won't work to send/receive signal.
[General Questions and Answers] _ify:
Great! It worked! Thank you so much for your help!
[General Questions and Answers] Droidriven:
First of all, you didn't check to see if the bands were the same, you just got impatient and flashed it. You are bring reckless.

That will make more of a mess and more difficult to fix if you keep jumping the gun with what you flash.

With the hole you've dug yourself into, its best that you take further questions to your devices forum to ask your questions.
[General Questions and Answers] _ify:
I understand. This is probably why I got myself into this mess in the first place.

Radio is working fine, even my bookmarked stations were still there. I still had all my data from before I had the problem.

I have no idea how to find the radio band frequency from the firmware file itself, but oh well

At least my phone is back up and running! Thanks.
[General Questions and Answers] Droidriven:
Bands are compared by looking up each region and the bands they use, not by looking at or in the firmware.
[General Questions and Answers] ChahatGupta:
I m making my first recovery flashable zip.

Want to know where can i add my signatures to protect them :)
[General Questions and Answers] maxxxz:
Hello good people. I give to my son a Samsung S5830, and I put a 4gb sd card, how can I make that everything is installed automatically in the ext card? OBB 2 sd from Xposed isn't compatible with 2.3.6,no app in the market really works... I read something here and there, but I trust only in XDA.

THANKS IN ADVANCE
[General Questions and Answers] Droidriven:
When speaking of "signing" a flashable zip, it doesn't mean signing it with your name or an identifier to know it's yours, it's true that you can add your name in somewhere to know it's yours but that isn't what signing is.
[General Questions and Answers] DirtyHarry55:
How do you find out if the bootloader is locked or unlocked on Samsung Galaxy SM-G9OOT T-Mobile
[General Questions and Answers] Brandon Nel:
*#*#197328640#*#*

Info must be around there somewhere.
[General Questions and Answers] phinhokim:
PLEASE need sombodys HELP''invalid sim card after setting [iothiddenmenu] to LTE only

I am using Samsung j3 (2016) j320p which come with android 5.1.1,

my phone is carrier unlocked but i went in IOTHIDDENMENU >>testmodeMenu>>HW test>>LTE test and i rebooted the phone hoping to get 4G network signal but when the phone booted i had this error INVALID SIM CARD,,I tried to factory restore the phone but nothing happened ,please help guys

thank you very much
[General Questions and Answers] HΞAT65534vr:
The efs partition could be messed up. Do you have a backup of it in twrp recovery? If u do, try that.
[General Questions and Answers] kjarak:
gt-i9300hello, I searched but cannot seem to find this situation.

Attempted to use odin in download mode unsuccessfully.

now:

Phone stops at first samsung logo that shows model no and goes no further.

SD card is formatted and there is nothing on it (no backups).

I can boot into recovery (not always), but not download mode. There is nothing available in recovery as card is formatted.

I normally use linux, but used odin in windows.

USB drivers are ok except mtp connection to phone via usb. Phone is recognized as Samsung Android device.

Is there a way to somehow add something to the sd card

edit:

every once in a while I can log into download mode or recovery. Phone keeps restarting and I have to remove the battery to turn it off and then enter download or recovery.
[General Questions and Answers] Haysooooom:
Question

I have "acer iconia tab 8 w" that basically runs Windows.

Q: Is it possible to install Android on it instead of Windows?
[General Questions and Answers] phinhokim:
let me look into that,,I have also try to flash the official stockrom but yet the problem remains the same
[General Questions and Answers] HΞAT65534vr:
But the thing is if u flash the stock rom it doesn't modify/change the efs partition.
[General Questions and Answers] phinhokim:
i don't have any backup of the efs partition in twrp,
[General Questions and Answers] HΞAT65534vr:
Hmm... could be sudden death syndrome on the s3

---------- Post added at 09:45 PM ---------- Previous post was at 09:44 PM ----------

Ohh..
[General Questions and Answers] phinhokim:
any work-around i can perform??
[General Questions and Answers] Droidriven:
Flashing again via Odin isn't working? Try flashing a different build for i9300 than you did. Try using the i9300 PIT while flashing in Odin to make sure partitioning is correct. You should go to the i9300 forum for specific help like you need.

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

Yes, possibly even dual boot android/windows or android/Linux or Linux/windows.

---------- Post added at 06:11 PM ---------- Previous post was at 06:09 PM ----------

Try pulling efs from stock firmware file.
[General Questions and Answers] Haysooooom:
============================

Care to guide me?

I have been trying to replace the Windows on my TAB for ages and couldn't find any solution and finally discovered XDA forums.
[General Questions and Answers] yat999:
Maybe,

My friend had Nokia X2 which was running hybrid of Windows and Android(Nokia's x software). I had replaced it with cyanogenmod 11(unofficial)

Search for it you'll definitely find something
[General Questions and Answers] silverhwx:
hi

im new to this community.Iran into a problem.

I have HTC one (m7) and i rooted it .

After rooting my device i wanted to remove the supersu app..but couldnt remove it.i had a backup...

i used the twrp and wipe the system and restore backup rom..but now

the main problem is it stuck at Htc One logo.....it doesnt boot

plz forgive me for my weak english
[General Questions and Answers] yat999:
1). To uninstall it you needed to go to settings and select option 'Full unroot'and restart

2). You don't need to wipe system to backup ROM

I'll suggest you to clean flash stock firmware
[General Questions and Answers] kjarak:
thank you for this thread.
[General Questions and Answers] TimSchumi:
If your phone is rooted (I guess it is, as you use Xposed), you can try Link2SD from Play Store.

You have to make 2 Partitions, the first has to be FAT or FAT32 and the second has to be ext3 or 4 (ext2 works too, but I experienced some performance issues) You have to do this on your PC, as the app isn't capable of repartitioning the SD-Card

At first, check if your device is compatible by using the free version, if it works, purchase Link2SD Plus to move Internal Data, Obb and so on, as the Free version is only able to move the APK file, the Libraries and the Dex Files
[General Questions and Answers] Droidriven:
There's apps for partitioning ext SD card that can be used to set links2SD up. Doesn't have to be done on PC.
[General Questions and Answers] xunholyx:
You need the SuperSU app if you want to remain rooted. Just an FYI

[MENTION=7561403]silverhwx[/MENTION], the problem is you wiped /system. There is the "default wipe" (most times this is all you'll need ~ it says that right in TWRP) and ADVANCED WIPE OPTIONS. It is called advanced for a reason. Don't do things to your phone until you know exactly what those things will do. Doing that without a ROM to flash after (on an extSD which the M7

does not have

) will leave you with no OS.

Your two options are to push a ROM via PC and ADB, or to run the correct RUU for your model of M7, also via PC.

Good luck!
[General Questions and Answers] KYLEROX:
hello everyone

i have a samsung galaxy note 4 and ever since i can remember my phone does not automatically connect to my wifi...like when i had my s4 and tab 3 everytime i should come home or go anywhere where there was a known network the phone should automatically connect to the wifi..but the note 4 just does not do that im on lollipop 5.1.1 rooted....someone help me its beginning to annoy me entering my password everytime i want to connect to the wifi?
[General Questions and Answers] Cyanandroid:
hi folk...i would like to get help with my earphones...

so i recently bought samsung's level u earbuds...but the problem i am facing is it use to connect with my s6 but i cannot find it in bluetooth devices on my oneplus one and xiaomi mi4...i dont why it is so...as the seller said the earbuds are supported to every device...can u plz help me out and tell me how do i connect with my xiaomi mi4 and oneplus one...

plz help asap...
[General Questions and Answers] limjh16:
is there any insturctions in the paperwork included about visibility of your bluetooth device?
[General Questions and Answers] Cyanandroid:
in samsung's paperwork theres written only this
[General Questions and Answers] Randula Hemal:
Hey How To Port a Stock ROM ???

I Tried In Every Methods...

sometimes Updater Script Failed

Sometimes md5 checksum failed ...

I trying To Port marshmallow ROM...

Port ROM Is Stock ROM Of J700H

My device is J700F...

changes Only With LTE Bands
[General Questions and Answers] Vishal Vignesh:
Md5 checksum failed means you havnt Downloaded the rom properly.....

How are you planning to flash the stock rom?
[General Questions and Answers] Droidriven:
The updater script fails because what you ported is for a different model number than what you own, you can edit the updater script to work with your ro.product number or you may can even just delete the updater script(completely deleting could possibly cause and md5 mismatch). Editing updater script in stock ROMs can cause issues because stock flashing requires signature checks that aren't required when flashing custom ROMs, editing updater script in CM/AOSP based ROMs is less of an issue.

The md5 error you're getting may be because the edits you are making is removing too much data and it's causing the contents that you leave behind to not add up to the md5 that is attached to the file. Typically a md5 mismatch indicates an incomplete download but it also comes from removing/adding changing stuff and that causes the file to not match its md5 because the file sizes don't match.

You can edit updater script to replace the ro.product(model number) with the ro.product(model number) of your device.

I'm not sure what you need to do to correct your md5 error but there are threads here at XDA that have methods of removing/bypassing md5 mismatch, not sure which method if any will work for you.

The more recent Samsung devices have several security checks that must pass when flashing via Odin and when device boots what is flashed, any one if those checks failing will cause an issue when flashing. On devices with locked bootloaer and/or Qfuse, not passing those security checks when flashing or booting the device can perma-brick the device so that even the manufacturer can't repair it.

---------- Post added at 09:43 AM ---------- Previous post was at 09:30 AM ----------

Just because the seller said they are supported by all devices doesn't mean they are.

What Bluetooth version are they and what Bluetooth versions do the OPO and MI4 support?

Have you tried booting to recovery and clearing cache and dalvik cache on the devices that won't connect? Are those devices running stock or custom ROMs?

If they are running custom ROMs then it may be issues in the ROMs. You would need to post the issue in the ROM threads. If those devices have custom kernels that may also be the issue, the kernel integrates hardware with software, the kernel may not support the earbuds you have.

---------- Post added at 09:49 AM ---------- Previous post was at 09:43 AM ----------

Md5 failure also comes from altering the file, causing its' contents to not match the md5. An incomplete download is not the only cause, just the most common.

For example, if you pull something from a nandroid backup in a manner that completely removes it from the nandroid then try to restore that nandroid with that part missing, it will give you a md5 failure.
[General Questions and Answers] phinhokim:
hey guys thank you very much,I tried to root it and i succeeded but i couldn't run the commands adb while in recovery mode so i just decided to take it to a repair office and they did the magic with repair box on the phones now works like a charm...

thank you
[General Questions and Answers] hackerjak:
xperia Z1s c6916

Can't connect to 4G

Can't disable default APN

Phone Info

Disconnects:===========DATA============

Network Type:EDGE

Bootloader Locked

No system R/W permissions

Only getting 2G in 4G LTE covered area

No option for 4G, even in Phone Info (*#*#4636#*#*)

Any help on this?

I guess no one knows -_-
[General Questions and Answers] Eswar Janjanam:
Cannot install dolby atmos in my j700f

I had seen a post on installing dolby atmos in galaxy j7. I did everything correctly. But after restarting my phone I cannot see dolby atmos installed. I had xposed framework installed in my j7. I do not understand what is the problem. Please help me installing dolby
[General Questions and Answers] bouyett:
I need help i soft brick my phone and since then i have been unable to use it i have flash it with different rom it onlt display infinix logo and off again.
[General Questions and Answers] Droidriven:
Are you saying you flashed something for a different device on yours?

Finding your original stock firmware then flashing it via PC is about your only option. Or flash a custom recovery that is made for your specific model number then find a custom ROM for your model number and flash it if any exist, if not then your only option is flashing stock.
[General Questions and Answers] mrdgaf?!:
My su super user doesn't work it says the binary can't be found and I have to manually root it I'm lost...

~T¤₩N~
[General Questions and Answers] Vishal Vignesh:
Do you have a custom recovery like twrp or cwm?
[General Questions and Answers] zafes:
can someone help me?

Sorry for My Bad English. Im From Malaysia by the way.

I use a Samsung Galaxy Core i8262

Yesterday I install apps2sd in the phone. I format sdcard. I created partition. Then I restarted the phone.

After that I tried to move the file into sdcard. But to no avail.

So this morning I'm fed up and I only format sdcard and did not do anything.

But the problem now when I want to install apps from playstore in the internal memory (3GB available) it tells "insufficient free space".

How do I solve this problem.

Maybe i should just format my phone. And its the last thing i would do...
[General Questions and Answers] Droidriven:
Did you format and create the new partition in ext4 format? You don't just format and create partition, you have to create the right "type" of partition. The partition you move apps to isn't in the standard format that is usually used.

Try booting to recovery and factory resetting the device then start over. Formatting the phone itself isn't necessary and can lead to causing issues if you are not careful. If factory reset doesn't do it you can flash your stock firmware and start over from the beginning.
[General Questions and Answers] zafes:
can someone help me?

Sorry for My Bad English. Im From Malaysia by the way.

I use a Samsung Galaxy Core i8262

Yesterday I install apps2sd in the phone. I format sdcard. I created partition. Then I restarted the phone.

After that I tried to move the file into sdcard. But to no avail.

So this morning I'm fed up and I only format sdcard and did not do anything.

But the problem now when I want to install apps from playstore in the internal memory (3GB available) it tells "insufficient free space".

How do I solve this problem.

Maybe i should just format my phone. And its the last thing i would do...

---------- Post added at 15:06 ---------- Previous post was at 15:01 ----------

Okay i will try it and thanks for a fast reply. :good:
[General Questions and Answers] Rosli59564:
Internal memory and system memory are 2 different partitions. Maybe your system memory is full.

Sent from my SM-N920C
[General Questions and Answers] zafes:
How to open my system memory?
[General Questions and Answers] Droidriven:
Your supposed to create the new partition on external sdcard.

When they said system memory, they meant your internal storage where apps get installed which would be in /data/app folder.

To access that space open ES file explorer, swipe to the page to the right, tap the / symbol on the left in the bar above your folders, then tap data folder, then tap app folder, in there is where your downloaded apps are installed. If that space is full you won't be able to download any other apps.
[General Questions and Answers] peterogg:
I tried to flash twrp but it failed
[General Questions and Answers] zafes:
Yes it full. Do i have to delete it to save some space?
[General Questions and Answers] pongsnake:
Music app crashes/stops after 6-10 min.

Hello XDA-Community,

I recently bought a CUBOT Dinosaur. I am really happy with my phone, however I have noticed that music apps stop after 1-2 tracks. It seems like the app times out or something like that. I have checked storage permissions to see if they were disabled or anything.

The device is not rooted.

It has 3 GB of RAM.

Music works when the screen is on.

It is about 1 week old (The device itself)

Any help is greatly appreciated :)

Regards, MM.
[General Questions and Answers] Akhilsreegiri:
Hii Am Lg G2(D802TA) user. Recently my phone screen is jumping up and down. What could be the problem? It's Flickering. Pls help me find possible fix.
[General Questions and Answers] yat999:
Just try another music app like Musixmatch or Google play music
[General Questions and Answers] Droidriven:
No, you can delete some of your downloaded apps or you can boot to recovery and factory reset in recovery, it wouldn't hurt to wipe cache while you're at it, then you should have space, factory reset will remove all of your downloaded apps and their data, you can use Titanium Backup to backup those apps and their data then restore them when you get your partition and space setup correctly then move them to SD card.
[General Questions and Answers] pongsnake:
I've tried various ones. They all close in the background after a few tracks.
[General Questions and Answers] Droidriven:
What did you use to flash it?

If you used Odin and it gave you a PASS but you still have stock recovery, its because you missed booting to recovery after flashing. If this is what happened for you, flash with Odin again but this time make sure the "autoreboot" option in Odin is UNCHECKED before you flash, after flashing disconnect device from PC, remove battery, reinsert battery, boot to recovery with the button method and you should boot into TWRP.

Alternatively, you can use Flashify app or TWRP manager app to flash TWRP as long as you select the correct model number.

---------- Post added at 02:46 PM ---------- Previous post was at 02:39 PM ----------

Its either a hardware issue with screen, especially if it has been dropped a lot or even one hard drop? Or it could be a kernel issue? Could also be a battery issue maybe.

---------- Post added at 02:51 PM ---------- Previous post was at 02:46 PM ----------

You need to find an app that allows you to manage your devices wakelocks, use it to find which wakelocks you need to enable/disable to get music to continue when screen is off. When your device goes into sleep mode it stops further processing, it keeps going with what was already loaded, your music for example but when the song ends, it doesn't start another.

Information for using and setting wakelocks is very easy to find if you search.