[help] Trying to compile Eleven music app from LineageOS 14.1 - Android Q&A, Help & Troubleshooting

So currently I'm looking for a decent music app, I recently switched from Lineage14,1 to MIUI and I wanted at least a working music widget for my Nova Launcher and a cool music app, without those crappy ones full of advertisements from the play store (imho)
So I decided to trying to compile by myself the LOS14.1 music app, the apks I found are old and they force close every time.
I'm not a newbie when it comes to programming, but never touched android before, so, my OS is Manjaro Linux, using Android studio 3 from AUR. JRE8-openjdk, openjre etc.
The first thing I did, was downloading this ----> https://github.com/LineageOS/android_packages_apps_Eleven
Then, I imported the project using Android Studio.
Into the .project I've seen that is an eclipse ADT project, but I found that is deprecated.
After trying to solve some problems related to libraries with google (just posting the solutions I found, they were stupid problems) ---->
{
"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"
}
I ended up with this situation, 45 errors. And this is where I'm asking for help
What am I doing wrong? There seems to be that the program is using a non existent method from Canvas, called Release according to the documentation I found on the internet (not just that)
I'm also trying to reinstall eclipse ADT to compile this, I don't really know what to do
Also got a compilation log View attachment log.log
Or just the wrong java vm?

lukypuie said:
So currently I'm looking for a decent music app, I recently switched from Lineage14,1 to MIUI and I wanted at least a working music widget for my Nova Launcher and a cool music app, without those crappy ones full of advertisements from the play store (imho)
So I decided to trying to compile by myself the LOS14.1 music app, the apks I found are old and they force close every time.
I'm not a newbie when it comes to programming, but never touched android before, so, my OS is Manjaro Linux, using Android studio 3 from AUR. JRE8-openjdk, openjre etc.
Then, I imported the project using Android Studio.
Into the .project I've seen that is an eclipse ADT project, but I found that is deprecated.
After trying to solve some problems related to libraries with google (just posting the solutions I found, they were stupid problems) ---->
View attachment 4337352
View attachment 4337353
I ended up with this situation, 45 errors. And this is where I'm asking for help
View attachment 4337364
What am I doing wrong? There seems to be that the program is using a non existent method from Canvas, called Release according to the documentation I found on the internet (not just that)
I'm also trying to reinstall eclipse ADT to compile this, I don't really know what to do
Also got a compilation log
Or just the wrong java vm?
Click to expand...
Click to collapse
As far as I understand you are trying to build a system application source specifically taken from Lineage OS source tree as a standalone application.
It's possible but application is dependant to Lineage OS, not the Android SDK, so it's coded in a way that it can be compiled with it's dependencies in Lineage OS source.
You may either establish a build environment, download Lineage OS source, compile the package within, and try to install it, or try to resolve errors using Lineage OS sources in currently establish setup.

Related

Incompatibility with Appcelerator Titanium

I have had to revert back to a earlier mod due to issues with various apps created with Appcelerator Titanium not working.
Can some of you guys with various mods download "tradui" from the Android market and see if that works for you? Please report back with your findings. The symptom is blank tabs except for "Translating English to Creole", and the app seems to do nothing. A working app can perform a translate function. There are many more apps than this that use the Titanium framework, I just chose one at random.
It works on stock, but not Cyanogen 5.0.2 or 5.0.3.1 for me.
Likely to do with the kernel that the app was compiled for being different than the ones included in CM/Modaco/KingKlick/etc.
I doubt there's a solution for this until the Android SDK gets an update for those kernels and the developer recompiles and redeploys.
I could also be talking out of my ass, as I haven't used Appcelerator to build any apps yet, but I have installed it and poked around a little.
maxawesome said:
Likely to do with the kernel that the app was compiled for being different than the ones included in CM/Modaco/KingKlick/etc.
Click to expand...
Click to collapse
I doubt that it is the kernel. I can run it successfully on both cyanogen's 2.6.29.6 and the stock kernel, also these apps should not make kernel-level calls. More likely it is webkit since these apps make heavy use of web-rendering and javascript on the device, with a javascript to java bridge for the OS/UI interactions. According to Cyanogen's changelog he made the switch to webkit V8 on beta4, which is the latest mod that seems to work with Titanium so perhaps another change snuck in there after B4?
BTW, I have debugged both a working setup and a non-working. Pastebins are in the Cyanogen Mod thread. I wish I could provide URLs but the board won't let me.
Ah yeah, that makes much more sense. I forgot how Appcelerator did its thing.
A little help here please? If you have modded your phone please. It only takes a second.
1. Install "tradui" from android market
2. post to this thread if the app does or doesn't look like this:
{
"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"
}
If it doesn't look like this than it means that your mod is incompatible with ALL apps created with the current version of appcelerator titanium (the latest is 0.8.1, 0.9 is still in closed beta).
Thanks!
Apparently appcelerator knows about this but have not had time to dig into it. I have posted an issue to the appcelerator forum as well.
A friend had mentioned it to me awhile back. It seemed to be related to accessing resources via file:///android_asset. I haven't been able to spend time looking at rooted devices.
Click to expand...
Click to collapse
http://support.appcelerator.net/dis...anium-incompatibility-with-latest-aosp-builds
Update: CM 5.0.7.1 works!
Just flashed CM 5.0.7.1 and am very pleased that Appcelerator Titanium apps work again!

GNote/Android runs JAVA?

we are using a web-based program that needs java. was wondering if i could use Android/GNote to access the website so i dont need a full PC to lug around and visit the site.
the first time you visit the website, it will ask you to install JAVA. am just wondering if its compatible with any ANDROID browser. maybe chrome? or something else?
appreciate any input.
jeraldyne c",)
Give me the link and I will check your website for you.
From the browser settings:
{
"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"
}
link HERE c",)
btw, no hablo español mi amigo!! ;-)
rangercaptain said:
Give me the link and I will check your website for you.
From the browser settings:
Click to expand...
Click to collapse
JavaSCRIPT != JAVA - javascript is a very specific subset designed for doing just a bit of flow control textual / dialog programming on web sites. Java uses semi-compiled byte code to create full stand-alone applications.
technically, yes, android supports Java, in fact, at the core of android is linux, which handles all of the hardware input/output stuff, but then right on top of linux is Dalvik which is a Java byte code virtual machine designed by google to be nice and lightweight as well as supplying additional features for tablets and phones specifically (touch screen support and such). so yes, android by nature of being android, can run java. the trick is weather or not the application that you're trying to run from the web site uses code that is fully supported by Dalvik.
unless someone more knowledgable than I would care to chime in, I would strongly simply recommend either borrowing a friend's phone / tablet for a few minutes and just test out the application for yourself and see how well it runs for you, or visit your nearest cellular phone store and try one of the store demos in the same capacity.
Good luck!
Upon my visit to your link Amiga:
I guess that about says it all.
Pushing the ok button just gave me the same message.
I'm pretty sure that android cannot run normal java applets. The JVM used oly has a certain subset of java capabilities.
Not a mobile site either, I'd guess.
there a workaround to this?
Upon opening the site I chose install and it auto downloaded a file but it could not run on my note. The other option was a button that I couldn't activate. Thats where the Java would be needed.

Eclipse Android Development Question

I just installed eclipse and I want to start developing some small apps but it seems that Android Training has not been updated and some of the settings have been changed.
Can someone point out which is the correct project to create for apps?... I've tried all in the picture below but on Android Training it says that "Open the main.xml file from the res/layout/ directory (every new Android project includes this file by default)." when trying to create a user interface, but it isn't there for me.
{
"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"
}
Any advice?
Its weird!
Which version of Eclipse and Java ?
Have you set the Environment variables for Java ?
Anyways I've never faced this problem, as I'm using Eclipse 3.7 with JDK 1.6
Eclipse: Juno Release
Java JDK 6 update 33
It seems like I cannot create a new project from scratch.. I have to start with one of the prebuilt layouts like in the picture:
Anyone know?
Sorry, I'm not sure what exactly is the problem.
Just check whether you've installed eclipse & android-sdk like this : http://www.youtube.com/watch?v=ZoWVeXizfbo (pretty old video, but its a good one)
Also make sure you've set the Environment variables like this :
(Path should be your JDK installation path)
Th problem is that I cannot create a new blank project with all the basic files in the project.
In the android training it says to that you should have main.xml in /layout, but that only happens when I create an activity with that predefined layout.
Is this the only way to get the the necessary files?
isinisterx said:
Th problem is that I cannot create a new blank project with all the basic files in the project.
In the android training it says to that you should have main.xml in /layout, but that only happens when I create an activity with that predefined layout.
Is this the only way to get the the necessary files?
Click to expand...
Click to collapse
I don't think so, because for creating Widgets, there is no need for Activity. Still you could get the main.xml file. Actually in every projects that I've created, main.xml, strings.xml, manifest.xml etc comes by default. That's why I said 'weird' before. I'm confused with the Eclipse version because I'm still using older version 3.7. But that doesn't mean it will not work in new versions.
I guess there is some error with the ADT plugin, and make sure you've downloaded development tools after connecting android-sdk. The video I posted before is the exact steps for preparing the dev environment. So please make sure you've followed the exact steps.
EDIT: Also, this Thread gives the exact steps, for connecting Eclipse with android-sdk.
Will do and then report back, thanks
Sent from my Galaxy Nexus using Tapatalk 2

[TOOL] Android Dollhouse (Flashtool)

Android Dollhouse​The Definitive Android Flashtool.​
This is the support thread for Pixel 2XL. If you have another device, please check the other threads:
Pixel 6: Support Thread
Pixel 6 Pro: Support Thread
Click to expand...
Click to collapse
I'm releasing the first user-facing preview of this tool, which is a convenient wrapper for common ADB/Fastboot controls.
It already comes preloaded with ADB and Fastboot binaries. There's no need to download anything else.
You need this .net runtime to run it: https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-desktop-5.0.11-windows-x86-installer
For now, this is the first test run, which is Windows only. Mac OS + Linux versions will be released separately depending on how this performs.
Full cross-platform compatibility is planned.​
{
"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"
}
Click to expand...
Click to collapse
For now, it is still a work in progress. I would like your feedback on this tool. Post here a screenshot of your Device info so I can improve compatibility with your device! Make sure to blur/hide your IMEI!
It includes an auto-updater so you will definitely be getting the latest improved release whenever I make changes.
Please report any issues you find either here or open an issue on the github repo, thank you!
Download + Source code : Github
General Pixel Development Channel : Telegram
Pixel 2 & 2 XL Official Chat : Telegram
Click to expand...
Click to collapse
Thread updated with download link.
It keeps telling me to install .Net.
I have installed the following and it still asks me to install.
windowsdesktop-runtime-5.0.11-win-x64.exe
dotnet-runtime-5.0.11-win-x64.exe
dotnet-sdk-6.0.100-rc.2.21505.57-win-x64.exe
Even after a reboot, it still prompts to download and install.
Is there a specific version I need to install?
EDIT:
After installing either dotnet-runtime-5.0.11-win-x86.exe or windowsdesktop-runtime-5.0.11-win-x86.exe. One of these x86 versions resolved the issue.
xconwayx said:
It keeps telling me to install .Net.
I have installed the following and it still asks me to install.
windowsdesktop-runtime-5.0.11-win-x64.exe
dotnet-runtime-5.0.11-win-x64.exe
dotnet-sdk-6.0.100-rc.2.21505.57-win-x64.exe
Even after a reboot, it still prompts to download and install.
Is there a specific version I need to install?
EDIT:
After installing either dotnet-runtime-5.0.11-win-x86.exe or windowsdesktop-runtime-5.0.11-win-x86.exe. One of these x86 versions resolved the issue.
Click to expand...
Click to collapse
I will update the thread with the proper link for .net, thank you.
New update released. The program should autoupdate.
How do I flash a rom?
I would like to use the Android Dollhouse tool.
I would like a step-by-step instruction on how to do it?
I would like to download android 12
Thanks.
This looks interesting. I first saw the Pixel 6 thread as I just added one to my collection. I happen to be a .NET developer myself on Windows at work, but at home I'm almost exclusively a Linux user. I'm looking forward to the Linux build.
The good news with the .NET 5.x SDK is it should be almost as simple as changing the target environment. I don't know if that's true for the UI portion though. Perhaps it translates WinForms to the GTK toolkit? That'd be excellent!

Seeking user documentation

Greetings.
Despairing that Sailfish OS will never have a decent browser and that it's actually losing ground in areas like support for ProtonMail and VPNs, I started looking for an alternative OS for the Sony XperiaX I got . . . to run Sailfish OS. A Lineage OS rom with the MicroG modifications would be fine -- if there were one already canned for the XperiaX. Likewise /e/. Best I can tell, there are not (please correct me if I'm wrong, bearing in mind that flashing a phone is like setting a broken leg to me -- I'll do it if I have to, but it's not something I'm good at). So I flashed away Sailfish 4.4.0.68 and installed OTA 23 of what's apparently the stable branch of Ubuntu Touch. It's pleasingly smooth in many ways, but . . .
-- There is NO documentation I can find. Nor can I find any forum or mailing list. It seems to be developers only, which is fine if you don't have or plan to have users. Does anyone know of any support forum or mailing list that helps mere users try out the OS?
-- There is no attention (yet, at least) paid to security, as witness the OS's inability to read an OVPN file so a VPN can be used. There is a document (https://ubports.com/blog/ubports-news-1/post/using-vpn-in-ubuntu-touch-3065) that describes how one might strip the necessary information from an OVPN file, but c'mon.
-- It is apparently possible to manipulate the left-side frequently-used-applications bar (or whatever it's called; again, there seems to be no user documentation even establishing names for these things), because I've seen different apps in that bar in different screenshots. But nowhere can I find anything describing how this is done. (I learned that you need to open the app store to delete an app entirely by accident.)
The hits just keep on coming, but I'll stop there. Does anyone know of any user support site/forum/listserv where we can sort these things out? I'd really like for it to succeed, and even more to be able to use it, but there are a few minimum requirements (VPN especially), that I need to be able to implement. Otherwise I'll have to go back to Sailfish and the world's worst non-Konqueror browser.
Never mind, I guess. I said hell with it and flashed the Lineage OS for MicroG image. Ubuntu Touch is prettier and smoother, but I need an operating system, not a puzzle game, and absent user documentation it's more the latter than the former. It's kind of like Linux in 1997, but without the newsgroup support.
Same thing here, couldn't even get beyond their installer. I guess UB touch is as bull**** as ubuntu itself...
for pointing it out! I thought already it was me but no, it's ubuntu...
@ubuntu:
{
"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