yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Sub_Zero2:
I tested with opera browser (not opera mini) on my s4 (gt-i9506) with los 14.1 unofficial, and it worked.

On my s2 after Joining a room, opera doesn't crash, but the page just turns black.

Opera is chromium based, and they generally keep up to date.
[Galaxy S II Android Development] gm0:
That's just because Opera has proper error handling though (I don't know if you write code but basically if an app crashes that's because someone's been lazy when writing it). If you check your logcat you'll see Opera causes the same exception in the camera manager, but unlike the LineageOS browsers it does not just blindly expect it to work and thus does not crash itself.
[Galaxy S II Android Development] Sub_Zero2:
The opera development team has always been thorough. I'm using opera on all my devices on a daily basis. Yes i'm a developer myself. Uncaught exceptions might be a pain.
[Galaxy S II Android Development] gm0:
Never trust your inputs. First rule of programming. ;)
[Galaxy S II Android Development] Sub_Zero2:
One of the greatest rules in programming (and in life generally): Assumptions is the mother of all ****ups! ;)
[Galaxy S II Android Development] laptopu:
I'm using brave browser which blocks ads and been working well for past month, better than adblock browser.
[Galaxy S II Android Development] greyhamism:
Has anyone had any success getting Viper4Android up and running ?

I've tried both official versions ( normal and nougat i/o test), with the former giving an I/O error and the later :

-Confirming driver install

-Asking to reboot

-Upon reboot, it prompts to install the driver again.

Tried installing Magisk (v12) to test that version, couldnt get Magisk installed.

Thought id ask here before trying any of the flashable zip based solutions.

TIA :)
[Galaxy S II Android Development] Nobby1960:
[MENTION=6010364]greyhamism[/MENTION]

Magisk don't work on the S2 (outdated boot image). You must take the Viper4Android FX version, which don't need Magisk. Search for this file: ViPER-FX_2.5.0.5_Nougat_IO_test_fix.apk. It works, I did tested it.
[Galaxy S II Android Development] tha_G:
File associations

Hi guys,

Does anybody know if there exist a system config file or alike that I can adjust to be able to link file extensions to particular apps?

A general rule on android is that apps themselves have hardcoded intent filters for this but this "does not always work" ;)

As an example, I would like to associate *.sh files to an text editor but my phone always tries to open it with my smart launcher (it thinks it can restore a backup with it)

The editor does even have syntax highlighting for it so it definitely supports it.

Any help is greatly appreciated.
[Galaxy S II Android Development] dumdidum123:
Since Android 6, I always had problems with the dialer app, when I receive a call, my phone starts vibrating after about 3-4 seconds. 3-4 seconds after my caller hears the "ring-sign" (don't know whats the correct english word). But after my phone starts vibrating, it still takes another 4 seconds until the screen turns on and I'am able to pick up the call. So 8-9 seconds until I am able to pick up the call.

I think this was not this long in the beginning. I suspect the time got longer.

Is this normal? Does everybody here has to wait this long?
[Galaxy S II Android Development] ale5000:
I have replaced:

/system/lib/libcamera2ndk.so
/system/lib/libcameraservice.so
/system/lib/libcamera_client.so
/system/lib/libcamera_metadata.so

but the problem is the same.

Do you know what is the file to replace?
[Galaxy S II Android Development] ale5000:
Does someone know what are the plans of LineageOS regarding SDCardFS?
[Galaxy S II Android Development] gm0:
Should be /system/framework/framework.jar, no? If not check what it gets compiled into.
[Galaxy S II Android Development] ale5000:
Well, then it is better to wait.

Reverting framework would revert also a lot of other changes and it may break a lot of other things.

I cannot compile it because I'm under Windows; well nothing is impossible but I don't want to setup a whole lot of linux tools emulated under Windows.

If there is an easier way, please tell me.
[Galaxy S II Android Development] gm0:
Oh sure, I wasn't recommending to roll that back for a daily driver, just for his purpose of testing an app he was developing.

And getting Linux on Windows isn't hard. If you're using Windows 10 then you can use the Windows Subsystem for Linux, otherwise install it in a VM, on an USB or dual boot it.
[Galaxy S II Android Development] Selicos:
Hello, I can not install super su, addon does not work, any solution?
[Galaxy S II Android Development] gm0:
This works: https://mirrorbits.lineageos.org/su/addonsu-arm-signed.zip (ignore the error message when you flash it).

Make sure you really need root though.
[Galaxy S II Android Development] greyhamism:
I've tried that version as well. I have root enabled, busy box is installed correctly, and viper has been given storage permissions.

I install the app, open it and am prompted to install the driver. I click yes, and am given the I/O error and told to reboot. After rebooting, i am prompted to install the driver again. I click yes and am met with a driver install successful message and told to reboot (again). After rebooting, it asks me to install the driver (again), despite having already installed it :confused:

I'm Having a look at some flashable options :good:
[Galaxy S II Android Development] Nobby1960:
Oh yes - the I/O problem, I forgot an important thing, sorry. The Selinux mode must be switched to permissive (not enforced) in developer settings. Then reboot the phone and try install again.
[Galaxy S II Android Development] jazzl:
Thanks for sharing the attempts to do what I was considering doing. For those of us who don´t work with building kernels every day, it can be a damn hassle. I did once with Ubuntu, to make a custom ROM with its own nfs.ko module - just so I could access my NFS shares from within VR apps on my LG phone. I ran into so many problems trying an uncountable amount of different methods and versions of Android but my persistance at the end paid me well, so after two months (!) I had it up and running. This experience however, plus the one with recently hardbricking my old I9100 is what makes me rather want to wait for a LineageOS build where the issue is fixed..
[Galaxy S II Android Development] gm0:
I understand, although switching out files like that is harmless since you can always restore them via recovery. Anyway, the next weekly will include the fix so might as well wait now.
[Galaxy S II Android Development] greyhamism:
Wheres this SELinux toggle? I've looked all trough Developer Settings, but i can seem to find it. Thanks for your help by the way :good:
[Galaxy S II Android Development] gm0:
I wouldn't know of a developer setting but if you fire up a shell (terminal window or adb shell) the command is: su root setenforce 0 (1 to go back to enforced)
[Galaxy S II Android Development] Nobby1960:
At the end of the dev settings? See my screenshot.

Edit: Damn - this phone is on AICP, my fault :silly:. Take the attached app to change the mode. Hope it helps. The sound of Viper4Android is great, especially with a professional headphone.
[Galaxy S II Android Development] jazzl:
Thanks, looking forward! :)
[Galaxy S II Android Development] ems3132:
How i can install SuperSU? I tried to install in recovery mode but goes in bootloop.
[Galaxy S II Android Development] gm0:
Use the official su...
[Galaxy S II Android Development] ems3132:
SuperSU not working on this rom?

Anyone managed to install SuperSU?
[Galaxy S II Android Development] ale5000:
It seems that many people don't like SuperSU; currently it doesn't work and no-one is trying to fix it.

But I will try to find a way to install it later this year, if it isn't too much complicate.
[Galaxy S II Android Development] Nobby1960:
SuperSU works on LOS derivates like AICP, but I don't use it. The LOS SU works just as well for me.
[Galaxy S II Android Development] MigoMujahid:
Probably because the selinux in the kernel of LineageOS is Enforcing, SuperSU requires a permissive kernel, which is available in AICP and RR, you can also flash skyline Kernel to get permissive selinux then flash SuperSU system mode.
[Galaxy S II Android Development] shkedov:
Yeah lol, but to tell the truth I'm kinda satisfied with the recent nightly, I could stay with it for good, I believe... :)
[Galaxy S II Android Development] MigoMujahid:
Yeah the latest one is good :)
[Galaxy S II Android Development] Jamie_oppo:
What sort of battery time are yous getting on the latest nightly? Im currently on build number unofficial 20170108. is it worth updating for better battery?
[Galaxy S II Android Development] rogers11:
Thank you very much. Do it like the others and ignore the repeating junk.
[Galaxy S II Android Development] sabi95190:
Hello what i need to do before install the ROM im coming from cm11
[Galaxy S II Android Development] shkedov:
Hmmm, I believe it's too messy to upgrade and stay with your apps and stuff from cm11. I wouldn't do that.

Backup your data, backup your apps using titanium or such or simply do a text list of all of your apps, and clean install LOS14.1. Then recover your personal files and apps.

And make sure you have at least 1GB of /system partition and a compatible kernel (TWRP 3.0.2 here).

Good luck man! :good:
[Galaxy S II Android Development] sabi95190:
Which kernel are compatible ans how i Know that m'y system partition is 1gb
[Galaxy S II Android Development] shkedov:
Can you remember if you ever pitted your device? Anyhow, current partitions size you can check with diskinfo, it's a great app (free from store).

