Can we get a list of which phones this works on?
t408dl-tracfone brands: YES
4058L-UScellular:
4058C-cricket:
4058W-tmobile:
4058R-at&t:
- Flip Phones
Alcatel TCL Flip 2 (T408DL)
Is there any way to permanently uninstall the browser? (Even though I have root its still read-only...)
neutronscott Yes I didnt need to install the magisk app at all it installed by itself once it connected to wifi and was allowed to install apps
darth Is there any way to permanently uninstall the browser? (Even though I have root its still read-only...)
I was starting to look at this. I pulled the super partition but haven't had luck extracting the contents yet. Think other options are using the recovery kernel or build one to make the mmc block devices writable.
I've messed with embedded Linux device before that passed it all in the kernel cmdline but this is new. I have to see what creates the partitions and declares them read-only. I believe it's in the dtb nowadays.
I would like a custom recovery still if it's do-able but still that's more research for me about all the different Android options I've ran across just reading Magisk docs.
lgexalter1 typically you can remount as rw but these block devices are marked read-only. I tried changing it using the /sys/block interface but no luck there.
lgexalter1 OK I must have mixed it up with boot. I could not get Magisk direct install to work on the phone and assumed system was the same. I'll have to check it out. Just mount -o rw,remount / ??
I Cant confirm but i think you can install apps using method of sending apk with bluetooth and installing with notifications
lgexalter1 yeah one of the big frustrations introduced with system-as-root / AB devices
Hello everyone!
Now that we have hit the milestone of being able to modify the Alcatel tcl Flip 2 the next steps are for us to create a Kosher Rom image with the option for Kosher pre approved Apps so that people in the orthodox community will be able to use this phone safely. The plan is to package this up in an easy to use program that anyone can use to install for free.
Please be aware that there may be other competitors who are watching and reading everything we write here and may reach out to any of you who are contributing @yeti @darth @neutronscott @lgexalter1 @Biden2020prez etc expressing their grievances with us attempting this goal of democratizing a kosher option for the TCL Flip 2. They may try to mask their intent by claiming that we are trying to help people bypass kosher phones and that you should stop. There is nothing more far from the truth as the whole goal of these forums and the website is to help provide kosher flip phone options to consumers. We have always had a strong policy disallowing any non kosher apps or content on these forums and we will continue to do so vigorously. Don't be fooled by people who have there own financial motives!! If you receive any communication from these kind of people, please do not respond and incite them, just ignore it and mark it as spam. We will continue to march towards our goal of free kosher firmware and apps for flip phones.
@lgexalter1 It looks like you have tried removing the browser apk and have run into the issue where the system resets itself. I think the next step would be to try to take a backup of the system partition using the guide here - https://forum.xda-developers.com/t/guide-making-dump-files-out-of-android-device-partitions.2450045/ Then we can use android kitchen or something like that to try to open it up, remove the browser and then repackage it.
We should also be able to reflash it using fastboot
Apps4Flip-Admin What about the fact that the phone has secure boot?
darth true but didn’t we unlock the boot loader? So there should be no signature verification
See this - https://source.android.com/docs/security/verifiedboot/device-state for more details
When a device powers on, the bootloader first checks if a device is LOCKED or UNLOCKED. If a device is UNLOCKED, the bootloader shows the user a warning and then proceeds to boot even if the loaded OS isn't signed by the root of trust.
If the device is LOCKED, the bootloader goes through the steps in Verifying Boot to verify the device's software. LOCKED devices boot only if the loaded OS is properly signed by the root of trust. For more details, see The boot flow.
After much fighting to get into fastboot mode, it works on the T-Mobile variant. Kills software update though.
I cant help but acknowledge the amazing talent of the people of this community, your efforts and achievements are so dazzling, people like you are helping the frum world in a way not everyone can. I know I'm disturbing the tech talk, but everyone should know that you guys are amazing!! I own one of these phones and I cant use it cuz I never knew how to kasher it, plus no apps is not so convenient, but I'm reading this thread and I'm seeing that there are some wickedly talented tech savvy special people who are devoting their precious time to help the klal by broadening kosher flip phone options. I cant wait for this to wrap up, Keep Going And Be Blessed!!
lgexalter1 so far I've only had success doing it on the phone itself with magiskboot, which takes a bit of time to repack. I work out of /data/local/tmp:
/data/data/com.topjohnwu.magisk/lib/libmagiskboot.so unpack boot.img
/data/data/com.topjohnwu.magisk/lib/libmagiskboot.so cpio ramdisk.cpio 'add 0700 overlay.d/custom.rc custom.rc'
/data/data/com.topjohnwu.magisk/lib/libmagiskboot.so repack boot.img neutron.img
if you're messing with super I did get it open using lpunpack. Not sure where that came from though...
neutronscott that explains why my images wouldn't get repacked correctly when I tried working with an overlay. thanks for this
Why is 'Modules' greyed out in my magisk app? Also when I try running Gflip6_TF:/ # magisk --install-module terminaldebloater-v5.1.zip I get: Incomplete Magisk install?
Would terminal debloater work to uninstall the browser?
darth go to settings and enable zygote or whatever and reboot
Hi everyone! I am in yeshiva and cannot really be involved in this now. I just want to say, I am keeping updated on your guys' project and I'm really excited.
@neutronscott You're really amazing. We're so glad you made your way to these forums, and we all owe you a big thanks!
How can I make apps4flip mouse work on this flip phone?
Is this the same as the Alcatel My flip 2? Because that seems to run Kai OS...
EnriqueMcquade There was a patch in android 11 that accidentally broke virtual mouses. The patch seems useless for flip phones anyway, i don't know how we would disable it though. If i have a chance, ill try to research more about the patch and see what needs to be done to fix it.
Flippy no.
Biden2020prez How about the TCL My Flip 2?
Flippy No
Are you guys still working on the custom recovery?
EnriqueMcquade Are you guys still working on the custom recovery?
I was hoping to quickly enable adb in the recovery img but not really sure what to do with this:
C:\Users\m\Downloads\mtk>adb shell
adbd F 09-03 18:47:05 311 311 shell_service.cpp:380] Could not set SELinux context for subprocess
libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 311 (adbd), pid 311 (adbd)
darth I read through the instructions and that doesn't seem to address the problem with these partitions. This removed the "shared_blocks" feature, which we don't have:
Gflip6_TF:/data/local/tmp # tune2fs -l /dev/block/dm-2 | grep -e vol -e feat
Filesystem volume name: /
Filesystem features: ext_attr dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isizeI think https://forum.xda-developers.com/t/module-terminal-debloater-v17-3-2-debloat-systemlessly.3584163/ might be the solution. Unfortunately, i cant try myself.
shadowmyst Ok so a bit irrelevant but their naming scheme is terrible!!
What would happen if you uninstalled browser and installed A new app with the same package name. Would the app be replaced with browser on a reboot?
Biden2020prez I may have said before but after all my trials and errors I do believe the only ways to write to system are:
- signed ota package loaded by recovery
- custom recovery
- flashing super from fastboot or sp tools
- replace the code that sets the partitions as read only (mmc definitely won't let you disable it without a reboot and then you must still stop it from being enabled)
Problems I've had with each:
haven't tried making an ota package. Doesn't look fun and would still need to replace the verification keys in recovery.img.
I can't get adbd to run from recovery. Don't really know enough to port existing custom recovery like twrp.
this would take a lot of work to make a particular modification and rather solve this such that you all can make your own edits easily. But if the only thing everyone wants is chromium removed this is an option.
I can't find out where the emmc is set read-only to remove from the boot kernel. There is code in the OT_4058W kernel source but the partition names don't match up so I don't think that's what does it. I also tried using the recovery kernel in boot.img and nothing seemed different about it.
The MTK guys were smart in using the emmc's built in write protection! I think logically the best place to concentrate on is custom recovery. It should not be so difficult to fix this SELinux policy issue but for some reason my recovery images don't always boot even with somewhat small changes..
May have to force myself to take a break though. My chores are piling up here. 🙂
neutronscott we also want to remove fm Radio and maybe hotspot. Depending on the circumstances we may want to also add system apps or make other modifications. We are certainly very grateful for all you've done thus far and sorry its preventing you from getting things done. I wish i could do things myself rather than telling other people to try them, Unfortunately i can't.
I have been looking at many pages on xda and stack overflow and i see many pages that look similar to our issue, but can you post a link with the exact situation we have?
neutronscott
OK I got lazy (or smart?) and patched the lk partition. It has the code that enables the power-on write protection from sec1-super. I changed it to sec1-tee2 and shrunk it. Then I decided I wanted boot writable, and I put sec1-lk2 and it must not have that name in the table because it just lost the entire 2nd write protection but whatever.
Here is what was write protected before:
Write Protect Groups 36-321 (Blocks 589824-5275647), Power-on Write Protection
22 589824 593919 2.0 MiB 0700 sec1
23 593920 594943 512.0 KiB 0700 efuse
24 594944 726015 64.0 MiB 0700 md1img
25 726016 758783 16.0 MiB 0700 md1dsp
26 758784 760831 1024.0 KiB 0700 spmfw
27 760832 762879 1024.0 KiB 0700 mcupmfw
28 762880 795647 16.0 MiB 0700 gz1
29 795648 828415 16.0 MiB 0700 gz2
30 828416 832511 2.0 MiB 0700 lk
31 832512 836607 2.0 MiB 0700 lk2
32 836608 885759 24.0 MiB 0700 boot
33 885760 1016831 64.0 MiB 0700 vendor_boot
34 1016832 1033215 8.0 MiB 0700 logo
35 1033216 1049599 8.0 MiB 0700 dtbo
36 1049600 1051647 1024.0 KiB 0700 vbmeta
37 1051648 1053695 1024.0 KiB 0700 vbmeta_system
38 1053696 1055743 1024.0 KiB 0700 vbmeta_vendor
39 1055744 1061887 3.0 MiB 0700 tee1
40 1061888 1081343 9.5 MiB 0700 tee2
41 1081344 5275647 2.0 GiB 0700 super
Gflip6_TF:/data/local/tmp # ./mmc writeprotect user get /dev/block/mmcblk0
Write Protect Group size in blocks/bytes: 16384/8388608
Write Protect Groups 0-1 (Blocks 0-32767), Power-on Write Protection
Write Protect Groups 2-924 (Blocks 32768-15155199), No Write Protection
Write Protect Groups 925-925 (Blocks 15155200-15171583), Permanent Write Protection
Write Protect Groups 926-931 (Blocks 15171584-15269887), No Write Protection
EDIT: File removed. Just use /vendor/bin/write_protect 0
- flashboot flash lk lk-neutron.img
- mount -o rw,remount /
- rm -rf /system/app/Chromium
- reboot. see if it's gone.
neutronscott you mean we should try?
Biden2020prez I already tried it and it works. My browser is gone after reboot. The system_root partition now shows 96M free to add other things.
WE DID IT. I'M DONE! hah
Woah. Neutronscott should Get another honored member badge. We never could have done this without you!
now we just remove what we want and pull super?
lgexalter1 putting it mildly lol. For a custom firmware, the user still wont have write permissions because he modified lk not super correct?
i guess now we make a firmware without browser, I think Apps4flip admin May have a good idea for app integration. I may be able to get a semi functional cursor going, Ill post details when i have them.
Biden2020prez now we just remove what we want and pull super?
That should suffice.
lgexalter1 This guy is genius!
Eh if that were the case I'd have got recovery to work instead of just blowing open the doors.
I briefly looked at Launcherv3 and it looks like it tests if the app exists on system partition. Not going to mess with that now but hopefully just putting things in system makes it show up there. I did find this setting settings put global all_app_layout_type=1 to change the Launcher to a list.
Biden2020prez the user still wont have write permissions because he modified lk not super correct?
If you don't flash lk, the user won't have write access.. until they flash it. If you want to distribute super without Magisk there may be some AVB things to disable yourself that Magisk does.
neutronscott settings display menu layout
neutronscott Eh if that were the case I'd have got recovery to work instead of just blowing open the doors
i know your so dumb. Anyone could have done that.. 🙂
that was very very sarcastic in case someone didn't realize
Biden2020prez settings display menu layout
Yep I am such dumb. I was trying anything in the code to see if it bypass any check but it's hard coded. Haven't actually played with many settings on the phone yet so didn't know 🤣
lgexalter1 that's sad. Does button mapper also only support those keys?
even if it does we can probably map a long press to toggle voice access, But it would be very disappointing if most keys cannot be mapped.
how about mouse? I know it doesn't work, but does it recognize the star key?
neutronscott not working for me. I flash your lk image, reboot, adb shell, su, mount, rm, reboot and Chromium is still there. What am I doing wrong?
lgexalter1 Yes its strange that button mapper wont detect the extra keys. I have another app (key event display) which I used to test the buttons id number and it also wont detect the extra keys.
