Thoughts on Oreo...

kkozma

Senior Member
Jun 15, 2010
727
767
0
Dayton, OH
https://github.com/SiXROM/platform_device_moto_shamu/commits/oreo
check here the stuff from sep 04, still have a random fc but is getting there.
Thank you! If I'm reading all of that correctly, does that mean you have everything working?

I think one of the things holding NFC back a bit is building this nfc_nci.shamu . Everything dealing with that looks to me like it's all for a different chipset than we have. When I removed it from my build, you can clearly see in the logcat that it starts up and runs. It eventually craps out with a seg fault trying to load the service.
 

TotalChen

Member
Dec 11, 2016
31
32
28
https://github.com/SiXROM/platform_device_moto_shamu/commits/oreo
check here the stuff from sep 04, still have a random fc but is getting there.
Code:
<project path="vendor/moto" name="platform_proprietary_vendor_moto" remote="sixoreo" revision="oreo" />
<project path="frameworks/opt/telephony" name="frameworks_opt_telephony" groups="pdk" remote="sixoreo" revision="oreo" />
Dude, caught some slicy "name" bugs in the manifest, should be "proprietary_vendor_moto" and "platform_frameworks_opt_telephony" there.

I sync the source, envsetup, lunch and make but meet a compiling error as following:

Code:
make[2]: 'include/generated/mach-types.h' is up to date.
  CALL    /home/cb-ubuntu/Android/SiX/kernel/moto/shamu/scripts/checksyscalls.sh
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/compile.h
  LD      init/mounts.o
init/do_mounts_rd.o: In function `return_address':
/home/cb-ubuntu/Android/SiX/out/target/product/shamu/obj/KERNEL_OBJ/../../../../../../kernel/moto/shamu/arch/arm/include/asm/ftrace.h:51: multiple definition of `return_address'
init/do_mounts.o:/home/cb-ubuntu/Android/SiX/out/target/product/shamu/obj/KERNEL_OBJ/../../../../../../kernel/moto/shamu/arch/arm/include/asm/ftrace.h:51: first defined here
init/do_mounts_initrd.o: In function `return_address':
/home/cb-ubuntu/Android/SiX/out/target/product/shamu/obj/KERNEL_OBJ/../../../../../../kernel/moto/shamu/arch/arm/include/asm/ftrace.h:51: multiple definition of `return_address'
init/do_mounts.o:/home/cb-ubuntu/Android/SiX/out/target/product/shamu/obj/KERNEL_OBJ/../../../../../../kernel/moto/shamu/arch/arm/include/asm/ftrace.h:51: first defined here
/home/cb-ubuntu/Android/SiX/kernel/moto/shamu/scripts/Makefile.build:441: recipe for target 'init/mounts.o' failed
make[2]: *** [init/mounts.o] Error 1
/home/cb-ubuntu/Android/SiX/kernel/moto/shamu/Makefile:799: recipe for target 'init' failed
make[1]: *** [init] Error 2
  CC      arch/arm/kernel/return_address.o
  CC      arch/arm/kernel/setup.o
../../../../../../kernel/moto/shamu/arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
 #warning "TODO: return_address should use unwind tables"
  ^~~~~~~
../../../../../../kernel/moto/shamu/arch/arm/kernel/return_address.c:66:7: error: redefinition of 'return_address'
 void *return_address(unsigned int level)
       ^~~~~~~~~~~~~~
In file included from ../../../../../../kernel/moto/shamu/include/linux/ftrace.h:20:0,
                 from ../../../../../../kernel/moto/shamu/arch/arm/kernel/return_address.c:12:
../../../../../../kernel/moto/shamu/arch/arm/include/asm/ftrace.h:48:21: note: previous definition of 'return_address' was here
 extern inline void *return_address(unsigned int level)
                     ^~~~~~~~~~~~~~
/home/cb-ubuntu/Android/SiX/kernel/moto/shamu/scripts/Makefile.build:308: recipe for target 'arch/arm/kernel/return_address.o' failed
make[2]: *** [arch/arm/kernel/return_address.o] Error 1
/home/cb-ubuntu/Android/SiX/kernel/moto/shamu/Makefile:799: recipe for target 'arch/arm/kernel' failed
make[1]: *** [arch/arm/kernel] Error 2
Makefile:130: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
I guess the return_address issue is caused by using arm-eabi-6.x, and then I change back to arm-eabi-4.8, some other few errors come out:

Code:
ERROR: /home/cb-ubuntu/Android/SiX/frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java:23231.26: This method must return a result of type List<String>
ERROR: /home/cb-ubuntu/Android/SiX/frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java:234.8: The import com.android.internal.util.abc cannot be resolved
ERROR: /home/cb-ubuntu/Android/SiX/frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java:956.21: AbcUtils cannot be resolved
ERROR: /home/cb-ubuntu/Android/SiX/frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java:1522.21: AbcUtils cannot be resolved
Would you please give me some advice to solve these problems ? Only if you have free time. Many thanks!
 

TotalChen

Member
Dec 11, 2016
31
32
28
Syncing the latest source, I fixed another 2 compiling problems : one caused by "Allow to doubletap or longpress power to toggle flashlight" commits,the other in SixSettings.java with logging.MetricsProto importing, and then I got it through to build an otapackge, finally.

