[DEV][MODDING] CRT, Airview, 4-way reboot, ink effect, phone, sms..etc [9/Dec/2013]

majdinj

Senior Member
Nov 25, 2006
980
3,437
0
AlAhsa
@majdinj
As for the lidroid 23 toggles, do they show all under each other or is there a button to expand them as seen on the GS4, or do they slide? Lol.
They slide


any idea why when i add only the screenshot mod it appears in the pop up menu but when i select it, it reboots the phone and then bootloops until i restart the phone manually? thanks for the awesome guide by the way
You need to check screenshot bin permission to 04755
 

Kamy

Senior Member
Aug 29, 2012
5,335
19,303
0
Beijing
Regarding to Integrating application in settings menu tutorial I am trying to get non-Integrated apps in settings.apk but I am getting error.
I have some apps which I would like to remove theme from Add-ones section.

What I am doing

- deleting corresponding photos from \res\drawable-xhdpi folder

- removing lines from strings.xml
Code:
    <string name="gloryromaddons">GloryROM Addons</string>
    <string name="usbswitcher_text">USB mode switcher</string>
- Deleting following line from settings_headers.xml
Code:
<header android:title="@string/gloryromaddons" />
    <header android:icon="@drawable/usbswitcher" android:title="@string/usbswitcher_text">
        <intent android:targetPackage="in.zatta.USB_switch" android:action="android.intent.action.MAIN" android:targetClass="in.zatta.USB_switch.USB_switcherActivity" />
    </header>
Compiling an getting error.
What step(s) am I missing?



Edit: Second try:

Tried the same procedure without deleting photos, still getting error.
 

Attachments

Last edited:

elijahbrown

Senior Member
Aug 25, 2012
566
406
0
Regarding to Integrating application in settings menu tutorial I am trying to get non-Integrated apps in settings.apk but I am getting error.
I have some apps which I would like to remove theme from Add-ones section.

What I am doing

- deleting corresponding photos from \res\drawable-xhdpi folder

- removing lines from strings.xml
Code:
    GloryROM Addons
    USB mode switcher
- Deleting following line from settings_headers.xml
Code:
Compiling an getting error.
What step(s) am I missing?



Edit: Second try:

Tried the same procedure without deleting photos, still getting error.
Removed. Should have gone into more detail.

Sent from my SPH-L900 using Xparent Skyblue Tapatalk 2
 
Last edited:
  • Like
Reactions: Kamy

Goldie

Inactive Recognized Developer
Oct 16, 2010
9,966
22,758
0
Remove from public.Xml

Sent from my SPH-L900 using Xparent Skyblue Tapatalk 2
Wtf!?! You should NEVER add or remove anything manually from public. Leaving the images and strings in and just removing the headers should work. Otherwise if he has resources after those entries in public, stuff will get new ids allocated and could cause issues.

Sent from my GT-I9100 using Tapatalk 2
 
Last edited:
  • Like
Reactions: Kamy

badge2033

Senior Member
Mar 20, 2011
177
61
58
Monastir
hi majdi
thanks for your great work

i'm working on my own deodexed xxlt4 rom
and i try to make the launcher icon number mod as i though it's the easiest one to begin with
the mod compiles ok
but when i flash it to my device he doesn't find the launcher and hangs at startup?
i think i followed all the steps thouroughly
what am i doing wrong?
thanks
 

Kamy

Senior Member
Aug 29, 2012
5,335
19,303
0
Beijing
Wtf!?! You should NEVER add or remove anything manually from public. Leaving the images and strings in and just removing the headers should work. Otherwise if he has resources after those entries in public, stuff will get new ids allocated and could cause issues.

Sent from my GT-I9100 using Tapatalk 2
Deleting headers only gives me error too.

Code:
|Fri 05/10/2013 -- 16:07:45.04| 
-------------------------------------------------------------------------- 
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode, sharing)
Could Not Find C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\place-apk-here-for-modding\../place-apk-here-for-modding/signed_SecSettings.apk
Could Not Find C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\place-apk-here-for-modding\../place-apk-here-for-modding/unsigned_SecSettings.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Kamran\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'information_ticker_facebook_nonews_summary' has no default translation in C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res; found: zh_CN zh_HK zh_TW
aapt: warning: string 'lgt_service_global_auto_roaming_call_customcenter_summary_nocall' has no default translation in C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res; found: de es_ES fr it pl ru
aapt: warning: string 'onscreen_keypad' has no default translation in C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res; found: ar az bg ca cs da de el en_PH en_US es_ES es_US et eu fa fi fr ga gl hr hu hy in is it ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tr uk ur uz vi zh_CN zh_HK zh_TW
aapt: warning: string 'wifi_scc_diff_notification_dialog_msg' has no default translation in C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res; found: ar az bg ca cs da de el en_PH en_US es_ES es_US et eu fa fi fr ga gl hr hu hy in is it ka kk lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tr uk ur uz vi zh_CN zh_HK zh_TW
C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res\xml\settings_headers.xml:59: error: Error parsing XML: mismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Kamran\AppData\Local\Temp\APKTOOL3080910869378729683.tmp, -I, C:\Users\Kamran\apktool\framework\1.apk, -S, C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res, -M, C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
	at brut.androlib.Androlib.buildResources(Androlib.java:269)
	at brut.androlib.Androlib.build(Androlib.java:192)
	at brut.androlib.Androlib.build(Androlib.java:174)
	at brut.apktool.Main.cmdBuild(Main.java:188)
	at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Kamran\AppData\Local\Temp\APKTOOL3080910869378729683.tmp, -I, C:\Users\Kamran\apktool\framework\1.apk, -S, C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res, -M, C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:83)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
	... 6 more
 

