News for hackers. Stuff that matters.
Re:NewPipe on Linux, Using Android_translation_layer by yjftsjthsd-h on Sunday October 27, 2024 @01:58PM (#41964327)
I feel like the interesting part is mostly https://gitlab.com/android_translation_layer/android_transla... which is probably an alternative to waydroid, but maybe more like WINE so it doesn't need the binder kernel module?

EDIT to add: I also think packaging up an application plus the compatibility layer using flatpak[0] is a really nice idea; it lets you 1. make those apps available in a way that nearly appears native, 2. lets you get users/testers on your compat layer easily, while 3. scoping it to a single app at a time to make it easier to do things like "well we've got this one app working, but how do we tell people that without them expecting other things to work that aren't implemented yet?". Excellent symbiosis:)

[0] Strictly speaking there shouldn't be anything requiring flatpak here... I think there's no technical blocker preventing you making a debian package for the ATL and another for NewPipe and sticking them in a repo/PPA that people could add. But I do somewhat feel that flatpak lends itself to this usecase.

Re:NewPipe on Linux, Using Android_translation_layer by bubblesnort on Sunday October 27, 2024 @02:13PM (#41964426)
It's conceptually similar to wine, but rather a reimplementation of the reference Android, which is AOSP.

See https://gitlab.com/android_translation_layer/android_transla...

Re:NewPipe on Linux, Using Android_translation_layer by NoahKAndrews on Sunday October 27, 2024 @03:33PM (#41965001)
Re:NewPipe on Linux, Using Android_translation_layer by sigh_again on Sunday October 27, 2024 @03:11PM (#41964829)
Trying to reimplement Android without Binder is a doomed plan. Everything about Android is so intrinsically linked to having Binder available that you're just going to end up piling hacks on hacks to have anything working. At this point, an x86 Android image will be better and more reliable. Somewhat just as fast.

Services ? Binder. Intents (even internal ones) ? Binder. Play Services / microG which 90% of apps use ? Binder. Permissions ? Binder.

Re:NewPipe on Linux, Using Android_translation_layer by yjftsjthsd-h on Sunday October 27, 2024 @03:17PM (#41964876)
> At this point, an x86 Android image will be better and more reliable. Somewhat just as fast.

You mean a full VM?

Re:NewPipe on Linux, Using Android_translation_layer by sigh_again on Sunday October 27, 2024 @03:23PM (#41964929)
No, merely using the standard Android emulator, as well as the x86_64 images that have been available for a while (or the ARM64 ones if you're on an M1 and others). With hardware acceleration properly setup, it's a nice experience. https://developer.android.com/studio/run/emulator-commandlin...

It does tend to be very unhappy when the system gets under load though, and might be sluggish if you're running a dozen IDEs on the side.

(Which, as comment under says, is technically a VM. But QEMU gets a pass at pretending not to be a VM and rather just black wizardry that makes bytes happy)

Re:NewPipe on Linux, Using Android_translation_layer by NoahKAndrews on Sunday October 27, 2024 @03:32PM (#41964993)
The Android Emulator is a full VM under the hood. Waydroid is a lighter-weight alternative that uses the Binder implementation in the Linux kernel.
Re:NewPipe on Linux, Using Android_translation_layer by mappu on Sunday October 27, 2024 @04:59PM (#41965626)
For most of Wine's life it was sufficient to implement the system library ABI, but recent developments mean they also have to trap the (unstable) syscall ABI with ptrace. You could mimic Binder in userspace the same way, without the kernel module. But even that's not a problem since Binder is upstream and enabled by default in many distro kernels now.
Re:NewPipe on Linux, Using Android_translation_layer by ronsor on Sunday October 27, 2024 @06:11PM (#41966086)
When did WINE start doing this? I always love a good read on ptrace hacks.
Re:NewPipe on Linux, Using Android_translation_layer by lights0123 on Sunday October 27, 2024 @06:55PM (#41966361)
Re:NewPipe on Linux, Using Android_translation_layer by quotemstr on Sunday October 27, 2024 @10:24PM (#41967277)
> Games avoiding the Windows API and performing system calls directly is an increasingly common occurrence by modern Windows games, seemingly in the name of Digital Rights Management schemes and similar protected modes.

Yuck. Windows system call numbers are not contractual. At all. Microsoft should try harder to kill any code outside ntdll.dll that makes a system call. It's obnoxious for a developer to deliberately use unstable interfaces and then demand indefinite compatibility.

Re:NewPipe on Linux, Using Android_translation_layer by lxgr on Monday October 28, 2024 @09:06AM (#41970674)
> demand indefinite compatibility.

Not infinite – long enough for the game to bring in most revenue is enough.

Who cares that it stops running one or two Windows updates later for totally avoidable reasons? Definitely not the publisher. (In fact, isn't it about time for an HD remaster again?)

Re:NewPipe on Linux, Using Android_translation_layer by quotemstr on Monday October 28, 2024 @11:46AM (#41972339)
Microsoft cares, though, because if a game stops working when you upgrade Windows, you blame the Windows upgrade, not Microsoft. So now Microsoft has to maintain these legacy system calls even though they never signed up to do that.
Re:NewPipe on Linux, Using Android_translation_layer by ronsor on Wednesday October 30, 2024 @08:43PM (#42002261)
Microsoft does not. This is the one area where they don't compromise: system call numbers regularly change between Windows builds.
Re:NewPipe on Linux, Using Android_translation_layer by int0x29 on Monday October 28, 2024 @12:27PM (#41972998)
There is now at least one public windows kernel call listed on MSDN: __fastfail

https://learn.microsoft.com/en-us/cpp/intrinsics/fastfail?vi...

Re:NewPipe on Linux, Using Android_translation_layer by quotemstr on Monday October 28, 2024 @01:22PM (#41973646)
I'd call that a special ABI feature, not a stable system call. Note that it's a software interrupt, not a regular SYSENTER. But sure. Maybe I'm splitting hairs.
Re:NewPipe on Linux, Using Android_translation_layer by augusto-moura on Monday October 28, 2024 @12:27AM (#41967881)
I don't think binder is upstream, nor is the default in many distros. AFAIK support is very limited as not a lot of people use it. In arch it is provided only as a community package (AUR) [1]. This was a major blocker for me when trying to install anbox or waydroid, custom compiled kernel modules is a no-no for me, not because of security issues (which could exist), but because they can break a lot of stuff and fixing kernel modules is not a stroll in the park.

[1]: https://aur.archlinux.org/packages/binder_linux-dkms

Re:NewPipe on Linux, Using Android_translation_layer by mappu on Monday October 28, 2024 @02:16AM (#41968237)
It was moved from linux-staging to proper Linux in 2014 [1], and it's included with Debian oldoldstable, oldstable, and stable as well as Ubuntu linux-image packages, as a module binder_linux.ko; just need to modprobe binder.

1. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

2. https://packages.debian.org/search?suite=buster&arch=any&mod...

Re:NewPipe on Linux, Using Android_translation_layer by yjftsjthsd-h on Monday October 28, 2024 @12:37AM (#41967919)
I'm reasonably confident that it is upstream: https://github.com/torvalds/linux/blob/master/drivers/androi... looks like the most obvious bit, though there are other pieces. (And now I'm curious why waydroid is maintaining their own dkms code separate from that; perhaps it's to better target a range of kernel versions?) I will agree that it's not generally actually built/used by distros.
Re:NewPipe on Linux, Using Android_translation_layer by ac29 on Monday October 28, 2024 @02:07AM (#41968194)
It is upstream and Arch gives directions for enabling it in the standard kernel: https://wiki.archlinux.org/title/Waydroid#Building_a_kernel
Re:NewPipe on Linux, Using Android_translation_layer by phh on Sunday October 27, 2024 @08:26PM (#41966794)
I disagree. Apps barely use Binder directly, but mostly call framework jar (which yes will do binder, but since they are reimplementing framework jar that's fine). Intents and permissions can be implemented without binder as the API is quite semantic. It may happen that the app uses Binder for same-app IPC, but since app does ser-des itself, you can easily replace Android.os.binder by whatever IPC you want, The only "real" issue I can see , and you're right there, is Play Services. I think that handling that case specifically later (once floss apps/apps that don't require play services work properly), is not too horrific (it basically needs to compile the aidl into not calling binder, but redirecting it to a custom lib)
Re:NewPipe on Linux, Using Android_translation_layer by sigh_again on Monday October 28, 2024 @04:51AM (#41968971)
So, as I said, hacks on top of hacks on top of hacks :D If you're going to shim and reimplement, piece by piece some APIs like Binder... Just use Binder, that is already upstreamed in the kernel for so long.
Re:NewPipe on Linux, Using Android_translation_layer by phh on Monday October 28, 2024 @06:40AM (#41969690)
You're confusing shiming with rewriting.

DirectX uses direct hardware access. DirectX uses direct hardware access. That doesn't mean you can't rewrite a DirectX-API implementation without direct hardware access. Likewise, Android's original implementation of MediaCodec uses binder. That doesn't mean that a reimplementation of MediaCodec API requires binder. The vast majority of Android public APIs do not assume binder. The only exception is Service binding, and even then, it's an assumption in name: It assumes that android.os.Binder will provide you an IPC. Most usages of android.os.Binder will be local to an app, so you can easily replace it with any IPC. Even the usage towards multiple app (whose only real usage would be Play Services) doesn't actually require binder. The requirement on that part is just the ""stable"" ser-des.

As an app developer, you (should) never connect directly to /dev/binder, because its API/ABI isn't stable. (it changed like 3 times in the last 6 years?)

Re:NewPipe on Linux, Using Android_translation_layer by kllrnohj on Monday October 28, 2024 @12:48PM (#41973257)
> Most usages of android.os.Binder will be local to an app, so you can easily replace it with any IPC.

I'd be absolutely shocked if that was even a little bit true. Android's binder & AIDL generated code will absolutely do in-process passthrough to avoid the syscall for local calls, but ~nobody is bothering with AIDL unless it's to enable IPC. So that local pass-through is almost certainly rarely if ever used except on "accident" when components nominally support being passed over IPC, but in some cases aren't. An example would be Android's Surface + SurfaceTexture. Normally you're using Surface over IPC either to the display or to media codec or from camera. But if you're using SurfaceTexture, then in that rare scenario it might be local to the process.

But that's definitely a lot less common than IPC binder + AIDL.

All that said, you could almost certainly make a Binder driver shim that just uses unix domain sockets. Heck, Android itself even has one: https://cs.android.com/android/platform/superproject/main/+/...

What'd be a lot harder is handling some of the more advanced graphics & multimedia features. Android's gralloc HAL in particular is likely borderline impossible to implement on Linux as it assumes tight integration between all of the camera, media/video, GPU, and display stacks, and also largely assumes it's on unified memory.

Re:NewPipe on Linux, Using Android_translation_layer by refulgentis on Sunday October 27, 2024 @09:29PM (#41967068)
Binder is upstreamed into Linux.

But I feel I don't know much about binder/kernel/IPC: maybe I overestimate what that means?

Re:NewPipe on Linux, Using Android_translation_layer by yjftsjthsd-h on Sunday October 27, 2024 @10:11PM (#41967227)
Binder is in mainline Linux, but I was under the impression that most distros aren't building it by default?
Re:NewPipe on Linux, Using Android_translation_layer by quotemstr on Sunday October 27, 2024 @10:22PM (#41967268)
Plus, Linux itself should adopt binder. It's already upstream and actually pretty good.
Re:NewPipe on Linux, Using Android_translation_layer by deaddodo on Monday October 28, 2024 @12:47AM (#41967955)
> At this point, an x86 Android image will be better and more reliable. Somewhat just as fast.

I'm pretty sure the overhead for something like Windows Subsystem Android is a few percentage points max, assuming the video card supports the proper OpenGL subsystem (so doesn't require software fallbacks). In fact, given that most x86 laptop CPUs and GPUs offer much more performance than most phone ARM chips, it's basically a moot point. The big problem is finding packages built universally or specifically for x86 (not sure what the status is for WSA on Windows ARM, but that could be an option too).

I'm still waiting for the day Linux offers something similar. Or FreeBSD does something similar to their Linux ABI compatibility.

Edit: looks like WSA is being ended in early 2025:

https://learn.microsoft.com/en-us/windows/android/wsa/

Due to not being able to integrate a store and make revenuue:

https://www.windowscentral.com/software-apps/windows-11/here...

What a shame.

Re:NewPipe on Linux, Using Android_translation_layer by yjftsjthsd-h on Monday October 28, 2024 @01:09AM (#41968018)
> I'm still waiting for the day Linux offers something similar.

Waiting? Waydroid is several years old at this point, and you've always been able to run Android in a VM via either Google's official device emulator in the SDK or just running https://www.android-x86.org/ et al. in whatever hypervisor you prefer.

Re:NewPipe on Linux, Using Android_translation_layer by cyberax on Monday October 28, 2024 @05:11AM (#41969095)
Android-x86 is dead. The last commits are from years ago.

Waydroid is slightly more alive, but only barely. And it itself is a fork of now defunct Anbox.

Re:NewPipe on Linux, Using Android_translation_layer by deaddodo on Monday October 28, 2024 @01:00PM (#41973411)
Sorry, I should have rephrased that:

I'm still waiting for Linux to offer a good version of that. I currently use waydroid, and it's barely functional.

Re:NewPipe on Linux, Using Android_translation_layer by surajrmal on Monday October 28, 2024 @03:32AM (#41968546)
Google launched the play store on Windows without wsa. I assume that's a big reason it collapsed.
Re:NewPipe on Linux, Using Android_translation_layer by pjmlp on Monday October 28, 2024 @06:23AM (#41969563)
Drivers? Binder. App extensions? Binder.
Re:NewPipe on Linux, Using Android_translation_layer by stuaxo on Monday October 28, 2024 @06:44AM (#41969705)
I always have trouble with AnBox and Waydroid - when it comes to Binder.

It seems like there were changes made to Binder between the version in Linux mainline and the one in Android.

Until that is properly synched up then using something else will be easier.

Re:NewPipe on Linux, Using Android_translation_layer by NoahKAndrews on Sunday October 27, 2024 @02:14PM (#41964439)
Definitely. I'd never heard of this one before; I'd love to read a full comparison between the two.
Re:NewPipe on Linux, Using Android_translation_layer by charlieboardman on Sunday October 27, 2024 @04:54PM (#41965596)
I have been hoping for compatibility layer + application flatpaks for a while so it’s nice to see someone doing it. My dream is to have a bunch of flatpaks for the Microsoft office suite
Re:NewPipe on Linux, Using Android_translation_layer by irunmyownemail on Sunday October 27, 2024 @10:17PM (#41967250)
I don't use flatpak, snap or appimage so it's good that it doesn't need flatpak or similar.
Re:NewPipe on Linux, Using Android_translation_layer by OsrsNeedsf2P on Sunday October 27, 2024 @10:41PM (#41967362)
Can I ask why?

A few years ago we stopped distributing on Linux outside of Flatpak. It was tiring getting bug reports that were only reproducible on certain drivers and setups, not to mention the weekly "how do I install this on <new distro here>".

We've seen people complain about the extra space it takes on disk, but after deduplication and compression the tradeoff to have Linux apps "just work" is worth it (imo)

Re:NewPipe on Linux, Using Android_translation_layer by SXX on Monday October 28, 2024 @12:20AM (#41967857)
Not someone you asked, but I personally tend to avoid it because it makes my system less transparent to me.

Isolated self contained containers are cool for enterprise setting with huge fleets of machines, frequent updates, etc. But it's not optimal for desktop Linux atm because no one secured any of desktop APIs and there are no easy way to inspect WTF each container is doing and why. Is it ships outdated deps? Is there crypto miner in or its just random hung process eating 100% of one cpu core?

Basically each app in self contained container have its own universe and you will never figure out what exactly its doing. So its turn your system into a black box.

As maintainer of OSS software and game developer I totally get the appeal, but as user I love Linux exactly because it's give me more transparency and I dont want to lose it.

Re:NewPipe on Linux, Using Android_translation_layer by yjftsjthsd-h on Monday October 28, 2024 @02:31AM (#41968287)
> Can I ask why?

I dislike the way flatpak is effectively a second distro on top of whatever else I'm running; it eats a rather lot of additional disk space (and network bandwidth), requires that I run updates for it in addition to everything else, and I'm not sold on its security patching story (last I looked, it strongly favored everyone effectively vendoring most dependencies and I don't trust them to keep up with patches like my actual distro).

To be fair, there's also a list of reasons I do like it, just... both pros and cons.

> It was tiring getting bug reports that were only reproducible on certain drivers and setups

I'll give you userspace, but drivers should be like the one thing that flatpak doesn't help with? It's the same kernel, not a VM.

Re:NewPipe on Linux, Using Android_translation_layer by pmontra on Monday October 28, 2024 @02:42AM (#41968329)
I have no idea if all flatpack apps update their own vulnerabilities once they are discovered. The distribution usually does it. Then I hate the idea of having boundaries between apps and imperfect integration with the desktop environment. Furthermore I don't really need any app distributed as flatpack so far, so I don't care. When I see one I only miss giving it a try but I don't miss using it to do my daily job. I could even said that flatpack is a good thing for me because it encapsulates all the possible distractions and makes them unreachable.

Anyway, I'd rather use flatpack than snap. I left Ubuntu for Debian because of it. I hope it goes the way of the other Canonical's unsuccessful attempts at building their own proprietary system and moat.

Re:NewPipe on Linux, Using Android_translation_layer by kaba0 on Monday October 28, 2024 @07:09AM (#41969855)
Not the parent commenter, but I feel it mixes sandboxing and a non-ideal packaging method together.

Something like nix solves the second problem so much more elegantly.

Re:NewPipe on Linux, Using Android_translation_layer by irunmyownemail on Tuesday October 29, 2024 @09:27AM (#41983640)
I read through the commenters who responded before I saw your question this morning and feel they all did a great job with their answers and agree with them.
Re:NewPipe on Linux, Using Android_translation_layer by pantalaimon on Monday October 28, 2024 @05:02AM (#41969033)
What’s wrong with binder?

The problem with Waydroid is that you need to boot up a whole Android system, which is not great for app startup time.

Re:NewPipe on Linux, Using Android_translation_layer by xelamonster on Monday October 28, 2024 @10:34AM (#41971425)
I keep my Waydroid session running in the background, managed by a systemd user-level service. Works great, and if it increases resource usage I don't notice--this is on a converted Chromebook so pretty low specs.
Re:NewPipe on Linux, Using Android_translation_layer by Cloudef on Monday October 28, 2024 @10:50AM (#41971572)
The project seems to be built on top of my android2gnulinux project from way back. Nice to see someone picking up the pieces and making it more functional.

https://github.com/Cloudef/android2gnulinux

Re:NewPipe on Linux, Using Android_translation_layer by varbhat on Sunday October 27, 2024 @03:00PM (#41964753)
Re:NewPipe on Linux, Using Android_translation_layer by gbraad on Monday October 28, 2024 @07:33AM (#41970015)
Waydroid needs to run a full OS; this is just a single application; the first approach allows you to integrate well with other apps you might use. Though for ATL, when you open in a browser, it will open your actual desktop browse. Downloading will happen to your chosen folder on the desktop. It feels more like APKs for a desktop; like Google's "ARC Welder" without using the browser as the runtime.
Re:NewPipe on Linux, Using Android_translation_layer by sureglymop on Sunday October 27, 2024 @03:46PM (#41965094)
This is amazing! Have been using Newpipe for years because of its ability to group subscribed channels into different feeds.
Re:NewPipe on Linux, Using Android_translation_layer by throwaway81523 on Sunday October 27, 2024 @05:02PM (#41965653)
On the desktop, youtube in the browser is tolerable with ublock origin, so I use it in preference to youtube because of the ability to show search results most recent first. Newpipe (maybe due to technical obstacles, idk) doesn't do that and it makes things harder.
Re:NewPipe on Linux, Using Android_translation_layer by adamddev1 on Monday October 28, 2024 @06:18AM (#41969532)
Ya that's always been a frustration of mine with Newpipe. I wish you could sort search results by date.
Re:NewPipe on Linux, Using Android_translation_layer by antics9 on Sunday October 27, 2024 @02:24PM (#41964512)
Why would one want NewPipe on desktop when there's https://freetubeapp.io/
Re:NewPipe on Linux, Using Android_translation_layer by mixmastamyk on Sunday October 27, 2024 @04:14PM (#41965292)
Doesn’t work well on Wayland unfortunately. Don’t know if this one does but worth a shot.
Re:NewPipe on Linux, Using Android_translation_layer by EffrafaxOfWug on Sunday October 27, 2024 @05:20PM (#41965780)
I have used FreeTube on wayland now for a long time without any issues. Electron still uses x11 as the default on wayland so you need to enable the wayland mode manually. You can easily do that by setting the ELECTRON_OZONE_PLATFORM_HINT=auto environment variable.
Re:NewPipe on Linux, Using Android_translation_layer by mixmastamyk on Monday October 28, 2024 @12:56AM (#41967976)
Thanks, that fixed the resolution issue! I also had to give it access to the dbus system socket and wayland for it to work. Wasn't sure how to do that but the flatseal app made it easy.
Re:NewPipe on Linux, Using Android_translation_layer by BadHumans on Sunday October 27, 2024 @05:37PM (#41965892)
I use Freetube on Wayland with 0 issues.
Re:NewPipe on Linux, Using Android_translation_layer by prmoustache on Sunday October 27, 2024 @06:39PM (#41966259)
Same here.
Re:NewPipe on Linux, Using Android_translation_layer by mixmastamyk on Sunday October 27, 2024 @10:51PM (#41967398)
They fixed a few bugs already I think. But it still looks like crap (lower resolution?) on my tablet and I have to force the onscreen keyboard on manually (normally comes on by itself).

Oddly enough the video itself looks fine when playing, but not the browser interface.

Re:NewPipe on Linux, Using Android_translation_layer by ravenstine on Sunday October 27, 2024 @02:42PM (#41964643)
Perhaps because one is accustomed to the NewPipe experience and would prefer consistency across devices?

Never heard of Freetube, but it looks pretty snazzy.

Re:NewPipe on Linux, Using Android_translation_layer by ugjka on Sunday October 27, 2024 @03:05PM (#41964793)
I tried it, it didn't feel like what you get on android and had ui glitches
Re:NewPipe on Linux, Using Android_translation_layer by mastazi on Sunday October 27, 2024 @06:26PM (#41966187)
I have been enjoying the new version that just came out yesterday, they implemented a new video player and IMHO the user experience is much improved, if the UI glitches you mentioned were related to the player, maybe you could give it a try.
Re:NewPipe on Linux, Using Android_translation_layer by anthk on Sunday October 27, 2024 @03:39PM (#41965037)
Parabolic it's far better for desktop users.
Re:NewPipe on Linux, Using Android_translation_layer by master-lincoln on Monday October 28, 2024 @06:10AM (#41969488)
That seems to be a tools for downloading youtube videos, but the others presented here were for browsing it and watching videos as well
Re:NewPipe on Linux, Using Android_translation_layer by prmoustache on Sunday October 27, 2024 @06:41PM (#41966276)
I don't know, it makes sense that UI between desktop and mobile would be different. I use Freetube on desktop and newpipe on mobile.

Having said that, newpipe is not only a youtube client but also a soundcloud, bandcamp and a few others too.

Re:NewPipe on Linux, Using Android_translation_layer by squarefoot on Sunday October 27, 2024 @08:11PM (#41966720)
> Never heard of Freetube, but it looks pretty snazzy.

I've used it for several months now and am very happy with it. I'ts a Electron app, however, so don't expect it to be small; I hope they will consider rebuilding it using Tauri, which would reduce its size drastically.

Re:NewPipe on Linux, Using Android_translation_layer by abnry on Sunday October 27, 2024 @09:23PM (#41967036)
I know a lot of people hate on the recommendations homepage on YouTube, but I discover a lot of content I like watching there. However, I can't watch all of it and what to save what I see there and otherwise find and search for in a playlist, but the watch later playlist is not user friendly. Does Freetube improve playlist management too? That would be a big plus.
Re:NewPipe on Linux, Using Android_translation_layer by squarefoot on Monday October 28, 2024 @05:57AM (#41969419)
I never used the playlist on FreeTube, but just gave it a look and the use seems straightforward to me. It probably depends a lot on user needs, anyway operations look lightning fast compared to the "original".
Re:NewPipe on Linux, Using Android_translation_layer by 3np on Sunday October 27, 2024 @06:20PM (#41966157)
You know you could drop a recommendation without being so damn submissive of OP. Let a thousand alternative clients bloom.
Re:NewPipe on Linux, Using Android_translation_layer by antics9 on Monday October 28, 2024 @07:52AM (#41970142)
It was an actual question for the community as these kind of questions usually generate perspectives and alternatives. There’s no need to read anything else into it.
Re:NewPipe on Linux, Using Android_translation_layer by Timber-6539 on Sunday October 27, 2024 @08:00PM (#41966671)
Freetube is terribly unoptimized. Even though it supports hw video playback, I decided to skip it as it had too much CPU overhead.
Re:NewPipe on Linux, Using Android_translation_layer by yownie on Monday October 28, 2024 @02:47PM (#41974636)
in one phrase "skip silences" feature!
Re:NewPipe on Linux, Using Android_translation_layer by yownie on Tuesday October 29, 2024 @07:23AM (#41982733)
no "fast-foward through silence" feature
Re:NewPipe on Linux, Using Android_translation_layer by reify on Sunday October 27, 2024 @02:59PM (#41964749)
for me freetube in the arch repo works great

https://github.com/FreeTubeApp/FreeTube

Re:NewPipe on Linux, Using Android_translation_layer by ugjka on Sunday October 27, 2024 @03:03PM (#41964778)
I think it is in the AUR not arch official repos
Re:NewPipe on Linux, Using Android_translation_layer by clfdev on Sunday October 27, 2024 @04:58PM (#41965616)
If you have a device running postmarketOS or Alpine Linux you can try this out yourself with other Android apps. Just "sudo apk add android-translation-layer" and then run

$ android-translation-layer some-app.apk

I tried a few (F-Droid, Spotify, Megalodon) but they all failed with various issues, looks like there's a lot of API surface still not covered. Hopefully a lot of it is fairly easy to add now that the foundational work has been done!

Re:NewPipe on Linux, Using Android_translation_layer by txtsd on Sunday October 27, 2024 @08:17PM (#41966753)
I'm going to try and get android_translation_layer building on Arch and then we can have a third distro to add to the list!
Re:NewPipe on Linux, Using Android_translation_layer by txtsd on Wednesday October 30, 2024 @07:29AM (#41993756)
Re:NewPipe on Linux, Using Android_translation_layer by KetoManx64 on Sunday October 27, 2024 @06:42PM (#41966283)
Very cool stuff! I wonder if you can switch out the newpipe app for the Tubular (https://github.com/polymorphicshade/Tubular) fork which has SponsorBlock and ReturnYoutubeDislike built into it.
Re:NewPipe on Linux, Using Android_translation_layer by yownie on Tuesday October 29, 2024 @07:24AM (#41982739)
He can't but you probably can.
Re:NewPipe on Linux, Using Android_translation_layer by dazld on Sunday October 27, 2024 @07:37PM (#41966570)
Semi related, there is a Minecraft Bedrock Launcher that ports the Minecraft for Android app to *nix.

https://flathub.org/apps/io.mrarm.mcpelauncher

Re:NewPipe on Linux, Using Android_translation_layer by whoisthemachine on Sunday October 27, 2024 @07:58PM (#41966662)
Exciting. I'd love to see AppImage [0] builds of applications produced with this library.

[0] https://appimage.org/

Re:NewPipe on Linux, Using Android_translation_layer by Gunzo on Monday October 28, 2024 @02:54AM (#41968370)
I feel like the interesting part is mostly https://gitlab.com/android_translation_layer/android_transla... which is probably an alternative to waydroid, but maybe more like WINE so it doesn't need the binder kernel module?

EDIT to add: I also think packaging up an application plus the compatibility layer using flatpak[0] is a really nice idea; it lets you 1. make those apps available in a way that nearly appears native, 2. lets you get users/testers on your compat layer easily, while 3. scoping it to a single app at a time to make it easier to do things like "well we've got this one app working, but how do we tell people that without them expecting other things to work that aren't implemented yet?". Excellent symbiosis:)

[0] Strictly speaking there shouldn't be anything requiring flatpak here... I think there's no technical blocker preventing you making a debian package for the ATL and another for NewPipe and sticking them in a repo/PPA that people could add. But I do somewhat feel that flatpak lends itself to this usecase.

Re:NewPipe on Linux, Using Android_translation_layer by gbraad on Monday October 28, 2024 @03:37AM (#41968573)
I have finally been able to install it and have to say I am really impressed how well this works. Sure, you can not really 'fullscreen'? There are some glitches; margins. But mostly it just works. It is so much more efficient than starting up Waydroid... I am even considering trying this with some of my other go-to applications.

Note; FreeTube is also a good client. Though at three times the size due to Electron, I like NewPipe more. It feels way more snappy to use.

Re:NewPipe on Linux, Using Android_translation_layer by brnt on Monday October 28, 2024 @03:34PM (#41975173)
I see tons of glitches: cant load settings, loading a vid may work or not, and the gui gets glitchy regardless.

Pity, I love Newpipe on my phone.

Re:NewPipe on Linux, Using Android_translation_layer by gbraad on Tuesday October 29, 2024 @01:13PM (#41986820)
Running it on Fedora. You? (Also use it in Bazzite from a Legion Go; touch input only) Graphics, like buttons are problematic (small, misplaced), but functional
Re:NewPipe on Linux, Using Android_translation_layer by omeid2 on Monday October 28, 2024 @06:56AM (#41969775)
On this topic, similar to Wine, there is also Darling which brings Darwin to Linux.

https://github.com/darlinghq/darling

Re:NewPipe on Linux, Using Android_translation_layer by jansommer on Monday October 28, 2024 @08:43AM (#41970527)
Great news! I'm fiddling way too much with a Surface Go 2, and a translation layer for Android is perfect when all you have is a touchscreen, very little ram, an incredibly slow eMMC, and a battery that'll last 8 hours if you're lucky.

Especially because there aren't many Linux apps that are touch friendly. Everything kirigami/touch friendly apps in KDE is very much work in progress and are barely good enough for daily usage. Electron apps are no-go because they don't work with a virtual keyboard. Flutter apps are useless because they don't support high dpi on Linux. Gnome has bad support for fractional scaling, issues in some menus for touchscreens, and the space for fonts in the launcher doesn't scale making them display as "Firef..." on a high dpi. I am running Debian Bookworm by the way.

So I wasn't happy to see that android_translation_layer uses Gtk, but I think scaling is improved in Gtk4. Looking forward to try it out either way.

Re:NewPipe on Linux, Using Android_translation_layer by ninalanyon on Monday October 28, 2024 @08:54AM (#41970605)
3.6 GB installed! This is why I dislike Flatpak.
Re:NewPipe on Linux, Using Android_translation_layer by Thorrez on Monday October 28, 2024 @09:10AM (#41970706)
The page says "Installed Size ~60.95 MiB". Is that inaccurate?
Re:NewPipe on Linux, Using Android_translation_layer by janice1999 on Monday October 28, 2024 @09:26AM (#41970819)
That figure does not include the dependencies like org.freedesktop.Platform and org.gnome.Platform which can add up to GBs.
Re:NewPipe on Linux, Using Android_translation_layer by brnt on Monday October 28, 2024 @03:34PM (#41975184)
But they are shared between apps, and those platform packages are almost certainly used by most of your apps.
Re:NewPipe on Linux, Using Android_translation_layer by yownie on Monday October 28, 2024 @09:09AM (#41970694)
YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS!
Re:NewPipe on Linux, Using Android_translation_layer by mbeex on Monday October 28, 2024 @09:28AM (#41970837)
Mmmh, I'm using it on Android for some time now, installed as F-Droid app. Problem is, there is some friction regarding Countermeasures of YT and a new version adjusting to them. Often, I'm unable to use the alternative Client on Android for months until this is fixed. Will this be a problem on Linux too?
Re:NewPipe on Linux, Using Android_translation_layer by m3Lith on Monday October 28, 2024 @10:04AM (#41971108)
The problem is that F-Droid takes time to review new releases, when they're already available from other (direct) sources.

I have discovered Obtainium[1] not too long ago. Allows you to install and update apps from pretty much any source you want (e.g., directly from GitHub releases, as in NewPipe's case).

[1] https://obtainium.imranr.dev/

Re:NewPipe on Linux, Using Android_translation_layer by pixelN on Monday October 28, 2024 @09:45AM (#41970955)
have a look at NewPipe's own fdroid repo: https://newpipe.net/FAQ/tutorials/install-add-fdroid-repo/
Re:NewPipe on Linux, Using Android_translation_layer by mbeex on Monday October 28, 2024 @02:29PM (#41974459)
Thanks! Shows the same version as the installed app from the main F-Droid repository - but this one works.
Re:NewPipe on Linux, Using Android_translation_layer by yownie on Monday October 28, 2024 @08:06PM (#41977956)
I've wanted this for several years now solely for the "fast-forward through silences" feature that newpipe has.