ImsManager cannot find symbol - Build failure on android-7.1.2_r13 with additional modules

396 views
Skip to first unread message

Water Flame

unread,
Jul 22, 2020, 2:53:47 PM7/22/20
to android-porting
TLDR :  7.1.2_r13 builds fine till I replace a few modules

Hello. So I'm trying to build 7.1.2_r13 with some replaced modules.

custom module location: https://github.com/anbox
All builds done within the suggested docker build environment - https://android.googlesource.com/platform/build/+/master/tools/docker

As you might notice from the manifest there is one for 7.1.1_r13, 8.0.0_r4, and 9.0.0_r). I've tried building all of them and only 7.1.1_r13 builds.  The 8 complains about adding suffix .mk to library. Upon removing them it causes another compile error (log not available). I forget what 9 throws as an error but it doesn't error over the same thing as 8(it was the first thing I tried was just trying I think I started a month or so ago trying to figure this out).  I've tried to make a 7.1.2 version based of the 7.1.2_r13 manifest. It looks fine and syncs correctly. It fails build though. The vanilla 7.1.2_r13 builds fully.

The reason I'm aiming for 7.1.2 is I have evidence* to believe the app I'm trying to run in anbox will work. Due to working via androidx86. Which I would happily just use but has it's own issue in that the graphics driver stutters up and breaks at what seems like random due to invalid frames. virgl doesn't take kindly to this**. From what I recall of when it worked in anbox I didn't experience this problem. 

* talking with windows friends their emulators running 7.1.1 won't play the game but using 7.1.2 or higher allows them to play.

Steps taken to try to build an the android image based off the android-7.1.2_r13 manifest.
* sudo rm -rf /usr/lib/jvm/java-7-openjdk-amd64/
* sudo cp -r /usr/lib/jvm/java-8-openjdk-amd64/ /usr/lib/jvm/java-7-openjdk-amd64/ (it complains about using the wrong version of java so I replace 7 with 8)
* repo init -u https://github.com/wfscans/platform_manifests.git -b anbox-7-1-2 --depth=1
* repo sync -c -j2
* cp anbox/android/media/* anbox/android/camera #Fixes a build crash about missing files for the camera
* . build/envsetup.sh
* lunch anbox_x86_64-userdebug
* m -j2

full build log error: https://pastebin.com/zURhbnmn (snippet error at bottom)
full build log error -j1 logged through screen : https://pastebin.com/bW4RzjxR

vanilla android7.1.2 builds with no error (lunch option aosp_x86_64-eng)
* sudo rm -rf /usr/lib/jvm/java-7-openjdk-amd64/
* sudo cp -r /usr/lib/jvm/java-8-openjdk-amd64/ /usr/lib/jvm/java-7-openjdk-amd64/ (it complains about using the wrong version of java so I replace 7 with 8)
* repo init -u https://android.googlesource.com/platform/manifest -b android-7.1.2_r13 --depth=1
* repo sync -c -j2
* . build/envsetup.sh
* lunch aosp_x86_64-eng
* m -j2

No long was captured when this built. But it builds completely.

\> Ok, I solved the main issue. This is a known problem for when using only 1 building thread
So I don't recall where I read this or the link to it(I found it through googling various things) but I thought sure... all commands have a -j4 so maybe it does need more threads from some race condition. So I threw 6 threads at it instead of the 2 I've been throwing at it. Unshockingly the same result.

I've looked through the device files and compared them to generic and it looks to be fine. Matches up for the most part. I didn't see anything related to CarrierConfigManager.

Would anyone be able to point me in the right direction? I'm sorry the post is kind of long.

----------

frameworks/opt/net/ims/src/java/com/android/ims/ImsManager.java:802: error: cannot find symbol
                CarrierConfigManager.KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS);
                                    ^
  symbol:   variable KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS
  location: class CarrierConfigManager
frameworks/opt/net/ims/src/java/com/android/ims/ImsManager.java:1416: error: cannot find symbol
                            CarrierConfigManager.KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS);
                                                ^
  symbol:   variable KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS
  location: class CarrierConfigManager
frameworks/opt/net/ims/src/java/com/android/ims/ImsManager.java:1621: error: method does not override or implement a method from a supertype
        @Override
        ^
frameworks/opt/net/ims/src/java/com/android/ims/ImsManager.java:1772: error: cannot find symbol
                CarrierConfigManager.KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS));
                                    ^
  symbol:   variable KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS
  location: class CarrierConfigManager
Note: frameworks/opt/net/ims/src/java/com/android/ims/ImsUt.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
[  3% 1786/47185] target Java: icu4j (out/target/common/obj/JAVA_LIBRARIES/icu4j_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/Relation.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
make: Leaving directory `/src'

----------

frameworks/opt/net/ims/src/java/com/android/ims/ImsManager.java:802: error: cannot find symbol
                CarrierConfigManager.KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS);
                                    ^
  symbol:   variable KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS
  location: class CarrierConfigManager
frameworks/opt/net/ims/src/java/com/android/ims/ImsManager.java:1416: error: cannot find symbol
                            CarrierConfigManager.KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS);
                                                ^
  symbol:   variable KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS
  location: class CarrierConfigManager
frameworks/opt/net/ims/src/java/com/android/ims/ImsManager.java:1621: error: method does not override or implement a method from a supertype
        @Override
        ^
frameworks/opt/net/ims/src/java/com/android/ims/ImsManager.java:1772: error: cannot find symbol
                CarrierConfigManager.KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS));
                                    ^
  symbol:   variable KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS
  location: class CarrierConfigManager
Note: frameworks/opt/net/ims/src/java/com/android/ims/ImsUt.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
make: Leaving directory `/src'

negradazo89

unread,
Jul 22, 2020, 6:52:10 PM7/22/20
to android-porting




Sent from my Metro By T-Mobile 4G LTE Android Device


-------- Mensaje original --------
De: Water Flame <waterf...@gmail.com>
Fecha: 22/7/2020 11:53 (GMT-08:00)
A: android-porting <android...@googlegroups.com>
Asunto: [android-porting] ImsManager cannot find symbol - Build failure on android-7.1.2_r13 with additional modules

--
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porti...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/a2803eab-0682-4e46-8832-0f369d3b5931o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages