Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Error #17

Open
Verequies opened this issue Feb 16, 2024 · 2 comments
Open

Compilation Error #17

Verequies opened this issue Feb 16, 2024 · 2 comments

Comments

@Verequies
Copy link

Thanks for all your work on this project so far.

I am having a bit of trouble compiling the apk. I have cloned the project and its submodules but I still receive this error.

> Task :app:compileDebugJavaWithJavac FAILED
/home/android/code/ims/app/src/main/java/me/phh/ims/PhhMmTelFeatureProtected.java:31: error: CapabilityCallbackProxy has protected access in ImsFeature
			ImsFeature.CapabilityCallbackProxy capabilityCallbackProxy) {
			          ^
/home/android/code/ims/app/src/main/java/me/phh/ims/PhhMmTelFeatureProtected.java:19: error: MmTelFeature() is not public in MmTelFeature; cannot be accessed from outside package
	public PhhMmTelFeatureProtected(int slotId) {
	                                            ^
/home/android/code/ims/app/src/main/java/me/phh/ims/PhhMmTelFeatureProtected.java:55: error: MmTelCapabilities() is not public in MmTelCapabilities; cannot be accessed from outside package
		MmTelFeature.MmTelCapabilities capabilities = new MmTelFeature.MmTelCapabilities();
		                                              ^
/home/android/code/ims/app/src/main/java/me/phh/ims/PhhMmTelFeatureProtected.java:56: error: cannot find symbol
		capabilities.addCapabilities(this.capabilities);
		            ^
  symbol:   method addCapabilities(int)
  location: variable capabilities of type MmTelCapabilities
/home/android/code/ims/app/src/main/java/me/phh/ims/PhhMmTelFeatureProtected.java:57: error: cannot find symbol
		notifyCapabilitiesStatusChanged(capabilities);
		^
  symbol:   method notifyCapabilitiesStatusChanged(MmTelCapabilities)
  location: class PhhMmTelFeatureProtected
5 errors

Any ideas on what I did wrong?

@phhusson
Copy link
Owner

Cf README, you need to patch your Android SDK with zip -d ./platforms/android-33/android.jar android/telephony/ims/feature/MmTelFeature.class android/telephony/ims/feature/MmTelFeature\$MmTelCapabilities.class

@Verequies
Copy link
Author

Thanks for the clarification. I wasn't entirely sure on what to do with that command as I didn't know that it meant to patch the Android SDK. I thought it was just extracting those files from ims/app/libs/android.jar out into the current root of the project. Anyway found where my platform directory was - which was in ~/Android/Sdk/.

Build was now successful but received the following error on installation INSTALL_FAILED_SHARED_USER_INCOMPATIBLE.
This is on LibreMobileOS on an LG V30+ (H930DS). If I remove android:sharedUserId="android.uid.system" from the AndroidManifest.xml it is able to be installed. However I do not see any options about VoWiFi or VoLTE anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants