2 pagesV  1 2 > »  
 
THEME IS CLOSED
> Automatic copying of settings files after installation from preinstall | TV BOX RK3229
RKtvBOX
Message#1
26.06.17, 12:03
Novice
***
[offline]

Group: Active users
Messages 47
Check in: 24.06.17

Reputation:-  0  +

Автоматическое копирование файлов-настроек после установки из preinstall download



Device or OS, firmware:TV BOX RK3229

How best to do it so that after flashing, when applications are being installed frompreinstall, immediately after installing these applications, the settings files were copied from the SD card to the data sections of the respective programs. This action needs to be performed only once, at the time of the flashing.

Purpose: automatic setup of programs after their installation

Post has been editedRKtvBOX - 26.06.17, 12:06
RKtvBOX
Message#2
27.06.17, 15:25
Novice
***
[offline]

Group: Active users
Messages 47
Check in: 24.06.17

Reputation:-  0  +

Guys, tell me, I'm suffering the 2nd day, I need to copy several configuration files, I do this:
1) I create a folder in system / vendor / (test, system / vendor / test /) in which I place several configuration files (config.dat, config1.dat, etc.).
2) In boot.img in the init.rc file (on init) I create several tasks (copy /system/vendor/test/config.dat / data / data /, etc.).
3) I rebuild the image and flash it, but copying does not occur.

But the image itself is ready, all the programs are installed, and the settings of the programs that are in /data/data/.../ cannot be copied so that the image is completely complete (inserted the SD card with the image, the new configured system also waited). It is a pity that you can not create an image with the data folder so that you don’t copy anything at all.
username11
Message#3
27.06.17, 17:34
User
*********
[offline]

Group: Curators
Messages 11477
Check in: 04.07.11
HTC Desire S

Reputation:-  2190  +

* RKtvBOX, and the partition at this point on rw mounted? That's it.
RKtvBOX @ 06/27/17, 15:25*
It is a pity that you can not create an image with the data folder
This, on the contrary, is very good, just fine, which is impossible. One of the greatest achievements of Android, significantly distinguish it from other operating systems.
okomand
Message#4
28.06.17, 00:15
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 10040
Check in: 06.01.14

Reputation:-  563  +

RKtvBOX @ 06/27/17, 12:25*
It is a pity that you can not create an image with the data folder so that you don’t copy anything at all.

And how are you trying to do this?
Why not just use the recovery?
You can tell more about the idea, did not quite understand what its meaning was.

Post has been editedokouser - 28.06.17, 00:21


--------------------
RKtvBOX
Message#5
28.06.17, 07:11
Novice
***
[offline]

Group: Active users
Messages 47
Check in: 24.06.17

Reputation:-  0  +

Why not just use the recovery?
Maybe I am doing something wrong, but when the device hangs up periodically (TV BOX), it does not even come out in recovery mode. Only reinstallation (flashing) of the system helps. Those. the device works fine for a while, then it starts to boot longer and longer, and then Android just burns at all and that's it, while at that moment it doesn't even get to bring it to recovery mode.

And how are you trying to do this?

Because I parse the finished / original image (using imgRePackerRK), there is no data folder in it, and I don’t manage to add my own result.

You can tell more about the idea, did not quite understand what its meaning was.

The idea is to make an image / firmware with already installed and configured programs. There are several identical devices and it would be desirable that in the case of firmware, a person could simply insert an SD card, reboot and get a “clean” system.
Lvware
Message#6
28.06.17, 08:48
MIUI Beta Team
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 3382
Check in: 29.11.14
Xiaomi Mi Pad 2

Reputation:-  918  +

RKtvBOX @ 06/28/17, 7:11*
Maybe I'm doing something wrong, but when the device hangs periodically
Find out logcat / dmesg to help.
recovery mode doesn't even come out. Only reinstallation (flashing) of the system helps.
You did not write HOW the system "reinstall (flashing)" occurs.
IMHO, during this process, something else is being done that you don’t pay attention to, because the system, in theory, can be on a “freshly stitched” and “yuzan” device. the same. To understand this question will help backup Before and After.
RKtvBOX @ 06/28/17, 7:11*
The idea is to make an image / firmware with already installed and configured programs.
This is done by the firmware of the / data section.
And read the cap,red letters.


--------------------
RKtvBOX
Message#7
28.06.17, 09:02
Novice
***
[offline]