Goldie

Inactive Recognized Developer
Oct 16, 2010
9,966
22,758
0
Deleting headers only gives me error too.

Code:
|Fri 05/10/2013 -- 16:07:45.04| 
-------------------------------------------------------------------------- 
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode, sharing)
Could Not Find C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\place-apk-here-for-modding\../place-apk-here-for-modding/signed_SecSettings.apk
Could Not Find C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\place-apk-here-for-modding\../place-apk-here-for-modding/unsigned_SecSettings.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Kamran\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'information_ticker_facebook_nonews_summary' has no default translation in C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res; found: zh_CN zh_HK zh_TW
aapt: warning: string 'lgt_service_global_auto_roaming_call_customcenter_summary_nocall' has no default translation in C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res; found: de es_ES fr it pl ru
aapt: warning: string 'onscreen_keypad' has no default translation in C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res; found: ar az bg ca cs da de el en_PH en_US es_ES es_US et eu fa fi fr ga gl hr hu hy in is it ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tr uk ur uz vi zh_CN zh_HK zh_TW
aapt: warning: string 'wifi_scc_diff_notification_dialog_msg' has no default translation in C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res; found: ar az bg ca cs da de el en_PH en_US es_ES es_US et eu fa fi fr ga gl hr hu hy in is it ka kk lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tr uk ur uz vi zh_CN zh_HK zh_TW
C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res\xml\settings_headers.xml:59: error: Error parsing XML: mismatched tag
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Kamran\AppData\Local\Temp\APKTOOL3080910869378729683.tmp, -I, C:\Users\Kamran\apktool\framework\1.apk, -S, C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res, -M, C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Kamran\AppData\Local\Temp\APKTOOL3080910869378729683.tmp, -I, C:\Users\Kamran\apktool\framework\1.apk, -S, C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\res, -M, C:\android-sdk\platform-tools\APK-Multi-Tool repacked by majdinj - Nov 2012\other\..\projects\SecSettings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more
You broke the xml so you have a mismatched tag. You need to look again how you removed as you either removed too much or not enough

Sent from my GT-I9100 using Tapatalk 2
 
  • Like
Reactions: Kamy

Kamy

Senior Member
Aug 29, 2012
5,335
19,303
0
Beijing
You broke the xml so you have a mismatched tag. You need to look again how you removed as you either removed too much or not enough

Sent from my GT-I9100 using Tapatalk 2
Great! Thanks~ Tied again and succeeded. :good:
How about those strings left over in values folder? Won't cause any issue later?
 

majdinj

Senior Member
Nov 25, 2006
980
3,437
0
AlAhsa
Great! Thanks~ Tied again and succeeded. :good:
How about those strings left over in values folder? Won't cause any issue later?
You can't remove resources, either image or string from modified apk as well as ids...
leaving them will not harm if you didn't point to them in any xml file..


If I want to resize the ink preview in settings' drawables... From xhdpi (680x396) how much would the resolution be?
Use android image resizer it will give you all sizes:
http://code.google.com/p/9patch-resizer/
 
  • Like
Reactions: Kamy

burtcom

Senior Member
Apr 23, 2007
913
326
0
Helena
Unbranded LT5 4-way reboot

I prefer not to have the name of the ROM in my 4-way reboot menu, and it seems everyone wants to do this these days :)

Attached is an android.policy.jar for XXLT5 that does not have a ROM name in the 4-way reboot menu, it just says "Choose..."

It goes in /system/framework
 

Attachments

Last edited:

anoopva

Senior Member
Jul 13, 2012
250
97
0
Cochin
I prefer not to have the name of the ROM in my 4-way reboot menu, and it seems everyone wants to do this these days :)

Attached is an android.policy.jar for XXLT5 that does not have a ROM name in the 4-way reboot menu, it just says "Choose..."

It goes in /system/framework

Thanks alot bro

it work fine in Pristine XXLT5 ROM
 

Attachments

panda00

Senior Member
Mar 1, 2013
1,601
1,061
0
Pandaville
Okay so long story short, I was try to port ink effect to my S2P.
When I recompiled secsettings, and decompiled it again, public.xml didn't show ink_none, started from red directly... and the order of things in the smali file were the same as the order in public.xml. Is that supposed to mean I did something wrong?
 

ezaechiel

Senior Member
Mar 19, 2013
1,017
1,032
0
Issou
team.5n0w.fr
Great and very Colossal job you did with these tutorials, it helped me a lot to mod my rom.

Thanks to you.

May I ask you the authorization to translate it in French to another Forum (All credits will go to you naturally ^^)?