yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] srgrusso:
In response to your rant. This is a cheap phone made from cheap parts with no support and no updates. It's end life was the day it was made. Ok with that said I figured out a while ago the led only supports 2 colors green and red probably to save money. We found out a while ago that we can't mount the system read/write. From what I see during the boot process it does get mounted read/write if It needs to write files to the system partition. I noticed this because I saw files in the apk folders which weren't put there by me and it is written into the init scripts. We know that when we mount the system partition in read/write it causes a kernel panic and the phone reboots. So we use Magisk to get around this. Magisk v15 doesn't work on this device, but v15.2 and v15.3 do. In v15 they changed the template for the modules so most of the modules follow the new template now. As far as moving apps to your sdcard, you need to use your sdcard as internal storage in Marshmallow. To disable encryption try going to Settings/Security/Encrypt Phone (damn Blu disabled this option never mind). Well I'll look to see what our options are. I haven't used this phone in a good 6+ months now. I like using it as a learning tool and it seems that I am the only one doing any developement on it now. I was using my Honor 8 as my daily driver but now I use my Essential PH1. Just for curiosity what size sdcard are you using? I know that I can use a 128gb card as removable storage but there might be a size limit for internal storage. They say 64gb is the max. Maybe try different size sdcards.

Edit: I stuck a 64gb sdcard and used as internal storage with encryption enabled without a problem. Also if your going to use an sdcard as your internal storage you want to by a fast sdcard or it will slow down your file transfer.
[Miscellaneous Android Development] AlienTeck:
Thanks for the reply and my reply did not post for some reason.

adoptable storage on this phone does not work properly, you can move apps to it but the sdcard memory does not show up as part of internal memory so pictures and such do not get moved there and you cant access it normally like you can with portable storage.

On my other phones I can use portable storage to move encrypted apps to sdcard and even copy the sdcard and have it work. adoptable storage is supposed to move data to sdcard. So depending on if you have more data or less data you use adoptable or portable storage modes. pictures and music etc always go into the sdcard memory and not phone memory with adoptable storage and only some apps can be moved. Because this is backwards, only apps can be moved and the data remain in phone memory including pictures and music etc.

---------- Post added at 09:46 AM ---------- Previous post was at 09:42 AM ----------

I used a samsung evo plus, its slower than most cards but still 50mb/read write.. The 64gb memory card shows a -ve number.. The 16gb cheap strontium card works fine with no error message and showed a +ve free space. On both cards I was able to move apps to adoptable memory but that is wrong, it is the data that needs to go to the internal memory so pics and music etc can also be stored on it. Whatsapp which is a data hog does not allow itself to be moved due to its widget and none of the google apps can be moved either.

---------- Post added at 09:48 AM ---------- Previous post was at 09:46 AM ----------

I dont use the Blu, been sitting in a drawer for an year now. I only got it out to test the new rom you put out. Last I used it was to see if I could change the DPI to match my other HD screen phones. I used root essentials to set it to the same values and it worked which was surprising. But due to other problems like not have VOLTE and battery draining even when not using it its not a good primary phone to use.
[Miscellaneous Android Development] srgrusso:
Here is something you might be interested in looking at. These are the cpu frequency control settings for X2. It comes from /system/etc/init.qcom.post_boot.sh

https://pastebin.com/vX2NJYBt
[Miscellaneous Android Development] srgrusso:
So I reverted my phone back to stock in hopes to catch the last update they had for this phone, but there was no OTA update in the settings update menu. I wonder if they decided to kill the last update. I was hoping to rebuild the SRG2 with the latest stock rom.
[Miscellaneous Android Development] AlienTeck:
There was only a small security update and nothing else. I think the new roms and such all have those changes. So it would not make any difference. They removed the app that was sending some data to china was the major issue.

BLU_L0091UU_V07_GENERIC27-10-201617_00
[Miscellaneous Android Development] srgrusso:
Thanks
[Miscellaneous Android Development] srgrusso:
New update. I trimmed the down the kernel a little more. Also I went back to the stock color scheme do to the fact that I haven't had time to fully edit the dark color scheme.

https://www.androidfilehost.com/?fid=673956719939819522
[Miscellaneous Android Development] srgrusso:
I just pushed an updated kernel source patched with the prima wlan drivers to my Github account . The config I used for this rom is srgx2_defconfig and it is located in arch/arm64/configs.

https://github.com/srgrusso/android_kernel_blu_life_one_x2.git

If anyone is interested in learning how to compile a kernel for android, here is a good guide.

https://xdaforums.com/le-2/how-to/guide-compiling-64-bit-android-kernel-t3512749
[Miscellaneous Android Development] dougo007:
Battery Drain

I've now tried Drax and SRGX2 and both seem to drain my battery more quickly than the stock rom, at least based on the calculated hours left.

Why? Is this just me?
[Miscellaneous Android Development] srgrusso:
I can't speak on Drax but there shouldn't really be much of a difference in battery usage between the stock rom and SRGX2. SRGX2 is basically the stock rom with the spyware, malware and bloatware removed. The calculated hours left is a very inaccurate way to judge battery drain. It is calculated off of what you are doing at that very moment and expecting nothing to change. If you run a more battery intensive app at the moment it is calculating it will calculate less time left than if your running a less battery intensive app at the moment. If your looking for more battery life I would recommend an app like Greenify you can find it in the Playstore. There is also a Magisk module that will allow you to use a more aggressive doze mode. Here are a couple links about Greenify.

https://xdaforums.com/apps/greenify/aggressive-doze-experimental-feature-t3223731

https://www.howtogeek.com/198135/how-to-optimize-your-android-phones-battery-life-using-greenify/
[Miscellaneous Android Development] AlienTeck:
Actually the kernel is also replaced and unlike stock rom, all 8 cores become active at times like boot etc so battery will drain faster. On the stock rom only 6 cores will ever be active. But I do get more standby time with this rom. Although for some reason they have auto on off which seems to drain battery as much as standby mode, ie in 4 days the battery is fully drained even in the off condition. I think the original ROM did not have this since when I got the phone there was still half charge but the update might have added the useless feature.

---------- Post added at 09:29 AM ---------- Previous post was at 09:28 AM ----------

I would use brevent and magicsk module to raise its previlage level, it seems to work much better than all the other greenify apps.
[Miscellaneous Android Development] Ti4go:
I was having issues with Drax BT (100-20% battery in 1hr) so i decided to try SRGX2..

Im just loving it..

BUT...

My WLAN usage show 44-56% of battery time, And i keep getting disconnected of my network (no reconnect)

Any idea? Home and Work same problem, different Routers/Settings

SRGX2 + Magisk 16
[Miscellaneous Android Development] srgrusso:
Thanks. Did you do a full wipe before you switched roms? Also I built the kernel and the wifi modules for this rom. It might be that. I'll do some research and see what I can come up with. If your willing to install the stock wifi driver and test it I'll build you a patch.
[Miscellaneous Android Development] srgrusso:
I didn't do anything purposely to do this. I wonder if it might not be a permission problem with the governor. I wonder if anyone would notice if we only ran 4 cores.
[Miscellaneous Android Development] AlienTeck:
Yes we would notice. It took for ever to boot up before and with this it boots up really quick like in under a minute. It is very noticeable and I am never sure if it actually booted up. Since before the big core is always on while on this it goes off when not in use and also the little cores are turned off when not in use while they are always on in the original. I do not think the cores are the problem to battery drain here as they go off when you dont do anything and you can use CPU monitor to see the graph. Actually turning off the little cores entirely might help some since they are pretty useless here. But I tried using only the big cores on a 808 CPU and it was slower and not as responsive as using all 6 cores for some reason. They say it is either the little core or the big cores active at a time and not both. So this is confusing. Are they saying you cant use them at the same time but they still execute instructions or that they are entirely turned off? Tests I did says they are not turned off and only inaccessible.

---------- Post added at 05:19 AM ---------- Previous post was at 05:16 AM ----------

What I mean by little cores always on is that all 4 little cores are always on in org ROM never seen them go off. While the 2 of the 4 big cores keeps jumping around and never seen all 4 big cores ever go active. On this ROM 3 of the little cores go off (I think core 0 is always on mode) and 4 of the big cores become active depending on load and entirely go off when nothing is happening.
[Miscellaneous Android Development] Ti4go:
Yes, even formated in TWRP and "fastboot format:ext4" ...

Sure I can try, where I can get the drivers?
[Miscellaneous Android Development] juancollado2003:
I've seen my phone freeze while installing an app, anybody else or just me?
[Miscellaneous Android Development] srgrusso:
I'll build you a TWRP flash able zip when I get home.
[Miscellaneous Android Development] dougo007:
BLU Update

