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,157
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    Marion, OH
    Ratings:
    +34
    Current Phone Model:
    Samsung Galaxy S3
    Twitter:
    spc_hicks09
    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,347
    Likes Received:
    274
    Trophy Points:
    198
    Location:
    Massachusetts
    Ratings:
    +274
    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:
    103
    Location:
    Auburn, Alabama
    Ratings:
    +1
    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 Senior Member Developer

    Joined:
    Jan 27, 2010
    Messages:
    1,610
    Likes Received:
    4
    Trophy Points:
    68
    Location:
    Ohio
    Ratings:
    +4
    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,157
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    Marion, OH
    Ratings:
    +34
    Current Phone Model:
    Samsung Galaxy S3
    Twitter:
    spc_hicks09
    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 DF Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,836
    Likes Received:
    38
    Trophy Points:
    163
    Ratings:
    +38
    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,157
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    Marion, OH
    Ratings:
    +34
    Current Phone Model:
    Samsung Galaxy S3
    Twitter:
    spc_hicks09
    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 DF Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,836
    Likes Received:
    38
    Trophy Points:
    163
    Ratings:
    +38
    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,157
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    Marion, OH
    Ratings:
    +34
    Current Phone Model:
    Samsung Galaxy S3
    Twitter:
    spc_hicks09
    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 DF Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,836
    Likes Received:
    38
    Trophy Points:
    163
    Ratings:
    +38
    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,157
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    Marion, OH
    Ratings:
    +34
    Current Phone Model:
    Samsung Galaxy S3
    Twitter:
    spc_hicks09
    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 DF Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,836
    Likes Received:
    38
    Trophy Points:
    163
    Ratings:
    +38
    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,157
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    Marion, OH
    Ratings:
    +34
    Current Phone Model:
    Samsung Galaxy S3
    Twitter:
    spc_hicks09
    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 DF Super Moderator Premium Member

    Joined:
    May 7, 2011
    Messages:
    6,836
    Likes Received:
    38
    Trophy Points:
    163
    Ratings:
    +38
    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,157
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    Marion, OH
    Ratings:
    +34
    Current Phone Model:
    Samsung Galaxy S3
    Twitter:
    spc_hicks09
    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.