yashsingh1/xdaforums huggingface dataset:
[Moto G Q&A, Help & Troubleshooting] Spaciouz:
Hey all, before I start I'd like to apologise for making the post here but I don't know what you guys would classify the state of my phone as, "bricked, soft-bricked, hard-bricked", I have no clue! As a result I have no idea what threads to start looking in so I've come here to make this, sorry again!

I'm here looking for help because I think I've completely destroyed my Moto G and really really would like to fix it.

Basically, I had been running an old version of CyanogenMod for months and was not able to update due to the fact my bootloader was not updated. After finally updating it through a tool on XDA, I installed the newest version of CyanogenMod onto the phone and it was all going well, except for the fact all of my Google apps were crashing and making it impossible to use.

Now, I'm not sure why, but without taking any precautionary measures or looking into it at all or what I needed to do, I then decided to try and flash a Paranoid Android rom onto the phone, which installed fine. I load the phone up and something comes up with a passcode saying I need to unlock it to use the phone. I put in some random things and eventually get it, but it says my data is corrupted and therefore I need to reset to factory settings and there's a button there to do it. I think "why not" and click.

So now, the phone did something weird and basically went into a bootloop of the PA logo, so I restarted the phone and went to the bootloader thing. When doing "Normal Startup" it loads the phone with the PA logo like before, comes up with a brief "Android is Upgrading" screen before showing me the passcode screen for half a second, before repeating this, thus having a bootloop. Every so often, I can put my code in and press the reset button again, but it does the same thing.

On the other hand, if I try to access my ClockworkMod recovery system, the screen repeatedly flashes with the CWM background of the Android Alien guy, as if to say it keeps trying to start but it cannot.

TLDR: I cannot access my phone through a normal powerup or through my recovery, have I screwed it completely?

I'd hugely appreciate any help here guys because I'm stressing like I never have before here, thanks!

EDIT: it is the X0123 version!
[Moto G Q&A, Help & Troubleshooting] TechMinerUK:
Just a few questions before I start suggesting a full flash to stock.

Did you have any SIM passwords, boot passwords, CWM passwords before flashing?

Also In CWM does it flash before any options are selected and did you dirty flash the new ROM over the old ROM?

Anyway, your phone is not hardbricked as it can get to recovery so thats good news.

I would suggest flashing your phone back to factory stock using the tools here on XDA (http://xdaforums.com/showthread.php?t=2542219). That should hopefully resolve most of the issues and then if you feel like it you can start flashing custom ROMs again.
[Moto E Themes and Apps] pvnsai73:
Link to advanced sound mod

http://xdaforums.com/showthread.php?t=3144246

Things to do

Actually the mod works on moto e lollipop also

But

1.take backup of ur mixerspath.xml

2.flash the asm mod

3.flash the ota updates

4.restore the mixerspath.xml yu backed up first
[Android Q&A, Help & Troubleshooting] Lordfazi:
I recently bought an acer tab 7 TD070VA1. Android version 4.2.1 Kernel v 3.4.5. Build 1.62-20140211

Rooted by company, i bought this tab from china ( original) but since google play store is blocked in china so they root all devices and put their chinese markets ( really ****ty ) .so now i am back home and here Google play store works so i wanna have google play store or get new android with play store but i cannot find any rom for this tab . It would be great if some one can share a link so that i cant update, and little guideline would be great !
[Android Q&A, Help & Troubleshooting] Drtodpoli:
Acer tab 7 TD070va1

I have the same problem. I want to install the US version for this device. Have you found a ROM or does anyone have a ROM that will work on this device?
[General Questions and Answers] alex-kas:
Hello!

This is a discussion thread for NEC Terrain.

The hardcore steps, which are bootloader unlock, rooting and even repartitioning have found their solutions and can be found in:

http://xdaforums.com/show....php?t=2515602 for the discussion

https://github.com/x29a/nec_terrain_root for an apk which opens for you an ability to have the system area of the phone writeable

https://github.com/alex-kas/nec_terrain for the last ideas on how recovery and boot images should be and a list of stock apps to disable with explanations

So, all questions regarding all the above should be asked in that thread as they are off-topic here.

Currently we have to use this device with its stock components. You are welcome to contribute with workaround related to known oddities here.

Note that many questions were already asked in the above mentioned thread and some of them have answers. However, since that thread is supposed to for the rooting/unlocking, it is more than logic to separate the topics and discuss the end-user phone features here.

If you have a serious idea towards a new custom ROM then you should go here

http://xdaforums.com/android/software-hacking/rom-nec-terrain-custom-rom-t3162061

That thread is dedicated for the developers of a new csutom ROM for NEC Terrain

Thanks for understanding the thread aim and welcome!
[General Questions and Answers] alex-kas:
First exploration

You can find apps which can be disabled with some explanation why in

https://github.com/alex-kas/nec_terrain/tree/master/system

The speciall account should be paid to the following issues:

Why stock Contacts and Phone must not be disabled

Why apps with provider in their name should treated carefully

Current impossibility to activate a soft keyboard (if you need chinese, for example).

The latter question of a soft-keyboard for this phone has been asked before in

http://xdaforums.com/show....php?t=2806270

and has no answer. There is further discussion on this in my github (see above)

On more oddity which at least my phone has: when I travers to

Settings->wrieless & networks->more...->Mobile networks

I see as the last option "network operators". This option i constantly greyed out. It is useful in roaming as often different orpeators have different prices. Also, near the borders of a country som eforeignn operators can be captured. This is bad. Anyone with ideas on this?
[General Questions and Answers] Daxiongmao87:
i was wondering if someone with a fully functional Terrain upload their /system/app folder and its contents, I've seemed to remove an essential app somewhere and now I can't do phone calls or terrain hotspot.
[General Questions and Answers] jasonmerc:
I can do this tomorrow. I am able to phone call, hotspot, etc. I've noticed that with me, sometimes the phone UI won't show up when someone calls me so I cannot answer the phone... If this happens, just do a Wipe Data on the phone apk and reboot.
[General Questions and Answers] Daxiongmao87:
[MENTION=5006327]jasonmerc[/MENTION] much appreciated! My backup phone just isn't cutting it for me!
[General Questions and Answers] jasonmerc:
No problem man :). Just curious, what is your backup phone? :D
[General Questions and Answers] Daxiongmao87:
My nieces phone for her upcoming birthday. The excuse I'm making to myself is that I'm "test driving" it. It's called the Xperia Tipo, she's only 9 and would be using it at more or less a little toy; no SIM card. I have better ones actually, HTC One and a Moto X (2013), the latter being my favorite phone without a hardware keyboard.
[General Questions and Answers] alex-kas:
I'm wondering about 2 questions, guys:

1. [MENTION=6077203]Daxiongmao87[/MENTION], what is the hotspot you are talking about?

2. [MENTION=5006327]jasonmerc[/MENTION], can you provide to me the list of your apps, enabled and disabled? Or, if you just uninstalled them (so no disabled) then only enabled.

I want to see the list given in adb shell by

pm list packages -e -f [for ENabled with file-names]

pm list packages -d -f [for DISabled with file-names]

I'm curious about this can/cannot do phone calls. I had established some dependence but you have said you CAN do calls with attsettingsprovider disabled and even see contacts. Very strange to me and I want to find the truth ;) I.e. Can I or not eventually get rid of stock contacts at all.

Thanks in advance.
[General Questions and Answers] Daxiongmao87:
[MENTION=6676511]alex-kas[/MENTION] hotspot meaning wireless tethering. There's a system app with the package name containing hotspot. I believe jasonmerc already provided me with that earlier along with the phone apk, but ultimately did not help fix my issue. My symptom for the two issues are as follows:

Wifi Hotspot (Tethering)

-Under the Tethering & portable hotspot menu, toggling Portable Wi-Fi hotspot reveals a subtext that reads "Failed to set transmit power"

Phone Calls

-My phone no longer notifies me whether or not I have a SIM card. No icon or any indicator at all. My signal icon always shows zero bars. attempting to make a phone causes Contacts to crash ("Unfortunately, Contact has stopped.") and haults the phone call process.

I hope this information helps a little bit. More than likely i'm missing a vital app that I carelessly removed upon tinkering.
[General Questions and Answers] alex-kas:
Have you read my github?

https://github.com/alex-kas/nec_terrain/tree/master/system

If not, try to see there. I spent quite a time and I'm sure my phone IS working in both aspects you mention. Pay attention to: contacts, phone, attsettingsprovider and installation of "dw contacts". All of that is by purpose. Perhaps, my phone would not work w/o "dw contacts" but I just learned that a replacement (which joins phone app and contacts app, which are disintegrated once you remove attsettingsprovider) MUST be.

