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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Water Flame
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.

manifest: https://github.com/wfscans/platform_manifests/blob/anbox-7-1-2/default.xml
included manifest replace modules: https://github.com/wfscans/platform_manifests/blob/anbox-7-1-2/anbox.xml
removed modules: https://pastebin.com/f2yeXeeV
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.
** https://www.youtube.com/playlist?list=PLLILvClAydD_zU3bxfv0xqiK3IAOCkpmj

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'

--
--
unsubscribe: [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/a2803eab-0682-4e46-8832-0f369d3b5931o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

FW: [mn. C t. android-porting] Ims.2Manager cannot find symbol - Build failure on android-7.1.2_r13 with additional modules

negradazo89




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


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

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.

manifest: https://github.com/wfscans/platform_manifests/blob/anbox-7-1-2/default.xml
included manifest replace modules: https://github.com/wfscans/platform_manifests/blob/anbox-7-1-2/anbox.xml
removed modules: https://pastebin.com/f2yeXeeV
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.
** https://www.youtube.com/playlist?list=PLLILvClAydD_zU3bxfv0xqiK3IAOCkpmj

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'

--
--
unsubscribe: [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/a2803eab-0682-4e46-8832-0f369d3b5931o%40googlegroups.com.

--
--
unsubscribe: [hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/5f18b3a7.1c69fb81.8d783.1e58%40mx.google.com.