Commit Graph

151 Commits

Author SHA1 Message Date
BeRealQueally ca8b698ee3 lpac-jni: Enable short commands for Windows builds 2023-12-07 20:45:43 -05:00
Peter Cai a25d23b979 lpac-jni: Android.mk: Do not depend on UNIX shell
...instead, the wildcard function is more than enough for the purpose
here.
2023-12-06 20:14:19 -05:00
Peter Cai aecb21d644 lpac-jni: Bail early for Windows builds 2023-12-02 14:13:39 -05:00
Peter Cai c7b393c5fb Revert "fix: jni build on windows"
This reverts commit 195861f24b.
2023-12-02 14:13:02 -05:00
Peter Cai e493a8e885 EuiccChannelManager: Better logging about the APDU channel used 2023-12-02 13:40:55 -05:00
BeRealQueally 195861f24b fix: jni build on windows 2023-12-02 13:38:19 -05:00
Peter Cai 9b901ae6ce lpac-jni: NDK build with 4 threads 2023-12-02 13:33:13 -05:00
Peter Cai c6dc44c0e3 OmapiApduInterface: Use 1 as default channel ID 2023-12-02 13:28:21 -05:00
Peter Cai b0627a1dc0 Fixup Android.bp build after app-common split 2023-12-01 17:51:18 -05:00
Peter Cai af75b8f5fb Display remaining space on card when downloading new profiles
TODO: Refuse to download more profiles (or at least warn) if running
out of space.
2023-11-30 20:04:04 -05:00
Peter Cai 47b2a7060b EuiccChannelManager: check privileges even in "unprivileged" mode
There is no true "unprivileged" mode because we need carrier privileges
either way.
2023-11-28 22:27:25 -05:00
Peter Cai 825b33b1b9 EuiccChannelManager: make internal function protected 2023-11-28 22:12:49 -05:00
Peter Cai 366b4bc049 build.gradle: Bump targetSDK to 34 for privileged 2023-11-28 22:01:14 -05:00
Peter Cai 8845ceec9a refactor: [8/n] Extract git-based versioning logic 2023-11-28 21:59:03 -05:00
Peter Cai 498f3c5478 refactor: [7/n] Move privileged permissions to privileged app 2023-11-28 21:45:34 -05:00
Peter Cai 346ded6a9d refactor: [6/n] Remove privileged mentions in strings 2023-11-28 21:43:06 -05:00
Peter Cai 4d0aa66468 refactor: [5/n] app-common should stop depending on hidden APIs 2023-11-28 21:39:16 -05:00
Peter Cai c4869acdea refactor: [4/n] Stop using abstract classes
For the unprivileged case, the barebones base classes should be usable
directly.
2023-11-28 21:36:09 -05:00
Peter Cai af66bc440e refactor: [3/n] Extract privileged menu / logic from MainActivity as well 2023-11-28 21:33:28 -05:00
Peter Cai 5ed4c84bf2 refactor: [2/n] Move TelephonyApduInterface to privileged code only 2023-11-28 18:51:01 -05:00
Peter Cai 6d9e4c579b refactor: [1/n] Separate app into app and app-common
Going forward, app-common should end up containing ONLY unprivileged
code
2023-11-28 18:26:24 -05:00
Peter Cai 95bfa5525f manifest: Add uses-feature flag for telephony 2023-11-28 17:58:26 -05:00
Peter Cai 05485b2c5d ProfileDownloadFragment: Disable all text input during download 2023-11-28 17:56:06 -05:00
Peter Cai 65d97a92ea themes: Improve colors 2023-11-28 17:54:42 -05:00
Peter Cai 98e0b032d0 Regenerate launcher icons 2023-11-27 21:21:04 -05:00
Peter Cai 58bd80556a core: TelephonyManagerApduInterface: convert to UByte first
Otherwise, the integer representation will be negative when the byte
value is greater than 127.
2023-11-27 20:20:38 -05:00
Peter Cai 7413c86dba core: Fixup TelephonyManagerApduInterface channel management 2023-11-27 20:02:08 -05:00
Peter Cai 05334d15bd lpac-jni: Android.bp: Move liblpac-jni.so to system_ext 2023-11-27 20:01:15 -05:00
Peter Cai e0c7c83032 Android.bp: Disable proguard optimizations for JNI interfaces 2023-11-27 20:00:55 -05:00
Peter Cai 7c21cda40c Implement Android.bp building with AOSP for lpac_jni 2023-11-27 16:54:49 -05:00
Peter Cai b5a63f3de3 lpac-jni: Update HTTP interface 2023-11-26 20:49:04 -05:00
Peter Cai 51357d945b ProfileDownloadFragment: Hide all inputs except SM-DP+ address as passwords 2023-11-26 09:56:28 -05:00
Peter Cai 434a173cb1 ProfileDownloadFragment: Allow customizing IMEI sent to the server 2023-11-26 09:55:16 -05:00
Peter Cai 3ae1e0015f lpac-jni: Make most argumengts to downloadProfile optional 2023-11-26 09:33:28 -05:00
Peter Cai 936cd0150e core: Commonize close() between EuiccChannel's 2023-11-25 22:01:26 -05:00
Peter Cai c62e8bcecd core: Implement TelephonyManagerApduInterface
Untested; need to build on AOSP and test on real eSIM device.
2023-11-25 21:58:08 -05:00
Peter Cai 1c2ca55d51 app: build.gradle: Set versionCode to timestamp for debug builds 2023-11-25 21:56:11 -05:00
Peter Cai bea5aa0dcf lpac-jni: Implement confirmation code support 2023-11-25 18:33:10 -05:00
Peter Cai 98e4c6d94d .idea: Sync 2023-11-25 18:33:00 -05:00
Peter Cai 25da3671c7 refactor: [13/n] Nuke Truphone LPAd implementation 2023-11-25 14:39:26 -05:00
Peter Cai b305e1a2d6 refactor: [12/n] Remove hack for IMEI filler character 2023-11-25 14:31:43 -05:00
Peter Cai f5f146d8ee refactor: [11/n] Implement es9p/es10b profile downloading 2023-11-25 11:05:23 -05:00
Peter Cai 37a7d332ef refactor: [10/n] Reimplement profile renaming and deletion 2023-11-24 17:28:10 -05:00
Peter Cai 0e43f392ab refactor: [9/n] Reimplement profile enabling / disabling 2023-11-23 20:29:49 -05:00
Peter Cai 987eff8111 refactor: [8/n] Ensure local references are deleted 2023-11-23 18:07:52 -05:00
Peter Cai 4d2084b3d3 refactor: [7/n] Don't mind me, I am stupid 2023-11-23 18:05:25 -05:00
Peter Cai d19109d62b refactor: [6/n] Implement getProfiles() 2023-11-23 17:47:02 -05:00
Peter Cai d59e05279d refactor: [5/n] Catch and clear exceptions properly in interface adapter 2023-11-22 21:46:33 -05:00
Peter Cai 92bc390ee5 refactor: [4/n] Kill Truphone LPAd dependency
nothing is re-implemented just yet
2023-11-22 20:52:04 -05:00
Peter Cai 2707a5f1f8 refactor: [3/n] Use userdata member in euicc_ctx 2023-11-18 20:21:00 -05:00