-
Notifications
You must be signed in to change notification settings - Fork 46
Stringlate cannot "Export to SD card" under AOSP 4.1.2 (Jelly Bean) #160
Comments
Can you try with |
Log taken locally with aLogcat Root: |
Tried again with Stringlate 0.12, took a thorough look at the aLogcat settings, still there seems to be nothing meaningful in either main-log or event-log: How to use a debugger on the device (I fail to run adb from the PC with this device)? Can you provide any web-pointers, please? |
Well, with the right settings, logs taken with aLogcat are a bit more comprehensive (but on first sight not sufficiently so): |
Tried with Catlog, which is a bit awkward to use and has issues when trying to filter, but the latter actually makes a difference, as the interesting output does not contain the string P.S. (edit): IMO the following three lines can be ignored (occurring in Catlog's logs), as they seem to be caused by the platform / software stack I am using and occur with many other apps, too: |
Looks pretty much the same, when filtering for |
Hmm. weird, the code should work down to API 14 which is used on Markor too. I will update the utils, tell me then after next uprate if that helped |
You told Markor doesn't crash right? The said things seem to have todo with java imports, but not calls itself ( which are checked against API version). Both of these image methods are not used in stringlate, so I don't see any problem with it (in meaning of I don't think they are the cause of your problems) |
The issue may be somewhere in |
|
If markor does save your notes i see no problem, it always writes to sd/external. What you can do is to try out all of my apps and can tell if you can find some real crash (where the app quits/exits). For me this all this seems to be not a big error in utils code but maybe some minor thing in stringlate. Still I am happy about fixing any bug in the used utils. These utils are used in all of my apps, so try maybe Markor, MemeTastic, openlauncher, dandelion*, froody and stringlate. |
Markor successfully does that (I may have missed to state that 100% clearly in my former comment), in contrast to Stringlate. |
@Lonami, as I am not (yet) willing "to try out all of (@gsantner's) apps and can tell if you can find some real crash (where the app quits/exits)", which may provide a hint what goes wrong in Stringlate when trying to "export to SD" under Android 4.1.2 (API level 16), I retested with Stringlate 0.13:
AFAICS the four consecutive "System.err:"-lines at the end of the Mainlog point to io.github.lonamiwebs.stringlate.activities.translate.TranslateActivity.doExportToSd(TranslateActivity.java) as cause, but this is where my Android / Java debugging skills end. |
Logcat guide update: Maybe take a look at https://gsantner.net/android-contribution-guide/?packageid=io.github.lonamiwebs.stringlate#logcat (has already filled out the right package id) |
Well, what's wrong or missing in the last logs I provided? Side note: Thanks for your well written, brief guide. But it uses ADB, which I fail to get working. |
I just search through projects and pasted the link 😄 , because the existing recommended command seemed not to work. If you can't start adb wifi ( The existing logs seem to be fine, and should give us some info to fix this.
(Note: Personal recommendation) Yeah, buy a new device. You have a big security hole with such a thing. What's even more bad than android fragmentation and outdated android versions are unmaintained/outdated solutions which do try to integrate an again very old android version. OR at least don't be dependant on Android on that device. (it's great you use this app, but this won't help you if your data gets copied by bad people) |
There are no Android system settings, unfortunately.
Can you please name two or three suitable "wireless apps" you were thinking of, as I have not found anything such for debugging purposes.
As I am root on the host side anyway, placing a su binary and control app inside the Android container was feasible. When taking logs this way (under Android < 4.3) with "aLogcat root", I cannot see any difference compared to other logs taken with adb (although it took me a while to figure out the proper settings for aLogcat), in contrast to "CatLog".
As the Android runtime environment was updated until last year (i.e. as long as Google maintained AOSP 4), I don't think this is worse than most devices running Android 5 and 6 (and receiving no updates from their manufacturers for longer).
I did (but did not migrate to it, yet), but SailfishOS currently provides a AOSP 4 based Android runtime (this is supposed to change), so no fundamental difference besides newer hardware. ;)
This was not the case, when designed and implemented in 2013 and was O.K. until 2017 (when Google stopped maintaining AOSP 4). But something has to be (and is promised to be) to be done above this in 2018 , be it Anbox or a license for a newer AlienDalvik.
"You are a strongly opinionated man!" (this quote was originally directed at me, but fits well here, IMHO). |
You need to give adb access to your device, which is the counterpart of the PC's adb. But no, this is not the same adb executeable that you run on your desktop. I have to admit if you can't get any help on your devices/OSs forums, I too can't give any advice, as I don't own any. EDIT: Doesn't seem to be a seperate process where adb is running on the device.
I had an app called "adb wireless" from F-Droid installed, which basically did the same like the Adb-Wireless-option in systemsettings.
Yeah, that was the one last option I can think off. Other than that, read (update came right after my comment) the more clear comment above :D |
OS Monitor (Monitor the Operating System) - https://f-droid.org/app/com.eolwral.osmonitor seems to give logs too reliable, after enabling root. |
@Olf0 thank you so much for providing so much information and sorry for the huge delay. The latest logs point to these lines: Lines 639 to 649 in ef171bb
642, to be precise. And I think it's because that method is also used even on pre-Lolipop devices (notice inside the Lines 594 to 630 in ef171bb
|
@Lonami, thanks for the analysis and explanation.
Thanks for your support. |
This fails: Lines 615 to 617 in 8339dec
But I don't know why. mkdirs returns false for directory on sd card while the parent directory is writable advices to check our permissions but we have them: Stringlate/src/app/src/main/AndroidManifest.xml Lines 8 to 10 in 3a82777
I have checked the root path and it's the same as the one returned by Oh apparently I don't have a |
Stringlate v0.11 from F-Droid under AOSP 4.1.2 (API level 16) is unable to "Export to SD card": "Could not export strings.xml file".
This was somewhat expected, as the README.md states: "This application has not yet been tested on pre-Lollipop devices and it might fail on some operations, such as exporting a file to the SD card. If this is the case, please let me know, or create a new pull request with a fix."
Although I am unable to write code for a PR, I can provide logs, if that is deemed helpful.
The text was updated successfully, but these errors were encountered: