[TWEAKS][SCRIPTS] Collection of 'em all - build.prop; init.d; etc. - Galaxy S II Android Development

Maybe this [TWEAKS][SCRIPTS] will help for our development
http://forum.xda-developers.com/showpost.php?p=16833651&postcount=1

really nice.. but most of the build.prop lines doesn't exist in the gt-9100's build.prop file :s

skiflyer said:
really nice.. but most of the build.prop lines doesn't exist in the gt-9100's build.prop file :s
Click to expand...
Click to collapse
Doesn't it work when you just add them, if they're not available yet?

Related

[Q]Problem after changing AndroidManifest.xml

Hello Guys and Galls,
I want to change the background of Settings.apk from black to white. I use the FroyoMod Rom http://forum.xda-developers.com/showthread.php?t=815595.
If change
Code:
<application android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
to
Code:
<application android:theme=[COLOR="Red"]"@android:style/Theme.Light.NoTitleBar"[/COLOR] android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
in AndroidManifest.xml.
I use ApkManger to decompile and compile. The (de)compiling is without any errors.
After compile with ApkManager i do the follow:
- open original Settings.apk and unsignedSettings.apk with 7-zip
- delete AndrodManifest.xml in original Settings.apk
- copy AndroidManifest.xml from unsignedSettings.apk to original Settings.apk
- copy the modified original Settings.apk to the phone in /system/app
- chmod 644 Settings.apk
- chown root:root Settings.apk
So now if I start Settings nothing happens, nothing, not even an fc.
This is was logcat says:
Code:
com.android.settings has no certificates at entry AndroidManifest.xml
What I´m doing wrong?
Try one of the many apk re-packaging tools on this forum. Ive used apktool but there are some front ends built for it
From something awesome
killersnowman said:
Try one of the many apk re-packaging tools on this forum.
Click to expand...
Click to collapse
tigger-gg said:
I use ApkManger to decompile and compile.
Click to expand...
Click to collapse
By the way if I change any other xml file in /res there are no such problems.
tigger-gg said:
I use ApkManger to decompile and compile.
Click to expand...
Click to collapse
dur
i read this on the mobile and did not see that....
solving the problem? because I would be interested
Me too, I'm having a problem recompiling an AndroidManifest.xml with apkmanager 5.0.1., it won't install unless I use an original AndroidManifest.xml file first, then I can flash right over it. At first I thought it was a the change I made in the file, but I just decompiled and compiled an unmodified version, and it did the same thing. So its the compiler.
Settings.apk is a signed system app. It will refuse to run unless signed by the same key as the rest of the system apps. Just replacing a single XML in the APK will cause a signature mismatch.
Best bet? I'd say make your change, then use a kitchen like dsixda's to resign the whole system with the test key (I think this is a menu option).
Yep your whole system has to have the same signature. I did this edit for a rom a while back, but I made the settings transparent instead of white background by using Theme.Wallpaper.NoTitlebar. Just sign your whole rom together with testkeys and all should be good until another system app gets changed/modified and the signatures don't match again.
Sent from my PG06100 using Tapatalk
Thanks to Gene Poole and one_love_420, I will try your instructions.
If your after quickly signing a whole load of apk's, I wrote a command line front end to do all the hard work for you.
You can even generate your own private key.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
BUMP to top
Please big problem been fighting for weeks
any one know anything about this!!
So anybody find a solution yet? Seems to be the binary text conversion.
It is the signitures in manifest.inf fyi

Help with SystemUI

Hi! Can you help me with this SystemUI?! I've to change the clock color to a dark gray! Please help, you can mod downloading it as attachement! Ty!
just edit the color.xml in the layout folder easy......
ajay8055 said:
just edit the color.xml in the layout folder easy......
Click to expand...
Click to collapse
i was gonna say that, or edit the UI image from drawable hdpi in like photoshop :good:

[Help]how to create theme chooser theme for x10 mini(e10i)

Hi guys, can u teach me how to create themes for theme chooser and give me the files i need to create a theme chooser themes thanks for your help...
-Renz29
Renz29 said:
Hi guys, can u teach me how to create themes for theme chooser and give me the files i need to create a theme chooser themes thanks for your help...
-Renz29
Click to expand...
Click to collapse
First you need to learn some basics about de-compiling and compiling APKs.
Read here about that: http://forum.xda-developers.com/showthread.php?t=2033415
After that you can decompile an existing theme and look in all files and see how stuff works. At the beginning most of it will not give any sense aside from the PNGs. You will recognice most of them.
What the theme-apk does is to make redirections to the one in the APK. All redirections are controlled in XML-files placed in res\xml
One master XML: redirections.xml
And the one XML for each app that is themed.
Aside from PNGs the theme also sets styles (colors, text-size and stuff) and sets what animations should be used.
In the root of the theme-apk you got AndroidManifest.xml.
Always make your own package-signature to avoid collision with other themes... package="com.thebest.theme.renz"
This is not a total guide... just to get you started.
Perhaps I should make one.
Emperor.dk said:
First you need to learn some basics about de-compiling and compiling APKs.
Read here about that: http://forum.xda-developers.com/showthread.php?t=2033415
After that you can decompile an existing theme and look in all files and see how stuff works. At the beginning most of it will not give any sense aside from the PNGs. You will recognice most of them.
What the theme-apk does is to make redirections to the one in the APK. All redirections are controlled in XML-files placed in res\xml
One master XML: redirections.xml
And the one XML for each app that is themed.
Aside from PNGs the theme also sets styles (colors, text-size and stuff) and sets what animations should be used.
In the root of the theme-apk you got AndroidManifest.xml.
Always make your own package-signature to avoid collision with other themes... package="com.thebest.theme.renz"
This is not a total guide... just to get you started.
Perhaps I should make one.
Click to expand...
Click to collapse
thanks for your reply but the Java SE Runtime Environment link is no file please help me
Renz29 said:
thanks for your reply but the Java SE Runtime Environment link is no file please help me
Click to expand...
Click to collapse
Link updated

[Q] How to change text color in manage applications

i Change my Setting Themes. to Holo.Light. One problem is when you go into manage applications the text is white on a white background almost impossible to see. What XML file needs to be edited to change that and what part needs to be changed?
Settings ->Applications ->Manage Applications
zomer143 said:
i Change my Setting Themes. to Holo.Light. One problem is when you go into manage applications the text is white on a white background almost impossible to see. What XML file needs to be edited to change that and what part needs to be changed?
Settings ->Applications ->Manage Applications
Click to expand...
Click to collapse
If you're on a Linux distro
Code:
grep -r "manage app"
This should give you the XML file that's present in.
Regards
MasterAwesome
MasterAwesome said:
If you're on a Linux distro
Code:
grep -r "manage app"[\CODE]
This should give you the XML file that's present in.
Regards
MasterAwesome[/QUOTE]
what can't understand
Click to expand...
Click to collapse
zomer143 said:
what can't understand
Click to expand...
Click to collapse
Its a bash command...to find stuff inside files..
Regards
MasterAwesome
MasterAwesome said:
Its a bash command...to find stuff inside files..
Regards
MasterAwesome
Click to expand...
Click to collapse
what file .xml or .smali
and what name of file
MasterAwesome said:
Its a bash command...to find stuff inside files..
Regards
MasterAwesome
Click to expand...
Click to collapse
MasterAwesome said:
Its a bash command...to find stuff inside files..
Regards
MasterAwesome
Click to expand...
Click to collapse
zomer143 said:
what file .xml or .smali
and what name of file
Click to expand...
Click to collapse
manage_applications_running.xml
manage_applications_item.xml
manage_applications_content.xml
manage_applications_apps.xml
or
ApplicationsState.smali
AppViewHolder.smali
InstalledAppDetails.smali
InstalledAppDetailsTop.smali
InterestingConfigChanges.smali
LinearColorBar.smali
ManageApplications.smali
zomer143 said:
manage_applications_running.xml
manage_applications_item.xml
manage_applications_content.xml
manage_applications_apps.xml
or
ApplicationsState.smali
AppViewHolder.smali
InstalledAppDetails.smali
InstalledAppDetailsTop.smali
InterestingConfigChanges.smali
LinearColorBar.smali
ManageApplications.smali
Click to expand...
Click to collapse
Smali files are files that define your action upon touch they are made by the compiler it transforms java code to smali..the XML files are the ones you need to edit
Regards
MasterAwesome
MasterAwesome said:
Its a bash command...to find stuff inside files..
Regards
MasterAwesome
Click to expand...
Click to collapse
MasterAwesome said:
Smali files are files that define your action upon touch they are made by the compiler it transforms java code to smali..the XML files are the ones you need to edit
Regards
MasterAwesome
Click to expand...
Click to collapse
where i change the text color ? what name of .xml
Settings ->Applications ->Manage Applications
zomer143 said:
where i change the text color ? what name of .xml
Settings ->Applications ->Manage Applications
Click to expand...
Click to collapse
manage_applications_running.xml
manage_applications_item.xml
manage_applications_content.xml
manage_applications_apps.xml
send these 4 and the colour you want me to change.. look at the xml after i change them to see what i changed.. its easier that way
MasterAwesome said:
manage_applications_running.xml
manage_applications_item.xml
manage_applications_content.xml
manage_applications_apps.xml
send these 4 and the colour you want me to change.. look at the xml after i change them to see what i changed.. its easier that way
Click to expand...
Click to collapse
yeah i try that but still no change i add this android:textColor="#ff000000"
zomer143 said:
yeah i try that but still no change i add this android:textColor="#ff000000"
Click to expand...
Click to collapse
yeah you need to change them in many places... send the 4 files i'll try my best
if you want to do it by yourself
do the samething i told you b4 go to the folder where your manage_app.xml files are present and copy those files to a folder on your desktop and name it x
Code:
cd Desktop/x
find ./ -type f -exec sed -i 's/android:textColor="#FFFFFF"/android:textColor="#000000"/g' {} \;|
this will replace all colour codes from white to black put the modified files from x back to their respective folders then compile the apk, test
MasterAwesome said:
yeah you need to change them in many places... send the 4 files i'll try my best
if you want to do it by yourself
do the samething i told you b4 go to the folder where your manage_app.xml files are present and copy those files to a folder on your desktop and name it x
Code:
cd Desktop/x
find ./ -type f -exec sed -i 's/android:textColor="#FFFFFF"/android:textColor="#000000"/g' {} \;|
this will replace all colour codes from white to black put the modified files from x back to their respective folders then compile the apk, test
Click to expand...
Click to collapse
ok i try to change if working or not
but thanks for this
zomer143 said:
ok i try to change if working or not
but thanks for this
Click to expand...
Click to collapse
Did it work?
Regards
MasterAwesome

