Author Topic: Skelton - Help me compile a new Legacy possibility?  (Read 14202 times)

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Skelton - Help me compile a new Legacy possibility?
« on: August 27, 2017, 07:07:20 pm »
You have pms blocked sorry hehe.

I have a few questions for you if you dont mind skelton:

How hard is it to compile a rom?
Is it hard to add free apps to rom?
could CWM recovery be part of the flashable ROM?

If you are willing to help me compile a different version of your rom I would like to make some additions to it. I would use the 1.8GHz version but keep it at 1.4GHz and I want to add kernel adiutor to add toggle to it. I realize that the main purpose for your rom was to be debloated and slim, but I will maybe read up on a way to maybe add a way to customize it.

In the end I am just wondering if you help me or walk me through the process. This would probably not happen too soon because I am trying to gather any app that would be useful and not be bloatware.

is this maybe a possibility?

PS: I should add that there is an alternative with a few more steps, would be ok too. I could make a CWM backup and upload it for people to install. It would be a few more steps but would do the same essentially and you would not have to go through the trouble of teaching a nub how to compile a rom =). So don't feel ANY obligation to say yes. A "No" is fine, you have done enough already and we appreciate it.
« Last Edit: August 27, 2017, 07:12:34 pm by PsyOps »

skelton

  • Posts: 6894
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #1 on: August 27, 2017, 07:48:02 pm »
Do you want to compile from 0 or just modifying mine?

If it's just modifying mine you can use RX3XXX tools by Sergio Powerony if you use windows. It helps to unpack/repack img files from RK devices, so it's quite simple to add or remove things from a rom from it.

https://yadi.sk/d/XmMtw-qBmzQP7

If you use Linux you can follow this guide.
http://wiki.t-firefly.com/index.php/Firefly-RK3288/Customize_android_firmware/en


How hard is it to compile a rom?
Is it hard to add free apps to rom?
could CWM recovery be part of the flashable ROM?

1- It's hard if you do it from scratch, if you just modify an existing one just needs 30 minutes time if you know what you are doing.
2- To add free apps is easy. GPD XD comes with a preinstall folder under system, so just place apks you want in that folder and ready to go. If you want to add a new launcher is better to include it under system/app.
3- CWM can added, just removing recovery.img from stock rom and using CWM renamed as recovery.img when you repack files. I don't suggest it though, since rockchip devices need stock recovery to do the wipes when firmware is installed, and CWM don't do that, so user must do it manually.

Basically if you want to modify mine or a stock rom RX3XXX tools by Sergio Powerony is useful to start, since is quite simple and intuitive and it's quite easy to add new apps or new bootanimation etc.... or just a build.prop tweak. If you want to compile everything from 0 I can assist too, but that requires time of learning, though if you are brave and are used to Linux I can help if yoy want. Basicaly you need the whole SDK for RK3288 replacing their kernel for the one of my github.
http://wiki.t-firefly.com/index.php/Firefly-RK3288/Build_android/en
It also needs to decompile a couple of jar files with code from GPD stock roms that are not in firefly SDK (basically stock mapper and a couple of kl files)

About pms, I removed pms at Dingoonity because I got hundreds of PM regarding many devices or asking me making ROMS for devices I don't even have so I had to disable them for my state of mind XD
« Last Edit: August 27, 2017, 07:49:41 pm by skelton »
Retired

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #2 on: August 27, 2017, 10:50:20 pm »
Quote
If it's just modifying mine you can use RX3XXX tools by Sergio Powerony if you use windows. It helps to unpack/repack img files from RK devices, so it's quite simple to add or remove things from a rom from it.

With your permission I just wanted to use your 1.8Ghz.

Quote
3- CWM can added, just removing recovery.img from stock rom and using CWM renamed as recovery.img when you repack files. I don't suggest it though, since rockchip devices need stock recovery to do the wipes when firmware is installed, and CWM don't do that, so user must do it manually.

You mean dalvik cache n stuff like that? CWM has options to wipe. Wide data/Factory reset, wipe cache partition, and wipe dalvik cache. is that what you mean or something else?

Quote
though if you are brave and are used to Linux
I am not, to both haha. No, maybe later if you are up to it I can work up to it. Would be interesting to maybe have a hand in development once GPD XD2 is released. I also did plan on making a linux box just to familiarize myself with it. It is the best OS, I just havent tried it yet.

Quote
About pms, I removed pms at Dingoonity because I got hundreds of PM regarding many devices or asking me making ROMS for devices I don't even have so I had to disable them for my state of mind XD
Yes I was thinking it was exactly that reason.  :) You are all over the web with gpd. I can only imagine how clogged your inbox would be in each one.

I have a question for you. CWM has the ability to flash roms. What is the difference between an image file for RKandroidtool and one for CWM. Can they be interchangeable?

How would I go about making a Rom that is in a certain state? I want to setup the kernel profiles for kernel adiutor and have certain apps installed in a certain manner. Mainly kernel aduitor. Instead of the user having to set it up.

Have you ever worked with CWM or TWRP to make configurable rom installs, so that user chooses each app to install?

I am currently trying to figure out how the end result should look like and what apps to include. I am mainly looking to try to make a rom that will please most users. meh we will see. I appreciate the help.

