Support Android 9? #7

Closed
opened 2024-01-19 19:46:03 +01:00 by gbridge888 · 7 comments

Hi -

I tried to compiled it, but it only works on Android 11 or above. Is there way I can compile it for Android 9?

Thanks!

Hi - I tried to compiled it, but it only works on Android 11 or above. Is there way I can compile it for Android 9? Thanks!
Owner

This is in the plans right now.

This is in the plans right now.
Owner

minSDK has been lowered to 28 (Android 9) in the latest tagged release (unpriv-alpha02). Please test it out.

minSDK has been lowered to 28 (Android 9) in the latest tagged release (unpriv-alpha02). Please test it out.
Author

"unpriv-alpha02" EasyEUICC works for Android 9. Could you help update OpenEUICC for Android 9 too? I need compile it for other esim cards(esim.me, 5ber), but the compiled apk was still for Android 11 or above only.

Thanks!

"unpriv-alpha02" EasyEUICC works for Android 9. Could you help update OpenEUICC for Android 9 too? I need compile it for other esim cards(esim.me, 5ber), but the compiled apk was still for Android 11 or above only. Thanks!

for OpenEUICC there are minSDK = 30 leftovers

app/build.gradle.kts:        minSdk = 30
libs/hidden-apis-shim/build.gradle.kts:        minSdk = 30
for OpenEUICC there are minSDK = 30 leftovers ``` app/build.gradle.kts: minSdk = 30 libs/hidden-apis-shim/build.gradle.kts: minSdk = 30 ```
Author

Yes, it's been compiled with the above changes to 28. I installed it via Magisk module and my phone(Android Pie) won't show up the openeuicc app after installation and it works on another phone(Android 13).

I am wondering how to update the EasyEUICC source code in order to support other vendors(5ber, esim.me, etc.) If it's possible, it would be great since it works on Android Pie.

Thanks for your great tool again!

Yes, it's been compiled with the above changes to 28. I installed it via Magisk module and my phone(Android Pie) won't show up the openeuicc app after installation and it works on another phone(Android 13). I am wondering how to update the EasyEUICC source code in order to support other vendors(5ber, esim.me, etc.) If it's possible, it would be great since it works on Android Pie. Thanks for your great tool again!
Owner

OpenEUICC will NOT support any version below Android 11. EasyEUICC is being lowered to SDK 28 to accommodate for the needs of upcoming removable eUICC products.

OpenEUICC will NOT support any version below Android 11. EasyEUICC is being lowered to SDK 28 to accommodate for the needs of upcoming removable eUICC products.

Hello,
I reverted to a very early code base, removed some code that only exist on Android 11.
And it works on Android 10.
Here my repository: https://github.com/unixfox/OpenEUICC-Android10 (apk available too).

I hope it's fine to post this. Just wanted to help the community.

Small guide on how to install it on Android 10:

  1. Install magisk
  2. Install systemize (https://github.com/Magisk-Modules-Repo/terminal_systemizer)
  3. Install the apk for OpenEUICC Android 10
  4. Use systemize to transform the app into a system app. (can be done in termux and execute su before)
  5. Enjoy

I did try with the latest code base to do the same thing but I was hurt by a bug that I don't know how to solve.

04-30 23:13:43.656  6126  6175 I EuiccChannelManager: Trying TelephonyManager for slot 0 port 0
04-30 23:13:43.663  3769  3806 I ActivityTaskManager: Displayed im.angry.openeuicc/.ui.PrivilegedMainActivity: +317ms
04-30 23:13:43.711  6126  6175 D EuiccChannelManager: Found eUICC on slot 0 port 0
04-30 23:13:43.712  6126  6175 D MainActivity: slot 0 port 0
--------- beginning of crash
04-30 23:13:43.753  6126  6126 E AndroidRuntime: FATAL EXCEPTION: main
04-30 23:13:43.753  6126  6126 E AndroidRuntime: Process: im.angry.openeuicc, PID: 6126
04-30 23:13:43.753  6126  6126 E AndroidRuntime: java.lang.NullPointerException
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at net.typeblog.lpac_jni.impl.LocalProfileAssistantImpl.getEID(LocalProfileAssistantImpl.kt:52)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at im.angry.openeuicc.ui.MainActivity$init$2.invokeSuspend(MainActivity.kt:102)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:233)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
04-30 23:13:43.753  6126  6126 E AndroidRuntime: 	Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@65ce39d, Dispatchers.Main.immediate]
Hello, I reverted to a very early code base, removed some code that only exist on Android 11. And it works on Android 10. Here my repository: https://github.com/unixfox/OpenEUICC-Android10 (apk available too). I hope it's fine to post this. Just wanted to help the community. Small guide on how to install it on Android 10: 1. Install magisk 2. Install systemize (https://github.com/Magisk-Modules-Repo/terminal_systemizer) 3. Install the apk for OpenEUICC Android 10 4. Use systemize to transform the app into a system app. (can be done in termux and execute su before) 5. Enjoy ---------- I did try with the latest code base to do the same thing but I was hurt by a bug that I don't know how to solve. ``` 04-30 23:13:43.656 6126 6175 I EuiccChannelManager: Trying TelephonyManager for slot 0 port 0 04-30 23:13:43.663 3769 3806 I ActivityTaskManager: Displayed im.angry.openeuicc/.ui.PrivilegedMainActivity: +317ms 04-30 23:13:43.711 6126 6175 D EuiccChannelManager: Found eUICC on slot 0 port 0 04-30 23:13:43.712 6126 6175 D MainActivity: slot 0 port 0 --------- beginning of crash 04-30 23:13:43.753 6126 6126 E AndroidRuntime: FATAL EXCEPTION: main 04-30 23:13:43.753 6126 6126 E AndroidRuntime: Process: im.angry.openeuicc, PID: 6126 04-30 23:13:43.753 6126 6126 E AndroidRuntime: java.lang.NullPointerException 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at net.typeblog.lpac_jni.impl.LocalProfileAssistantImpl.getEID(LocalProfileAssistantImpl.kt:52) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at im.angry.openeuicc.ui.MainActivity$init$2.invokeSuspend(MainActivity.kt:102) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:233) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) 04-30 23:13:43.753 6126 6126 E AndroidRuntime: Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@65ce39d, Dispatchers.Main.immediate] ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: PeterCxy/OpenEUICC#7
No description provided.