Does this have the updates or only the mini?

Edit: Let's focus on the more important battery issue first. The updated rom may only introduce more problems not to mention new variables.
[Miscellaneous Android Development] srgrusso:
That update was only for the mini. The last update they made for this phone locked people out of their phone.
[Miscellaneous Android Development] srgrusso:
Here is the stock wifi driver patch. Let me know if it changes anything.

https://drive.google.com/open?id=1Vup_uttRW0u0CKeMNh75q1Vro2IkQMVt
[Miscellaneous Android Development] Ti4go:
OK, will try
[Miscellaneous Android Development] Ti4go:
2 hrs after flashing, 100-98% battery drop only..

I will post something at end of the day.

But appear to be fixed..

Ty
[Miscellaneous Android Development] Ti4go:
End of the day, 20:25, 62% battery

Ty very much!
[Miscellaneous Android Development] srgrusso:
That was an easy fix. I will have a new rom this weekend. For those who don't want to wait for the new rom here is the patch.

https://drive.google.com/open?id=1Vup_uttRW0u0CKeMNh75q1Vro2IkQMVt
[Miscellaneous Android Development] juancollado2003:
Please add stock cam, stock clock alarm, stock calc, stock calendar
[Miscellaneous Android Development] Ti4go:
Bad news :/

Same problem at night
[Miscellaneous Android Development] srgrusso:
Can't say I am having the same problem. I'm at 71% with 27% wlan since I posted the patch. Maybe you have an app that does alot of syncing or isn't hibernating? Does your service use voip like FreedomPop does? Also you can try this: http://www.tomsguide.com/faq/id-3028966/fix-android-marshmallow-wifi-battery-drain.html
[Miscellaneous Android Development] Ti4go:
Don't think so..

Authenticator

com.google.android.apps.authenticator2

Bitdefender Security

com.bitdefender.security

Boomerang

com.instagram.boomerang

Brevent

me.piebridge.brevent

Calculator

com.google.android.calculator

Calendar

com.google.android.calendar

Cecred Mobile

br.coop.cecred.cecredmobile

Chrome

com.android.chrome

Facebook

com.facebook.katana

Gmail

com.google.android.gm

Google PDF Viewer

com.google.android.apps.pdfviewer

Google Play services for Instant Apps

com.google.android.instantapps.supervisor

Instagram

com.instagram.android

JuiceSSH

com.sonelli.juicessh

Keep

com.google.android.keep

Keepsafe

com.kii.safe

L Speed

com.paget96.lspeed

Magisk Manager

com.topjohnwu.magisk

Maps

com.google.android.apps.maps

Messenger

com.facebook.orca

Minha Conta

br.com.uol.ps.myaccount

Nova Launcher

com.teslacoilsw.launcher

PicPay

com.picpay

QuickPic

com.alensw.PicFolder

Snapchat

com.snapchat.android

Spotify

com.spotify.music

SwiftKey Keyboard

com.touchtype.swiftkey

Titanium Backup

com.keramidas.TitaniumBackup

TMEye

com.TMEye

Uber

com.ubercab

Unimed Cliente PR

br.com.unimed.pr.cliente

WhatsApp

com.whatsapp

YouTube

com.google.android.youtube

Installed LSpeed today to disable WLAN Scan,

My wlan battery usage is 43%

Well, its working for a full day with moderated use, so no big problems now

Just reporting ;)

If you find a fix great, if not ty anyway, way better now

BTW, Awesome rom! Only thing i suggest is dpi to 424 like Drax.. Stock i think is too big
[Miscellaneous Android Development] Ti4go:
Wlan usage
[Miscellaneous Android Development] juancollado2003:
Mine is working ok, I use BetterBatteryStats to keep process at line

Enviado desde mi Life One X2 mediante Tapatalk
[Miscellaneous Android Development] srgrusso:
Did you have problems with they Playstore with DPI set to 424?
[Miscellaneous Android Development] Ti4go:
No.. Well..

1st time i tried to change build.prop after installing the rom, and nothing changed, even when editing by booting in TWRP..

