add/delete stuff to ROM then re-sign and flash? - Android Software Development

Hi
I would be very happy if someone could tell me how to re-sign the ROM after I add and delete stuff to /system/app? what do I need?
thanks
edit: I read this but the link is dead, can't download.
http://forum.xda-developers.com/showthread.php?t=473580

Don't bother. If your recovery is set to check signatures, your rom will fail unless it is signed by the device manufacturer.

It would sort of defeat the whole purpose of signatures if you could just change something and re-sign it with the original signature.
Dont ask me to ever explain the math behind the crypto, but I can link a wikipedia page
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
http://en.wikipedia.org/wiki/Digital_signature#Integrity

There are a few ways to resign your changes to a custom ROM but you may not need to resign if your custom recovery doesn't check or if you use something like 7zip to open the zip but not actually extract it while making your changes. If you do need/want to resign, there are a few possibilities. A couple android apps can sign files on your phone itself: Signapktic or ZipSigner. There are also tools for your computer floating around xda to sign zip and apk files. I have a droplet called Android-sign(mac-only) to use every now and then. Also, there's always the testsign.jar method from the command line.
Code:
java -classpath /PATH/TO/testsign.jar testsign update.zip update-signed.zip

Related

[Q]Pulldown Menu addon

Hi,
i have a Samsung Galaxy S and i want to modify/create an own pull down menu widget like this one (highlighted in red):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have searched around, but i can't find any point to make them...
Did anyone have an idea?
Which apk does provide this type of addon?
I'm gonna guess settings.apk...
-BMFC
Sent from my T-Mobile myTouch 3G Slide using XDA App
In the Galaxy ROMs it's in twframework-res.apk
It's in the framework.
I am going to be working on something similar except for the Inc/Evo. I'm going to try and port over the MIUI notifcation menu because it is built in. Good luck on your try
i've found the right file in the twframework-res.apk and its known status_bar_expanded.xml...
inside of this file is declared the quickpanel-container with the containing buttons.
But, the Problem is, how can i make an own override into the quickpanel?
I've deodexed and decompiled the twframework.apk and after that the following classes.dex too, but it's unreadable... there are to many machine-instructions inside and make it useless.
I have put this files is in the attachment...
(the *.ddx files are readable with any editor)
Do have anyone an idea to implement an own quickpanel-container?

Need functions of DLL

Hello guys,
I actually own a windows ce 6 device called "Zune HD". There's an application made for it that allows to run cab files from windows mobile, but you have first to get some libraries.
So here's my problem: I tried to install Opera mini 10.3, but a DLL named "Cellcore.dll" is missing in order to run it.
So you guys have two options:
Give me a download link to cellcore.dll
Create me a dummy DLL with empty functions to pretend to be cellcore.dll
Thank you very much!
try these
(one of them is from my rom kitchen but dont know how to convert it into full .dll)
the other is a blank/dummy .dll
Rn
found this also so might be worth looking into these registries:
[HKEY_LOCAL_MACHINE\COMM\DTPT]
"dtpt_controller_dll"="cellcore.dll"
"use_dtpt_for_process"="UseDTPTForProcess"
Thanks for the fast answer!
So I'll first try your DLLs and I'll give you the result ASAP
Update: I put your dummy DLL in the installation directory of my game and it still does'nt work... :S Bizarre...
duno then dude
good luck
had a thought..
download HTCRIE
this displays the contents of a rom, eg:
1) a whole rom is a .NBH file, a rom has parts, which are .NB files
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
go into *OS and save your .dll file

[UTILITY]ApkManager (apkm) rework of AndroidSuite2012

Apkm (Apkmanager)
As a lot of features in AndroidSuite2012 were not used by the actual user I decided to release a single tool dedicated for decompiling apk's.
It has the same simple to use GUI as AndroidSuite but with less confusing buttons and a much lighter package.
The check box options are not yet implemented this is a alpha I was working on and decided to pull it from my dropbox and release.
Enjoy! Download below
PS Apktool might need replacing. Tomorrow I will update with the same method for decompiling used in AS2012.
apkm (ApkManager)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
DOWNLOAD​​
Tutorial​
Visit slethen.net for more information on this tool and other things I've done
Hi I installed your great tool but I get this message
Error: Unable to access jarfile G:\ANDROID
What should I do to get away
Taxi341 said:
Hi I installed your great tool but I get this message
Error: Unable to access jarfile G:\ANDROID
What should I do to get away
Click to expand...
Click to collapse
This is normally caused if theres a space in the name of the folder. Make sure its not in a folder with a space in the name. Although I've never seen it say \ANDROID. Could you screen shot the program? And remember you need jre installed

[TOOL] Android Multi-Install Tool. Batch Install your apps.[v 1.0.0] ALL android

I needed to install some stuff after I flashed my rom, so I quickly wrote up this tool.
You can throw whatever APK files into it, and connect your phone with debugging enabled, hit install and It'll install all the applications in the list.
Currently, this is just a prototype, but it will eventually get better, and I will add more features. For now, It should work for just a simple batch install.
If you have any problems, just shoot me a PM. Otherwise, I think this should be dead simple to use. If you have any suggestions for what I could add, Post it here.
Oh, and, If you wouldn't mind, Shooting me some donations will ensure you'll get more of this stuff!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
New Version coming out April 30th, 2014
I am re-writing the code from scratch. This was a project from a while ago.
Features to be implemented in the next version:
File management
APK installation library
APK removal
APK backup
More Realistic and better progress bar.
Windows 8 and retrograde support.
Mac and Linux support

[Tutorial] To ROM developers, although I just novice

Hello ,Guys,I‘ll teaching you how to edit this things​
Multiple clicks on the about phone Android version out of the interface
Let's take a look at the original version
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ok,Then,first Step,get your Resources ready
we need framework-res.apk,framework.jar
and a Computer with Apktool,Compression Software
let's change the image first
Open framework-res.apk using compression software
Open the folder res / drawable-nodpi, find platlogo.png
Then use your png image to replace it
Ok,The second step,Edit text in the image
Open framework.jar using compression software
Extract classes.dex
And then decompile it use Apktool
Open the folder to find classes\com\android\internal\app\PlatLogoActivity.smali
open it with Notepad2 or Notepad++
Search text in the image,Then change it
Note: The text is not too long
Then compiled using compression software to replace back
Well,Done,The modified two files changing for the better good authority, replace the framework, restart the phone:laugh:​
This is my modified good results
​
​

Categories

Resources