You will find there files: lists of enabled and disabled programs. Compare with yours. In adb shell:

pm list packages -d [gives disabled packages] -s [if only system]

pm list packages -e [gives enabled packages, all, system and 3-rd party] -s [if only system]

My lists contain ONLY system apps. 'system' are those who reside in /system/apk OR in /data but are upgrades to initial system apps. Hope this helps. If you have put there superuser - it is system now, for example.

I can also imagine that moving some app to sdcard makes the system buggy. I had no full skype autostart then it was moved.

hotspot in the name does NOTHING with tethering.
[General Questions and Answers] jasonmerc:
[MENTION=6676511]alex-kas[/MENTION] you should have a full list of apps I have installed already, I PM'd you a list a while back. About to do the /system/app dump, most likely I'll package it as a zip or 7z file and upload and share from Google Drive.

Also as a little update, I mentioned the GPL stuff in my ATT thread. Waiting for a response ;)
[General Questions and Answers] jasonmerc:
Here's the contents of my /system/app folder. Apparently I don't have ATTSettingsProvider.apk, BUT I still have ATTSettingsProvider.odex if that makes a difference.

https://drive.google.com/file/d/0BxupjEjigG4taFZhWXl3RjVULTA/view?usp=sharing
[General Questions and Answers] Daxiongmao87:
http://pastebin.com/1yRtvVhz

Thank you for your assist!!

And [MENTION=5006327]jasonmerc[/MENTION] thanks a bunch!! Giving it a shot now

EDIT: back online with wifi tethering and cell network:) thanks again guys

Edit 2: By the way, has anyone experienced unexpected reboots during high RAM usage? Games for example?
[General Questions and Answers] Daxiongmao87:
[MENTION=6676511]alex-kas[/MENTION] after successfully applying your custom recovery and resizing my partitions i seemed to have lost my boot animation and sound. It just shows a black screen. Is this intended? Perhaps with the new build.prop?
[General Questions and Answers] alex-kas:
Yeap, i disabled bootanimation. It seems to increase the boottime even more.

Sent on the go
[General Questions and Answers] jasonmerc:
Yes, I've experienced reboots when doing multiple things. For me it's usually just watching a video or something... Perhaps it overheats and that's what causes the reboot. On average my Terrain's CPU is somewhere in the 120°F range, and if I use it it can go up to 145°F at times. It will sometimes even get so hot that I get a notification stating the device is too hot to continue charging, and I need to try charging again in a few minutes. Is this normal?
[General Questions and Answers] Daxiongmao87:
Hmm I thought I replied to this. I experience overheats as well, but mostly when using maps. However, I haven't been able to see a correlation between reboots and overheating. I have a feeling that when available memory gets too low the system becomes unstable and inevitably reboots. With the new partition size I was able to install hearthstone without any need for apps like Link2SD, but upon loading all of its assets to start an actual game session it reboots every single time. When not attempting to play that game, during times where the phone feels sluggish or unresponsive, it often follows with a reboot.
[General Questions and Answers] alex-kas:
This is exactly what I have denoted as the kernel bug, see

http://xdaforums.com/showpost.php?p=61915007&postcount=293

In addition to the info there: reboots happen if several not so big files (say, 50MiB each) are read in a row, not just a single file of > 500MiB. Loading a large set of game assets just confirms this.

I traced this bug and the point is that its origin is a mystery to me. It is in a part which I would never imagine was changed from the linux source. Just no need for this.

In short, the ext2,3,4 driver, reading data, then caches them (linux always caches, all it reads, as much as possible). At some point the cache request to allocate the memory just ignores the negative answer (i.e. no memory), it just does not check this answer at all and caches to NULL, i.e. start of the memory, where the memory map is. As it is the kernel, it has right to write there, writes, kernel panics - reboot.

How come? I have no idea. This code was already working in about 2005 ... and bug-free in about 2008 ...
[General Questions and Answers] jasonmerc:
[MENTION=6676511]alex-kas[/MENTION] you get what you pay for I guess...
[General Questions and Answers] alex-kas:
What exactly you mean? The phone is not that cheap. If new. Especially from att.
[General Questions and Answers] jasonmerc:
I thought it was an inexpensive device. Mine was $60 unlocked used (like new), and I've seen new unlocked ones going for $90 before. Even from ATT now they're only about $100 or so right?
[General Questions and Answers] Daxiongmao87:
I bought mine on amazon for 100. At the time it was a 2 year phone
[General Questions and Answers] gamerka:
Hi!

