Trying to build Device Image for Ubuntu Touch, Need Help - Ubuntu Touch Q&A, Help & Troubleshooting

I've been trying to learn to build my devices (n8013) image for Ubuntu Touch. I did n't get too far. So here is what I did
1.) [email protected]:/home/christian# git clone https://github.com/mamenyaka/android_device_samsung_n8013.git
Cloning into 'android_device_samsung_n8013'...
remote: Counting objects: 101, done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 101 (delta 48), reused 86 (delta 36)
Receiving objects: 100% (101/101), 19.20 KiB, done.
Resolving deltas: 100% (48/48), done.
2.) [email protected]:/home/christian# cd android_device_samsung_n8013
[email protected]:/home/christian/android_device_samsung_n8013#
3.) [email protected]:/home/christian/android_device_samsung_n8013# . build/envsetup.sh
bash: build/envsetup.sh: No such file or directory
4.) Would be:
[email protected]:/home/christian/android_device_samsung_n8013#brunch n8013
Obviously I'm missing something, anyone now what I need to do? Am I in the wrong directory.

Why aren't you using the phablet tools? You can't just run a git clone of a device tree, you don't have the kernel or the Ubuntu Touch sources!
Use phablet-dev-bootstrap to initialize your working folder and then go through the rest of the setup like everyone else. You can't skip steps, it just doesn't work that way.
Sent from my SGH-T999 using Tapatalk 4 Beta
---------- Post added at 07:47 AM ---------- Previous post was at 07:46 AM ----------
Your first clue should have been the 101 objects. It took me about 2 hours to sync the UT and CM repos on a 50Megabit connection.
Sent from my SGH-T999 using Tapatalk 4 Beta

Thanks
EtherealRemnant said:
Why aren't you using the phablet tools? You can't just run a git clone of a device tree, you don't have the kernel or the Ubuntu Touch sources!
Use phablet-dev-bootstrap to initialize your working folder and then go through the rest of the setup like everyone else. You can't skip steps, it just doesn't work that way.
Sent from my SGH-T999 using Tapatalk 4 Beta
---------- Post added at 07:47 AM ---------- Previous post was at 07:46 AM ----------
Your first clue should have been the 101 objects. It took me about 2 hours to sync the UT and CM repos on a 50Megabit connection.
Sent from my SGH-T999 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Figured it out. I had to revert to an earlier version of Ubuntu and didn't reinstall phablet tools. It seems I've also been working in the wrong directory. I'll have to start from step 1. I had it working last week and couldn't figure out why it wouldn't anymore, then it dawned on me when you said "phablet tools wasn't installed", my dumb mistake. Thanks, I appreciate the help.

Related

[Q] Anyone get Ubuntu working...?

hi guys, i have an optimus v just lying around, and today i decided to try and get ubuntu on it through chroot.
using this guide, i was able to get to the point where it would boot on the command line,
Code:
[email protected]:/#
instead of the normal "#"
but after that, i tried to get it to work in a GUI, but it doesn't work?
i tried
Code:
apt-get update
and it runs, but gives me a bunch of fails and errors...
so of course, without that installed, i can't get any of the servers or other stuff installed, meaning that i can't get the GUI working...
so did anyone get this to work?
(i'm starting to think that it's their problem...)
thanks guys
i'll try to get a photo to show...
OK... First picture shows it booting into Ubuntu
Second picture shows the fail when I try the apt-get update command
Sent from my HTC Glacier Sense 3.5 using xda premium
the error messages says all: you have a network problem, may be no wifi connection or working dns?
andy572 said:
the error messages says all: you have a network problem, may be no wifi connection or working dns?
Click to expand...
Click to collapse
hm that's weird... i have a wifi connection... i tried it on two devices and both could boot up linux, just not get the downloads?
hmmmmm...
what version of ubuntu? nvm, I see your screenshot says karmic, which should work.
more recent versions don't support armv6, so apt-get fails to download any unsupported package.
there's a thread in the optimus v dev section on installing debian.
squeeze and even sid run great on the OV for a 600MHz device with a tiny screen and no keyboard
try checking your /etc/apt/sources.list and make sure it's correct. It looks wrong to me, but I only use ubuntu for my DTV usb stick on my pc. I'm more a debian user myself.
edit again:
you can manually download .deb files and install them from the chroot command line with
dpkg -i filename.deb
just make sure they're for armel architecture; however, with ubuntu being too picky about the processor type, not all armel ubuntu packages will work. If you search google for ubuntu karmic armel whateverthehey.deb you should get stuff that will work. The main problem with manual installs is getting all the dependency .deb's, apt-get is really handy for that step.
---------- Post added at 01:59 PM ---------- Previous post was at 01:29 PM ----------
ok, that sources.list entry in the screenshot looks REALLY wrong.
there is a stock version of the sources.list contents posted here
try putting that in there and maybe apt-get will work.
bigsupersquid said:
what version of ubuntu? nvm, I see your screenshot says karmic, which should work.
more recent versions don't support armv6, so apt-get fails to download any unsupported package.
there's a thread in the optimus v dev section on installing debian.
squeeze and even sid run great on the OV for a 600MHz device with a tiny screen and no keyboard
try checking your /etc/apt/sources.list and make sure it's correct. It looks wrong to me, but I only use ubuntu for my DTV usb stick on my pc. I'm more a debian user myself.
edit again:
you can manually download .deb files and install them from the chroot command line with
dpkg -i filename.deb
just make sure they're for armel architecture; however, with ubuntu being too picky about the processor type, not all armel ubuntu packages will work. If you search google for ubuntu karmic armel whateverthehey.deb you should get stuff that will work. The main problem with manual installs is getting all the dependency .deb's, apt-get is really handy for that step.
---------- Post added at 01:59 PM ---------- Previous post was at 01:29 PM ----------
ok, that sources.list entry in the screenshot looks REALLY wrong.
there is a stock version of the sources.list contents posted here
try putting that in there and maybe apt-get will work.
Click to expand...
Click to collapse
alright thanks... not sure if i get you completely...
i tried it on my actual phone (Mytouch 4G) and on a dell streak 7, both ARM7 CPUs and no luck on neither. i even turned off wifi on my MT4G and tried to download the packages through my mobile data, still no work...
so how would i go about getting the sources list on there..?
and where can i find the .deb files to install then manually?
thankss
go to the link I posted that says "here" and copy/paste the contents of that post into a plain text file named "sources.list"
put it in your ubuntu image (or partition, whatever it is) in /etc/apt/
as far as where to get .debs, google for what program you want to install, make sure to include "ubuntu karmic armel" in the search.
since you're using armv7, you can upgrade the ubuntu release without problems for those devices, the OV will have to stay with karmic I think.
your issue right now is that apt is trying to download from somewhere other than the default repositories, and it can't find where it's looking for.
bigsupersquid said:
go to the link I posted that says "here" and copy/paste the contents of that post into a plain text file named "sources.list"
put it in your ubuntu image (or partition, whatever it is) in /etc/apt/
as far as where to get .debs, google for what program you want to install, make sure to include "ubuntu karmic armel" in the search.
since you're using armv7, you can upgrade the ubuntu release without problems for those devices, the OV will have to stay with karmic I think.
your issue right now is that apt is trying to download from somewhere other than the default repositories, and it can't find where it's looking for.
Click to expand...
Click to collapse
hm... ok... so here's the contents of the .zip i downloaded to get ubuntu running from here
where do i put it..?
you'll have to mount ubuntu.img as a loop device and put it in that directory's etc/apt/ folder.
probably can copy it in once running on-device, you'll have to figure out where in your filesysyem the img is mounted.
i'm not familiar with the method you're using so I can't be more specific, sorry.
alright guys FINALLY GOT IT!!
you have to replace the original server in
Code:
data/local/ubuntu/etc/apt/sources.list
with this:
Code:
http://old-releases.ubuntu.com/ubuntu/
and then it should work!
saranhai said:
alright guys FINALLY GOT IT!!
you have to replace the original server in
Code:
data/local/ubuntu/etc/apt/sources.list
with this:
Code:
http://old-releases.ubuntu.com/ubuntu/
and then it should work!
Click to expand...
Click to collapse
Here's proof
Sent from my HTC Glacier Sense 3.5 using xda premium