Group: Active users
Messages 47
Check in: 24.06.17

Reputation:-  0  +

LVware @ 06/28/17, 08:48*
You did not write HOW the system "reinstall (flashing)" occurs.

ViaSD_Firmware_ToolI create a bootable SD card (the image is downloaded from the site), I insert it and turn on the device, a flashing occurs. Before that did throughAndroidTool, in the same place it is possible to load Data, but the point is not to depend on the computer, insert the sd-card and everything is ready. Now I am doing it, but I have to set up programs every time.
LVware @ 06/28/17, 08:48*
This is done by the firmware of the / data section.

Just wondering how to embed / data in the image, so as not to use the computer and do not load separately.
Lvware
Message#8
28.06.17, 10:08
MIUI Beta Team
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 3382
Check in: 29.11.14
Xiaomi Mi Pad 2

Reputation:-  918  +

* RKtvBOX, IMHO, "boot SD card" loads some mini-OS, let's call it Recovery. Described somewhereaction algorithm , according to which SD cards get into NAND boxing and WHAT ELSE does Recovery, let's call it updater-script .
You need to gut the "images", findupdater-script, to study , throw out too much, add the desired, collect back.
While studyingupdater-scriptYou, in theory, should get an answer to the question "Where do installed and configured programs from / data go when reinstalling (firmware) / system?"

Post has been editedLvware - 28.06.17, 10:09


--------------------
RKtvBOX
Message#9
28.06.17, 10:23
Novice
***
[offline]

Group: Active users
Messages 47
Check in: 24.06.17

Reputation:-  0    +

LVware @ 06/28/17, 10:08*
IMHO, "boot SD card" loads a kind of mini-OS, let's call it Recovery.

At the moment the firmware starts, a robot appears and below the words "Installing a system update ...", after the status bar is completely filled, the inscriptions: "recovery system v4.4.2" and below "writing ... writing ... writing .." ...
I will try to find where this loader is located.

Added (10:38) :
In the "root" in addition to the image itself (the Image folder) lies, apparently, this bootloader (RK322x_MiniLoaderAll (L) _V2.29.bin), as well as several files:
config_8.cfg
config_16.cfg
image.cfg
image.md5
package-file
parameter-rk322x-trust
parameter-rk322x-trust.parm
RK322x_MiniLoaderAll (L) _V2.29.bin
trust.img

Do not tell me in which direction to act to correct the bootloader to load the "data"? What program can you unzip RK322x_MiniLoaderAll (L) _V2.29?.bin ? Or maybe add some of your own bootloader, which separately (after the main one) would load the folders / partitions that I need?

Post has been editedRKtvBOX - 28.06.17, 11:03
Diman_3452
Message#10
28.06.17, 12:04
Help
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 3891
Check in: 26.02.13
Oukitel C4

Reputation:-  545  +