[Q] Custom icone toggle

Hello everybody,
I would like to modify the icons of the tiles of the quick adjustment panel ( app or xposed or modifi systemui.apk).
I can not find a tutorial that works for me.
An idea please
thank you in advance
Try "Apk Editor" from Google play.
Απουσιολόγος said:
Try "Apk Editor" from Google play.
Click to expand...
Click to collapse
Thanks
It's weird I can not find the icons in the systemUI.apk
I take a look for you asap!. But I think they are XML files . No pngs images
Gesendet von meinem P9000 mit Tapatalk
Bradco said:
It's weird I can not find the icons in the systemUI.apk
Click to expand...
Click to collapse
They will probably be in
SystemUI<simple edit<images
Regards,
milkyway3
icons are not images/ pngs .
that was in android 5 and 5.1 . but now they are xml files.
example:
the location icon
Code:
there it creates the icon via
Code:
pathData="M24.0,4.0c-7.7,0.0 -14.0,6.3 -14.0,14.0c0.0,10.5 14.0,26.0 14.0,26.0s14.0,-15.5 14.0,-26.0C38.0,10.3 31.7,4.0 24.0,4.0zM24.0,23.0c-2.8,0.0 -5.0,-2.2 -5.0,-5.0s2.2,-5.0 5.0,-5.0c2.8,0.0 5.0,2.2 5.0,5.0S26.8,23.0 24.0,23.0z"
and set the height and width with the upper vector one.. ( vector android:height="17.0dip" android:width="17.0dip)
you can change the hex color #ffffff to what you want
i will test and tell you what you can do to change it into pngs images. (this will take a bit because of real life and work etc.. a bit busy)
milkyway3 said:
They will probably be in
SystemUI<simple edit<images
Regards,
milkyway3
Click to expand...
Click to collapse
I modify the picture framed in green because it is in png
But the picture framed in red I did not succeed.
I found png but it was not the one
skeleton1911 said:
icons are not images/ pngs .
that was in android 5 and 5.1 . but now they are xml files.
example:
the location icon
Code:
there it creates the icon via
Code:
pathData="M24.0,4.0c-7.7,0.0 -14.0,6.3 -14.0,14.0c0.0,10.5 14.0,26.0 14.0,26.0s14.0,-15.5 14.0,-26.0C38.0,10.3 31.7,4.0 24.0,4.0zM24.0,23.0c-2.8,0.0 -5.0,-2.2 -5.0,-5.0s2.2,-5.0 5.0,-5.0c2.8,0.0 5.0,2.2 5.0,5.0S26.8,23.0 24.0,23.0z"
and set the height and width with the upper vector one.. ( vector android:height="17.0dip" android:width="17.0dip)
you can change the hex color #ffffff to what you want
i will test and tell you what you can do to change it into pngs images. (this will take a bit because of real life and work etc.. a bit busy)
Click to expand...
Click to collapse
No problem skeleton, I understand, you have already do a lot for our p9000
Bradco said:
I modify the picture framed in green because it is in png
But the picture framed in red I did not succeed.
I found png but it was not the one
No problem skeleton, I understand, you have already do a lot for our p9000
Click to expand...
Click to collapse
You will get an answer and a how to , as soon as possible
Gesendet von meinem P9000 mit Tapatalk
skeleton1911 said:
You will get an answer and a how to , as soon as possible
Gesendet von meinem P9000 mit Tapatalk
Click to expand...
Click to collapse
Thank you very much, I wonder how can display png via an xml file, The image should be stored somewhere
Bradco said:
Thank you very much, I wonder how can display png via an xml file, The image should be stored somewhere
Click to expand...
Click to collapse
Vector files are not stored but generated. You could try putting the custom png files you want in your applicable drawable folder (drawable-xxxhdpi-v4 for example) named exactly like the xml you are replacing (except it will end in . png obviously). Sometimes android looks first for png before it moves to the vector (drawable) folder.
WiFi is usually ic_qs_wifi_0.xml and ic_qs_wifi_full_0.xml from 0 1, 2, 3, and 4.
Bluetooth is ic_bluetooth_off.xml and one for on.
Airplane might be ic_signal_airplane_enable.xml and disable
Tulsadiver said:
Vector files are not stored but generated. You could try putting the custom png files you want in your applicable drawable folder (drawable-xxxhdpi-v4 for example) named exactly like the xml you are replacing (except it will end in . png obviously). Sometimes android looks first for png before it moves to the vector (drawable) folder.
WiFi is usually ic_qs_wifi_0.xml and ic_qs_wifi_full_0.xml from 0 1, 2, 3, and 4.
Bluetooth is ic_bluetooth_off.xml and one for on.
Airplane might be ic_signal_airplane_enable.xml and disable
Click to expand...
Click to collapse
Thanks mate for this information ( 1/2 months I'm looking for )
Can i edit with notepad++ ?
What do you think about TickleMyAndroid for editing apk ?
Bradco said:
Thanks mate for this information ( 1/2 months I'm looking for )
Can i edit with notepad++ ?
What do you think about TickleMyAndroid for editing apk ?
Click to expand...
Click to collapse
I highly recommend tma always. If you just want to change the colors, yes use notepad ++ on the vector xml's themselves by changing the fill colors. If you have some png files in mind, try just renaming them, if necessary, to the same names as the vectors like I mentioned above and drop them in one of your drawable folders, xhdpi, xxhdpi and see if it works.
Edit: Unzip and see if these are named like yours. Drop them in a drawable folder. Recompile, put on your phone and see if they show up. They won't fit right but you'll know whether or not you can use pngs. Always make a backup first.
Tulsadiver said:
I highly recommend tma always. If you just want to change the colors, yes use notepad ++ on the vector xml's themselves by changing the fill colors. If you have some png files in mind, try just renaming them, if necessary, to the same names as the vectors like I mentioned above and drop them in one of your drawable folders, xhdpi, xxhdpi and see if it works.
Edit: Unzip and see if these are named like yours. Drop them in a drawable folder. Recompile, put on your phone and see if they show up. They won't fit right but you'll know whether or not you can use pngs. Always make a backup first.
Click to expand...
Click to collapse
So, The files in the zip you gave me does not exist in png but in xml in systemUI.apk
My xml files have the same name as the png that you gave me.
As the png files does not exist in my systemUI.apk I take those you gave me and I put them in:
- systemUI / res / drawable-xxhdpi-v4
or
- drawable-xhdpi-v4 ?
Thank you for all this informations.
EDIT : For the size of the PNG in pixel, what dimension should it use ?
Bradco said:
So, The files in the zip you gave me does not exist in png but in xml in systemUI.apk
My xml files have the same name as the png that you gave me.
As the png files does not exist in my systemUI.apk I take those you gave me and I put them in:
- systemUI / res / drawable-xxhdpi-v4
or
- drawable-xhdpi-v4 ?
Thank you for all this informations.
EDIT : For the size of the PNG in pixel, what dimension should it use ?
Click to expand...
Click to collapse
It doesn't matter where you add them.. I would place them into xxhdpi.
The dimensions of the icons is also not that important. In XML file it's 48dpi. If your icons are xhdpi it should be fine
Gesendet von meinem P9000 mit Tapatalk
Tulsadiver said:
I highly recommend tma always. If you just want to change the colors, yes use notepad ++ on the vector xml's themselves by changing the fill colors. If you have some png files in mind, try just renaming them, if necessary, to the same names as the vectors like I mentioned above and drop them in one of your drawable folders, xhdpi, xxhdpi and see if it works.
Edit: Unzip and see if these are named like yours. Drop them in a drawable folder. Recompile, put on your phone and see if they show up. They won't fit right but you'll know whether or not you can use pngs. Always make a backup first.
Click to expand...
Click to collapse
I test with png for airplane mod, i put the png on drawable xxhdpi v4 with this name --Airplane might be ic_signal_airplane_disable.png--
with TMA :
1. Theming menu
2. Recompile files
3. Recompile with original signature
4. Select systemui.apk
5. Then create flashable zip file
6. Add system/priv-app/ file to project android 5.0
7. Select out folder
8. Create standard zip file
9. Flash with the phone
But the problem
Interface system has stopped
Bradco said:
I test with png for airplane mod, i put the png on drawable xxhdpi v4 with this name --Airplane might be ic_signal_airplane_disable.png--
with TMA :
1.Theming menu
2.Recompile files
3.Recompile with original signature
4.Select systemui.apk
5.Then create flashable zip file
6.Add system/priv-app/ file to project android 5.0
7.Select out folder
8.Create standard zip file
9.Flash with the phone
But the problem
Interface system has stopped
Click to expand...
Click to collapse
Have you signed it? If yes don't do it.
Do you use the latest apktool?
Btw . I use androidmultitool with latest apktool to make my rom themes and modifications.
Gesendet von meinem P9000 mit Tapatalk
skeleton1911 said:
Have you signed it? If yes don't do it.
Do you use the latest apktool?
Gesendet von meinem P9000 mit Tapatalk
Click to expand...
Click to collapse
Yes with original signature
Version of apktool = 2.2.1
I have already managed to change the icons with this same configuration and process.
I will go with a clean install of the phone, what do you think ?
Bradco said:
I test with png for airplane mod, i put the png on drawable xxhdpi v4 with this name --Airplane might be ic_signal_airplane_disable.png--
with TMA :
1. Theming menu
2. Recompile files
3. Recompile with original signature
4. Select systemui.apk
5. Then create flashable zip file
6. Add system/priv-app/ file to project android 5.0
7. Select out folder
8. Create standard zip file
9. Flash with the phone
But the problem
Interface system has stopped
Click to expand...
Click to collapse
ic_signal_airplane_disable, is this how your xml file is named? You didn't put "Airplane might be" in the name, did you?
Before decompiling, did you install your framework(s)?
Apktool 2.2.2 is the latest. You should update your TickleMyAndroid
Tulsadiver said:
ic_signal_airplane_disable, is this how your xml file is named? You didn't put "Airplane might be" in the name, did you?
Before decompiling, did you install your framework(s)?
Apktool 2.2.2 is the latest. You should update your TickleMyAndroid
Click to expand...
Click to collapse
The name of my xml file is ic_signal_airplane_disable.xml i name a png like that ic_signal_airplane_disable..png
I just realized that I put two points to the extension i'am an idiot )
you might with TMA ? yes framework(s) is installed on my computer.
y update TMA and clean my phone it's better
could you tell me the process for recompile ans create zip with TMA ?

Categories

Resources