05-02 01:32:36.545 29678 29678 D CompatibilityChangeReporter: Compat change id reported: 63938206; UID 10132; state: DISABLED
05-02 01:32:36.549 29678 29678 I rtphones.camera: Hello from Camera app!
05-02 01:32:36.553 29678 29678 D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10132; state: DISABLED
Log.i("MyCameraTag","Hello from Camera app!!");
Output:
05-02 01:38:14.889 30595 30595 D CompatibilityChangeReporter: Compat change id reported: 63938206; UID 10132; state: DISABLED
05-02 01:38:14.893 30595 30595 I MyCameraTag: Hello from Camera app!!
05-02 01:38:14.898 30595 30595 D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10132; state: DISABLED
Could have used:
staticfinalStringTAG="Robust image source identification on modern smartphones camera";
Related to #64 and [Benjamin-Loison/termux-api-package/issues/10](https://github.com/Benjamin-Loison/termux-api-package/issues/10).
```java
Log.i(null, "Hello from Camera app!");
```
<details>
<summary>Output:</summary>
```
05-02 01:32:36.545 29678 29678 D CompatibilityChangeReporter: Compat change id reported: 63938206; UID 10132; state: DISABLED
05-02 01:32:36.549 29678 29678 I rtphones.camera: Hello from Camera app!
05-02 01:32:36.553 29678 29678 D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10132; state: DISABLED
```
</details>
```java
Log.i("MyCameraTag", "Hello from Camera app!!");
```
<details>
<summary>Output:</summary>
```
05-02 01:38:14.889 30595 30595 D CompatibilityChangeReporter: Compat change id reported: 63938206; UID 10132; state: DISABLED
05-02 01:38:14.893 30595 30595 I MyCameraTag: Hello from Camera app!!
05-02 01:38:14.898 30595 30595 D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10132; state: DISABLED
```
</details>
Could have used:
```java
static final String TAG = "Robust image source identification on modern smartphones camera";
```
Now have a compilable app but /sdcard/0.jpg is not created. Note that App info > Permissions only mentions Camera, there is nothing related to file access. According to System.getProperty("user.dir") current working directory is /, my idea was to leverage the given app default folder.
Well I based my AndroidManifest.xml on Termux API one but the Termux one seems necessary from the file system access point of view:
The purpose currently is to have a superset of required permissions that we will be able to minimize afterwards.
https://github.com/termux/termux-api/blob/cff225e41e963267a8e5fdd59a83b5fe224dcb5d/app/src/main/java/com/termux/api/apis/CameraInfoAPI.java
https://github.com/termux/termux-api/blob/cff225e41e963267a8e5fdd59a83b5fe224dcb5d/app/src/main/java/com/termux/api/apis/CameraPhotoAPI.java#L79
https://github.com/termux/termux-api-package/blob/e62bdadea3f26b60430bb85248f300fee68ecdcc/scripts/termux-camera-photo.in
Is not there an open-source app able to capture RAW images? But maybe have to pay attention how they proceed then.
As a first step just taking a JPEG picture would be a good start.
https://developer.android.com/media/camera/camerax/take-photo#java
https://developer.android.com/media/camera/camera2/capture-sessions-requests
Just copy-pasting and correcting errors of https://github.com/termux/termux-api/blob/cff225e41e963267a8e5fdd59a83b5fe224dcb5d/app/src/main/java/com/termux/api/apis/CameraPhotoAPI.java seems to be the most promising.
May have to modify `AndroidManifest.xml` and provide permissions.
https://github.com/termux/termux-api/blob/cff225e41e963267a8e5fdd59a83b5fe224dcb5d/app/src/main/AndroidManifest.xml
Currently facing:
```
AndroidManifest.xml:7: error: Error parsing XML: unbound prefix
```
I forgot:
https://github.com/termux/termux-api/blob/cff225e41e963267a8e5fdd59a83b5fe224dcb5d/app/src/main/AndroidManifest.xml#L3:
```xml
xmlns:tools="http://schemas.android.com/tools"
```
Now have a compilable app but `/sdcard/0.jpg` is not created. Note that `App info` > `Permissions` only mentions `Camera`, there is nothing related to file access. According to `System.getProperty("user.dir")` current working directory is `/`, my idea was to leverage the given app default folder.
Well I based my `AndroidManifest.xml` on Termux API one but the Termux one seems necessary from the file system access point of view:


The purpose currently is to have a superset of required permissions that we will be able to minimize afterwards.
```bash
find -maxdepth 4 -name 'AndroidManifest.xml'
```
<details>
<summary>Output:</summary>
```
./app/src/main/AndroidManifest.xml
./terminal-view/src/main/AndroidManifest.xml
./termux-shared/src/main/AndroidManifest.xml
./terminal-emulator/src/main/AndroidManifest.xml
```
</details>
```
./app/src/main/AndroidManifest.xml
```
does not seem to have any interesting addition.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Related to #64 and Benjamin-Loison/termux-api-package/issues/10.
Output:
Output:
Could have used:
https://github.com/termux/termux-api/blob/cff225e41e963267a8e5fdd59a83b5fe224dcb5d/app/src/main/java/com/termux/api/apis/CameraInfoAPI.java
https://github.com/termux/termux-api/blob/cff225e41e963267a8e5fdd59a83b5fe224dcb5d/app/src/main/java/com/termux/api/apis/CameraPhotoAPI.java#L79
https://github.com/termux/termux-api-package/blob/e62bdadea3f26b60430bb85248f300fee68ecdcc/scripts/termux-camera-photo.in
Is not there an open-source app able to capture RAW images? But maybe have to pay attention how they proceed then.
As a first step just taking a JPEG picture would be a good start.
https://developer.android.com/media/camera/camerax/take-photo#java
https://developer.android.com/media/camera/camera2/capture-sessions-requests
Just copy-pasting and correcting errors of https://github.com/termux/termux-api/blob/cff225e41e963267a8e5fdd59a83b5fe224dcb5d/app/src/main/java/com/termux/api/apis/CameraPhotoAPI.java seems to be the most promising.
May have to modify
AndroidManifest.xmland provide permissions.https://github.com/termux/termux-api/blob/cff225e41e963267a8e5fdd59a83b5fe224dcb5d/app/src/main/AndroidManifest.xml
Currently facing:
I forgot:
https://github.com/termux/termux-api/blob/cff225e41e963267a8e5fdd59a83b5fe224dcb5d/app/src/main/AndroidManifest.xml#L3:
Now have a compilable app but
/sdcard/0.jpgis not created. Note thatApp info>Permissionsonly mentionsCamera, there is nothing related to file access. According toSystem.getProperty("user.dir")current working directory is/, my idea was to leverage the given app default folder.Well I based my
AndroidManifest.xmlon Termux API one but the Termux one seems necessary from the file system access point of view:The purpose currently is to have a superset of required permissions that we will be able to minimize afterwards.
Output:
does not seem to have any interesting addition.
diff:Should check that we log exceptions correctly and monitor if some are triggered.
https://search.f-droid.org/?q=raw&lang=en
Find in page...rawdoes not return interesting entries.3c4cf90b19/datasets/android