12

I use Mac in office for daily dev and tasks, and a Lubuntu laptop for Linux related jobs. My home PC runs Ubuntu. And my personal laptop has a Ubuntu-Windows dual boot. I haven't used the Windows for more than a year. Even I do most of the basic tasks in Terminal, both in Mac and Linux.

Now I need to install a custom ROM in my Android Snapdragon based phone. And all the tools I need runs in Windows only. I don't even want to open that boot partition. 😥

Any help on this? It would be better if I can get something which runs on Linux.

Comments
  • 1
    Check their target framework, I used to keep a Windows XP VM since all the tools I used needed at least Framework 4.0 don't know now but last time I did that was in 2013 lol
  • 3
    I rooted my phone and flashed all ROMs with Linux🤔
  • 0
    @demiko Yes, Nexus 5. Doesn't it work with others?
  • 0
    Xiaomi. The device doesn't matter. The SOC matters. Qualcomm and MediaTek have their own tools. My device runs on Snapdragon chip.
  • 0
    @b3b3 can u please mention which tools u used. I am not talking about root only. I want to install a custom ROM.
  • 2
    @shubhadeepb why do you need windows for installing a custom rom? I thought you are cooking one.
    To install you need a recovery installed on your phone.
    I don't understand what is it that is chip specific you are doing? Even if you are using their open source code to compile kernel modules, you'll need to include them with kernel source code or compile them on Linux then include them either in your kernel ramdisk then copy during boot, or you need to copy/paste then in their folder inside the ROM zip file
  • 1
    @shubhadeepb I don't really understand what you want to do but to flash a ROM (.zip) you can user fastboot (I think) or just copy it onto your micro SD and use your custom recovery like twrp
  • 2
    If you google you can find tutorials on rooting+flashing. On Ubuntu there should be android adb tools. You can use them I think
  • 3
    @shubhadeepb
    First you need root - maybe you need PC(Kingoroot)

    From now the PC is useless.
    Install Supersu and override the default Kingoroot root management app.

    Install Flashify and flash the custom recovery you want(I am a TWRP fanboy but CWM is good too)

    Download the rom you want and gapps and supersu if needed.

    Restart to recovery and make a backup of your current rom(don’t forget to backup the boot, this fucked me hard the one time) on external SD or on USB through OTG.

    Factory data reset and format everything except internal and external storage.

    Flash the rom and if needed gapps and supersu.

    Reboot and configure your new device.

    If not happy do factory data reset and format everything except internal and external storage and restore from the backup you made earlier.
  • 1
    Let me explain in details. Qualcomm has a tool called QFIL(Qualcomm flash image loader). If you use that tool then it would be the easiest way to flash a Qualcomm based phone. You just boot your phone in recovery mode, open QFIL and select the ROM (zip file). QFIL will do rest of the job. You don't even need to root the device.

    Now this QFIL has only Windows support. I was looking for same kind of tool in Linux.
  • 0
    @just-basic-user thanks. I will follow exactly these steps. Let's see what happens.
  • 2
    @shubhadeepb May I ask what the rom is?
  • 2
    @shubhadeepb sounds like a useful tool. But I don't know if it exists on Linux too. I still recommend you to root your phone :) I think it will be easier for future use in case you don't have your PC right now you can just download a ROM to your mobile and flash it there.
  • 2
    @shubhadeepb To flash a custom ROM you need an unclocked bootloader
    Installing a custom recovery doesn't mean you root your phone.

    Use TWRP recovery it asks you if you want to root, just tap no, and use it flash your custom ROM, I never used a tool to flash zip ROMS and never felt the need of having to use one
  • 3
    Yeah. I will follow the steps mentioned by @just-basic-user. Actually I haven't flashed the ROM using custom recovery yet. I always have used QFIL.

    My current ROM is miui 9 beta. And I want to install Android 7.1 stock version.
Add Comment