Clean up PC after compiling Android

I am compiling ICS for my Galaxy Nexus using Ubuntu and a tutorial I found. I didn't give my VM enough disk space, so it ran out during the compile process. I'm growing the VM's hdd and am going to re-try the build, however, I'd like to clean up the mess that I made already on the VM. What do I need to delete in order to get to where I started before running "make"? I guess what I need to do is deleted whatever has been compiled, but I'm not sure exactly where those files are within my development directory. Thanks!
i would just delete the "out" directory in the root of the source directory.
Thanks. Apparently "make clean" does it too.
Sent from my Galaxy Nexus using Tapatalk

[14/7/13] [ALPHA] Ubuntu Touch 0.2

HTML:
I AM NOT RESPONSIBLE IF YOUR DEVICE GETS BRICKED
Alright, I have been working on porting Ubuntu Touch to our lovely Evo 3D's. I will be posting my work here and will change the thread once I get it out of alpha. As you can see this is only recommended for devs or people that know how to use Linux just now.​
FAQ
Plz halp i am stuk!?
Click to expand...
Click to collapse
A: No.
Can I help?
Click to expand...
Click to collapse
A: Sure! I have a github where I upload my source code, feel free to fork and submit pull requests.
Requirements
Ubuntu FS - (raring-preinstalled-phablet-armhf.zip).
Decent knowledge of Linux.
Guide
1. Download the Ubuntu FS & shooteru image
2. Backup your phone.
3. Wipe everything (Wipe data/factory reset + dalvik cache, and your ext4 partition).
4. Format your sdcard to have two partitions - one Fat32 (for android) and one ext4 (for Ubuntu)
4. Turn off your phone, insert the SD-card into your computer.
5. Transfer the shooteru image to your SD-card (Like you would do if you'd flash it normally).
6. Open a terminal, Unzip the Ubuntu FS.
7. Run the following command; sudo tar --numeric-owner -axf blabla.tar.gz
8. Run the following command; sudo mv binary /INSERT-PATH-TO-SDCARD-EXT4-PARTITION/ubuntu/
9. Safely eject the SD-card and insert it into your phone.
10. Boot into recovery.
11. Flash the shooteru image
12. Boot up
13. Change the values in /usr/bin/ubuntu-session (Look for export GRID_UNIT_PX = 18 and change it to 12)
14. Reboot
15. Win.
Download
Shooteru image 0.1 (Dev-Alpha)
Changelog
0.1 - 12/7/13
Initial Release
Bugs
Camera
Wi-Fi
Bluetooth
Data
3D
3G
Touch Buttons
Volume
Audio
Resolution
Thanks
Evervolv team
Ubuntu Touch team
helicopter88
good job! thanks
thanks! i'm trying to develop on Ubuntu Touch!
slinkyregent said:
thanks! i'm trying to develop on Ubuntu Touch!
Click to expand...
Click to collapse
It's awesome isn't it?
I won't be able to update this as much as I would like to for just now due to some important family matters. I am however talking with some Ubuntu Touch developers to help solve some issues
Ubuntuz said:
It's awesome isn't it?
I won't be able to update this as much as I would like to for just now due to some important family matters. I am however talking with some Ubuntu Touch developers to help solve some issues
Click to expand...
Click to collapse
I sow the same thread,the same OP like yours on Chinese forum.
dr_jerremy said:
I sow the same thread,the same OP like yours on Chinese forum.
Click to expand...
Click to collapse
Hm.... Odd. I used the same style as the old Evervolv ubuntu threads.
EDIT: Updated the thread with newer Ubuntu builds... it now boots! A lot doesn't work just now but as always I am working hard on it.
dr_jerremy said:
I sow the same thread,the same OP like yours on Chinese forum.
Click to expand...
Click to collapse
I am very curious about the chinese forum you said. can you tell me the website? thanks in advance
uBuntuz working on uBuntu
epic stuff there
im afraid everytime the chinese forum is mentioned, XDA admin/mods close it
jcsy said:
uBuntuz working on uBuntu
epic stuff there
im afraid everytime the chinese forum is mentioned, XDA admin/mods close it
Click to expand...
Click to collapse
haha yeah I'm working on getting the latest Ubuntu Touch images to work and also make it easier to install
I don't know what all this business is about the chinese forums but I'll just stay out of it
Ubuntuz said:
It's awesome isn't it?
I won't be able to update this as much as I would like to for just now due to some important family matters. I am however talking with some Ubuntu Touch developers to help solve some issues
Click to expand...
Click to collapse
When I have some time, i download and i try this rom... I've got a really slowly connection (150kb/s ****ing italian ISP). Please take that updated! :good:
PS: If anyone want to help me or work with me for create Ubuntu Apps, send me a PM!
it seems like windows cannot read a sd with 2 partitions.. no problem on SuSe, though... here... be wwarned...
e3d said:
it seems like windows cannot read a sd with 2 partitions.. no problem on SuSe, though... here... be wwarned...
Click to expand...
Click to collapse
Having 2 partitions on the SD card shouldn't matter with 0.2.
The file you requested was not found in goo.im,the link is broken.
tzpm said:
The file you requested was not found in goo.im,the link is broken.
Click to expand...
Click to collapse
Oops! Fixed it!
loop logo htc ,
---------- Post added at 11:01 AM ---------- Previous post was at 10:56 AM ----------
boot up ? what is your mind? how to do /
dqhuy1989 said:
loop logo htc ,
---------- Post added at 11:01 AM ---------- Previous post was at 10:56 AM ----------
boot up ? what is your mind? how to do /
Click to expand...
Click to collapse
try 0.1 with the 0.1 guide. I'm kinda putting off supporting this since hardly anyone has a) used it and b) commented their results.
I got evervolv boot screen with the first method and second method gave this messege in terminal
"sudo rsync -aP binary /INSERTPATHTOSDCARD/ubuntu/
sending incremental file list
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: mkdir "/INSERTPATHTOSDCARD/ubuntu" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(605) [Receiver=3.0.9]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]"
Ubuntuz said:
try 0.1 with the 0.1 guide. I'm kinda putting off supporting this since hardly anyone has a) used it and b) commented their results.
Click to expand...
Click to collapse
What did you expect when you said this:
Ubuntuz said:
Alright, I have been working on porting Ubuntu Touch to our lovely Evo 3D's. I will be posting my work here and will change the thread once I get it out of alpha. As you can see this is only recommended for devs or people that know how to use Linux just now.​
Click to expand...
Click to collapse
I don't think such attitude will get you anywhere as a dev. First you need to feel you want to do something for yourself. Then you can start enjoying it... Just my $0.02
zzrzr said:
I got evervolv boot screen with the first method and second method gave this messege in terminal
"sudo rsync -aP binary /INSERTPATHTOSDCARD/ubuntu/
sending incremental file list
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: mkdir "/INSERTPATHTOSDCARD/ubuntu" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(605) [Receiver=3.0.9]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]"
Click to expand...
Click to collapse
See where it says "INSERTPATHTOSDCARD" yeah? Put the path to your SD card there.
decemberhayes said:
What did you expect when you said this:
I don't think such attitude will get you anywhere as a dev. First you need to feel you want to do something for yourself. Then you can start enjoying it... Just my $0.02
Click to expand...
Click to collapse
I figured that there was plenty of people on this board that could figure out how to use Linux.
I think if u don't have anything valuable to help Ubuntu, then we should keep quiet
I don't, so I wouldn't criticise anything
For those who do, please help and assist in any way
Testing, drivers, kernel, etc
I believe Ubuntu meant well when he is asking for any form of help from the community to help develop this
Whether he has passion for himself or the project or not , that's not appropriate to condemn or expect
Let's work together when we can, where we can
-----------------------------------------------------
Tapatalked from my HTC EVO 3D GSM
Johnnyslt CM10.1, 06-July-2013
Stock kernel & SIO
-----------------------------------------------------

