Spoof android.software.leanback feature - Android TV General

Hello,
I'm in the process of developing a single Android application that runs on multiple different types of devices.
From normal smartphone, tablet to Android TV.
The layouts and styling for each tend to look quite different.
To manually test these applications I can resort to using emulators.
A big downside to emulators is that they tend to take up a lot of valuable resources from the development machine.
Therefor I prefer using real devices. (Ideally just 1 device).
I can use my smartphone to test both the normal layout AND
with the help of the smallest width option in the developer settings I can also test the tablet layout.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
However there is no such option available to spoof/fake Android TV/Google TV on my test smartphone.
AFAIK Android has a kind of prioritisation which layout it tries to inflate.
When it detects a device that has the android.software.leanback feature it will inflate the TV-layout which typically resides in the `layout-television` folder.
Programmatically I check it as such:
Java:
getPackageManager().hasSystemFeature(PackageManager.FEATURE_LEANBACK));
// PackageManager.FEATURE_LEANBACK == "android.software.leanback"
Reference documentation https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_LEANBACK
Since this system feature is missing for normal smartphones it will never work.
You can find the supported features with:
Code:
adb shell pm list features
After some digging I found you can add these system features when you have root access.
They are kept in the /system/etc/permissions folder.
So I simply copy-pasted the `tv_core_hardware.xml` from the Android source code after which I briefly saw my phone render my application in Android TV.
Also the hasSystemFeature(PackageManager.FEATURE_LEANBACK) returned true!
Unfortunately the screens goes completely black after a second or two and reboots in panic mode.
TLDR; How can you force Android TV on a rooted smartphone/tablet?
FYI my rooted test device is an OnePlus 6
Thanks in advance.

Related

Project for developer?

Ok. So my company purchased two 7" Android tablets pre-production from China. They turned out to actually not be "real" android as it seems to be running a skinned down Android on top of Windows CE. We are looking to place Android tablets in retail locations for a pilot test. I'm looking for a developer that would be able to do one or both of the following:
1) Put REAL Android on here. It doesn't matter whether it is 1.5, 1.6, etc. but we don't want Windows running in the background for the obvious reasons.
2) Develop a VERY simple (but pretty) application for a registration process that would guide the user through entering the values for the questions we are asking. The trick to this app is we also need a way to completely lock the device down so that the user can only use that app. Maybe a hidden button in a corner that would prompt for a password so that we could get out of the app.
We would gladly send one of these tablets and let the dev keep them for their time and we would also be willing to discuss pay based on time invested. Please PM if interested. Pics of the units below:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Anyone interested?
Bump...........
Porting Android to this device is probably an insanely time consuming and difficult project. Just look at the Android porting projects for various Non-android HTC Devices such as the Touch Pro/Diamond. Takes for ages as drivers needs to be written, etc...
I think you would be better of thrashing those fake tablets and maybe do some proper research next time you buy something from China..

WEDA Smart Watch

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello,
My startup and I have been working on an Open Smart Watch (we call a glorified Lifestyle Notification Center), more details shortly but will work with any Bluetooth Devices (iOS, Android, Windows Phone, iPad, Surface, Raspberry Pi, Laptop, Desktop, etc). It is lightweight, flexible, it is NOT touch-enabled (however this will eventually come but on a different model) and will be using Slap-Bracelet style bands, so we can make 1 size and fits MOST.
Hope that you developers will be interested in making your App's have an option to enable WEDA (Wearable Electronic Device for Applications). You'll have access to the Accelerometer, Barometer (Temp., Air Pressure, Humidity, etc), Vibrator, LED'S, etc. We're even going to offer a HDK (Hardware Development Kit) so you can use our "WiP (WEDA input Port)" to permit the Device to use your own homemade hardware.
Best part of the WEDA? Pre-made Open Source Projects, Controls, and practically only 1-3 Lines of code will be needed to interact (1. Is Bluetooth Active/Device Paired? 2. Send to <option>).
If you're slightly interested and would like to keep updated on the private Mailing List (Photos, Videos, Code Snippets, etc), please let me know or keep an eye on WearingDigital.com.
Thank you,
Lance
See the Demo of the WEDA in Debug mode... http://youtu.be/AYjvThoKqBI
Check out the TechCocktail review: http://tech.co/wearing-digital-intr...martwatch-for-developers-and-students-2013-04

[App][Win] Detailed System Information [OLD/UNSUPPORTED!]

Hey guys!
Today I'd like to present to you, my first (ever) WPF application!
It's part of Universal Android Toolkit (See my signature), which is still WIP, but I thought I'd present it to you as a stand-a-lone app.
So don't go thinking weirdly if you see it in Universal Android Toolkit, once I've released the newest version (Which is gonna be friggin' sweet).
Anyways, it does what the thread title says. It gets detailed system information from your device.
This information includes, but is not limited to:
Build ID
ROM Name
Build Codename
Build Version
Device Model Number
Device Board
CPU Type
Manufacturer
Dalvik Heap Size
Default Alarm Tone
Default Ringtone
Carrier
GPRS Class
and
Client Base
Of course this isn't everything, but I'd like to keep some stuff until the release of UAT. Ya know, kinda keeping stuff secret (CaptainSparklez' voice)
Now, before loooking at the screenshots, please bear in mind, that this is literally the first WPF (Windows Presentation Foundation) application that I've ever created and released to the public!
So be nice when it comes to the design of things.
I'm a Linux guy, so I kept the close and minimize buttons on the top-left of the screen, where they belong
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The source can be found on my GitHub (Although I'll sync it later on, and not at the time of posting this, due to me still needing to add some stuffs, like a title...)
This program is no longer supported by me! Check out Universal Android Toolkit for this kind of thing!

Get Fire TV Advanced Options via CommandLine or Libary (dev)

Hello guys,
I think many of you know these advanced options of the fire tv stick.
For my current project I need to be able to query the displayed video information (especially the color standard) via commandline or some libary. I have almost no experience with android development, but if someone has a solution I should be able to figure the rest out myself.
I suppose I would have to root the fire tv stick. After that I have no idea what to do. Since the information can be displayed via the advanced options, I assume that there must be a way to query them via command line or a libary.
Maybe someone with more experience in this field has an idea
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
@chikko80
https://developer.amazon.com/docs/fire-tv/developer-tools.html#snapshot
>adb shell "dumpsys activity service com.amazon.ssm/.OverlayService|grep colorstandard"
[com.amazon.ssm.multimedia.video.colorstandard]: [BT709_8_SDR]
@Kramar111 Thats exactly what i need! Thank you!
I didn't even know that you can do this kind of stuff with adb.. Buts its really cool this way that you can ask remote via adb and run the scripts on another device
@Kramar111
I tested it today, and yeah basically its doing what i need, but the problem is, that i don't want to have open the Advanced Options all the time. The idea was to read out the color standard in the background without limiting the tv experience. So the advanced options menu should not be visible.
Do you have another idea?
@chikko80
No

Anyone want to tackle this one?

I had a hidden partition on my hard drive where they created a server that placed me under a work profile. I somehow got access to a file on my network [ I forgot how I did it] and changed some 0 and 1 around in some of the system files, and then my phone got downloads because, I think, my computer thought my phone was the server. I don't know... but I removed my hard drive, and the devices in the BIOS were setup to occupy my RAM with their control. I'm not sure if I was battling an algorithm or live hackers or both. But this picture was the command windows options menu, and I'm not sure if this is normal, but I believe they were gaining access through my color options in the command line. They have updated software on my old ipod back in 2012. I know a few of them personally, and one posted a wisecrack on Facebook about the military's abilities the same day my ipod got screwed out of my control by a software update. They get their schemas from, in this case, www.3w.com if my memory serves me. It's an architect company, but the schemas they use on my computer allow them to hijack my computer by using false security codes. One of my system files in booting has a command that upon power up, opens a command window then deletes the trace, and everything in my booting loads from their devices, and that command window opens on their server. Any ideas? I'm not sure I really want to fight the owners of this Earth, because I believe that is ultimately who I am dealing with.
You wouldn’t believe me if I told you the truths of how I know this. Anyways, I'll be glad to hand over my laptop if anyone wants to check it out
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Categories

Resources