Thanks for all your work! I'd like to dedicate my efforts to do maybe just a little help.
 
  • Like
Reactions: mahir555

fkfmfz

Senior Member
May 10, 2010
1,477
3,285
0
Brooklyn
Syncing the latest source, I fixed another 2 compiling problems : one caused by "Allow to doubletap or longpress power to toggle flashlight" commits,the other in SixSettings.java with logging.MetricsProto importing, and then I got it through to build an otapackge, finally.

Thanks for all your work! I'd like to dedicate my efforts to do maybe just a little help.
that stuff was still being a worked on, sorry
 
  • Like
Reactions: saintmonte

EA1DDO_SGS2

Senior Member
Nov 13, 2011
93
26
0
I've installed last RC2 version first time, just for testing, and so far so good.
It is quite stable, no crashes at all.
Apart from BT, everything is working fine.

I would like to comment something for further checks, the WiFi behaviour is weir, mostly on 5Ghz band.
On 2.4MHz band seems to work as usual, but when I try to connect on 5GHz band, not always is getting the networks, and sometimes disconnects.
Perhaps, it is the radio module within RC2.

Big thank to Frankie.
 

kkozma

Senior Member
Jun 15, 2010
727
767
0
Dayton, OH
I synced back up with the sixrom device tree. Not sure what you guys have done and/or not pushed to git, but neither BT or NFC work for me with what you've pushed...

That being said, I did manage to get bluetooth working on my own, but NFC is still DOA. Same as before, it starts but then faults and dies.
 
  • Like
Reactions: athulele

kkozma

Senior Member
Jun 15, 2010
727
767
0
Dayton, OH
I think I got everything working, not sure. NFC is on, but for some reason you can't turn it off and I don't have any other devices to test it with.. The keyboard is a little wonky, but it works. Bluetooth works, cellular ,etc etc.

I can't figure out the sepolicy thing for bluetooth yet, so selinux is set to permissive. Give it a shot...

aosp_shamu-ota-eng.vwmofo.zip
md5: 9f3bc4b805e6b4ac7c1921f2bf97c814

Use these Gapps: https://androidfilehost.com/?fid=817550096634797336
 
Last edited:

Aerys

Senior Member
Jun 18, 2012
950
738
93
I think I got everything working, not sure. NFC is on, but for some reason you can't turn it off and I don't have any other devices to test it with.. The keyboard is a little wonky, but it works. Bluetooth works, cellular ,etc etc.

I can't figure out the sepolicy thing for bluetooth yet, so selinux is set to permissive. Give it a shot...

aosp_shamu-ota-eng.vwmofo.zip
md5: 9f3bc4b805e6b4ac7c1921f2bf97c814

Use these Gapps: https://androidfilehost.com/?fid=817550096634797336
TWRP asks me for a password to decrypt Data after flashing your rom. Whats it? :)
 

camcory

Inactive Recognized Developer
Jan 20, 2012
1,620
5,497
153
Spring Hill, Fl
I think I got everything working, not sure. Bluetooth works.

I can't figure out the sepolicy thing for bluetooth yet, so selinux is set to permissive. Give it a shot...
Have you tested? I have BT working with enforcing it plays while listening to web content ex. YouTube in browser but doesn't play with ex. Play music app with local device mp3,YouTube app, or amazon prime music.
 
Last edited:

kkozma

Senior Member
Jun 15, 2010
727
767
0
Dayton, OH
Have you tested? I have BT working with enforcing it plays while listening to web content ex. YouTube in browser but doesn't play with ex. Play music app with local device mp3,YouTube app, or amazon prime music.
Are you talking about using BT? No, I haven't done much with it as I've never actually installed any apps to it. I can do that today.

Have you pushed the sepolicy change that fixed it to your git?
 
Last edited:

GelucO_O

Member
Oct 25, 2016
5
1
0
Hey what version of TWRP are u on? Just to be sure.
Thanks
The last one: 3.1.1

---------- Post added at 12:27 PM ---------- Previous post was at 12:24 PM ----------

Are you talking about using BT? No, I haven't done much with it as I've never actually installed any apps to it. I can do that today.

Have you pushed the sepolicy change that fixed it to your git?
BT works perfectly. I've been listening music for some time and i've not had any problem
 
  • Like
Reactions: eocobby721

kkozma

Senior Member
Jun 15, 2010
727
767
0
Dayton, OH
I'm using twrp 3.1.1.0 myself.

Bluetooth seems to work perfectly for me. Tested web based with youtube, play music, youtube app, etc etc. Now whether phone calls work, not sure. lol

Things I've tested so far that don't work...

NFC while the system reports that it's up and started, I can't make it actually do anything. lol
GPS works, but location services doesn't seem to work in apps, ie the "use my location" on a page. Used autozone.com to find a store and it said, sorry location was not shared.
AOSP Keyobard - pressing the numbers key causes it to crash. Install Gboard to fix
 
Last edited:
  • Like
Reactions: Yasharkhan

kkozma

Senior Member
Jun 15, 2010
727
767
0
Dayton, OH
I haven't noticed much lag, but I wouldn't be surprised..

Update on the location services. I think it's AutoZone that's broken. It worked just fine on walmart.com.