About kernel I'm not sure, don't want to mislead.
[Galaxy S II Android Development] gm0:
If you don't know your partition size then it's safe to assume that it's still default, i.e. not 1 GB. All the information you need is in the first post of this thread, you just need to read it...
[Galaxy S II Android Development] sabi95190:
I buyed thé device today it was in cm11 so will see with the app
[Galaxy S II Android Development] skunky90:
Hello, I'm on stock 4.1.2 Android. Kernel - 3.0.31 1418025.

Can I flash this ROM? If not, what do I need in order to do it?

Thanks.
[Galaxy S II Android Development] ale5000:
[MENTION=2222292]rINanDO[/MENTION]: You missed "Lineage OS 14.1" in the title of the thread.
[Galaxy S II Android Development] shkedov:
Read OP dude. You can clean install it like the guy above you. Install TWRP 3.0.2 recovery and read OP.
[Galaxy S II Android Development] clearlight:
Thanks dude. But i have flashed back to 2901-unofficial.
[Galaxy S II Android Development] Nobby1960:
How can I always start with 1200 MHz (performance profile)? After a reboot the energy profile is set back onto balanced.
[Galaxy S II Android Development] Pendragon2000:
Try with Kernel Adiutor and set "apply on boot".

Even if I think you've just tried it.
[Galaxy S II Android Development] ale5000:
[MENTION=2222292]rINanDO[/MENTION]: The log at https://www.lineageoslog.com/14.1/i9100 compared to cmxlog is updated more frequently and it doesn't disappear every time they took down the builds.

I think it is better for linking in the first post.
[Galaxy S II Android Development] Teekanne3000:
This sounds interesting. Is it possible to integrate this?
[Galaxy S II Android Development] shkedov:
Guys! Check this out! rINanDO and the team came with a new unofficial nightly, check this out! https://xdaforums.com/galaxy-s2/development-derivatives/rom-cm14-unstable-t3465152/page149
[Galaxy S II Android Development] toy_story:
Script fix Dialer for LineageOS

If you have such a problem in the LOS of 02/08, 02/13, 02/16 !

Script fix Ril for LineageOS !

Help must be mutual ...

[i9100] Useful fixes for LineageOS 14.1 [7.1.2]
[Galaxy S II Android Development] toy_story:
Hello, even the Service Center did not help.

Be careful when installing the recovery.
[Galaxy S II Android Development] ale5000:
Does anyone get an exception when uninstalling not existent packages?

Example: adb uninstall xxx
[Galaxy S II Android Development] gm0:
This one?

java.lang.IllegalArgumentException: Unknown package: NonExistentPackage
at com.android.server.pm.Settings.isOrphaned(Settings.java:4175)
at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:18343)
at com.android.server.pm.PackageManagerService.deletePackage(PackageManagerService.java:15752)
at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:888)
at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:792)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:118)
at android.os.ShellCommand.exec(ShellCommand.java:94)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:18603)
at android.os.Binder.shellCommand(Binder.java:468)
at android.os.Binder.onTransact(Binder.java:367)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2438)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3142)
at android.os.Binder.execTransact(Binder.java:565)
[Galaxy S II Android Development] ale5000:
Yes, has anyone already reported it or not?
[Galaxy S II Android Development] gm0:
There's nothing on Jira as far as I can see and the bug tracker is open, so go for it. Although arguably time could be better spent elsewhere rather than fixing this. ;)
[Galaxy S II Android Development] ale5000:
I think every exception should be fixed and this one is probably really easy to fix.
[Galaxy S II Android Development] Kurt Krummbein:
Hm, what do you expect when you try do uninstall a not installed package?

puzzled

Kurt
[Galaxy S II Android Development] ale5000:
A good programmer know that it have to cover all cases, show an error is fine, an exception is not fine.
[Galaxy S II Android Development] gm0:
Exactly. I mentioned this just two or three pages ago. Never trust your inputs. Don't even call yourself a programmer otherwise.
[Galaxy S II Android Development] Kurt Krummbein:
Hey guys, this is getting a bit insane, if a fool tries to uninstall a package he never installed, you realy are fighting for a message "Hey, you stupid fool, you never installed this, why do you ask me to deinstall it now?" instead of an exception, saying "unknown package"?.

