• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root CM12.1 UNOFFICIAL RC5

Okay, so how would I go about creating my own switcher.zip/restore.zip files for this version?

I recall reading way back on this thread that the file manager seems to be able to edit the /system file regardless? I also recall reasons being listed as to why this would be necessary at all. Here are mine:

•Changing the Emoji style
•Removing some unnecessary shenanigans
•Altering some text files

That's about it. It's not urgent, so if anything, I'll try to figure it out in my own time.
 
Upvote 0
Okay, so how would I go about creating my own switcher.zip/restore.zip files for this version?

I recall reading way back on this thread that the file manager seems to be able to edit the /system file regardless? I also recall reasons being listed as to why this would be necessary at all. Here are mine:

•Changing the Emoji style
•Removing some unnecessary shenanigans
•Altering some text files

That's about it. It's not urgent, so if anything, I'll try to figure it out in my own time.
Go to my PAC ROM thread. Its like page 1-2 someone made a good tuturiole
 
Upvote 0
Cyanogen MOD 12.1 (Android 5.1.1) for ZTE ZMAX

You need to be rooted and have TWRP installed (normally, not switched up)

CURRENT RC5
https://www.mediafire.com/?t29pq0nbmwf6a4i
md5sum 389345d082548cdf7d7729d876c615a6

INSTRUCTIONS (all done in TWRP with out restarting)
DO A BACKUP IF HAVE NOT DONE ONE YET
FACTORY WIPE
INSTALL ROM
INSTALL GAPPS
this is the gapps zip I use
https://github.com/cgapps/vendor_google/raw/builds/arm/gapps-5.1-2015-06-02-15-19.zip

do not restore data in TWRP from another ROM or older version, the DATA partition has a lot of OS related system stuff in it, use a backup and restore utility like Titanium Backup, to just back up you apps, app data, messages, call log, etc, etc,

If you have sensor issues (the screen goes black when you receive a phone call)
see this thread for the fix
http://androidforums.com/threads/cm12-1-sensors.922452/

fix if you flashed cm12.1 and went back to stock and have messed up rotation sensors
https://www.mediafire.com/?csh937g28vrbql1

Working
it boots
audio
bluetoothe
camera
wifi
camcorder
RIL
GPS
WIFI hotspot
sensors

Needs fixing
you tell me

Old Versions

OLD RC4 NO ODEX VERSION
https://www.mediafire.com/?113149p0dwbniu7
md5sum 070104fbcdd60986ffe0beb27c46c5cf
OLD ODEXED VERSION RC3
http://www.mediafire.com/download/3axl05lhz2l2e7m/cm-12.1-20150620-UNOFFICIAL-draconis.zip
md5sum c7572a04c07a70aa5a0ada68bb37c362
OLD RC2
https://www.mediafire.com/?gzrif112ud260kt
md5sum 455fbf41d80f2edba3245832602a36e5
OLD RC1
https://www.mediafire.com/?0qloe9a1ybkl7a7
md5sum d3b0c6685de1724e7c2036a88c26035c
OLD BETA 2
https://www.mediafire.com/?lps6pmjy10feu4j
md5sum 37c59fb0bc5aef465640911f965dd023
OLD BETA 1
https://www.mediafire.com/?jv9adn9sdrxk8oa
md5sum 670a07b8e2246d7ceb0cd9189e14303e

SOURCE CODE
ANDROID
https://github.com/CyanogenMod
KERNEL
https://github.com/hroark13/android_kernel_zte_draconis
DEVICE TREE
https://github.com/hroark13/android_device_zte_draconis




SYSTEM WRITE PROTECTION IS STILL ACTIVE, I MADE CHANGES TO THE KERNEL THAT STOPS THAT ERROR WHEN YOU TRY TO REMOUNT AS R/W

IF YOU TRY TO MAKE MODS TO /SYSTEM IT WILL LOOK LIKE IT WORKED, BUT IT IS ONLY IN THE BUFFER, ONCE YOU REBOOT THOSE CHANGES ARE GONE

SYSTEM WRITE PROTECTION WILL NOT BE OVERCOME WITH OUT A BOOT LOADER UNLOCK OR SOME TYPE OF HACK


If I have helped you, and you like my work, please click on the Thanks Button and give my thread a rating by clicking on the stars above.

If you would like to buy me a beer , you can click on the PayPal button




I would like to thank the following people for their donations

Waxysdargle
cclebeaux
dabluze
Dhlongfellow
Masterchief87
syph0r
danny
Jbird5047
intrdrgn
luis

shlickwilly


if I missed anyone, sorry








.hK
Hey so I was working on porting a ROM and I downloaded a carbon 5.1 ROM from the moto g. I open it up and in the system folder theres just a build prop. It happens on multiple ones too. And idea why?
 
Upvote 0
Hey so I was working on porting a ROM and I downloaded a carbon 5.1 ROM from the moto g. I open it up and in the system folder theres just a build prop. It happens on multiple ones too. And idea why?
All the other system files are compressed with lollipop ROMs. System.new.dat is where all the system files are located(except for build.prop)
 
Upvote 0
Upvote 0
cause I make it not be like that with my release tools folder
https://github.com/hroark13/android...lob/cm12.1/releasetools/ota_from_target_files
line 135
OPTIONS.block_based = False


i could make it be like that, but dont like it that way

i like to be able to unzip the rom, make a few changes, zip it back up and flash it


that is also how I get my custom install script into the zip
https://github.com/hroark13/android...lob/cm12.1/releasetools/ota_from_target_files
line 128
OPTIONS.extra_script = 'device/zte/draconis/hroarks-install-script'



I have a tendency to do things a little different from others
 
  • Like
Reactions: Masterchief87
Upvote 0
Upvote 0
that is also how I get my custom install script into the zip
https://github.com/hroark13/android...lob/cm12.1/releasetools/ota_from_target_files
line 128
OPTIONS.extra_script = 'device/zte/draconis/hroarks-install-script'



I have a tendency to do things a little different from others
Hey I know your probably busy but I had 3 quick questions if you don't mind
1. Do you use the tool to convert DAT to img ? I'm having issues with it
2. Do I need to do something with the boot.img if its a rom for another phone being ported over?
3. Is it true to build for lollipop you need 64 bit Linux with a 500 GB hard drive?
 
Upvote 0
Hey I know your probably busy but I had 3 quick questions if you don't mind
1. Do you use the tool to convert DAT to img ? I'm having issues with it
2. Do I need to do something with the boot.img if its a rom for another phone being ported over?
3. Is it true to build for lollipop you need 64 bit Linux with a 500 GB hard drive?


1. there is a python script sda2img you can use that to convert it to a system.img.ext4, then you can use Android Kitchen to extract the files
2. you have to use the boot.img from our phone, either a 444 or 5.1 version, and you will also need to take any files in /system/lib/modules from the rom you took the boot.img from, the modules and the boot.img need to be the same version, if they are not wifi and other things dont work
3. I dont know for sure, but I think so, but I you dont have 64 bit, that means you have max 4 GB of ram, does not sound like a fast enough build system

I use a 8 Core AMD with 24 GB of RAM, and 3 TB hdd, I probably dont need that much, but I also run Virtual Box on it with a Windows 7 VB
 
Last edited:
Upvote 0
Hey I know your probably busy but I had 3 quick questions if you don't mind
1. Do you use the tool to convert DAT to img ? I'm having issues with it
2. Do I need to do something with the boot.img if its a rom for another phone being ported over?
3. Is it true to build for lollipop you need 64 bit Linux with a 500 GB hard drive?


sounds like you want to port a rom from another device, I think you will get as far as getting it booted, and having most Hardware working, but I very much doubt you will get camera to work the camera HAL /system/lib/hw/camera.msm8226.so will not load unless there are certain symbols in the /system/lib/camera_client.so

I am able to build those symbols into camera_client.so when I build a rom becuase camera_client.so is one of the files that gets made


usuall taking a camera_client.so from one rom to the other does not work, but it may if you are lucky
 
Upvote 0
I believe that a 64bit PC is required for compiling anything later than gingerbread. I don't think you would absolutely need a 500GB hard drive although a smaller hard drive would probably fill up quickly. They also recommend 16GB of ram minimum but I know a dev who builds ROMs on a laptop with 6GB ram. It does take hours for each build though.
 
Upvote 0
First off, I want to thank everyone who had worked so hard to get this running. I have had only one problem however the ROM itself functions almost flawlessly and all major functionalities work fine. I am now using this as my daily personal ROM. It's refreshing to see Lollipop on this phone.

Now, back to my one problem and I am not sure if this has been addressed or not. I have the T-Mobile Zmax. Like I said, the ROM works fine. My only issue is when I drag down the status menu, where it should say "T-Mobile" says "Emergency calls only". However, on my lock screen it says " T-Mobile".

I've tried changing the networks, etc and restarting but no luck getting the "Emergency calls only" to go away. I've sent and received phone calls and texts with no problems.
 
Upvote 0
First off, I want to thank everyone who had worked so hard to get this running. I have had only one problem however the ROM itself functions almost flawlessly and all major functionalities work fine. I am now using this as my daily personal ROM. It's refreshing to see Lollipop on this phone.

Now, back to my one problem and I am not sure if this has been addressed or not. I have the T-Mobile Zmax. Like I said, the ROM works fine. My only issue is when I drag down the status menu, where it should say "T-Mobile" says "Emergency calls only". However, on my lock screen it says " T-Mobile".

I've tried changing the networks, etc and restarting but no luck getting the "Emergency calls only" to go away. I've sent and received phone calls and texts with no problems.

do you have mobile data, and did you select an APN
 
  • Like
Reactions: Masterchief87
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones