yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Shrukul:
[MENTION=4948627]daniel_hk[/MENTION] Hi! I am trying to port bluez to cm11 for my Samsung Galaxy Grand Quattro (msm7x27a)... I did follow all your steps except a few...

1. Whenever i include your Android.mk file in external/bluez/tools i get an error while compiling ( module XXXX already defined in external/bluez).. Is it necessary to include the Android.mk file or is it fine NOT to include it...

2. I am a newbie and i dont have much knowledge in kernels (Actually i have never really touched kernel sources,just device trees and all), So as far as i know, it seems that backporting kernel is necessary to get bluetooth to work ( Since my kernel version is 3.4), Can you please explain how exactly to backport.....??
[Android Software/Hacking General [Developers Only]] daniel_hk:
1. Bluez has updated a lot. Some of the tools already included in android/Android.mk. You need to remove the one in my tools/Android.mk

2. Without the kernel backport, Bluez won't work. So you must back port the kernel first.

Good luck!
[Android Software/Hacking General [Developers Only]] Shrukul:
Thanks a lot! I am gonna try and see if that works!

Last Question :- Do we need to make any changes in android_packages_apps_bluetooth??? If so, will it be fine if i use your bluetooth package from your github??
[Android Software/Hacking General [Developers Only]] johnvuong1999:
How about android 5 then.
[Android Software/Hacking General [Developers Only]] daniel_hk:
Work on Lollipop too.
[Android Software/Hacking General [Developers Only]] johnvuong1999:
my LG G Watch linux kernel is:

cat /proc/version

Linux version 3.10.0-ge0ae071 (android-build@vpbs1.mtv.corp.google.com) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Tue Nov 25 23:35:07 UTC 2014

so it is possible upgrade too?

I think we need compile the bluetooth app diriectory with java code too.

since bluetooth support with bluedroid in CM11 /CM12 is better than AOSP, so can we only update those part of code for better support for Avrcp 1.4/1.5?

I am considering working on it, but since Android wear lake many part of codes, so I think upgrade bluedorid maybe easier, though it is not mature.
[Android Software/Hacking General [Developers Only]] m4jonez:
Hi Daniel,

I want to use the CSR7820 chip in my S7562, so I backported my kernel with your files and repatched drivers with CSR7820 specific things.

I can set up hci0 and search for devices with hcitool (it can find my computer).

But when I want to start the bluez bluetoothd daemon, it fails with "IPC: command socket connect failed" ( ipc.c : cmd_connect_cb ).

cond=20, so 20&G_IO_HUP is >0.

Bluez 5.28, cyanogenmod 4.4.4

Do you have an idea what is the issue?

Thx for your response.
[Android Software/Hacking General [Developers Only]] daniel_hk:
I remember I needed to fix a bug in 5.2x.

Try an earlier bluez version (say 5.1x) first. If yes, I'll find my fix for you.

Otherwise, it would be the kernel backport.

Good luck.
[Android Software/Hacking General [Developers Only]] m4jonez:
I solved it :)

The bluetoothd can start, when both upper (hci attached) and lower layers (bluetooth HAL) started.

So bluetoothd can start when the HAL starts it, because the HAL creates the socket, what bluetoothd using.

I think this is a bad logic.
[Android Software/Hacking General [Developers Only]] shumash:
I've successfully compiled all the kernel objects, but I'm getting "undefined reference to" backport_alloc_workqueue during linking. The backport_alloc_workqueue function is referenced in workqueue.h, but not defined. The definition is in compat-3.3.c, but I don't use the backports. Any help would be appreciated.

EDIT: nvm
[Android Software/Hacking General [Developers Only]] shumash:
I'm at the same point. How'd you fix it?

EDIT: nvm
[Android Software/Hacking General [Developers Only]] Alonso1398:
First I want to thanks this thread. I'm trying to port bluez but having some issues so i'll ask for help. Sorry if I do too many quotes

Hello, I'm building for a broadcom chip too. Did you managed to fix your problems?

Also I have doubts if the kernel needs:

CONFIG_BT_HCIUART_BRCM
CONFIG_BCM_BZHW

because the replacement of some folders in the kernel source will make me to remove those lines...

[MENTION=4948627]daniel_hk[/MENTION]Do you know something about it?

And how is this fixed?

Sorry for too many questions. I'm don't really have too much knowledge about development but I really want to fix bluetooth for my device porting bluez
[Android Software/Hacking General [Developers Only]] daniel_hk:
I'm on the road. Will take a look tonight...;)

Edit:

OK, this is basic Linux. Those CONFIG_XXX are defined in Kconfig (kernel config) inside the folder. Starting from the root kernel directory, the subdirectories are included in the root Kconfig like a tree. If you don't even know that, I don't think you can finish the backport yet. Read "how to build the Linux kernel" first. ;)

I only have and tried my device with CSR chip inside. Other chips would be similar but required the corresponding kernel driver (if exists). All materials I could provided are already in the thread, read it first.

Good luck!

BTW, Broadcom chips support Bluedroid. You don't need Bluez as bluetooth stack.
[Android Software/Hacking General [Developers Only]] Alonso1398:
Ok, thanks for the answer. And I already tried using Bluedroid but for some weird reason it cause the phone to freeze when using bluetooth :-/ that's why I'm trying to port Bluez.
[Android Software/Hacking General [Developers Only]] sanshinron:
Is there any chance to get the BlueZ port as a flashable zip or something, so noobs like me could finally enjoy clear audio with apt-x codec on AOSP roms?
[Android Software/Hacking General [Developers Only]] daniel_hk:
It has been asked a few times. I usually prefer detail explainations but nowadays everything is "efficiency" oriented. Only few people really read so I'll try to precise. ;)

If you read the thread, you would know that kernel is involved. That means it is device specific. Unlikely to have one patch for different device. Should there be a universal kernel for different CPUs and hardwares, it would have "better" chance. But different device might have different Bluetooth chips too! That means different type of hardware initialization.

In conclusion, it would be highly unlikely to have a patch for different devices.

Futhermore, if you read the README from Bluez, it only fully support KK. Newer systems support (LP and MM) are only not yet complete.

There is no silly question, only different way of thinking.

There is no right or wrong, only different point of view. The only answer is to read and learn. :)
[Android Software/Hacking General [Developers Only]] sanshinron:
On the side note I found out while browsing github that Cyanogenmod uses old BlueZ 4, which is deprecated. BlueZ website states that new version 5 (which supports apt-x) is a "drop-in replacement". Why didn't CM devs update BlueZ to version 5?
[Android Software/Hacking General [Developers Only]] Codename13:
CM uses BlueZ 4 in the Android versions prior to 4.2.2, just like AOSP used to. They didn't bother updating it from BlueZ 4 to BlueZ 5 because those prior versions of Android are deprecated and no longer worked on.
[Android Software/Hacking General [Developers Only]] Kyokushin:
Hmm, so what about CM13? It have BlueZ 5 with apt-x or not?
[Android Software/Hacking General [Developers Only]] NV-Dev:
Hi, has anyone been able to carry BlueZ kernel 3.4?
[Android Software/Hacking General [Developers Only]] NV-Dev:
CM-11.0 Bluez - Kernel 3.4

Hi, I had some problems with the device holder BlueZ.

It was made avaialble to the BlueZ kernel and can connect to the kernel.

But still does not work, and try to run the commands adb shell and this happens.

Shell:

bccmd -t bcsp -d /dev/ttyHS0 -b 115200 psload -r /system/etc/PSConfig_7820.psr

Result: Initialization timed out

hciattach -p /dev/ttyHS0 bcsp 3000000 flow

Result: BCSP initialization timed out

Thanks in advance, and I hope you can help me.

[MENTION=7247289]Daniel_K[/MENTION]h

Device-tree: https://github.com/CyanogenMod-S6310/android_device_samsung_royss

branch: cm-11.0

vendor: https://github.com/CyanogenMod-S6310/proprietary_vendor_samsung

branch: cm-11.0
[Android Software/Hacking General [Developers Only]] daniel_hk:
This is one of my old threads. You didn't quote and your mention was misspelled. There was no notification to me. You are lucky that someone told me about your post. As a developer, these kind of careless mistakes should not happen. ;)