Don't mix system crashes because of not handled exceptions with, well not that nice error messages in the debugging interface. adb is a tool for people who know what they do, it's not for the normal user, who just wants to install/uninstall apps with conventient user tools.

And, btw. i'm working as a consultant for a professional enterprise level software that costs 1000$ as license per seat (plus 50% for anual maintenance) and its my daily business dealing with java-stacktraces and exceptions like that ;). Its much better getting an "index out of bounds" exception than an memory access violation by the OS ;).

Gtz

Kurt
[Galaxy S II Android Development] gm0:
Well, it would be cleaner - instead of someone being a stupid fool it might just have been a typo, not something you expect to be greeted with a stack trace for - but it's not like I entirely disagree with you, either, after all I originally said "arguably time could be better spent elsewhere rather than fixing this"...
[Galaxy S II Android Development] ale5000:
Everyone has its own opinion, but in programs made by me I handle all conditions.

Personally I consider programming only an hobby because if it was paid for it I had to go compromise for money and I really not like it.

I see programmers in my city doing really badly programmed programs for a lot of money; personally I have an idea to rewrite them as open source and share just to stop the "theft".
[Galaxy S II Android Development] gm0:
Well, it is an explicitly thrown exception, not an unhandled one.
[Galaxy S II Android Development] ale5000:
Anyway returning on topic in the standard config they have added Jelly and removed Gello.

Could we do the same before the new build?
[Galaxy S II Android Development] gm0:
Already done, seems the Lineage team has decided to drop Gello entirely now. Also Jelly/WebView will be updated to Chrome v58 in the next build.
[Galaxy S II Android Development] jazzl:
Sounds nice, is that the build which also adresses the "torch" bug with camera2? Any idea when it should be out?

Best Regards and thanks for great work
[Galaxy S II Android Development] gm0:
That's the one, expect it tomorrow around 9 a.m. UTC.

And just in case there is a misunderstanding: it's not me who did the work, but I'll join you in thanking those who did! :)
[Galaxy S II Android Development] antrrax:
I can not block mobile numbers. A message appears saying that number is invalid. But the number making the call is a valid number.

In my country they recently added a number (9) at the start of all cell phones.

Would it be for that reason, would I have to correct this?
[Galaxy S II Android Development] MigoMujahid:
Then, Try adding the number with (9) at the start.
[Galaxy S II Android Development] antrrax:
My problem is this.

I get the call from this number - telemarketing

062996070798

062 - area code

996070798 - cell phone number

When receiving the call already comes with the number 9 at the beginning of the cell number.

When I enter 'Phone app' > Recent Call > I click on the number that called me, some options appear, click "Call details".

I now click on 'Block number', and then the message:

'The number 062996070798 is invalid'
[Galaxy S II Android Development] MigoMujahid:
Are you using the phone app or another one (i.e google phone app)?

Try adding it manually.

Open Phone app> then press the menu button and go to "settings" > calls > blocked caller list > and add it manually.
[Galaxy S II Android Development] lingvoncat:
Hi,

My ATT sim card is not detected after flashing the lineage rom. Phone calls cannot be made. What should I do?

Thanks!

ling
[Galaxy S II Android Development] the.gangster:
Welcome to the forum.

To start with a well-meant advice: You shouldn't quote the opening post.

Concerning your problem: first check if your IMEI is still detected correctly. (Settings->about phone->status->IMEI information->IMEI)

If you don't see your device's one there you you have damaged your efs data and no sim-pin will be asked for.
[Galaxy S II Android Development] gm0:
New build is up: https://mirrorbits.lineageos.org/full/i9100/20170517/lineage-14.1-20170517-nightly-i9100-signed.zip

Includes the highly awaited:

- fix to the crash in some apps when accessing the camera, and

- Jelly as the new default browser, based on WebView

- WebView update to Chrome 58.
[Galaxy S II Android Development] dii86700:
Jelly not working constantly crash
[Galaxy S II Android Development] MigoMujahid:
Jelly is liter and less power consumer than Gello, but Gello is more stable :rolleyes:, and Pyrope is better than both :)
[Galaxy S II Android Development] ale5000:
[MENTION=2222292]rINanDO[/MENTION]: Is it possible to merge the official LineageOS su-hide kernel patch listed here? https://lineageos.org/Changelog-9/
[Galaxy S II Android Development] gm0:
Can't get it to crash at all actually and I tried. Did you wipe cache/dalvik and the webview's data? If not give that a try.