skelton

  • Posts: 6894
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #3 on: August 27, 2017, 11:07:46 pm »
The difference between rk images and cwm ones is the format. Cwm allow to flash unsigned dios, rockchip uses img files with their own tools. Like LG or Samsung that have their own format to flash their stock roms. LG uses kdz images and Samsung uses Odin.
About cwm options to wipe you are right. The only difference is that stock recovery does it autom?ticamente whereas cwm you need to do it manually. But they work the same. Cwm has the advantage that allow to flash any zip without signature, like a supersu zip for example.
I have experience making flashable zips for amlogic devices, which os pretty much the same as flashable zips for cwm or twrp.
You can use my 1,8 rom as you wish if you want to modify It.
Retired

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #4 on: August 27, 2017, 11:19:27 pm »
Do you use irc or are you against using irc to help me out?
http://sectioneight.net/gpd-xd/live-chat is just a mod I added to the website to connect directly to irc.
I'm not sure what time zone you are in but whenever you get a chance. ( anytime I am on the computer I am on the irc just in case anyone pops in needing help )

If you are not comfortable with that I just need a walkthrough with using rk3xxx. I have it unzipped and just wondering where i go from here.

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #5 on: August 28, 2017, 02:08:29 am »
K i thought it was just my nubness but (it kinda was) it turns out rk3xxx is picky about where the firmware is.
I put the firmware inside the directory and it finally accepted it. I switched out the recovery.img and it worked. I put the old metro launcher that stock has inside /system/apps/launcher.apk (diff name but you get it) but it didnt pick it up. I am working on adding apps now.

skelton

  • Posts: 6894
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #6 on: August 28, 2017, 11:34:32 am »
Sorry for the delay, i am in a job travel today. When you add an app make sure there is no space in the name of the file. For example, for a Launcher, make sure is called novalauncher.apk and not Nova Launcher.apk with a space in it (just an example), or the system won't install it. The same for apps you include under system/preinstall
Retired

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #7 on: August 28, 2017, 01:16:01 pm »
NP it was my bed time =). Ok so I will have temp/system and I add apps there? I was going to add a bootanimation, would it be /temp/system/media ? Do I have to add any type of txt file or anything with the apps?

skelton

  • Posts: 6894
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #8 on: August 28, 2017, 01:22:18 pm »
I suppose you mean the temp folder that rk3xxx tools create. On that case you are right, just place your apps in temp/system/preinstall and the bootanimation is located at temp/system/media. After that just repack the system so a New system.img is generated, and then just repack firmware. If I remember well, It will be called new_firmware.img or something like that
Retired

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #9 on: August 28, 2017, 01:37:17 pm »
Ok thnx, trying now

I try to extract the system.img but I keep getting " Extract ERROR! corrupt system.img file : 0 "

Any ideas what is going on?
« Last Edit: August 28, 2017, 01:39:41 pm by PsyOps »

skelton

  • Posts: 6894
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #10 on: August 28, 2017, 01:44:50 pm »
Ok thnx, trying now

I try to extract the system.img but I keep getting " Extract ERROR! corrupt system.img file : 0 "

Any ideas what is going on?

Try using under the single tools tab, select your system.img (in system tools tab) inside the temp folder that RK3XXX created and it should allow you to extract. It's a bug of RK3XXX app that happens sometimes, but selecting it from single tools tab usually makes the trick.
« Last Edit: August 28, 2017, 01:48:11 pm by skelton »
Retired

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #11 on: August 28, 2017, 02:26:23 pm »
Perfect, it extracted! thnx I can play with it some more now.

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #12 on: August 28, 2017, 02:54:41 pm »
That you know of, is there a way to have cwm ( with a script or something ) do the same as stock recovery when the new firmware gets loaded?

skelton

  • Posts: 6894
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #13 on: August 28, 2017, 04:12:33 pm »
That you know of, is there a way to have cwm ( with a script or something ) do the same as stock recovery when the new firmware gets loaded?

Not that I know of. In fact, usually most roms that are flashed via CWM people have to do wipes manually and then flash the zip.
Retired

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #14 on: August 28, 2017, 04:13:59 pm »
Yep I remember having to do it on all my devices. Hm. This could be a problem with including CWM.

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #15 on: August 28, 2017, 06:45:14 pm »
Any idea about /data folder. Is there a way to include some data to firmware?

skelton

  • Posts: 6894
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #16 on: August 28, 2017, 07:48:39 pm »
As far as I know only apps that are installed in data, but not the data of the apps, because data app is formatted during recovery process
Retired

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #17 on: August 28, 2017, 08:54:45 pm »
Any way that you know of to change the format of an update.img made for rockchipbatch tool, to work with cwm/twrp?
RomManager is a powerful app and could be used to update/install any rom. I used it to backup and restore and it was super easy. 

As a developer skelton, how hard would it be for you to walk me through:
https://forum.xda-developers.com/showthread.php?p=32965365#post32965365
or
https://forum.xda-developers.com/showthread.php?t=1866545

By either using RomManager Or GooManager, the process could be super simplified and it would take care of the data wipe needed after fresh install. It is all done from inside android home.

skelton

  • Posts: 6894
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #18 on: August 28, 2017, 09:05:51 pm »
As far as I know, ROM manager works with official TWRP made by TWRP people. I think the cwm/TWRP made by crewrktablets is not official, so not sure if can be recognized by that soft.
The only way would be making the ROM manually in a zip format, but not sure if this can be done with Rk devices, I never tried. Even crewrktablets that make a lot of firmwares for Rk devices use IMG format
Retired

PsyOps (OP)

  • Moderator
  • Posts: 916
    • Section Eight
Re: Skelton - Help me compile a new Legacy possibility?
« Reply #19 on: August 28, 2017, 09:10:13 pm »
RomManager is CWM i think, same maker. ( It supports twrp now though ) and Goomanager Is TWRP.

If I can find a way to change them from img to zip it could make everything much much easier. Flash without a need of a pc/mac/linux box. It would mean download "update.zip" for root. Then install RomManager. Then install ROM. Also would make the backUp/Restore process super easy.

It would make the process very very very noob friendly as well as make it easier for mac/linux users.