[Q] help cooking mods into a ROM

Search This thread
Hello ,

I want to cook an Battery percent mod from Jotha and an Advanced Power Menu into my own custom ROM.

Every time I try it the systemui file don't work. I have no statusbar and no notfication area.

Must I place from the original SystemUI.apk the META-INF folder and the recourse.rsc?? Into the modded files and then cook it?

I don't know why it won't work. It's the same base 2.17.40.2

Thanks in Advanced

Greets Lars

geschrieben mit dem Android 4.0.4 powerd HOX
 

j to the 4n

Recognized Developer
Oct 18, 2012
16,205
44,288
Germany

downloads.png
Full ROMs:
ViperOne 1.0.0 (1GB)

Incremental Updates: (Install one after the other, no reboot required)


changelog.png



Change Log:

ViperOne 1.2.1 (July 5)
  • Fixed custom volume steps not working
  • Fixed SystemUI force closing when Hide/Reordering Quicksettings if on translated localization
  • Fixed not working heqs size
  • Added toggle in VenomTweaks and VenomHub to force English localization
  • Disabling appropiate color settings if the native or veqs are disabled.
  • Fixed flashlight behavior not working
  • Fixed shortpress back to unlock not working
  • Added unlock lockscreen to shortpress button mappings
  • Unlocking lockscreen works now with shortpress, longpress and homeswipe
  • Disabling crt animation properly: should fix issues with 3rd party apps
  • Fixed custom homescreen layout not working
  • Added turkish translations - Thanks to MyCephei
  • Added french translations - Thanks to bowli




ViperOne 1.2.0 (July 4)
Fixes:

  • fixed haptic feedback for sure now!
  • fixed centered clock
  • fixed PC-Tool mod
  • fixed haptic feedback on htc2menu
  • fixed fonts in hub not installing correctly
  • fixed home swipe not working

New Features:

  • Added AOSP-Lockscreen incoming call workaround
  • Added system longress duration (longpress duration for drag/drop items on homescreen, appdrawer etc)
  • Added longpress duration for back and home
  • Added longpress duration for back and home on lockscreen
  • Added crt animations (toggable in tweaks, on be default)
  • Added custom homescreenlayout (4x5, 5x6)
  • Added LED flash duration on new notifcations. Value can be individually setted as low/high as you want in minutes.
  • Added LED flash while charging toggle
  • Added button mapping configuration for home swipe
  • Added button mapping configuration for home swipe on lockscreen
  • Added screenshot (power+home) toggle. If you use sweep2wake disable it, otherwise you will take screenshots accidently
  • Removed Newsplugin bottom bar share button. The share option available as menu item now.
  • Added HTC2Menu remapping
  • Added configurable volume steps. Independently configurable by volume mode
  • Added proximity fix toggle
  • Added toggle to use light colored controls in the vertical EQS when using a light background

Translations:

  • Added german translations, thanks to Wikii
  • Added dutch translations, thanks to neniick
  • Added russian translations, thanks to Borisov
  • Added swedish translations, thanks to abrasive

ViperOne 1.1.1 (June 27)
  • Added AOSP lockscreen
  • Added ability to disable camera widget/panel (and others) in AOSP lockscreen
  • Ensured fixed media control for volume up tweak is set accordingly
  • Added tweak to turn screen off when using flashlight action for home/back key on lockscreen
  • Fixed volume down for screen off changing volume
  • Fixed haptic feedback when powersaver activated
  • Added volume down wake
  • Reboot to safemode now working
  • Added themed icons for lockscreen
  • Disable Home swype on lockscreen
  • Fixed hot reboot in Hub (using fonts works now) and Venom Tweaks
  • Fixed sidebar not saving settings
  • Fixed center clock/status bar icon overlap
  • Added notification pulldown custom image and background color
  • Battery themes now being applied on-the-fly
  • Fixed on-the-fly native eqs color mods
  • Fixed powersaver VEQS icon
  • Removed 7 homescreen mod is HTC Launcher (may be re-added later)
  • Fixed Music Enhancer
  • Added file system check to OTA updates
  • Added tweak to display data icon even when connected to WiFi (AT&T style)

ViperOne 1.1.0 (June 25)
  • Updated to 2.19 base
  • Fixed Signal icons not hiding
  • Fixed distorted graphics in Lockscreen and Status Bar
  • Updated Aroma to 2.70B6
  • Update Play Store to 4.1.10
  • Fixed center clock notification overlap
  • Fixed Venom Tweaks Reboot
  • Fixed volume buttons while phone is locked

ViperOne 1.0.0 (June 22)
  • New Release
 
Last edited:
  • Like
Reactions: -Happy Feet-
thanks,

but when i recompile with apktool i become this error

HTML:
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" java.lang.NullPointerException
	at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
	at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2922)
	at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.java:345)
	at org.antlr.runtime.Parser.getSourceName(Parser.java:88)
	at org.jf.smali.smaliParser.getErrorHeader(smaliParser.java:358)
	at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.java:192)
	at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)
	at org.jf.smali.smaliParser.method(smaliParser.java:1657)
	at org.jf.smali.smaliParser.smali_file(smaliParser.java:595)
	at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:71)
	at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
	at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
	at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
	at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
	at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
	at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
	at brut.androlib.Androlib.buildSources(Androlib.java:179)
	at brut.androlib.Androlib.build(Androlib.java:170)
	at brut.androlib.Androlib.build(Androlib.java:154)
	at brut.apktool.Main.cmdBuild(Main.java:182)
	at brut.apktool.Main.main(Main.java:67)

after editing replace the method with this

Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
    .locals 7

    const/4 v0, 0x0

    return v0
.end method

it works....

i hope now i can cook the Mods....
 