You didn't provide the log so I can't tell what's wrong. Giving me the device tree and your commands won't help. I simply don't have your device to test. :cyclops:

I guess your kernel backport was not done or fail. Read the thread again. All I can tell are already there. You need to backport the bluetooth subsystem to at least 3.10.y (3.13.y or higher is recommended). Only you have the device can get this done.

Good luck!
[Android Software/Hacking General [Developers Only]] NV-Dev:
CM-11.0 Bluez - Kernel 3.4 (Logcat)

Here it is in the log with BlueZ backported in the kernel: Logcat

Lines: 202, 1560- 1562, 1916 - 1917, 2040, 2070.

Kernel source

[MENTION=4948627]daniel_hk[/MENTION]
[Android Software/Hacking General [Developers Only]] daniel_hk:
I can't pretended I read all your log and sources. I did a few search and follow some of your source. It already spent me over an hour...

1. The BT chip is not initialized. I don't know if you have turn the BT chip on. I assume you have.

2. I don't know which BT chip you have (I think athero?). You used BSCP and bccmd to initialize it. I assume you got it from the cm-10 (or earlier) device tree.

3. The ports are not initialized. That means the protocols are not ready. You can't configure the HCI if the chip is not initialized.

4. The command interface is not started. The bluetoothd would start it if the kernel is ready.

All the above concluded that your kernel is no ready.

Frankly, I can't follow your kernel source. Backport the bluetooth subsystem is straight forward. It is definitely not a simple job and I can't see where you really started.

Your approach seems in the right direction. I suggest you start from fresh again. Backport to 3.18-1 is a good start. All you need is the drivers/bluetooth and net/bluetooth subsystem. You may need a driver for your BT chip too but I can't find which in your source.

Again, only you have the device can get this done. Just finish the backport in kernel and everything would be in the right place.

Good luck!
[Android Software/Hacking General [Developers Only]] NV-Dev:
Bluetooth working now.

[MENTION=4948627]daniel_hk[/MENTION]

The bluetooth is working now. :D

Thanks men, you are the best! :good:

BlueZ 5.38 with Backport 3.18 working in royss (msm7x27a and kernel 3.4) :fingers-crossed:
[Android Software/Hacking General [Developers Only]] daniel_hk:
Good to know that! Congratulation. :highfive:

You may consider share your kernel source at github too. Others might find it useful. ;)
[Android Software/Hacking General [Developers Only]] NV-Dev:
The kernel is on GitHub. :D

If someone reads this post and need a kernel 3.4 with backport 3.18, here it is. :v :p

Kernel (MSM7X27A - 3.4) :good:
[Android Software/Hacking General [Developers Only]] daniel_hk:
I received the above PM earlier. Sharing is the essence of open source. I don't have problem posting it. :)

The following is his script:

#!/system/bin/sh
# modified by shlomo kut

LOG_TAG="EQUATEL-HCI"
BTUART_PORT=/dev/ttySAC0
BTSTATE=/sys/class/rfkill/rfkill0/state
PSCONFIG=/system/etc/bluetooth/bcm4330.hcd
BAUDRATE=3000000
loge ()
{
/system/bin/log -t $LOG_TAG -p e "$LOG_NAME $@"
}

logi ()
{
/system/bin/log -t $LOG_TAG -p i "$LOG_NAME $@"
}

failed ()
{
loge "$1: exit code $2"
exit $2
}

logi "Enable power of csr chip"
echo "1" > $BTSTATE

logi "Config with brcm_patchram_plus"
logwrapper /system/bin/brcm_patchram_plus --baudrate $BAUDRATE --patchram /etc/bluetooth/bcm4330.hcd --no2bytes $BTUART_PORT
case $? in
0) logi "brcm_patchram_plus....done";;
*) failed "port: $BTUART_PORT - brcm_patchram_plus failed" $?;
exit $?;;
esac

logwrapper /system/xbin/hciattach -n -s $BAUDRATE $BTUART_PORT bcm43xx
case $? in
0) logi "hci attached to : $BTUART_PORT";;
*) failed "port: $BTUART_PORT - hciattach failed" $?;
exit $?;;
esac

setprop bluetooth.status on

logi "started bluetooth smd transport"

exit 0
[Android Software/Hacking General [Developers Only]] stosem:
Link doesn't show details now.

Please, tell how to patch bionic for KK!

Thanks.
[Android Software/Hacking General [Developers Only]] daniel_hk:
If you have read the README in Bluez/android, you would know that their server had changed to

https://github.com/bluez-android/aosp_platform_bionic

You should read the README again for each update. ;)

Good luck!
[Android Software/Hacking General [Developers Only]] Humpie:
Forgive my inexperience in this subject, but I wonder, I've not found any official changlog changes to how bluetooth works in android N compared to Marshmallow. Does that mean that it will work for N as well?
[Android Software/Hacking General [Developers Only]] truthz03:
Hi.

Last weekend I have tried to compile the bluez lollipop version for my Nexus 7 flo.

The build was successful and the devices starts correct with working bluetooth functionallity.

Now I tried to enable the handsfree feature which is the reason I switched to bluez.

After I set the "persist.sys.bluetooth.handsfree" property to "hfp" or "hfp_wbs" nothing changes.

I also tried to reboot the device but the hfp is not working. If I pair my phone to the table the phone does not show the hfp service.

Have I missed something?

Thanks Thomas
[Android Software/Hacking General [Developers Only]] daniel_hk:
Thomas,

flo is one of the official example in Bluez port. You might not need to build your own. You can use their output files directly. See if those work.

I ported to a Samsung device. During a call, I need to push the button of the BT earpiece once to connect.

A tablet's bluetooth might not be acted as a handsfree device (eg. a ear piece). Extra audio redirection might required.

I was porting Bluez to a device doesn't have Bluedroid support. Further questions you can consult Bluez directly.

Good luck.
[Android Software/Hacking General [Developers Only]] truthz03:
Hi daniel,

thanks for your answer.

Do you know where I can find these output files?

I didn't find them on "https://github.com/bluez-android".

Thanks,

Thomas
[Android Software/Hacking General [Developers Only]] patryk20120:
Hello,

by output files you mean this https://github.com/bluez-android/aosp_device_asus_flo-kernel ?

Any advice where I should replace these files? Should I unpack boot.img?
[Android Software/Hacking General [Developers Only]] Dougieee:
Will this work on android pie ? on my pocophone XD
[Android Software/Hacking General [Developers Only]] NV-Dev:
Why do u want this for you pocophone? xddd
[Android Software/Hacking General [Developers Only]] Dougieee:
I wanted to used a WiiRemote with dolphin emulator XDDDDDD
[Sony Ericsson Xperia Neo, Pro] Mr.RainBurn:
S4 SystemUI and Framework

All HDPI

Disclaimer!!

Description

The idea of the theme is from the Galaxy s III forum.

This theme is not ported, nor is it stolen. So if you like it, press the Thanks button:)

so lets begin...

Screenshots

*At attachments*

Instructions

1. Download the mod

2. place inside sd-card

3. flash through CWM

4.Reboot and enjoy:good:

Downloads

Touchwiz_SystemUI and framework-->http://d-h.st/RbQ
[Sony Ericsson Xperia Neo, Pro] Mr.RainBurn:
Pictures are taken from
[Sony Ericsson Xperia Neo, Pro] Mr.RainBurn:
<RESERVED>
[Android Q&A, Help & Troubleshooting] rdpeace:
Please provide system.img file for bluestack 0.7.15 . I want to root bluestack 0.7.

if anyone provide link for pre rooted bluestack ...........thank you very much....................... dear admin ............i check other thread but links........... posted in thread is giving 404 not found error...... or else PM me link in msg box ...........after that admin delete this thread...................:o:confused::crying::rolleyes:
[Galaxy S III Mini Q&A, Help & Troubleshooting] TxdAndroid:
Hello XDA Developers.

I was playing with my S3 mini and I left it (without turning it off) about 15 minutes in my night desk, when I took it, it didn't boot at all. I press power button and there's no vibration and screen keeps in black.