Have anyone found some solution for wi-fi turning off by itself when there's no internet connection on that hotspot?

It's very frustrating when you for example trying to setup wi-fi router and it has no uplink yet(
[General Questions and Answers] alex-kas:
No, not found (at least me), but. You maybe interested in the system folder of my github. There you will find a big list of apps I have disabled. I confirm that even with all that garbage off I have your issue.
[General Questions and Answers] alex-kas:
Workaround for random reboots

After a really big number of experiments I claim:

1. Random reboots are caused by the ext3 and ext4 drivers in the kernel.

2. They occur when a significantly big portion of data is read, either from a single file or from multiple files in a row. My readable maximum was 501MiB.

3. They do not correlate with the size of partition. I.e. the phone would reboot would you ask it to read a big file on the original 800MiB partition.

4. They are not present in ext2 or vfat.

5. Kernel supports only the listed above partitions, no btrfs for example.

NO PLAY with ext4 (or ext3) made me free of reboots in situation when data is being read intensively. I tried all known to me options (as well as really obscure ones) and I believe all crazy combinations of all of them. So, no luck.

The workaround is to reformat userdata (which is your /data folder) as ext2.

Pros: no reboots. They have GONE, guys!!! Also, a bit higher performance on writes.

Cons: no journal, i.e. more chances of data loss on an unclean reboot, longer bootup time as the phone dose fsck on this partition and this takes longer time then for ext4, slightly lower performance on reads.

For sanity I reformatted also system (/system folder) to ext2.

Well, normally I would NEVER go to ext2 as long as we have ext4, but in the absence of a kernel source which would allow to fix the reboots issue, this sounds reasonable to me.

You can reformat in the new recovery environment. The command is

mkfs.ext2 [better with the following options -b 1024 -i 4096] /dev/block/mmcblk0p13 [for userdata or 12 for system]

However, you must download a very new boot image from my github as well because the init.rc script, which is in the boot image, mounts partition specifying their type explicitly. Thus, if you reformat a partition, you must adjust the lines in init.rc The very last image has now two variations. One when system and userdata are ext4 and another when system and userdata are ext2.

Backup scripts for system and data partitions exist, read github and see self-explanatory names of scripts.

Problem: you may want to preserve you programs and settings ... You will try to do the backup running the script

/rbin/bu_data.sh

in the recovery. It simply tars files. The point is that (especially if you have enlarged your data partition already) the total size of files is bigger than 500MB and you will see the manifestation of the bug (the shell will issue MANY strange errors or halt eternally). Indeed, you are still having ext4 there in data! Sh*t! Sorry, but I have NO automated workaround for this. As a guess, you may tar in portions by hands, or you may do dd to sdcard, then copy to you pc, then explore on your pc and create tar there, upload the tar file to sdcard and "restore" your backup after reformatting. Many steps, really. I just restarted the phone anew. Google helps to reinstall everything.

For those, who want to try (and get rid of annoying reboots) - good luck!
[General Questions and Answers] mastersalo:
Keyboard qwerty physical failed

Hi,

I experimenting and have very result now I have 4 GB in GROW excellent.

So, now my key board trunked, I need the apk who driver the function correctly on keyboard physical.

can you help me ?

I need its

com.kpt_nec.adaptxt = /system/app/NEC_Adaptxt_Base_v1_2.apk

com.android.providers.userdictionary = /system/app/UserDictionaryProvider.apk

I will be grateful to you, if you can help me, I'm stop without the driver apk for keyboard

Very IMPORTANT the apk has odex archives for functionality.
[General Questions and Answers] alex-kas:
Attached are the files you ask for.
[General Questions and Answers] mastersalo:
thanks

Hi, thanks very much I have a debt with you, if there are some I can do for help to development of NEC terrain, I'm here
[General Questions and Answers] smsdalle:
no 3G

