Hovatek
  • Private Support
  • Blog
  • Home
Login Register Ask Question Hello There, Guest!
Login
Username:
Password: Lost Password?
 

OR

       

Telegram Channel: Join the discussions @ t.me/Hovatek


  1. Hovatek Forum
  2. MOBILE PHONES HELP SECTION
  3. Android
 
Thread Rating:
  • 0 Vote(s) - 0 Average

Thread Modes

How to get Android (system) file's Begin Address

Melvin Lunder
Newbie
Posts: 3
Threads: 1
Joined: Feb 2021
Reputation: 0
#1
Heart 

23-02-2021, 03:40 PM


Hello, everyone. I would like to flash system files using sp flash tool.
For example, I would like to rewrite /system/build.prop.
To do this task, you know, I need to know the file's Begin Address in hex form.
Please, teach me how to get this address. Thanks.
(P.S: I have already backup system as .img file)


Attached Files
.png 2021-02-23.png Size: 13.6 KB  Downloads: 3
(This post was last modified: 23-02-2021, 04:09 PM by Melvin Lunder.)
Find
Reply
Melvin Lunder
Newbie
Posts: 3
Threads: 1
Joined: Feb 2021
Reputation: 0
#2
Heart 

23-02-2021, 04:24 PM
Hello, everyone. I would like to know how to get Android system files' Begin Address.
For example, I want to rewrite /system/build.prop file with a file on my pc, using SP Flash Tool (Write Memory feature).
https://forum.hovatek.com/attachment.php?aid=8847
To do this task, I have to know its "Begin Address" in hex form. Please teach me how to get this address.
(I have already backup system as *.img file(optimized) and can find it's address but I know this is not the address I need.)
Thanks for your care.

(P.S: My Chip model is MT6765 but I would like to know general methods to get address, not depends on chips.)
(This post was last modified: 23-02-2021, 04:29 PM by Melvin Lunder.)
Find
Reply
X3non
Hovatek Representative
Posts: 19,099
Threads: 557
Joined: Jul 2014
Reputation: 326
#3

23-02-2021, 07:45 PM
(23-02-2021, 03:40 PM)Melvin Lunder Wrote:  Hello, everyone. I would like to flash system files using sp flash tool.
For example, I would like to rewrite /system/build.prop.
To do this task, you know, I need to know the file's Begin Address in hex form.
Please, teach me how to get this address. Thanks.
(P.S: I have already backup system as .img file)

in your screenshot, what you are trying to do will most likely not work
instead root your device and replace the file using a root file manager OR use twrp's file manager OR build a full system.img with the modified build.prop then flash the system.img

but to answer your question, simply make a firmware backup of your device, the scatter file you get will tell you the start addr of every partition ; see https://forum.hovatek.com/thread-21970.html
or you could simply readback pgpt then load into wwr and get the start addr without needing to make a full firmware backup

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Find
Reply
Melvin Lunder
Newbie
Posts: 3
Threads: 1
Joined: Feb 2021
Reputation: 0
#4
Heart 

24-02-2021, 05:04 AM
Really thanks for your reply, @X3non.
Of course, root my phone and rewrite a file, that's the best and simple way.
But actually I have some issues with rooting the phone, caused by internet connection I think.
Anyway I would like to use SP Flash Tools' Write Memory feature.
I have DA, Scatter, preloader, system.img. I tried to change the system.img but it is optimized and not easy to modify some bytes.
I know the system block begin address from scatter file, I just need to know address of "A File In System block". Its last three figures are 0 like 0xBF203000.
Thanks for your attention.
Find
Reply
X3non
Hovatek Representative
Posts: 19,099
Threads: 557
Joined: Jul 2014
Reputation: 326
#5

24-02-2021, 10:46 AM
(24-02-2021, 05:04 AM)Melvin Lunder Wrote:  ...
I know the system block begin address from scatter file, I just need to know address of "A File In System block". Its last three figures are 0 like 0xBF203000.
Thanks for your attention.

why don't you open system.img in hxd, open build.prop in hxd as well
search for lets say the first 5 hex contents of build.prop (use has something to do with "begin build properties") within system.img to find out the addr within system.img then do the calculation from the start addr in the scatter file to find the location of build.prop in memory

the thing is that if your build.prop is even one byte larger than the previous build.prop, you'll end up overwriting something within system.img and still end up with a brick. one byte small and you won't overwrite the entire existing build.prop , who knows what that might lead to


Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Find
Reply
« Next Oldest | Next Newest »


Possibly Related Threads…
Thread / Author Replies Views Last Post
How to extract system.img from .flag file in .pac file of Itel 1513
Rwshd
2
603
Last Post by Rwshd
06-06-2020, 05:43 AM
Pattern address.
Dilone61
4
527
Last Post by X3non
13-05-2020, 02:38 PM
How to get full length address using Wwr_MTK & SP Flash Tool
X3non
27
14,019
Last Post by Migisenpai16
27-03-2020, 11:54 AM
getting full length address
immortal_jerk
1
837
Last Post by X3non
26-07-2019, 09:50 PM
ERROR: The length of the bluetooth Address is wrong
Aniugchukwu
5
827
Last Post by Aniugchukwu
25-07-2019, 01:28 PM

  • View a Printable Version


Users browsing this thread: 1 Guest(s)
  1. Hovatek Forum
  2. MOBILE PHONES HELP SECTION
  3. Android

About

The Hovatek Forum is a free Tech. Support Forum. We provide solutions to all your device related problems and questions. We'll love to have you participate in discussions here whether you're a Newbie or Experienced.

         

Forum Team

Powered By MyBB. Crafted by EreeCorp.




Linear Mode
Threaded Mode

Share

Share Tweet Share Share Pin