yashsingh1/xdaforums huggingface dataset:
[Fire TV Original Android Development] zeroepoch:
Tips and Tricks

NOTE: These changes, unless otherwise noted, are performed while logged into the target Ubuntu system.

Setting the Hostname

You can change the hostname using the following command:

echo sloane > /etc/hostname

You should also create a simple /etc/hosts file that matches the chosen hostname.

127.0.0.1 localhost
127.0.1.1 sloane

Enable Ethernet at Boot

Create the file /etc/network/interfaces.d/eth0 with the following contents:

auto eth0
iface eth0 inet dhcp

Allow Users Network Access

Since we are stuck running an Android kernel you need to create the following group and add users who need network access (such as ping) to this special group.

groupadd -g 3003 aid_inet
usermod -G aid_inet -a root
usermod -G aid_inet -a <username>

Removing Failed Services

There are a few services that fail to start due to hardware limitations. We should just prevent them from starting in the first place. We have no VT support enabled in the kernel (boo) so we can just remove the ttyX login prompt services. Also the console setup doesn't work since our console is a serial device not a virtual terminal or other "graphical" type terminal emulator.

rm /etc/init/tty?.conf
echo manual > /etc/init/console-font.override
echo manual > /etc/init/console-setup.override

Fix /dev Hotplug

As stated before udev doesn't work due to missing kernel features. The busybox applet mdev is a simple replacement for most users. After installing the "busybox-static" package run the following command:

ln -s /bin/busybox /sbin/mdev

Now add the following line to /etc/rc.local before "exit 0".

echo /sbin/mdev > /proc/sys/kernel/hotplug

Pre-installing SSH

See: http://xdaforums.com/showpost.php?p=65595013&postcount=13 (thanks [MENTION=7306740]segfault1978[/MENTION])
[Fire TV Original Android Development] segfault1978:
Thanks a lot, that was exactly the thing I was searching for. Since before today the Raspi3 came out, this box is the cheapest ARMv8 development machine available. With your instruction I was able to login via SSH and install all required software for my development environment. No GUI needed for that, I'm doing all remotely via SSH. Again, thank you!
[Fire TV Original Android Development] zeroepoch:
Awesome to hear that it worked for you. Just curious if you went the USB serial route or soldered to the UART pins.
[Fire TV Original Android Development] zeroepoch:
There is also the Dragonboard 410c which is a quad core A53 but has a bit more than the raspberry pi. The price is higher though but it has been out probably a year or so. Just FYI. The raspberry pi 3 is a good deal.
[Fire TV Original Android Development] segfault1978:
None of these methods (since I was in my weekend and all cables and adapters reside in my office) :)

I placed all .deb-files for openssh-server including all requiremens onto the microSD card, and placed a call "dpkg -i /*.deb" with logging options in /etc/rc.local. I also configured network by mounting the sd card, editing /etc/network/interfaces, and last changed /etc/shadow to have a valid root account for login. It took my some try-and-error loops, but finally it worked as expected. Call me crazy, but I succeeded without any hardware.

---------- Post added at 09:09 PM ---------- Previous post was at 09:03 PM ----------

Thank you for the hint, I'll have a look for the availability of this board in germany.
[Fire TV Original Android Development] segfault1978:
I'm facing a memory problem, resulting in a reboot of the device when all RAM is being used. My compile session takes more than 1.x GB of RAM for the quite complex compilation of all required packages. I can reproduce the situation where all memory is consumed and the device instantly reboots when hitting "no memory left" situation. Since "swapon" is not supported by the kernel (really?): is there any way to enable swap functionality, i.e. via a kernel module? How to overcome this situation where more memory is needed?
[Fire TV Original Android Development] zeroepoch:
That is pretty crazy, but since you knew the changes required it worked :) Not everyone I expected to have such experience. I figured someone might even try to do a qemu chroot or debbootstrap to preinstall openssh. Multiple ways to solve the same problem I guess.

Looking at the default kernel config from the source code drop from Amazon I see:

# CONFIG_SWAP is not set

Swap can not be compiled as a module. Even if you chose to use a USB stick or something as the swap device It wouldn't work. Given that we can't change the kernel we can't try stuff like zram or zswap either. The only other suggestion I might have is if you're using "-j4" or something while compiling just remove that so it does a single threaded compile. I'm sure you already tried that. Beyond that you could look at using the Linaro AArch64 toolchain and cross compile. Since we're running Ubuntu you shouldn't need to worry about static binaries.
[Fire TV Original Android Development] segfault1978:
Unfortunately, I'm not compiling with parallel processes (I'm compilig Icinga2 for arm64), I'm running

dpkg-buildpackage -us -uc

within the source package. One single cpp call consumes so much memory (which is crazy in my eyes, never seen such a big compiler process until today), so I'll investigate the option of cross compiling and afterwards creating the deb file outside of the machine.

cd /root/icinga2-2.4.3/obj-aarch64-linux-gnu/lib/base && /usr/bin/aarch64-linux-gnu-g++ -DI2_BASE_BUILD -Doverride="" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -pthread -std=c++11 -Wno-inconsistent-missing-override -fPIC -I/root/icinga2-2.4.3 -I/root/icinga2-2.4.3/lib -I/root/icinga2-2.4.3/obj-aarch64-linux-gnu -I/root/icinga2-2.4.3/obj-aarch64-linux-gnu/lib -I/root/icinga2-2.4.3/third-party/execvpe -I/root/icinga2-2.4.3/third-party/mmatch -I/root/icinga2-2.4.3/third-party/socketpair -o CMakeFiles/base.dir/base_unity.cpp.o -c /root/icinga2-2.4.3/obj-aarch64-linux-gnu/lib/base/base_unity.cpp

I'm a novice in android devices: What would be required to use a custom kernel? A hacked boot loader, which is not available for the AFTV2?
[Fire TV Original Android Development] zeroepoch:
Yep... we need to be able to use fastboot to boot an unsigned kernel and initramfs (boot.img). I tried at one point to overwrite the boot partition with own image and it failed to boot. Since I had the preloader stuff worked out already I was able to restore the original boot image and get it working again.

On a side note, if you don't mind could you post the list of packages needed to install SSH server from rc.local? Others might find that useful. To get around the unset password issue you could have also saved a public key in /root/.ssh/authorized_keys which would also avoid you needing to change /etc/ssh/sshd_config to allow password logins as root.
[Fire TV Original Android Development] zeroepoch:
I see you are not using -pipe which is good, but a quick search suggested something that might not be simple since this package has it's own build system but changing from -O2 to -O1 might help.
[Fire TV Original Android Development] zeroepoch:
I noticed that Debian has the package available for the same version and already built for arm64.

https://packages.debian.org/sid/icinga2

Maybe you already tried that. You could try going back to jessie which is probably an older version but I think most jessie packages work with Ubuntu 14.04.
[Fire TV Original Android Development] segfault1978:
This is the list of packages I manually downloaded for ARM64 (unfortunately I used Debian packages which worked first, but leads to a hell situation afterwards when dealing with other dependencies; be sure to use Ubuntu packages in order to avoid problems afterwards):

busybox_1.22.0
libedit2_3.1
libgssapi-krb5
libk5crypto3
libkeyutils1
libkrb5
libkrb5support0
libwrap0
openssh-client
openssh-server
openssh-sftp-server

This is the piece of calls in /etc/rc.local, right before the exit:

dpkg --force-all -i /*.deb > /install.log 2>/install.err
echo $? >> /install.log
echo "installation finished" >> /install.log

It took about 1-2 minutes before SSH started to work automatically, you can mount the SD card afterwards in another system in order to check the written logfiles.
[Fire TV Original Android Development] zeroepoch:
Here are some notes for getting wireless working. In addition to the normal OS steps (installing wpasupplicant or wireless-tools and editing /etc/network/interfaces or using wicd) you will need some firmware files from /system (/dev/mmcblk0p13).

mount -o ro /dev/mmcblk0p13 /mnt
cp -r /mnt/etc/firmware/ /lib/
cp -r /mnt/etc/Wireless /etc/
umount /mnt
[Fire TV Original Android Development] mrchrister:
So, what's the verdict on this? I want to use my firetv 2 as an emby server. Is it worth it trying to get Ubuntu to run?
[Fire TV Original Android Development] zeroepoch:
If it has arm64 packages and headless you can give it a try. If you don't like it you can just revert the ramdisk and go back to Android.
[Fire TV Original Android Development] mrchrister:
Ok sweet, thanks for the reply
[Fire TV Original Android Development] KLit75:
Just curious if anyone's tried running Plex server on this?

I've been looking for a better solution without shelling out $500+ for a dedicated NAS. AFTV is tiny so I could hardwire it and hide it away.

Thanks
[Fire TV Original Android Development] mrchrister:
I got the same idea. Right now the firetv is still being used as a media streamer but I'm thinking of doing this soon
[Xperia Z3v General] TracerBullitt:
Hey guys, friendly, neighborhood, T-Mo Sony (Z3) enthusiast here. Congrats on the Lollipop!

So, the wife and I have been going back and forth over her wanting to leave for Verizon (because, she suffers from unreliable reliability?). Between my bias for Sony and T-mo's features (I listen to music all day at work w/o data restrictions), I'm reluctant to leave. (Note: the back has started to peel off so I'm on borrowed time with this Z anyway)

If I WERE to leave, I can't tell if Sony/Verizon relations have deteriorated after the Z4v debacle where they won't get the X, or if I should look at the Nexus 6P, the new LG, or the :shivers: S7 Edge (I've been avoiding Samsung, but that VR tho). I'm afraid of both, getting stuck with Verizon and without a new Sony phone for a while (or forever?).

A few days back, I'd told the Mrs. I could cheaply get a Z3v online but then read the complaints on these forums and backed up/out. You wouldn't believe the eye-roll I got when I said I might look at the Z again after the update, lol. So what do y'all say? Is it worth staying in the Sony ecosystem (I rarely use but enjoy the PS4 connectivity), should I look at other Verizon phones, or just stick with T-Mo and get the X later?

Thanks for reading.
[Xperia Z3v General] GigaSPX:
It really depends on what you're looking for. The Galaxy S7 is hailing great remarks because it's now very refined in its premium body, expandable storage and waterproofing returns. For the average consumer nowadays, they just want the latest and greatest tech.

It's impossible to really tell if Sony isn't going to release anymore phones Verizon. The chances are highly slim, but who knows what they have in store about the new X series. So you may grab this phone for cheap on eBay, but you're only going to get as far as you can in playing around and customizing to an extent until it gets a bootloader unlock. I don't know if you're interested in that, but that's it now for a phone that Verizon isn't going to do much more for it.
[Xperia Z3v General] 1linuxfreak:
Be aware that the USB door has problems with seal tearing, and camera in camera/video mode will overheat in hotter ambient temperatures (sometimes for no reason) and shut down, other than that nice phone.

Like the rest, don't see the Z3v getting anything past Lollipop unless it gets an unlocked bootloader, although some articles say it will see Marshmallow.
[Xperia Z3v General] MGSBigBoss:
Flaps aren't a issue with the z3v because you can just wirelessly charge. Limiting wear on them. And yes I think add of right now this phone will easily hold me over another year. I'll see about the X when it comes out.
[Xperia Z3v General] TracerBullitt:
I'm getting close to just pulling the trigger on the Z3v. I figure, its cheap enough that if something miraculous happens between Sony and Verizon, OR if Sony's next phones DON'T accommodate CDMA, it won't feel like such a financial hit if I move on, in either direction.

Now, I just have to find a good, clean, reliable version of this device. ...And possibly some way to cover that obnoxious "Verizon" logo up top.
[Xperia Z3v General] GigaSPX:
It's a great phone, nonetheless. For how undervalued this phone is priced at, it's a great buy for a compatible phone the largest network in the US and it's a flagship spec phone from 2014, not some midrange phone.
[Xperia Z3v General] TracerBullitt:
Yea, that's the message I'm getting here in the forums. My wife is dumbfounded at my love of Sony. But she'll be pleased when my Z3v comes in the mail, later today(!)...

The sacrifices I make, amirite?
[Xperia Z3v General] AddictedToGlass:
I have a cheap wireless charger ($10) from Amazon, so I never open the flap for charging. OBVIOUSLY, opening and closing the rubber flap every day is going to wear it out. Because it's . . .

-rubber.

I have a high end (as fast as Sandisk currently makes) 200GB micro SD in both of my z3vs. I have the rooted lollipop release from this site (with brighter led thanks to GigaSPX), which gives me a great variety of customization options (Xposed framework), VIPER4Android FX for INCREDIBLE sound customization, enabled the internal FM radio, updated camera (which I don't recommend yet until it's refined better), etc...

But no matter what, people seem to always want more. I liken that mentality to people camping out in cities at Apple stores awaiting the iPhone 5c. What a let-down THAT was. LOL!

This phone is an incredible device on it's own merit, in both capabilities and craftsmanship. Add just a few tweaks via root, and it serves as the penultimate "best bang for the buck" phone out there.

I got my first one on contract (line renewal) for just $99. It sat there, unloved, unattended, while people were surrounding the iPhone 6s like it was the second coming of Christ or something. I went home and did my research, and I went back the very next day and got it. I bought a second one off Amazon recently for over $300 (NIB) because to me, an average cost of $200 is still a bargain for the z3v (rooted w/ Lollipop, that is). Add 200GB to each one for an additional 100 bucks each, and still, for an average cost of $300, this phone is amazing.

Is the z3v still worth getting? IMO, Yes. Look at the hardware specs plus the camera. If you can pick one up for $250-300, add 200GB to it for $100 (Amazon), root it and upgrade to Lollipop, and pledge a few bucks to encourage complete unlock for custom ROM development, it's still a fantastic deal.

HIGHLY recommend a wireless charger to keep the flaps water tight.

A big downer is the lack of case choices out there. No argument there.
[Xperia Z3v General] TracerBullitt:
Yeah, I got one (refurbished) coming sometime today, along with the Incipio case, Sony's wireless portable charging pad, and an Illumisheild. I already have a 64gb micro SD, but maybe I'll look into a larger one. Its been a while since I've done any rooting or whatever on my own, so I might wait a bit. Seems like more than enough to hold me over 'til the next best thing from Sony drops. Its honestly a lateral move from my T-Mo Z3. I'm gaining wireless charging and I'll have yet to see if the T-mo treats (unlimited data, free music streaming, wifi router) will be missed.
[Miscellaneous Android Development] neoarnet:
Firmware Details

Device: Huawei P8

Model: GRA-UL00

Android: v6.0 Marshmallow

EMUI: 4.0

Firmware: B315

Build: GRA-UL00C636B315

Region: Asia

Country: Việt Nam

Status: Official (stable)

Type: Full firmware image

Release Date: 2016-02-25

File Name: GRA-UL00C636B315.rar

Download Link: Official Mirror | Mega Size: 1.25 GB
[Miscellaneous Android Development] wkadara:
is it valid for Europ variant UL-00 too is it multi-language
[Miscellaneous Android Development] umar_ilyas00:
Error

which firmware it requires to upgrade lollipop 5.0.1 to 6.0

My phone is P8 gra-ul00 plz tell me
[Miscellaneous Android Development] Suprakorn:
Yes, this update support multi-language.

---------- Post added at 10:38 AM ---------- Previous post was at 10:33 AM ----------

Your phone must in Asia region(C470Bxxx version).

I updated my phone from C470B180
[Miscellaneous Android Development] chiperson:
Hi there

I could explain the process to update the phone.

thanks
[Miscellaneous Android Development] Dippybot:
Will this update work on a GRA-UL00C433 P8?
[Miscellaneous Android Development] MouradNazim:
Any news about C433?
[Miscellaneous Android Development] Vietnam user:
Do we need extract from zar file?
[Miscellaneous Android Development] Hosseintr:
Can i this update to gra-ul00c433 ?
[Miscellaneous Android Development] dentus1969:
hi Can i update my Gra-Ul00C00B230 with this??

Thanks
[Miscellaneous Android Development] Kahungu:
Will it work with C433?
[Miscellaneous Android Development] alirezakhane76:
is there any body that tested this rom on huawei p8 ul00 c433 ???

plz answerrrrrrrr ....
[Miscellaneous Android Development] yaseen elsayed 9:
will it work with UL00 c433b183 ?
[Miscellaneous Android Development] Crisalexcori:
Update

T work for gra-ul00 latin america
[Miscellaneous Android Development] ahmed G:
I have the same problem, no marshmallow update for GRA-UL00C433Bxx. Could any one form the developers change custVersion from GRA-UL00 C433Bxx to GRA-UL00 C470Bxxx? This method has been very common with The Ascend P7 where you can change region to another region.
[Miscellaneous Android Development] Khawar93:
Is it valid for gra-ul00c433b180?
[Miscellaneous Android Development] 1ted55:
Hello

follow this post :D

http://xdaforums.com/showpost.php?p=66797185&postcount=32

I have tried and now I enjoy :fingers-crossed:
[Miscellaneous Android Development] ahmed moftah:
could i install this update on my phone: P8 EMUI 3.1, GRA-UL00C433B183
[Miscellaneous Android Development] Hesen02:
Hesen02

Huawei p8 gra-ul00 c470b160 update help me!
[Nexus 6P Q&A, Help & Troubleshooting] subwoofer12:
I have the 6P and my carrier is Sprint, the towers in my area have bands 25, 26, and 41. I'm trying to force my phone to connect to band 41 which offers the fastest speeds. Thus far I've been unable to figure out how to.

Here's what I've done

*#*#4636#*#* and set preferred network to LTE only

http://i.imgur.com/ulaRYur.png

http://i.imgur.com/WdEqGvf.png

Next I got my MSL from Sprint (176667)

Now to *#*#3282#*#* go to LTE > Edit and disable band 26

http://i.imgur.com/LhgOD8j.png

http://i.imgur.com/mFjhNSx.png

http://i.imgur.com/hUcPedm.png

Now my problem is it doesn't show band priority and there's no option to disable band 25, however if I go to LTE > View then band priority appears

http://i.imgur.com/lbPUcRA.png

http://i.imgur.com/sSu65cF.png

http://i.imgur.com/EBFUBt2.png

I'm able to disable band 26 but not 25, so my phone still connects to it.

There's an app in the play store to edit the bands but it's only for the Nexus 6

https://play.google.com/store/apps/details?id=com.mercurian.nexus6lteengineeringmode&hl=en

I'm wondering are there any apps out there for the 6P that would allow me to do this?
[Nexus 6P Q&A, Help & Troubleshooting] Impulse215:
I don't think there's a way to change the band priority. I posted a thread asking the same thing back in December and it was pretty much ignored. I think we're in the minority.
[Zuk Z1 Q&A, Help & Troubleshooting] saw man:
Hello, Its been like 3 months since I bought my phone, yet I received no updates (I believed CM will be pushing updates like every week! ), also I have some bugs like WiFi suddenly cuts out then connect again, or the extremely bad performance of camera (very slow and shaky) or the sluggish in performance of the phone when auto brightness is on!

So will we get our bugs fixed? Most Samsung /LG/Sony/HTC last year flagship got android 6.0

Thx
[Zuk Z1 Q&A, Help & Troubleshooting] ktsak:
You have to move to CyanogenMod ROM, in order to get MarshMellow (Android 6.0.1) Nightlies ...... Visit below link

https://download.cyanogenmod.org/?device=ham
[Zuk Z1 Q&A, Help & Troubleshooting] saw man:
Its true we received an update this month, but it made things worse, I want Android marshmallow and I want my bugs fixed
[Moto G 2015 Q&A, Help & Troubleshooting] coolizard:
I freezed Google app in TitaniumBackup and after reboot, only get a black screen after boot animation. I restored a TWRP backup, rebooted fine and tried again to freeze Google search and ended in same error.

Funny we can't rid of this app (running in background all the time) in stock.

I have XT1541 2Gb in stock MM, with custom recovery and kernel, rooted, exposed, ...
[Android Stick & Console AMLogic based Computers] Such_A_Victor:
Upgrade Guide can help you in reflashing your device based on Amlogic S905 S805 SoC

Thanks for materials and answering questions to Ugoos Blog and ChinaGadgetReviews

What you need:

Image file

Host PC

USB OTG Cable

TF Card (Micro SD or SD)

USB_Burning_Tool_v2.0.5.15 (maybe another v)

Supported host OS: Windows XP (32/64bit) Windows 7 (32/64bit) Windows 8 (32/64bit) Windows 10 (32/64bit)

Start:

1. You need to download the firmware archive. You should be sure, that using current firmware fits for your device otherwise it could cause harmful consequences.

2. Unpack zip archive. In directory, you can find firmware file “img” and USB_Burning_Tool_v2.0.5.15.

3. Installing USB_Burning_Tool_v2.0.5.15. During installation, you should allow to install additional drivers for amlogic devices detection.

4. Run and Change to English language in menu

[IMG="Burning Tool"]http://ugoos.net/image/data/0.am.guide/usbbt_pic1.png[/IMG]

5. Open firmware file (File-Import Image) and press start.

[IMG="burning tool"]http://ugoos.net/image/data/0.am.guide/usbbt_pic2.png[/IMG]

6. Connect device to PC via otg usb using usb A type cable. Device turns on automatically.

7. When PC detects device, reflashing starts automatically. If it has not happened, you should check amlogic drivers in device manager and repeat it’s installing.

[IMG="burning tool"]http://ugoos.net/image/data/0.am.guide/usbbt_pic3.png[/IMG]

8. After reflashing device you should see “result: burning successful” message and disconnect device from host PC

9. Disconnect device from host PC.

Reflashing firmware from recovery menu:

1. Insert usb flash drive with OTA update package in Box

2. Hold recovery button and turn on the device

3. In recovery menu choose option “update from ext”

[IMG="recovery menu"]http://ugoos.net/image/data/0.am.guide/recmenu1.png[/IMG]

4. System let you choose sd card or usb drive. You should choose udisk.

[IMG="rec menu"]http://ugoos.net/image/data/0.am.guide/recmenu2.png[/IMG]

5. Then you choose update zip file previously downloaded on usb drive and system start uploading, checking and installing firmware.

[IMG="updating"]http://ugoos.net/image/data/0.am.guide/recmenu4.png[/IMG]

If you suddenly (!!!!) bricked your device:

The easiest way to solve this, without need of short circuit of the NAND pins, is to use Amlogic Bootcard Maker to make a bootable micro SD card with your device stock firmware.

[IMG="Boot card maker"]http://ugoos.net/image/data/0.am.guide/bootcardmaker.jpg[/IMG]

Just upload firmware image on (Micro) SD Card and put it in your device

You will be able to enter into recovery and the firmware will be flashed automatically. When the TV BOX reboots, remove the micro SD Card, this step is very important, wait 4-5 minutes and the update will completed.

Thanks for materials and answering questions to Ugoos Blog and ChinaGadgetReviews
[Android Stick & Console AMLogic based Computers] Dan82:
My mxq box shuts my toshiba tv off when I connect it any ideas to solve this issue