Hey Nectarine lovers.. I have a problem with my nectarine.. I've been using it with great joy here in Denmark since February.. But I only just found out that I'm only using 2G network.. no 3G network for me.. and I know the MHZ and Bands need to be the same as in the states.. and I've checked with my carrier and I have at least one on the 3G - 2100mhz band 1...

Funny thing, when I check the antenna's of our phone on phonecoop.com, and compare them to my girlfriends S4 Mini.. we have all the same antenna's.. and her phone is flying with 7Mbit where I have 0.2Mbit.. and if I change to my old HTC I also get 3G - 5-7Mbit..

So.. anyone tried this? no 3G?

hope somebody can help.

Greating, Daniel

P.S. My phone is stock, not rooted
[General Questions and Answers] fragilematter:
Sorry for wasting your time, it seems like the SD card mounting issues were solved by reflashing kas.boot.bin. I still have no idea what happened to mess it up.

Thanks and keep up the good work!

Original post below:

Hi guys,

I have recently encountered an issue with the terrain and I can't seem to fix it.

Suddenly, it doesn't want to mount the internal storage (GROW). Trying to cd to the /mnt/sdcard folder gives an I/O error. Opening Settings -> Storage crashes the settings app.

I can successfully mount mmcblk0p14 without issues in an alternate folder and write files to it, I have even done a format with vfat_new via kas recovery (thanks for it, you rock) and it still won't mount it properly on boot.

I have also tried stopping the sdcard service, recreating the sdcard folder and restarting the sdcard service, but it's still inaccessible and there are no error messages in dmesg after these operations.

My hypothesis right now is that me or a program have messed up something in system, but I'm not an android noob and I can't recall doing anything dangerous.

My next idea is to get access to a stock terrain, dump the main partitions via run_root_shell and write them back to my device.

Any other ideas of what I could try before doing a full dd on it?

Thanks!

Oh, one more off-topic thing: that serial device that appears after you enable maintenance mode in the original recovery - ModemManager on Ubuntu tries to use it as a modem. This makes the phone reboot every time you connect it to the computer, independent of your connection options or usb debugging setting.

I had to create a udev rule that stops ModemManager:

ATTRS{idVendor}=="0409", ENV{ID_MM_DEVICE_IGNORE}="1"

Maybe this comes in useful to someone.
[General Questions and Answers] mastersalo:
I need a apk file

hello. can someone spend the contact.apk file ?

---------- Post added at 02:47 PM ---------- Previous post was at 01:52 PM ----------

hello. can you spend the contact.apk file ? please
[General Questions and Answers] FFDA:
Did you deleted it?

I guess you need Contacts.apk. I will add .odex file too just in case you are missing that too. Good luck. ;)
[General Questions and Answers] mastersalo:
TXS, I do not del

Thanks, I do not delete really

I rename the apk file, after did a hard reset becouse not work.. and I clean cache he phone but no work
[General Questions and Answers] mastersalo:
I can not install the files

Hi, is it apk @ odex files of android 4.0.4 for NEC terrian ? I can not install the files
[General Questions and Answers] FFDA:
Yes they are

I pulled them from my own NEC Terrain. You should just push (or copy/move any other way) them to /system/app directory and they should work. You do not have to do anything else with them.

P.S. I guess you will need to restart the phone after putting files into /system/app directory.
[General Questions and Answers] mastersalo:
Hello, I did all that and my phone will not start, I do not understand this part [you must download a very new boot image from my github as well because the init.rc script ] where is it scrip ?

---------- Post added at 06:10 AM ---------- Previous post was at 06:07 AM ----------

Hello, I did all that and my phone will not start because I did not do this on this page but could not solve anything now my phone will not start.

http://xdaforums.com/general/help/q-nec-terrain-discussion-t3162070/page4#post65245132

but I could not solve anything now my phone will not start.

I can only enter recovery mode
[General Questions and Answers] FFDA:
You shoudn't have done it.

You should have fixed the missing contacts app first, before trying to do more complicated stuff.

That guide you followed isn't that detailed. You should have used this one.

I guess you messed partition table up, so try to follow this guide maybe it will fix it.

For information on how to flash newest boot image (version 0.9) go to this guide. You can download all the images of boot.bin that [MENTION=6676511]alex-kas[/MENTION] published here.
[General Questions and Answers] mastersalo:
I did my NEC Terrain boot image of alex-kas, now the phone only load in recovery mode.

so I do not know how to restore boot image from recovery mode.