I don't know what to do.

I need your help urgently!

Thanks!
[Galaxy S III Mini Q&A, Help & Troubleshooting] mahdik.m:
If u have cwm try wipe . if it doesnt work flash an official rom
[Galaxy S III Mini Q&A, Help & Troubleshooting] DjWacko:
Hi,

Maybe you had a huge battery drain at night ( prob 1ghz bug)

Connect your Phone on the battery adapter and start flashing :).

Perform a real format before you begin ( recovery --> mount and storage --> real format data and media.

And try it again :).

Greetz :highfive:
[Xposed Framework Modules] arnabJ:
Android Apps Theme Engine​

[Decompiling And Recompiling To Theme Your Android Application will be a thing of the PAST:D]​

[A Warehouse Of Android Application Themes]​

Version 4.2

Download

Version 4.1d

Version 4.1C

Version 4.1B(Lollipop Compatible)-Brings in Lot of new Whatsapp Features including Text Coloring.

ScreenShots:

Test Version 4.1A(Lollipop Compatible)

Version 4.1(Lollipop Compatible)

Version 4.0 (Messaging Currently supported by LG phones only, Tested on LG G2) For instruction and details refer here

IT'S UP ON XDA PORTAL​

The New Version is Up and can be downloaded from Xposed Repo

Get Android Theme Engine From Here To Theme Your Android @ System Level

Android Apps Theme Engine is the Theming tool of the future. It allows you to theme your favorite Android Apps On The Go**. It is a Xposed Module and so requires root + Xposed to work. It allows you to change the look of the app to great extent. It will not theme the framework and so all changes done are private to each app and so is much stable then a System Level Theming App.

Features:

It's main feature is to theme Android Apps.

It's Stable.

It contains Ads[Startapp Adds.][Paid Version Also Available]

Requirements:

Android Apps Theme Engine requires Xposed to be installed in your Android Device. It also requires ROOT for applying the themes On The Go** with out the need to "restart the mobile"*. It also requires an Android version 4.0+ to run.

Notes:

* You need to restart the device at least once after installing or updating to a newer version.

** To apply the theme On The Go you be need to provide superuser permissions. This simply Force Closes the App so that when you start it again the changes can reflect on the app.

Guys Please Note That After Updating To A Newer Version You Need To Restart Your Device Once For The New Mods and Themes To Work.

Requirements

• Have Xposed Framework installed

This module is not possible without:

@rovo89 for Xposed Framework, Xposed Documentation.

Me And Vishal For the themes and Module itself.

Credits : [MENTION=4939520]Shaftamle[/MENTION] For Keyboard Themes || @T3T3droid For Keyboard Theme

Currently Supported Apps For Theming:

1. WhatsApp Messenger

2. Settings

3. AOSP Keyboard

4. Google Keyboard

5. Hangouts

6. Google Play

7. Google Play Music.

8. Textra Sms.

9) Message (Only supports LG Phones)

Upcoming Applications Support:

1 SwiftKey Keyboard

2. Stock Android Keyboard

3. Hangouts

4. Google Play

5. Google Play Music

6. Messaging Apps.

DONATOR(S):

1. [MENTION=5296013]tobymacfreak[/MENTION] [THANK-YOU VERY MUCH]​

XDA:DevDB Information

[MOD][XPOSED][4.0+]Android Apps Theme Engine, App for the Android General

Contributors

SArnab©®, vishal11in

Version Information

Status: Stable

Current Stable Version: Version 4.2

Stable Release Date: 2015-12-03

Created 2014-02-08

Last Updated 2015-12-02
[Xposed Framework Modules] arnabJ:
Screen Shots

ScreenShots:
[Xposed Framework Modules] arnabJ:
Change Logs

Version 2.2:

Fixed Google Play not getting themed in few devices.

[Please Note you need to have the latest version of Play Store for this to work.]

Removed WhatsApp custom icons from Predefined themes along with emoji Button.

[Asked by a user]

Version 2.1.1:

Fixed 3 crashes[In JB/KK Free Version].

Better Google Play Theming Support.

Version 2.1 As Android Apps Theme Engine:

Google Play latest version now supported.

Version 2.0 As Android Apps Theme Engine:

*Added custom theme for Google Keyboard.

Now choose your favorite color as keyboard theme.

*Added Support for Textra Sms - Custom Messaging App.

Supports both, Predefined themes and colour themes.

Version 1.0 As Android Apps Theme Engine:

Added 4 New Key Board Themes.

Version 5.0:

Added Google Play Music Theming Support.

Added 3 Google Play Music Themes.

Fixed 1 ICS Crash

Version 4.3:

Fixed Both The New Keyboard Themes Added In Version 4.1/4.2

Version 4.2[For JB]

Added Two New Google Keyboard Themes.

Version 4.1[For ICS]

Fixed Force Close.

Hex Colour Chooser Removed.

Added Two New Google Keyboard Themes.

Version 4.0:

Added Hangouts Theming Support

Added Google Play Theming Support

Added 2 Predefined Hangouts Themes

Pre-Setted Google Play Colour Themes.

Version 3.0 :

Added AOSP Keyboard Theme Support.

Added Google Keyboard Theme Support.

Credits : [MENTION=4939520]Shaftamle[/MENTION] for Keyboard Themes.

Added Colour #Code Support for WhatsApp Colour Themes.

Version 2.0 :

2nd release with new features.

Added 1 new WhatsApp Theme.

Added Colour Picker Themes For WhatsApp, Now Choose Your Desired Colour as Theme.

Added Settings Theme Option + 3 Themes[Android Vanilla + Touch Wiz + Xperia]

Note: Settings Theme Does Not Works In Sony Xperia Devices.

Version 1.0[Build 1] :

Initial release.

Available On Xposed Repo+Google Play

Added 6 WhatsApp Messenger themes[Stock + 5 Others].
[Xposed Framework Modules] cities516:
What's the difference between Ex-Themer & ExThemer 2?
[Xposed Framework Modules] fsi09:
I can't find download link ?
[Xposed Framework Modules] arnabJ:
Reply!

Ex Themer Allows You To theme The Android System On The Go; While Ex Themer 2 Allows you to Theme Applications On The Go.

Its Up Now. Was Updating The Thread.

Please update your post itself.
[Xposed Framework Modules] arnabJ:
Reply!

THE MODULE IS UP ON GOOGLE PLAY[Will Take Time To Come Up].

SCREEN SHOTS ADDED TOO.

[MENTION=5015964]cities516[/MENTION] PLEASE ADD IT TO YOUR INDEX.
[Xposed Framework Modules] decalex:
Awesome, can't wait to see other apps added.
[Xposed Framework Modules] cities516:
Ok, added.
[Xposed Framework Modules] vishal11in:
Thanks !! Hope you have also tried ex themer 1 which has many unique icons to theme your status bar along with framework tweaks.
[Xposed Framework Modules] JoeFCaputo113:
This module has the potential to be epic!! Hopefully other really good/popular apps (Instagram, Snapchat, Twitter, Hangouts, Play Store, etc.). I cant wait!
[Xposed Framework Modules] arnabJ:
Currently adding Settings.apk themes.

Will add more apps too.

Sent From My Sony M Dual C2004
[Xposed Framework Modules] arnabJ:
Guys you can even share some specific theme resources if you want that to be added.

We will try our best to add that in the next release after you provide the resources.

Sent From My Sony M Dual C2004
[Xposed Framework Modules] LuigiBull23:
Looking forward to giving this a try! Thanks OP!
[Xposed Framework Modules] pispuso:
Great to see this! Will sure look forward to its development!

How can we create themes for specific apps? I would love to have a Dark themed Whatsapp, it's nice to have that stock themes, but they are a bit colorful for me lol.

Thanks!
[Xposed Framework Modules] arnabJ:
Well for that you need to decompile the app and check the pngs tht you wanna change.

Then u need to create/search other pngs that may resembal same n send us.

We will make them into theme.

Dark themed.

Good idea.

Will try that in the next version.

Sure have a look. You will love it as much as we love it while making.

Sent From My Sony M Dual C2004