Hi everybody,
unfortunately I couldn't find a final answer to my question:
I know (or I think I know from your excellent forum):
- I can extract a stock ROM (and modify it)
But:
- can I resign the whole ROM using my own signature key, flash it back on the device and then use this to build an app (and sign/add/install it) running with e.g. android:sharedUserId="android.uid.phone" and androidrocess="com.android.phone" ?
In other words: can I replace the system signature key of a stock ROM with my own one, being able to sign my own apps with it? Or is that only possible by building the whole (custom) ROM myself?
I don't need a detailled description, a 'Give it a try!' or 'Wouldn't work because of...' however would be great!
Thanks,
deep blue
ps: any legal advice or warning is welcome, too, although I only want to dig a little deeper into my own phone.
yes you can
go to /system
and look for the build.prop
open it and
ro.build.display.id= Put Your rom name here
Thanks for your answer, locomain!
Maybe I didn't explain that correctly:
I don't mean the signature you can see when checking the phone-info. I'm thinking about the key, the ROM is signed with. If you sign your app with the same key, you can do much more stuff. As an example, my old HTC Desire came with a hidden app that displayed a lot of low-level radio-stuff (Field-Test-Monitor). This is only possible because this app is signed with the same key as the system itself.
My idea was to take a stock HTC-ROM and resign it with my own key, so I could build an app with extraordinary privileges for my own phone (like the app described above).
BR,
deep blue
Please use the Q&A Forum for questions Thanks
Moving to Q&A
[Q+A] [ROM] Resign stock ROM with my own signature key
For those who are interested:
using a downloaded CyanogenMod-signed-zip it worked, I just removed all signatures (from zip and all included apks) and re-signed everything using my own key. Afterwards I was able to create a small app that is allowed to run in the com.android.phone-process.
So I think it should work with stock-ROMs also, as long as I root them by the way.
Related
I was hoping someone would provide a quick step by step for adding recent apps back in. I am on Bamf Sense 3.0 rc 2. I know that there have been patches for this with many ROMS, but not all ROMS. So, rather than hoping for patches from the devs, I would like to know what has to be edited so that I might be able to make the mod myself on any ROM. I have no dev experience, but I can follow instructions very well. I assume that it merely requires an edit of some sort to the build.prop, but would not know where.
Bump, bump
lawtalking said:
I was hoping someone would provide a quick step by step for adding recent apps back in. I am on Bamf Sense 3.0 rc 2. I know that there have been patches for this with many ROMS, but not all ROMS. So, rather than hoping for patches from the devs, I would like to know what has to be edited so that I might be able to make the mod myself on any ROM. I have no dev experience, but I can follow instructions very well. I assume that it merely requires an edit of some sort to the build.prop, but would not know where.
Click to expand...
Click to collapse
I think adding recent apps requires more than just a build.prop edit, I would guess more along the lines of framework editing, which is, as far as I know, written in both XML and Java. However, long-pressing your home button will display your 8 most recent apps, and BAMF Remix has a flashable patch for restoring your recent apps to the notification pull-down, so your best bet would be to try flashing that (since both ROMs are BAMF-created, despite their differences) to see what happens. It may not work, it may blow up China, but just make a nandroid and go for it, worst case scenario restore your backup and crack open a coding book
BUMP!!... so many developers in this community and none wants to help!!
Unfortunately, the know-how for this is not anywhere online either.. I've googled for over a day for this.
I think it involves editing a smali file in SystemUI.apk.. (or SystemUI.odex if you are running an odexed rom).. just not sure which particular file and what particular colde needs to be changed to what.
hi guys, i dont post buy i read and learn alot, keep up the good work!!!
it all started when i tried to use the gps in my DHD 2.3.3.
it just wont lock on sats, even though it sees them though very slowly..
i read that i have to change a file in the system dir to manipulate the AGPS.
i tried that but it says that i dont have the permision to do so, so i read further.
i tried to temp root and perm root and the whole shabang, just to fail time after time.
can PLEASE (loosing hair over here) post a step by step directions to change a content of a system file? i just want my GPS to run (i already checked the contacts of the antenna and ordered another one just to realize it behaves the same...), all other benafits of rooting is not relevant for me..
i realy dont care if i need to root it, i'm just looking for a detailed step by step guide (or guides...)
BR
Liron
Please use the Q&A Forum for questions Thanks
Moving to Q&A
Download GPS Status & Toolbox, I don't believe you have to be rooted since I was never prompted by Superuser.
Select menu > tools > manage AGPS state. From that screen first reset, then download.
I don't know exactly what you're trying to do, but try that first. It helps.
Sent from my Evo + MIUI using Tapatalk!
nope.been there done that
i think that the agps servers are not correct (the dhd hase a file which contains the servers adresses) i need to change this file, but i need super user in order to do so..
i'm so close to just selling this pos...!
liron_al said:
nope.been there done that
i think that the agps servers are not correct (the dhd hase a file which contains the servers adresses) i need to change this file, but i need super user in order to do so..
i'm so close to just selling this pos...!
Click to expand...
Click to collapse
So you need help with rooting or with changing the file? You'll definitely need root to edit a system file.
If you're not rooted, can you not take it to your carrier and have them fix/replace it?
If that's not an option for whatever reason, you may have better luck looking around (or posting in) your device specific Q&A subforum.
Good luck, hopefully you get it fixed!
Sent from my Evo + MIUI using Tapatalk!
Once you're rooted, uninstall GPS Status (it's been known to cause problems - I speak from experience) and flash an EFS wipe tool through your preferred Recovery. Just check your device's thread for the zip file.
Sent from my HTC Vision using XDA App
I'm using Lenovo Ideatab A3000-h,
I want to make it to be set to run only one app after booting, not even the home page could run then, it will open at the app and still at it forever, I know it's a common need and this has been asked a lot of times before, So, after searching I discovered that there is three options :
1- Creating my own Custom ROM.
2- Making my application a launcher application using android manifest.
3- run a kiosk mode like surlock.
4- Modifying AOSP source code.
So, after a lot of search, I found that the third option can be easily broken be entering the tablet in safe mode and try to remove app then, or by removing it from accessing the tab by PC, and the second option can be broken by the same way.
So, all I got now is to use either the first option or the forth option, and when taking about the first option, thanks to NeroYoung I already know how to:
setting up android kitchen.
modifying ROM img files and jar files.
modifying build.prop.
generating the resulted Custom ROM.
but I don't know the way to reach my needs by customizing a ROM, so, all I want to know is how to modify the custom/stock ROM to achieve my requirement of booting to only a specific app. also if there is another way by making (System Backup ----> Modify ----> Restore Modified System) it will be great.
and when taking about the forth option, I already downloaded the source code and did know how to access it's resources, but don't know where is the source code that controls the start-up process and how to modify it. thanks in advance for all future contributors.
Hi,
I am trying to install an app as system app, the app is part of a device management tool, and the app will manage (un)installation of apps silently, So it needs to go as system app.
I am using the official ROM, it is already posted in the other thread, based on my researching in xda-developers forums, I have two options to get the app installed :
- Resign all apk files : This seems a very complicated process, so I have not tried it.
- Update services.jar to bypass signature check : I tried this as posted in this thread, but whenever I try to odex the services.jar it will give me error "error: only position independent executables (PIE) are supported." and no linker patch in xda-developers or any other websites online worked (basically the idea is to overwrite linker, but that does not work).
So I need a developer help to get me a dumped ROM that has the apks resigned, and share the signing keys with me to sign my app so it can be installed, OR with a fixed services.jar version that bypass signature check.
If anyone interested I do the work through upwork platform, so you can post here and link me to your profile, and we can move there to discuss the next steps.
This is the ROM I am flashing to the device each time I break the booting because of wrong deployment, Tzul dumped the official version so I assume we can also dumped it after we do modification to the device itself.
http://forum.xda-developers.com/android/general/tb3-710i-tb3-710f-rom-stock-rom-lenovo-t3437810
Upwork Job
https://www.upwork.com/jobs/_~011dd1fcc40307db69
You can apply to this job, please mention you saw this xda-developers post in your proposal.
Hi there -
short prologue: I am working on my bachelor thesis and must develop a service that keeps a record of how often a user actively uses the application permission settings of Android 6 and above. The main goal is to have a custom ROM which can be deployed on several phones to conduct a survey.
I identified the file where these settings are stored:
Code:
/system/users/0/runtime-permissions.xml
I want to set up a service running a FileObserver to keep track of the changes in this file. The file is not accessible by normal applications (permission -rw-------) but the service has to run without superuser.
So I want to sign my application with the platform key to obtain system permissions. I am totally clear on the purpose of this security concept and I know that I cannot get the original key. The resulting ROM is not going to be public and is used only in a controlled group for research purposes.
My question is how to exchange the signature/key with what the system applications of my actual ROM are signed. So that I sign my own apk with the same key so it has the special permission. I found the answer to this exact question on stackoverflow but it is quite old and I did not succeed with this explanation.
Do you know if there is another, more current approach?
Thanks in advance!
Device is a Xiaomi Redmi 4X running stock MIUI 9 (Android 7.1.2)
Just have the app built as part of the rom. This will make sure they both have the same signature.
zelendel said:
Just have the app built as part of the rom. This will make sure they both have the same signature.
Click to expand...
Click to collapse
What do you mean by "built as part of the rom"? I cannot build the rom from aosp because the device should run the original MIUI firmware. I used SuperR's Kitchen to modify the rom. Is this not suitable?
That will not work no. Maybe you could try using their patch rom setup. As very little is done with miui here, you mugjt be better off asking in n their forums.
zelendel said:
That will not work no. Maybe you could try using their patch rom setup. As very little is done with miui here, you mugjt be better off asking in n their forums.
Click to expand...
Click to collapse
Can you explain, why this wont work? I supposed I just have to exchange all the signed apk files. When I re-sign them with apksigner then they also obtain the self-signed certificate containing the public key. So why is this not enough? Is there another instance in the OS which checks the app signature on boot?
The entire system partition uses the same signature. So I guess you could go through and recompile everything with the new key but I doubt it would work. Many oem system apps won't work without their oem signature.
Like I said. You maybe better off asking over in the miui forums as very little is done here for it.