Last edited:
..every beginning is difficult (-:

my tip: ask a dev if you are allowed to take his rom as base and do some so called "zip modding".

Would be helpful though if you could simply post a logcat here.



With my old Desire HD it was easier.:D
I think I ask anyone for permission to use his rom as base.
The other thinks with dsxda Kitchen is no problem. Mods like init.d scripts or build.prop mods are very easy ...the only problem are the mods from Jotha.

I have try also take the res and assets and the recourse.res from the mod into old systemUI.apk but nothing ...

But I want to know why it want work....


geschrieben mit dem Android 4.0.4 powerd HOX
 

j to the 4n

Recognized Developer
Oct 18, 2012
16,205
44,288
Germany
With my old Desire HD it was easier.:D
I think I ask anyone for permission to use his rom as base.
The other thinks with dsxda Kitchen is no problem. Mods like init.d scripts or build.prop mods are very easy ...the only problem are the mods from Jotha.

I have try also take the res and assets and the recourse.res from the mod into old systemUI.apk but nothing ...

But I want to know why it want work....


geschrieben mit dem Android 4.0.4 powerd HOX

deodex the rom, remove signature check, push the systemui.apk from jotha and it should work....
No idea what you are trying to do with taking the assets folder and the ressources.arsc from the SystemUI.apk.
You are doing definatly something wrong.

And as already said, taking a logcat after the systemui force closes would help.
If you dont know how to pull a logcat, you shouldnt build a rom.
 
sooo i have read out the Logcat.

E/PackageParser( (286): : Package com.android.systemui has no certificates at entry AndroidManifest.xml; ignoring!

The SystemUI.apk was ignored , the signaturecheck was failed.
I think i have compile and recompile the services.jar with the wrong Tool.

Thanks again for your help :)

edited and compile and recompile with Virtuous Ten Studio, now it works
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1

    downloads.png
    Full ROMs:
    ViperOne 1.0.0 (1GB)

    Incremental Updates: (Install one after the other, no reboot required)


    changelog.png



    Change Log:

    ViperOne 1.2.1 (July 5)
    • Fixed custom volume steps not working
    • Fixed SystemUI force closing when Hide/Reordering Quicksettings if on translated localization
    • Fixed not working heqs size
    • Added toggle in VenomTweaks and VenomHub to force English localization
    • Disabling appropiate color settings if the native or veqs are disabled.
    • Fixed flashlight behavior not working
    • Fixed shortpress back to unlock not working
    • Added unlock lockscreen to shortpress button mappings
    • Unlocking lockscreen works now with shortpress, longpress and homeswipe
    • Disabling crt animation properly: should fix issues with 3rd party apps
    • Fixed custom homescreen layout not working
    • Added turkish translations - Thanks to MyCephei
    • Added french translations - Thanks to bowli




    ViperOne 1.2.0 (July 4)
    Fixes:

    • fixed haptic feedback for sure now!
    • fixed centered clock
    • fixed PC-Tool mod
    • fixed haptic feedback on htc2menu
    • fixed fonts in hub not installing correctly
    • fixed home swipe not working

    New Features:

    • Added AOSP-Lockscreen incoming call workaround
    • Added system longress duration (longpress duration for drag/drop items on homescreen, appdrawer etc)
    • Added longpress duration for back and home
    • Added longpress duration for back and home on lockscreen
    • Added crt animations (toggable in tweaks, on be default)
    • Added custom homescreenlayout (4x5, 5x6)
    • Added LED flash duration on new notifcations. Value can be individually setted as low/high as you want in minutes.
    • Added LED flash while charging toggle
    • Added button mapping configuration for home swipe
    • Added button mapping configuration for home swipe on lockscreen
    • Added screenshot (power+home) toggle. If you use sweep2wake disable it, otherwise you will take screenshots accidently
    • Removed Newsplugin bottom bar share button. The share option available as menu item now.
    • Added HTC2Menu remapping
    • Added configurable volume steps. Independently configurable by volume mode
    • Added proximity fix toggle
    • Added toggle to use light colored controls in the vertical EQS when using a light background

    Translations:

    • Added german translations, thanks to Wikii
    • Added dutch translations, thanks to neniick
    • Added russian translations, thanks to Borisov
    • Added swedish translations, thanks to abrasive

    ViperOne 1.1.1 (June 27)
    • Added AOSP lockscreen
    • Added ability to disable camera widget/panel (and others) in AOSP lockscreen
    • Ensured fixed media control for volume up tweak is set accordingly
    • Added tweak to turn screen off when using flashlight action for home/back key on lockscreen
    • Fixed volume down for screen off changing volume
    • Fixed haptic feedback when powersaver activated
    • Added volume down wake
    • Reboot to safemode now working
    • Added themed icons for lockscreen
    • Disable Home swype on lockscreen
    • Fixed hot reboot in Hub (using fonts works now) and Venom Tweaks
    • Fixed sidebar not saving settings
    • Fixed center clock/status bar icon overlap
    • Added notification pulldown custom image and background color
    • Battery themes now being applied on-the-fly
    • Fixed on-the-fly native eqs color mods
    • Fixed powersaver VEQS icon
    • Removed 7 homescreen mod is HTC Launcher (may be re-added later)
    • Fixed Music Enhancer
    • Added file system check to OTA updates
    • Added tweak to display data icon even when connected to WiFi (AT&T style)

    ViperOne 1.1.0 (June 25)
    • Updated to 2.19 base
    • Fixed Signal icons not hiding
    • Fixed distorted graphics in Lockscreen and Status Bar
    • Updated Aroma to 2.70B6
    • Update Play Store to 4.1.10
    • Fixed center clock notification overlap
    • Fixed Venom Tweaks Reboot
    • Fixed volume buttons while phone is locked

    ViperOne 1.0.0 (June 22)
    • New Release