1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Can someone help me!?!

Discussion in 'Android Hacks and Help' started by spc_hicks09, Aug 25, 2011.

  1. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    I'm building a ROM for the OG Droid and I'm trying to put apps in the /data/app folder. Every time I flash the ROM, none of the apps from /data/app seem to install. Any thoughts!?!
  2. guidot
    Offline

    guidot Developer Relations Staff Member Premium Member

    Joined:
    Feb 10, 2010
    Messages:
    7,350
    Likes Received:
    270
    Trophy Points:
    0
    Location:
    Massachusetts
    I'll see if I can't someone in here for you.
  3. 13th angel
    Offline

    13th angel Developer Developer

    Joined:
    Jan 16, 2011
    Messages:
    2,102
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Auburn, Alabama
    About to leave the house to go to class and dont have time to track down the exact line, if no ones helped you by the time I get home from class I'll find it for ya.
  4. woodyman
    Offline

    woodyman Beta Team Developer

    Joined:
    Jan 27, 2010
    Messages:
    1,610
    Likes Received:
    4
    Trophy Points:
    0
    Location:
    Ohio
    Hey man, welcome to the ROM game, I'll post some little hints for you for some stuff below, but if you need help with anything in the process of your ROM feel free to let me know, I'll do what I can to help you, and even if I can't help with your problem I'll know someone who can. Here is some contact info for me for future reference.

    ----------------------------------------------------------------------------------------------------------

    All info can be found at Droid Concepts then click on 'Meet The Team'
    Twitter: @DroidConcepts
    Email: Woodyman@droidconcepts.com

    ---------------------------------------------------------------------------------------------------------

    Code:
    # In order to write to the DATA  we have to first mount it
    mount("MTD", "userdata", "/data");
    package_extract_dir("data", "/data");
    unmount("/data");
    
    If you need anything else drop me a message and i'll help you out.

    -woody



    Done! lol.

    Last edited: Aug 25, 2011
  5. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    Small world, from Ohio myself! Marion, Ohio born and raised. In the Army for the last 4 years and stationed in Hawaii now!

    Anyway, here's my issue because I think I explained this wrong. In the process of building the ROM, at the Root of the build I have the following:

    Data Folder
    System Folder
    META Folder
    Boot.img (kernel)

    I already have all the apps in the data folder. (Trying to put apps in /data/app so users can easily uninstall if they don't want them)
    I finish the ROM, sign it, upload it to www.multiupload.com, download it, flash it. I reboot and notice that none of the apps from /data/app will show up. However, when I boot up, open Root Explorer, go to /data/app, all the apps are listed! LOL

    If needed, I can also include a link to the build for better analyzing. I really appreciate the help guys! This is why I love DF so much!

    Last edited: Aug 25, 2011
  6. rck76
    Offline

    rck76 Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,841
    Likes Received:
    38
    Trophy Points:
    0
    I don't know anything about making roms but did you include a file that will set your permissions for the apps while flashing the roms?

    Sent from my Droid using DroidForums
  7. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    Lol if I have to do this, then this would probably be my problem. Just figured it was the same as putting apps in /system/app.
  8. rck76
    Offline

    rck76 Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,841
    Likes Received:
    38
    Trophy Points:
    0
    Well, I noticed when flashing roms, part of it is setting permissions. I'm really not sure if this is done automatically or a command or file has to be included.

    Sent from my Droid using DroidForums
  9. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    When the ROM is installing it runs a "Setting Permissions" script but I think you're right, I don't think I have anything in there specific for /data/app. I'll have to check it out later and see. Thanks man!
  10. rck76
    Offline

    rck76 Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,841
    Likes Received:
    38
    Trophy Points:
    0
    Hey, no problem, I just figured if you were still seeing your apps in /system/app or in /data/app and didn't show up in your installed app list, permissions probably weren't set correctly. I hope this is the problem and I wish you the best of luck in your rom development.

    Sent from my Droid using DroidForums
  11. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    Still can't figure it out so unfortunately I'm just going to have to put ALL the apps in the /system/app portion and let people use Root Explorer or Root Uninstaller to get rid of them.
  12. rck76
    Offline

    rck76 Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,841
    Likes Received:
    38
    Trophy Points:
    0
    Do you think it is permissions related or something else? Maybe woodyman can give you some more help. I know Chevy's pretty busy but maybe you could pm him. I've seen him help other rom devs.

    Sent from my Droid using DroidForums
  13. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    I think Chevy is mad at me or something, I don't know. I've sent him like 3 PMs so far and he's been answering people in the forums but hasn't replied to me. I don't know, I just said screw it and put them all in /system/app. People are just gonna have to delete them if they don't want them. Then when I figure it out I can put out an update.
  14. rck76
    Offline

    rck76 Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,841
    Likes Received:
    38
    Trophy Points:
    0
    Lol, sometimes it takes Chevy a couple days to reply. Why would Chevy be mad anyway?

    Sent from my Droid using DroidForums
  15. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    Cuz I'm flooding him with messages on here and on twitter lol. I know he's really busy and I felt like crap every time I sent him a PM or a message on Twitter.
  16. rck76
    Offline

    rck76 Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,841
    Likes Received:
    38
    Trophy Points:
    0
    What kind if rom are you building and when do you plan to release it? I'm sure if it's not right away, you may have time to figure it out by then.

    Sent from my Droid using DroidForums
  17. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    Just a OG Droid ROM. Will hopefully be themed but as of right now the theme is going to be seperate. I'm pretty sure it's fixed now, Chevy sent me back a PM that pointed out I left out 1 little string of code lol. Amazing how about 30 letters can fix an entire ROM haha.
  18. rck76
    Offline

    rck76 Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,841
    Likes Received:
    38
    Trophy Points:
    0
    That's good, glad you got it working :)

    Sent from my Droid using DroidForums
  19. 13th angel
    Offline

    13th angel Developer Developer

    Joined:
    Jan 16, 2011
    Messages:
    2,102
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Auburn, Alabama
    any chance you can send me the update script? All I need. I can try to help you with that

    hit me up on gtalk if you want: x13thangelx@gmail
  20. spc_hicks09
    Offline

    spc_hicks09 Premium Member Premium Member Developer

    Joined:
    Nov 7, 2010
    Messages:
    1,140
    Likes Received:
    28
    Trophy Points:
    48
    Location:
    Marion, OH
    Can't right now, getting ready to get off of a 16 hour graveyard shift but definitely can in about 12 hours lol. Thought I had it fixed earlier but I guess not.

    Sent from my Droid using DroidForums