Installing apps to change DPI worked but i had problems with instagram and pictures in general.. (images zoomed all the time, and wouldn't zoom out)

So i edited the zip file before flash, until now, no problems with any programs DPI
[Miscellaneous Android Development] srgrusso:
Well mathematically the screen should be 424 dpi and not 480. I will put this in my next update as long as there is no problems with the Playstore. I don't want people to have to root their phone just to use the rom. Not to mention that I like it at 424 dpi.:)
[Miscellaneous Android Development] juancollado2003:
Well I've rebooted twice and UI changes keeps ok, magisk module 'Init.d linker' made it happens

Enviado desde mi Life One X2 mediante Tapatalk
[Miscellaneous Android Development] m0han:
if you're gonna do this, [MENTION=8017005]srgrusso[/MENTION], i'd rather wait for the new release than use the patch. is it coming today? :fingers-crossed:

not meaning to push you. i've got another 16 odd hours before i travel - no large downloads possible on the road.
[Miscellaneous Android Development] srgrusso:
Good news I was able to get Android File Host to make the Life One X2 an official device. I have made a request for the Mini too.

Ok here is the update: https://www.androidfilehost.com/?fid=890129502657588168

It includes the stock Calendar, Clock and Calculator apps. I changed the DPI to 424. Let me know if anyone has any problems with the Playstore. I know that there has been some requests for the stock Camera and file Manager apps. It's hard to please everybody so I added a patch section which may please some.
[Miscellaneous Android Development] Porkey111:
Glad to see you're still working on this phone man. I sold mine yesterday. I'm moving on to the oneplus 5t. Loved this phone but it was a well needed upgrade.
[Miscellaneous Android Development] m0han:
srgx2 04-march-2018 build

installed this. new boot animation. g-play services taking long to update. wish you'd do a 'gappsless' build sometime. magisk v16.1 (1610) works well. thanks a lot for your work for BLOX2.

p.s.: device switched off suddenly while updating hosts file in adaway. didn't turn on for a while :mad:. enabled systemless hosts in magisk manager and updated hosts file. things seem ok now.

View attachment 4444135 View attachment 4444136 View attachment 4444137
[Miscellaneous Android Development] juancollado2003:
You can't mount /system on Blox2, all mods must be systemless or phone will reboots to edl mode

Enviado desde mi Life One X2 mediante Tapatalk
[Miscellaneous Android Development] srgrusso:
You can't use Adaway. You need to use Unified Hosts Adblocker module https://xdaforums.com/apps/magisk/magisk-unified-hosts-adblocker-t3559019. As far as removing gapps that's more work than I want to do. When I removed gapps before the rom wouldn't boot. It's also needed for the launcher. Unless Blu does something spectacular like a Nougat update this is probably the last update.
[Miscellaneous Android Development] juancollado2003:
[MENTION=8017005]srgrusso[/MENTION] can you make a dark version of blu splash screen? I mean swap colors

Enviado desde mi Life One X2 mediante Tapatalk
[Miscellaneous Android Development] srgrusso:
I'm sure it is possible. If you want to try I'll send you my files. It's nothing but a bunch of pictures ran one after the other.
[Miscellaneous Android Development] juancollado2003:
I'm talking about the blu splash not the boot animation

Enviado desde mi Life One X2 mediante Tapatalk
[Miscellaneous Android Development] srgrusso:
Oh, That would be cool. I'm not sure how to do that.
[Miscellaneous Android Development] juancollado2003:
Excellent build the last update of SRG, many bugs fixed, thanks, try to integrate the inid.d linker options [MENTION=8017005]srgrusso[/MENTION]

Enviado desde mi Life One X2 mediante Tapatalk
[Miscellaneous Android Development] srgrusso:
If I make something would you try it. I was thinking of having /system/etc/init.d point to /data/etc/init.d or /sdcard0/etc/init.d. Not sure if this would get used outside of Magisk and Magisk has a module or am I missing something?
[Miscellaneous Android Development] juancollado2003:
The module stop inid.d script until system boots

Enviado desde mi Life One X2 mediante Tapatalk
[Miscellaneous Android Development] renatofdds:
[MENTION=8017005]srgrusso[/MENTION] were you able to add this to your ROM ? I'm on drax and is such a great feature.
[Miscellaneous Android Development] srgrusso:
No I haven't added this to my roms.
[Miscellaneous Android Development] AlienTeck:
Has anyone noticed that updating all the apps, it now takes 30 minutes for it to optimize 1 or 2 apps and it keeps optimizing this every reboot.. I had the old ROM and apps saved and re flashed it and it took like 10 seconds to come up. I can just flash the ROM update and it also works fine. But for the life of me I cant figure out which app is causing this 30 minute wait and keeps on optimizing the phone after every reboot.
[Miscellaneous Android Development] AlienTeck:
ok I used this thread to find which apps were being optimised

Pre-Request :

1. Android Phone With Android OS Installed On IT.

2. Root'ed for SuperUser Access.

3. Logcat Extreme [ Need ROOT] To be Installed.

Type In Search Field the Following :

Code:

dexoptimizer

https://xdaforums.com/general/help/how-to-optimizing-apps-boot-t3555288

And found the 2 apps true caller and transparent weather and clock as the culprits and uninstalled them and it fixed the 30 minute booting to desktop scenario.. Now to find out how to fix it. It would not be bad if it was a single reboot but it kept it after each and every reboot although their older versions worked fine.
[Miscellaneous Android Development] srgrusso:
I wonder if it has to do with them trying to make them compatible to multiple versions of Android. It migh be that Marshmallow is no longer compatible for those apps. You can always install the last stable version of the app and turn off updates.
[Miscellaneous Android Development] AlienTeck:
I added back transparent clock and weather app and it seems to work fine so it could also be a conflict. I have the same setup on 6 other phones so I dont think its the app or versions since they go from 4.4.2 to 8..1 OS versions. I see many other specific phones also having similar issues. So it must have something to do with what the company configuration is. This is the first time I ran into this problem so wanted others to know how to fix it. The 30 minute optimizing 1 app gets tired real fast since the phones entirely useless during that time. I do know the optimizing process is different for each version of the OS. But the apps also seem to make changes which makes it incompatible with some of the optimizations.

I still have trouble understanding why google is using java, its not really necessary as it makes it 10 times slower and takes like 4 times the amount of memory and ram to work.
[Miscellaneous Android Development] AlienTeck:
Well the phone worked fine without the 2 conflicting apps but I reinstalled transparent weather clock and weather back in to test and it rebooted fine without any problems. But after 3 days now it is causing the same problem again after I set all the locations and customized it. So I used sdmaid to freeze the app with out uninstalling it and rebooted and it still went into optimizing the one single app for 20 minutes.

So I think as long as the problem app is present on the phone the problem will occur and only solution is to uninstall it completely..
[Miscellaneous Android Development] :
Do you think you can deodex this rom? I'm trying to use NanoDroid to patch the rom to enable signature spoofing for microG, but it only works with deodexed roms. It would be very much appreciated if you could. :)
[Miscellaneous Android Development] AlienTeck:
I have been trying to see how much on time I would get with the latest SRGX2 rom.. and its been running for 2 days and battery is at 68% with a single SIM and wifi on and says 4 days remaining. Thats interesting because usually the battery lasts like 4 days total even with it being turned off.
[Miscellaneous Android Development] AlienTeck:
Something else I noticed with this phone is, if you power down the phone the battery lasts a week before it is drained. But if you boot into TWRP and power down from there, the battery lasts a month. Why should shutting down the phone make such a difference?
[Miscellaneous Android Development] srgrusso:
What do you think Blu has running when the phone is off? You don't think they try to hibernate do you?
[Miscellaneous Android Development] AlienTeck:
Well it does have a wake function but I thought that was in hardware. Who would put such a thing in software and then keep it enabled even when the function is not used? With Lithium batteries which would last 5 years, a drained battery would drastically affect the battery life as well as capacity for a device. But why dont that function active when using TWRP? Since the ROM itself is not active in either scenario.
[Miscellaneous Android Development] srgrusso:
Maybe it never completely shuts of from the system. Some kind of bug. It has to be aware when the charger is plugged in.
[Miscellaneous Android Development] juli05juli:
Hello, I would like to know if you can create a fast and simple ROM along with a kernel that extends the battery life blu one x2?
[Miscellaneous Android Development] cyrusharding:
https://rover.ebay.com/rover/0/0/0?mpre=https://www.ebay.com/ulk/itm/323446888238

For sale my blox2mini with SRGX2
[Miscellaneous Android Development] donatojr:
hello, thanks for the rom but I would like to know if you could put the installation step by step of this rom for beginner users like me