* RKtvBOX,a couple of minutes of searching the forum came across a messagePorting firmware 4.2 / 4.4 to MTK 6592/6582 (Post fil # 44098496)
Will help?
RKtvBOX
Message#11
28.06.17, 13:50
Novice
***
[offline]

Group: Active users
Messages 47
Check in: 24.06.17

Reputation:-  0  +

Diman_3452 @ 06.28.17, 12:04*
for a couple of minutes of searching the forum, I came across the message Porting firmware 4.2 / 4.4 on MTK 6592/6582 (Post fil # 44098496)
Will help?

Thank you, that is necessary! Today, the guys in the next topic already suggested that we should look in the direction of update-script, just like in the message you provided, but I can’t find this most update-script in the firmware ... There is such a system / bin / recovery file with 700 KB capacity, in which there are fragments of text that is displayed with the firmware, but there is some kind of incomprehensible encoding, one rubbish.

Thanks to the moderator for transferring messages from the "Scripts on the shell under Android" topic so as not to produce duplicates!

Post has been editedRKtvBOX - 28.06.17, 14:12
okomand
Message#12
28.06.17, 14:31
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 10040
Check in: 06.01.14

Reputation:-  563  +

* RKtvBOX,
Yes, the issues of creating update_script, downloads in recovery can be difficult, but what is written* username11,has nothing to do with reality: with / data and subdirectories you can work arbitrarily both from recovery and from under the android if there is a root.

Post has been editedokouser - 28.06.17, 14:34


--------------------
RKtvBOX
Message#13
28.06.17, 14:53
Novice
***
[offline]

Group: Active users
Messages 47
Check in: 24.06.17

Reputation:-  0  +

but what username11 says has nothing to do with reality: with / data and subdirectories you can work arbitrarily from both recovery and from under the android if there is a root.

As I understood it was just irony, which I do not approve of, because just knocks the novice from the right direction. You can work and the image as I understand it is created, the main thing is to correctly configure / write the loader (update_script). But it is with this that I have the difficulty, because I can not find this very bootloader yet. Already searching for files made by key. the words "update", "update * script", "package_extract_dir", etc. So far to no avail.
okomand
Message#14
28.06.17, 14:57
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 10040
Check in: 06.01.14

Reputation:-  563  +

* RKtvBOX,
Are there topics on your device on the forum?
Maybe there in the course of the device firmware for it, methods of flashing, etc.

Post has been editedokouser - 28.06.17, 14:59


--------------------
RKtvBOX
Message#15
28.06.17, 15:10
Novice
***
[offline]

Group: Active users
Messages 47
Check in: 24.06.17

Reputation:-  0  +

Are there topics on your device on the forum?

Subject thenthere is, but only in her activity leaves much to be desired, it is unlikely they will help.
okomand
Message#16
28.06.17, 15:37
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 10040
Check in: 06.01.14

Reputation:-  563  +

RKtvBOX
Message#17
28.06.17, 16:09
Novice
***
[offline]

Group: Active users
Messages 47
Check in: 24.06.17

Reputation:-  0  +

There are several firmware, maybe look at their insides.

Alas, but they also did not find anything like update_script
Lvware
Message#18
28.06.17, 16:34
MIUI Beta Team
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 3382
Check in: 29.11.14
Xiaomi Mi Pad 2

Reputation:-  918  +

* RKtvBOX, Unpack update.img and fill it with zip on yadi.sk, we'll see.


--------------------
RKtvBOX
Message#19
28.06.17, 17:21
Novice
***
[offline]

Group: Active users
Messages 47
Check in: 24.06.17

Reputation:-  0  +

LVware @ 06/28/17, 16:34*
Unpack update.img and fill it with zip on yadi.sk, we'll see.

Here isfileonly on yadi.sk failed.
Lvware
Message#20
28.06.17, 22:59
MIUI Beta Team
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 3382
Check in: 29.11.14
Xiaomi Mi Pad 2

Reputation:-  918  +

* RKtvBOXYour device is sewn with images / sections from Image (they are listed in package-file). There is no image - it is not sewn (a / data is not there).
At some stage, the recovery is called and everything wipes:
$ strings /sdcard/dump/Image/misc.img
boot-recovery
recovery
--wipe_all
Take a looksomeone else's experience, try to implement the desired through TWRP or scripts.


--------------------
RKtvBOX
Message#21
29.06.17, 05:04
Novice
***
[offline]

Group: Active users
Messages 47
Check in: 24.06.17

Reputation:-  0  +

LVware @ 06/28/17, 10:59 PM*
Your device is sewn with images / sections from Image (they are listed in package-file). There is no image - it is not sewn (a / data is not there).

As far as I understand, if I make an image of userdata directly from the TV Box and add another line to the package-file like this (userdata Image / userdata.img) this will not add to the installation. image userdata.img? Like inparameter-rk322x-trustAddressing spelled:
CMDLINE: console = ttyFIQ0 androidboot.selinux = disabled androidboot.hardware = rk30board androidboot.console = ttyFIQ0 init = / init mtdparts = rk29xxnand: 0x00002000 @ 0x00002000 (uboot), 0x00004000 @ 0x00004000 (trust), 0x00002000 @ 0x00008000 (misc), 0x00002000 @ 0x0000A000 (baseparamer), 0x00007800 @ 0x0000C000 (resource), 0x00006000 @ 0x00013800 (kernel), 0x00006000 @ 0x00019800 (boot), 0x00010000 @ 0x0001F800 (recovery), 0x00020000 @ 0x0002F800 (backup), 0x00040000 @ 0x0004F800 (cache), 0x00002000 @ 0x0008F800 (metadata), 0x00002000 @ 0x00091800 (kpanic), 0x00250000 @ 0x00093800 (system) - @ 0x002E3800 (userdata)

Can it work if you just substitute it?

Post has been editedRKtvBOX - 29.06.17, 05:13

2 pagesV  1 2 > » 


 mobile version    Now: 05/20/19 08:45