---------- Post added at 13:53 ---------- Previous post was at 13:52 ----------

Certainly won't be as easy as simply merging it since we're still on the 3.0 kernel. But in this context I'd like to remind that we're also still missing any number of other kernel security patches.
[Galaxy S II Android Development] dii86700:
Yes I wipe cache/delvik how to wipe the webview's data
[Galaxy S II Android Development] gm0:
Settings>Apps, there enable to "show system", then find Android System WebView>Storage>Clear Data. If that doesn't help, if you have a specific site that Jelly is crashing on for you let me know and I can try on my device.
[Galaxy S II Android Development] dii86700:
Not work immediately have close browsver cannot open Jelly
[Galaxy S II Android Development] gm0:
I'm not sure what you're saying but Jelly = Browser, i.e. what you launch is called "Browser".
[Galaxy S II Android Development] dii86700:
I cennot launch Jelly immediately have message close app and not work I have this problem with Jelly
[Galaxy S II Android Development] gm0:
Hmm, not happening on my end, i.e. something's wrong on yours. Probably easiest to just check the logs.
[Galaxy S II Android Development] dii86700:
Have attach my logcat
[Galaxy S II Android Development] ale5000:
I'm not expert about this but looking at the code for kernel 3.4 to hide su seems to not be attached too much to the other code so it is possible that it doesn't have any particular dependance and maybe it is easy to merge without any change (this is just my supposition).

This change in addition to security will probably also allow to use Android Pay without remove root by just disabling it.
[Galaxy S II Android Development] gm0:
Yeah I guess I could have worded that better. What I meant was he cannot blindly simply merge the commits as such because it's a different kernel version. I agree it's no doubt possible to bring the change to 3.0.101 as well but it will actually have to be looked over carefully.

---------- Post added at 16:26 ---------- Previous post was at 16:14 ----------

All right, it crashes because it cannot find its database - which should be created on launch when it's missing but apparently that fails. As a first step try to wipe the data for the "Browser" app as well (as before, Settings>Apps>Browser>Storage).
[Galaxy S II Android Development] rubentkato77:
Not having that problem with the browser, clean flash.

Will keep testing
[Galaxy S II Android Development] dii86700:
Noting have to clean on storage
[Galaxy S II Android Development] gm0:
Hmm, ok. Sounds like that app didn't install correctly at all (i.e. even its folder is missing). Probably easiest to re-flash the entire ROM, might be more things that went wrong. Wipe the caches once more as well when you do that. Also make sure your download isn't corrupt by the way.
[Galaxy S II Android Development] dii86700:
Thank you work
[Galaxy S II Android Development] EmmaWLove:
Hi.

Could anyone provide me the stock Samsung FM radio apk???

galaxy I9100 LineageOS 14.1
[Galaxy S II Android Development] Nobby1960:
Must it be the original Samsung app? You only can extract this from a working stock ROM. I don't know if it works with LineageOS. I attach you a working FM radio app.
[Galaxy S II Android Development] nospamboz:
"Stay awake" broken?

One of the "developer options" is "stay awake", which prevents display sleeping if plugged into power. It worked great in CM, but not on LOS, at least for me. I used to be able to leave any app on screen, and it would not sleep if plugged into power. Now only clock apps work that way. How about for other people? Not urgent, just annoying.
[Galaxy S II Android Development] todonormal:
Caffeine? [YOUTUBE]uP9Y1hTtWVE[/YOUTUBE]
[Galaxy S II Android Development] gm0:
just tried it, screen stayed on while still in the settings app at least, no issues.
[Galaxy S II Android Development] nospamboz:
More on "stay awake"

Thanks. With that input I investigated further, and I think it may be a USB data issue. For a power source that's also a data source, like a computer, "stay awake" works. For *most* power-only sources, like a wall charger or the one in my car, it doesn't work. However, I also have a very cheap wall charger where it does work, which makes me wonder if that wall charger provides "data" as well.

A quick test for me is to have my phone set to lock immediately on sleep. Put it to sleep and plug it into the charger. If "stay awake" works, the lock screen comes on and stays on. If it doesn't, the lock screen fades away after a few seconds.

Under CM, "stay awake" worked on all these devices the same way. Perhaps LOS also looks at the data lines for "charging" status? By the way, my USB setting is "charge-only".
[Galaxy S II Android Development] Imphinium:
My phone is ovetheating, and the battery is draining soooo bad. Any help? (I9100, nigthly 20170503)