Building AOSP with Bash on Ubuntu on Windows

I am attempting to compile AOSP code using the new WSL (Windows Subsystem for Linux) aka Bash on Ubuntu on Windows. I have successfully setup my build environment and sync'd AOSP code.
I am unable to get "make" to complete a build for even just a single app.
Here is a strace file. Make seems to hang when reading the file "build/core/clang/TARGET_arm.mk" (this file is initialized on line 1443 of the trace), although this file is successfully read several times prior to the hang.
Any ideas about what is causing make to hang? How can I dig deeper to find out what is causing make to hang?
Bump
up
up
Are you on the 14959 fast ring update ?
Sent from my iPhone 4s using Tapatalk I also own a g900v
---------- Post added at 07:47 PM ---------- Previous post was at 07:45 PM ----------
It is beta if it broken report to Microsoft
Sent from my iPhone 4s using Tapatalk I also own a g900v

[ROM][UNOFFICIAL][LineageOS 16.0][Android 9.0][SM-T350]

LineageOS is a free, community built, aftermarket firmware distribution of Android 9.0 (Pie), which is designed to increase performance and reliability over stock Android for your device.
Code:
/*
/ * Your warranty is now void. Knox 0x1.
/* We are not responsible for bricked devices, dead SD cards, lost data due to failed backups, etc, etc. flash at your own risk
*/
How to flash this ROM:
1. Download the zip file.
2. Make sure this zip file is saved to your device (I prefer transferring to sd card to allow for full wipe of data on tablet).
3. If you want Google Play functionality, download OpenGApps (link below). (optional)
4. Reboot into TWRP (Volume Up + Home + Power or Advanced Restart).
5. Make a backup (optional).
6. Wipe System, Data, Cache, and Dalvik Cache partitions with Advanced Wipe. (I like wiping internal data too, do NOT wipe SD Card!)
7. Flash the ROM you just downloaded.
8. Flash OpenGApps ARM for Android 9.0 if you want Google services (optional).
9. If you want root, flash Magisk.
10. Reboot and proceed normally with installation.
11. ????
12. Profit!
Download links:
SM-T350
OpenGApps ARM 9.0 (I use pico)
Source code:
LineageOS
iesous-kurios (forked from LineageOS, and rest of the developers mentioned in the following Credits) on Github
Galaxy MSM-8916
Credits:
The LineageOS Team (and specifically haggertk )
elginsk8r
VirsysElectron
Nubianprince
And awesome tester : retiredtab (saved me sooo much time and has been huge asset in getting bugs fixed)
And of course the Galaxy MSM-8916 team for all of their hard work on our device specific code.
Version Information:
ROM OS Version: Android 9.0 Pie
Known Bugs:
Static while playing mp3s with stock music player (download vlc player to play mp3 files)
Overwhelming sense to brag that your old tablet has newer version of Android on it than a lot of people's expensive phones.
All other functions seem to be working fine. Please report bugs with logcat. I am just starting out on being able to troubleshoot bugs and make edits to code to fix problems, so a majority of bugs will be fixed by the official devs and maintainers of Lineage but I'm trying to learn how to help out too and you have to start somewhere, right?
1st
2nd
3rd
Looking forward to this, thank you!
Thanks for the nice ROM, older bugs are gone! Runs very smoothly with frequent lock-ups.
Issues:
Some apps from Google Play Store are not available saying "not compatible" when you can install their APKs (i.e. Instagram...etc.)
Lockups are annoying
Jfuginay,
Thanks for compiling this ROM. Your work is appreciated.
On my SM-T350, I get the following message when trying to install the 16.0 ROM
updater process ended with error: 7
error installing zip file /sdcard/Download/lineage-16.0-20190221-UNOFFICIAL-gt58wifi.zip
I will check tomorrow to see if there is a newer TWRP that can work with the updater script. I saw in another thread that the SM-T550 updater script is failing because TWRP can't report the model number.
I do need external audio working. I see that SM-T550 which is the bigger version of this A tablet does have audio working as per
https://forum.xda-developers.com/showpost.php?p=78720468&postcount=22
Perhaps there is something in that SM-T550 code that we can use to help with the SM-T350.
retiredtab said:
On my SM-T350, I get the following message when trying to install the 16.0 ROM
updater process ended with error: 7
error installing zip file /sdcard/Download/lineage-16.0-20190221-UNOFFICIAL-gt58wifi.zip
Click to expand...
Click to collapse
Okay the above error was due to TWRP version 3.1.0. I upgraded to 3.2.1 and now the updater-script installs 16.0 onto my SM-T350.
I found TWRP 3.2.1 at
https://androidfilehost.com/?fid=962339331458992706
TWRP-3.2.1-lineage-15.1_j1_20180418_gt58wifi.tar
for the Samsung Galaxy Tab A 8.0, by Austcool Walker
MD5 = 6455c0cfa01b9f71cf575c553df18733
---------- Post added at 11:55 AM ---------- Previous post was at 11:52 AM ----------
I also noticed a newer build today (dated 20190223).
External audio still doesn't work. Headphone jack works.
---------- Post added at 12:11 PM ---------- Previous post was at 11:55 AM ----------
Here is the SM-T550 thread where virsys got external audio working.
https://forum.xda-developers.com/showpost.php?p=78972270&postcount=70
I'm looking through the SM-T550 commits, but unsure what might be needed for the SM-T350?
The most obvious difference between
https://github.com/Galaxy-MSM8916/android_device_samsung_gt510wifi/tree/lineage-16.0
and
https://github.com/Galaxy-MSM8916/android_device_samsung_gt58wifi/tree/lineage-16.0
is the entire configs folder in the SM-T350 code.
I also found
https://github.com/Galaxy-MSM8916/android_device_samsung_gt58wifi/tree/lineage-16.0
retiredtab said:
Okay the above error was due to TWRP version 3.1.0. I upgraded to 3.2.1 and now the updater-script installs 16.0 onto my SM-T350.
I found TWRP 3.2.1 at
https://androidfilehost.com/?fid=962339331458992706
TWRP-3.2.1-lineage-15.1_j1_20180418_gt58wifi.tar
for the Samsung Galaxy Tab A 8.0, by Austcool Walker
MD5 = 6455c0cfa01b9f71cf575c553df18733
---------- Post added at 11:55 AM ---------- Previous post was at 11:52 AM ----------
I also noticed a newer build today (dated 20190223).
External audio still doesn't work. Headphone jack works.
---------- Post added at 12:11 PM ---------- Previous post was at 11:55 AM ----------
Here is the SM-T550 thread where virsys got external audio working.
https://forum.xda-developers.com/showpost.php?p=78972270&postcount=70
I'm looking through the SM-T550 commits, but unsure what might be needed for the SM-T350?
The most obvious difference between
https://github.com/Galaxy-MSM8916/android_device_samsung_gt510wifi/tree/lineage-16.0
and
https://github.com/Galaxy-MSM8916/android_device_samsung_gt58wifi/tree/lineage-16.0
is the entire configs folder in the SM-T350 code.
I also found
https://github.com/Galaxy-MSM8916/android_device_samsung_gt58wifi/tree/lineage-16.0
Click to expand...
Click to collapse
Glad you got it to boot.
I noticed that missing config folder too, so I just added that to my build directory and am compiling that now to test it out. I didn't add the camera files, since it is only bluetooth and speaker I'm trying to troubleshoot. Don't think the camera is having problems, but honestly haven't tried it out yet.
I noticed the missing config folder when checking out the device.mk file for each device. I added the links to the config folder in the device.mk file and added the bluetooth and sound folders from config file to my build directory, so I'm hoping once that compiles it will fix our problems.
Will do a dirty flash first, then if it still isn't working, I'll do full wipe and test it out. If it boots up and fixes anything I'll upload it for people do download, if the same problems persist I won't bother uploading the new build.
One of my links that I found got messed up.
https://github.com/VirsysElectron/android_vendor_samsung_gt510wifi
In the above, virsys does some OSS-audio cleanup for 16.0
---------- Post added at 04:25 PM ---------- Previous post was at 04:24 PM ----------
Regarding the stock 16.0 camera, I get the following error message
Camera error
Can't connect to the camera
If I download open camera from play store, the back camera gives an error message
"failed to start camera preview"
However, the front facing camera shows a preview, but can't save the picture/photo
---------- Post added at 04:29 PM ---------- Previous post was at 04:25 PM ----------
Also had a complete reboot while using Clash Royale game. I hit the news tab and the tablet completely rebooted.
I will try to reproduce, if I can, and get a logcat.
Playing Clash Royale seems okay, but I have to use the headphone jack vs external audio to get sound.
My SM-T350 is a completely fresh install with only gapps pico. Nothing else.
---------- Post added at 04:59 PM ---------- Previous post was at 04:29 PM ----------
Looking at the commit history between the SM-T350 and SM-T550, it looks like deadman96385 didn't add the config/audio files for the SM-T350, but did for the SM-T550 on April 18, 2018
SM-T350
https://github.com/Galaxy-MSM8916/android_device_samsung_gt58wifi/commits/lineage-16.0
SM-T550
https://github.com/Galaxy-MSM8916/android_device_samsung_gt510wifi/commits/lineage-16.0
I wonder if the non working external audio is due to missing config folder?
retiredtab said:
One of my links that I found got messed up.
https://github.com/VirsysElectron/android_vendor_samsung_gt510wifi
In the above, virsys does some OSS-audio cleanup for 16.0
---------- Post added at 04:25 PM ---------- Previous post was at 04:24 PM ----------
Regarding the stock 16.0 camera, I get the following error message
Camera error
Can't connect to the camera
If I download open camera from play store, the back camera gives an error message
"failed to start camera preview"
However, the front facing camera shows a preview, but can't save the picture/photo
---------- Post added at 04:29 PM ---------- Previous post was at 04:25 PM ----------
Also had a complete reboot while using Clash Royale game. I hit the news tab and the tablet completely rebooted.
I will try to reproduce, if I can, and get a logcat.
Playing Clash Royale seems okay, but I have to use the headphone jack vs external audio to get sound.
My SM-T350 is a completely fresh install with only gapps pico. Nothing else.
---------- Post added at 04:59 PM ---------- Previous post was at 04:29 PM ----------
Looking at the commit history between the SM-T350 and SM-T550, it looks like deadman96385 didn't add the config/audio files for the SM-T350, but did for the SM-T550 on April 18, 2018
SM-T350
https://github.com/Galaxy-MSM8916/android_device_samsung_gt58wifi/commits/lineage-16.0
SM-T550
https://github.com/Galaxy-MSM8916/android_device_samsung_gt510wifi/commits/lineage-16.0
I wonder if the non working external audio is due to missing config folder?
Click to expand...
Click to collapse
I'm hoping it's those config files. I did a build with them in but I'm not sure they were included because of my ccache being enabled. I'm not 100 percent convinced that ccache can tell the difference between slightly modified files well enough to know to include the changed files in new build, so I cleared out my ccache files and ran make clobber and am building fresh right now with those config files in there.
Will do full wipe and flash this and report back if it made any difference.
Adding those config files didn't fix anything. Found several differences in some proprietary.mk files so attempting to see if any of those do the trick. New build compiling now. Will probably need to disable ccache and do make clobber to clear directory so I'll probably let it build over night while I sleep.
Let's hope I wake up to a fixed ROM !
Jfuginay said:
Adding those config files didn't fix anything.
Click to expand...
Click to collapse
Darn, I was hoping the config would fix it.
I left a message in the SM-T550 thread asking virsys what was done to fix the external audio because it's not obvious to me where the commit is that fixed it.
In this post
https://forum.xda-developers.com/showpost.php?p=78170903&postcount=9
dated Nov 15, 2018 virsys says "Audio is working now".
At github
https://github.com/VirsysElectron/android_vendor_samsung_gt510wifi/commits/lineage-16.0
there is a commit for Nov 16, 2018 entitled
Cleanup for OSS-audio and improved lineage-16.0 compatibility
I wonder if this commit fixed the external audio?
Just out of curiousity, how are you building this ROM? Locally or on some clould computer?
Another idea/suggestion?
At
https://github.com/Galaxy-MSM8916/a...8wifi/blob/lineage-16.0/proprietary-files.txt
it says the proprietary files are from (line 1)
# Samsung Package Version T550XXU1CQL5_T550OJV1CQK3_TUR (unless otherwise specified and/or tagged)
The SM-T550 has 2 external speakers while the SM-T350 only has 1. I wonder if we have to grab the proprietary files from a SM-T350. Maybe the drivers from the SM-T350 know how to work with just 1 speaker?
retiredtab said:
Another idea/suggestion?
At
https://github.com/Galaxy-MSM8916/a...8wifi/blob/lineage-16.0/proprietary-files.txt
it says the proprietary files are from (line 1)
# Samsung Package Version T550XXU1CQL5_T550OJV1CQK3_TUR (unless otherwise specified and/or tagged)
The SM-T550 has 2 external speakers while the SM-T350 only has 1. I wonder if we have to grab the proprietary files from a SM-T350. Maybe the drivers from the SM-T350 know how to work with just 1 speaker?
Click to expand...
Click to collapse
I'll check out a working 14.1 ROM and see if it has specific proprietary files there which differ from what we are using now.
Virsys responded back on how he/she got the SM-T550 external audio working. See
https://forum.xda-developers.com/showpost.php?p=78978788&postcount=74
"I've fixed the whole audio framework by editing and importing my own mixer_paths.xml to /system/etc"
I wonder if we can download his SM-T550 ROM image, extract that mixer_paths.xml file to see what changed?
So I downloaded the SM-T550 code and looked at the
/system/vendor/etc
directory.
There are 28 files there. In the SM-T350 /system/vendor/etc, there are only 27 files.
The additional file in SM-T550 is called audio_platform_info.xml.
It has definitions for speaker out. I'm not sure of all the definitions or how it's linked yet? I don't know if this file has to be part of the actual rom compilation process or it gets read at boot/runtime.
In addition, there have been additional entries put into the mixer_paths.xml file in the 550 that virsys referred to.
In the SM-T550 /system/etc directory, there 3 additional XML files named
A05QF_sr544_module_info.xml, B05QF_sr544_module_info.xml and C05QF_sr544_module_info.xml.
Not sure if these files are needed or not?
retiredtab said:
So I downloaded the SM-T550 code and looked at the
/system/vendor/etc
directory.
There are 28 files there. In the SM-T350 /system/vendor/etc, there are only 27 files.
The additional file in SM-T550 is called audio_platform_info.xml.
It has definitions for speaker out. I'm not sure of all the definitions or how it's linked yet? I don't know if this file has to be part of the actual rom compilation process or it gets read at boot/runtime.
In addition, there have been additional entries put into the mixer_paths.xml file in the 550 that virsys referred to.
In the SM-T550 /system/etc directory, there 3 additional XML files named
A05QF_sr544_module_info.xml, B05QF_sr544_module_info.xml and C05QF_sr544_module_info.xml.
Not sure if these files are needed or not?
Click to expand...
Click to collapse
Thanks for all the ground work, gives me a good place to look into tonight when I get home from a meeting and have some time to tinker with the code.
K, I looked through a lot of proprietary code for both the gt58 and 511, and hopefully found all the discrepancies. Added over 20 files and lines of code to gt58 proprietary folders and renamed one file to match the dependency in another file.
Compiling now, so cross your fingers that it fixes our sound!
Are your changes up on github?
https://github.com/jfuginay
I'm newish to github and just learning how to navigate and look around.
What I find confusing is the seemingly incredible amount of layers of abstraction in defining the speakers. That is, A->B, B->C, C->D, D->E, E->F, F->G. Anything missing is enough to break it.
I understand why the layers are required, but without a flow chart or visualization of how these things work, it's difficult to follow all the necessary definitions and files needed.
I also have noticed some of the people using github have no documentation on why the code change was required. The changes are there, but why? Was it because something was broken? Was it because it wasn't defined properly in the first place? Was it because there was a potential security problem?
If you have any URL resources that would help explain some of this, I would appreciate some pointers.

Categories

Resources